ERC-721
Overview
Max Total Supply
9,814 APEZ
Holders
3,240
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
8 APEZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ApeZuki
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./ERC721SlimApe.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract ApeZuki is ERC721SlimApe, EIP712, Ownable { using Strings for uint256; using ECDSA for bytes32; event FreeMinted(address luckyAdopter, uint8 amount); bytes32 public constant LOTTERY_SALT = 0x495f947276749ce646f68ac8c248420045cb7b5e45cb7b5e45cb7b5eea213782; uint256 public constant PRICE = 0.06 ether; uint256 public constant INITIAL_ADOPTION = 10; struct Config { uint16 maxSupply; uint16 reservedMintSupply; uint16 fixedFreeMintSupply; uint16 randomFreeMintSupply; bool saleStarted; } struct Adopter { bool reservedMinted; bool freeMinted; } mapping(address => Adopter) public _adopters; Config public _config; string public _baseURI; uint256 public _randomFreeMinted; constructor(Config memory config, string memory baseURI) ERC721SlimApe("ApeZuki", "APEZ") EIP712("ApeZuki", "1") { config.fixedFreeMintSupply += uint16(INITIAL_ADOPTION); _config = config; _baseURI = baseURI; _safeBatchMint(msg.sender, INITIAL_ADOPTION); } function adoptApes(uint256 amount) external payable { Config memory config = _config; require(tx.origin == msg.sender, "ApeZuki: ape hates bots"); require(config.saleStarted, "ApeZuki: sale is not started"); uint256 totalMinted = _totalMinted(); uint256 publicSupply = config.maxSupply - config.reservedMintSupply; require(totalMinted + amount <= publicSupply, "ApeZuki: exceed public supply"); if (totalMinted < config.fixedFreeMintSupply) { require(!_adopters[msg.sender].freeMinted && amount == 1, "ApeZuki: you can only mint 1 for free"); _adopters[msg.sender].freeMinted = true; _safeMint(msg.sender); return; } require(msg.value >= PRICE * amount, "ApeZuki: insufficient fund"); uint256 refundAmount = 0; uint256 randomFreeMinted = _randomFreeMinted; uint256 remainFreeMintQuota = config.randomFreeMintSupply - randomFreeMinted; uint256 randomSeed = uint256(keccak256(abi.encodePacked( msg.sender, totalMinted, block.difficulty, LOTTERY_SALT))); for (uint256 i = 0; i < amount && remainFreeMintQuota > 0; i++) { if (uint16((randomSeed & 0xFFFF) % publicSupply) < remainFreeMintQuota) { refundAmount += 1; remainFreeMintQuota -= 1; } randomSeed = randomSeed >> 16; } if (refundAmount > 0) { _randomFreeMinted = randomFreeMinted + refundAmount; Address.sendValue(payable(msg.sender), refundAmount * PRICE); emit FreeMinted(msg.sender, uint8(refundAmount)); } _safeBatchMint(msg.sender, amount); } function verifyAndExtractAmount( uint16 amountV, bytes32 r, bytes32 s ) internal view returns (uint256) { uint256 amount = uint8(amountV); uint8 v = uint8(amountV >> 8); bytes32 funcCallDigest = keccak256(abi.encode( keccak256("adopt(address parent,uint256 amount)"), msg.sender, amount)); bytes32 digest = keccak256(abi.encodePacked( "\x19Ethereum Signed Message:\n32", _domainSeparatorV4().toTypedDataHash(funcCallDigest))); require(ecrecover(digest, v, r, s) == address(owner()), "ApeZuki: invalid signer"); return amount; } function adoptReservedApes( uint16 amountV, bytes32 r, bytes32 s ) external { Config memory config = _config; uint256 totalMinted = _totalMinted(); require(totalMinted <= config.maxSupply, "ApeZuki: exceed max supply"); require(!_adopters[msg.sender].reservedMinted, "ApeZuki: already adopted"); uint256 amount = verifyAndExtractAmount(amountV, r, s); _adopters[msg.sender].reservedMinted = true; _safeBatchMint(msg.sender, amount); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ApeZuki: URI query for nonexistent token"); return string(abi.encodePacked(_baseURI, tokenId.toString(), ".json")); } // ------- Admin Operations ------- function setBaseURI(string calldata baseURI) external onlyOwner { _baseURI = baseURI; } function flipSaleState() external onlyOwner { _config.saleStarted = !_config.saleStarted; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; uint256 share1 = balance * 4 / 100; Address.sendValue(payable(0xBAC331C5748c7A650Db24078C9fB29d0B9d93b35), share1); Address.sendValue(payable(msg.sender), balance - share1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension and the Enumerable extensions. * * This implementation is called `Slim` because the gas usage is extremely saved in the minting, transfer operations. * But as a drawback, those view functions like balanceOf and any functions from IERC721Enumerable * will be costly because it needs heavy iterations over the array that stores the token array. */ abstract contract ERC721SlimApe is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; uint256 private _burntTokens = 0; address[] private _tokenOwners; mapping(uint256 => address) _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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721SlimApe: balance query for the zero address"); uint256 balance = 0; for (uint i = 0; i < _tokenOwners.length; i++) { if (_tokenOwners[i] == owner) { balance++; } } return balance; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721SlimApe: owner query for nonexistent token"); address owner = _tokenOwners[tokenId]; require(owner != address(0), "ERC721SlimApe: 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"); return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721SlimApe.ownerOf(tokenId); require(to != owner, "ERC721SlimApe: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721SlimApe: 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), "ERC721SlimApe: 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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721SlimApe: 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), "ERC721SlimApe: 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), "ERC721SlimApe: 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 tokenId < _tokenOwners.length && _tokenOwners[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), "ERC721SlimApe: operator query for nonexistent token"); address owner = ERC721SlimApe.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` in batch and transfers it to `to`. * * Requirements: * * - `to` must not be a zero address. * - `amount` must not be zero */ function _safeBatchMint(address to, uint256 amount) internal returns (uint256 startId) { require(to != address(0), "ERC721SlimApe: mint to the zero address"); require(amount > 0, "ERC721SlimApe: mint nothing"); startId = _tokenOwners.length; for (uint256 i = 0; i < amount; i++) { _tokenOwners.push(to); emit Transfer(address(0), to, _tokenOwners.length - 1); } require( _checkOnERC721Received(address(0), to, startId, ""), "ERC721SlimApe: transfer to non ERC721Receiver implementer" ); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - 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) internal virtual { _safeMint(to, ""); } /** * @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, bytes memory _data ) internal virtual { uint256 tokenId = _mint(to); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721SlimApe: 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: * * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to) internal virtual returns (uint256) { require(to != address(0), "ERC721SlimApe: mint to the zero address"); uint256 tokenId = _tokenOwners.length; _tokenOwners.push(to); emit Transfer(address(0), to, tokenId); return 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 = ERC721SlimApe.ownerOf(tokenId); _tokenOwners[tokenId] = address(0); delete _tokenApprovals[tokenId]; _burntTokens++; emit Approval(owner, address(0), 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(ERC721SlimApe.ownerOf(tokenId) == from, "ERC721SlimApe: transfer from incorrect owner"); require(to != address(0), "ERC721SlimApe: transfer to the zero address"); _tokenOwners[tokenId] = to; _tokenApprovals[tokenId] = address(0); emit Approval(from, address(0), tokenId); 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(_tokenOwners[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, "ERC721SlimApe: 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("ERC721SlimApe: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } // ======================================== // IERC721Enumerable implementations // ======================================== /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() public override view returns (uint256) { return _tokenOwners.length - _burntTokens; } /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId) { uint256 _totalSupply = _tokenOwners.length; for (uint i = 0; i < _totalSupply; i++) { if (_tokenOwners[i] != owner) continue; if (index == 0) { return i; } index--; } revert("ERC721SlimApe: owner index out of bounds"); } /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256) { require(index < _tokenOwners.length, "ERC721SlimApe: global index out of bounds"); // Adjusted token orders by skipping burnt tokens uint256 burntTokens = 0; for (uint256 i = 0; i < _tokenOwners.length; i++) { if (_tokenOwners[i] == address(0)) { burntTokens++; } if (i == index + burntTokens) return i; } revert("ERC721SlimApe: global index out of bounds"); } // ======================================== // Miscellaneous functions // ======================================== /** * @dev Returns the total amount of tokens stored by the contract. */ function _totalMinted() internal view returns (uint256) { return _tokenOwners.length; } }
// 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 (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/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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/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": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"reservedMintSupply","type":"uint16"},{"internalType":"uint16","name":"fixedFreeMintSupply","type":"uint16"},{"internalType":"uint16","name":"randomFreeMintSupply","type":"uint16"},{"internalType":"bool","name":"saleStarted","type":"bool"}],"internalType":"struct ApeZuki.Config","name":"config","type":"tuple"},{"internalType":"string","name":"baseURI","type":"string"}],"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":false,"internalType":"address","name":"luckyAdopter","type":"address"},{"indexed":false,"internalType":"uint8","name":"amount","type":"uint8"}],"name":"FreeMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"INITIAL_ADOPTION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOTTERY_SALT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_adopters","outputs":[{"internalType":"bool","name":"reservedMinted","type":"bool"},{"internalType":"bool","name":"freeMinted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_config","outputs":[{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint16","name":"reservedMintSupply","type":"uint16"},{"internalType":"uint16","name":"fixedFreeMintSupply","type":"uint16"},{"internalType":"uint16","name":"randomFreeMintSupply","type":"uint16"},{"internalType":"bool","name":"saleStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_randomFreeMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adoptApes","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amountV","type":"uint16"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"adoptReservedApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61014060405260006002553480156200001757600080fd5b5060405162003cf038038062003cf08339810160408190526200003a91620007e0565b604051806040016040528060078152602001664170655a756b6960c81b815250604051806040016040528060018152602001603160f81b815250604051806040016040528060078152602001664170655a756b6960c81b8152506040518060400160405280600481526020016320a822ad60e11b8152508160009080519060200190620000c99291906200061d565b508051620000df9060019060208401906200061d565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c09485019091528151919096012090529290925261012052506200017c336200024d565b600a82604001818151620001919190620008b9565b61ffff908116909152835160088054602080880151604089015160608a015160808b01511515680100000000000000000260ff60401b1991891666010000000000000261ffff60301b19938a16640100000000029390931663ffffffff60201b19948a16620100000263ffffffff199097169890991697909717949094179190911695909517949094171691909117905582516200023692506009918401906200061d565b506200024433600a6200029f565b505050620009e0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0383166200030d5760405162461bcd60e51b815260206004820152602760248201527f455243373231536c696d4170653a206d696e7420746f20746865207a65726f206044820152666164647265737360c81b60648201526084015b60405180910390fd5b600082116200035f5760405162461bcd60e51b815260206004820152601b60248201527f455243373231536c696d4170653a206d696e74206e6f7468696e670000000000604482015260640162000304565b5060035460005b828110156200041557600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180546001600160a01b0319166001600160a01b0388161790559054620003ca9190620008e2565b6040516001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4806200040c81620008fc565b91505062000366565b506200043a6000848360405180602001604052806000815250620004a360201b60201c565b6200049d5760405162461bcd60e51b8152602060048201526039602482015260008051602062003cd083398151915260448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840162000304565b92915050565b6000620004c4846001600160a01b03166200061760201b620019911760201c565b156200060b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620004fe9033908990889088906004016200091a565b602060405180830381600087803b1580156200051957600080fd5b505af19250505080156200054c575060408051601f3d908101601f19168201909252620005499181019062000970565b60015b620005f0573d8080156200057d576040519150601f19603f3d011682016040523d82523d6000602084013e62000582565b606091505b508051620005e85760405162461bcd60e51b8152602060048201526039602482015260008051602062003cd083398151915260448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840162000304565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506200060f565b5060015b949350505050565b3b151590565b8280546200062b90620009a3565b90600052602060002090601f0160209004810192826200064f57600085556200069a565b82601f106200066a57805160ff19168380011785556200069a565b828001600101855582156200069a579182015b828111156200069a5782518255916020019190600101906200067d565b50620006a8929150620006ac565b5090565b5b80821115620006a85760008155600101620006ad565b634e487b7160e01b600052604160045260246000fd5b60405160a081016001600160401b0381118282101715620006fe57620006fe620006c3565b60405290565b805161ffff811681146200071757600080fd5b919050565b60005b83811015620007395781810151838201526020016200071f565b8381111562000749576000848401525b50505050565b600082601f8301126200076157600080fd5b81516001600160401b03808211156200077e576200077e620006c3565b604051601f8301601f19908116603f01168101908282118183101715620007a957620007a9620006c3565b81604052838152866020858801011115620007c357600080fd5b620007d68460208301602089016200071c565b9695505050505050565b60008082840360c0811215620007f557600080fd5b60a08112156200080457600080fd5b506200080f620006d9565b6200081a8462000704565b81526200082a6020850162000704565b60208201526200083d6040850162000704565b6040820152620008506060850162000704565b6060820152608084015180151581146200086957600080fd5b608082015260a08401519092506001600160401b038111156200088b57600080fd5b62000899858286016200074f565b9150509250929050565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818516808303821115620008d957620008d9620008a3565b01949350505050565b600082821015620008f757620008f7620008a3565b500390565b6000600019821415620009135762000913620008a3565b5060010190565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620009598160a08501602087016200071c565b601f01601f19169190910160a00195945050505050565b6000602082840312156200098357600080fd5b81516001600160e01b0319811681146200099c57600080fd5b9392505050565b600181811c90821680620009b857607f821691505b60208210811415620009da57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516132a062000a3060003960006128a4015260006128f3015260006128ce01526000612827015260006128510152600061287b01526132a06000f3fe6080604052600436106101d85760003560e01c806370a0823111610102578063a22cb46511610095578063cb58204211610064578063cb582042146105b0578063e985e9c5146105e4578063f2fde38b1461062d578063f493c25f1461064d57600080fd5b8063a22cb46514610530578063adbfd3bf14610550578063b88d4fde14610570578063c87b56dd1461059057600080fd5b80638d859f3e116100d15780638d859f3e146104cf5780638da5cb5b146104ea57806395d89b41146105085780639e0a397e1461051d57600080fd5b806370a0823114610470578063715018a614610490578063743976a0146104a55780638c8d47fd146104ba57600080fd5b80632ed42bf71161017a57806342842e0e1161014957806342842e0e146103f05780634f6ccce71461041057806355f804b3146104305780636352211e1461045057600080fd5b80632ed42bf7146103215780632f745c59146103a657806334918dfd146103c65780633ccfd60b146103db57600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd1461028e57806323b872dd146102b157806324eae679146102d157600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004612b3c565b610663565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610794565b6040516102099190612bd6565b34801561024057600080fd5b5061025461024f366004612be9565b610826565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c610287366004612c1e565b6108c4565b005b34801561029a57600080fd5b506102a36109f6565b604051908152602001610209565b3480156102bd57600080fd5b5061028c6102cc366004612c48565b610a0d565b3480156102dd57600080fd5b5061030a6102ec366004612c84565b60076020526000908152604090205460ff8082169161010090041682565b604080519215158352901515602083015201610209565b34801561032d57600080fd5b506008546103709061ffff808216916201000081048216916401000000008204811691660100000000000081049091169068010000000000000000900460ff1685565b6040805161ffff96871681529486166020860152928516928401929092529092166060820152901515608082015260a001610209565b3480156103b257600080fd5b506102a36103c1366004612c1e565b610a94565b3480156103d257600080fd5b5061028c610b7d565b3480156103e757600080fd5b5061028c610c18565b3480156103fc57600080fd5b5061028c61040b366004612c48565b610cc3565b34801561041c57600080fd5b506102a361042b366004612be9565b610cde565b34801561043c57600080fd5b5061028c61044b366004612c9f565b610e46565b34801561045c57600080fd5b5061025461046b366004612be9565b610eac565b34801561047c57600080fd5b506102a361048b366004612c84565b610fc8565b34801561049c57600080fd5b5061028c6110b3565b3480156104b157600080fd5b50610227611119565b3480156104c657600080fd5b506102a3600a81565b3480156104db57600080fd5b506102a366d529ae9e86000081565b3480156104f657600080fd5b506006546001600160a01b0316610254565b34801561051457600080fd5b506102276111a7565b61028c61052b366004612be9565b6111b6565b34801561053c57600080fd5b5061028c61054b366004612d11565b611604565b34801561055c57600080fd5b5061028c61056b366004612d4d565b61160f565b34801561057c57600080fd5b5061028c61058b366004612db8565b611778565b34801561059c57600080fd5b506102276105ab366004612be9565b611800565b3480156105bc57600080fd5b506102a37f495f947276749ce646f68ac8c248420045cb7b5e45cb7b5e45cb7b5eea21378281565b3480156105f057600080fd5b506101fd6105ff366004612eb2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561063957600080fd5b5061028c610648366004612c84565b6118af565b34801561065957600080fd5b506102a3600a5481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106f657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061074257507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061078e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546107a390612ee5565b80601f01602080910402602001604051908101604052809291908181526020018280546107cf90612ee5565b801561081c5780601f106107f15761010080835404028352916020019161081c565b820191906000526020600020905b8154815290600101906020018083116107ff57829003601f168201915b5050505050905090565b600061083182611997565b6108a85760405162461bcd60e51b815260206004820152603360248201527f455243373231536c696d4170653a20617070726f76656420717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e0000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108cf82610eac565b9050806001600160a01b0316836001600160a01b031614156109595760405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d4170653a20617070726f76616c20746f20637572726560448201527f6e74206f776e6572000000000000000000000000000000000000000000000000606482015260840161089f565b336001600160a01b0382161480610975575061097581336105ff565b6109e75760405162461bcd60e51b815260206004820152603f60248201527f455243373231536c696d4170653a20617070726f76652063616c6c657220697360448201527f206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c00606482015260840161089f565b6109f183836119e1565b505050565b600254600354600091610a0891612f68565b905090565b610a173382611a7c565b610a895760405162461bcd60e51b815260206004820152603860248201527f455243373231536c696d4170653a207472616e736665722063616c6c6572206960448201527f73206e6f74206f776e6572206e6f7220617070726f7665640000000000000000606482015260840161089f565b6109f1838383611b77565b600354600090815b81811015610b0e57846001600160a01b031660038281548110610ac157610ac1612f7f565b6000918252602090912001546001600160a01b031614610ae057610afc565b83610aee57915061078e9050565b83610af881612fae565b9450505b80610b0681612fe3565b915050610a9c565b5060405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d4170653a206f776e657220696e646578206f7574206f60448201527f6620626f756e6473000000000000000000000000000000000000000000000000606482015260840161089f565b6006546001600160a01b03163314610bd75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b600880547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff8116680100000000000000009182900460ff1615909102179055565b6006546001600160a01b03163314610c725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b4760006064610c8283600461301c565b610c8c9190613088565b9050610cac73bac331c5748c7a650db24078c9fb29d0b9d93b3582611d5e565b610cbf33610cba8385612f68565b611d5e565b5050565b6109f183838360405180602001604052806000815250611778565b6003546000908210610d585760405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d4170653a20676c6f62616c20696e646578206f75742060448201527f6f6620626f756e64730000000000000000000000000000000000000000000000606482015260840161089f565b6000805b600354811015610dd75760006001600160a01b031660038281548110610d8457610d84612f7f565b6000918252602090912001546001600160a01b03161415610dad5781610da981612fe3565b9250505b610db7828561309c565b811415610dc5579392505050565b80610dcf81612fe3565b915050610d5c565b5060405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d4170653a20676c6f62616c20696e646578206f75742060448201527f6f6620626f756e64730000000000000000000000000000000000000000000000606482015260840161089f565b6006546001600160a01b03163314610ea05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6109f160098383612a57565b6000610eb782611997565b610f295760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d4170653a206f776e657220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161089f565b600060038381548110610f3e57610f3e612f7f565b6000918252602090912001546001600160a01b031690508061078e5760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d4170653a206f776e657220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161089f565b60006001600160a01b0382166110465760405162461bcd60e51b815260206004820152603160248201527f455243373231536c696d4170653a2062616c616e636520717565727920666f7260448201527f20746865207a65726f2061646472657373000000000000000000000000000000606482015260840161089f565b6000805b6003548110156110ac57836001600160a01b03166003828154811061107157611071612f7f565b6000918252602090912001546001600160a01b0316141561109a578161109681612fe3565b9250505b806110a481612fe3565b91505061104a565b5092915050565b6006546001600160a01b0316331461110d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6111176000611e77565b565b6009805461112690612ee5565b80601f016020809104026020016040519081016040528092919081815260200182805461115290612ee5565b801561119f5780601f106111745761010080835404028352916020019161119f565b820191906000526020600020905b81548152906001019060200180831161118257829003601f168201915b505050505081565b6060600180546107a390612ee5565b6040805160a08101825260085461ffff80821683526201000082048116602084015264010000000082048116938301939093526601000000000000810490921660608201526801000000000000000090910460ff16151560808201523332146112615760405162461bcd60e51b815260206004820152601760248201527f4170655a756b693a2061706520686174657320626f7473000000000000000000604482015260640161089f565b80608001516112b25760405162461bcd60e51b815260206004820152601c60248201527f4170655a756b693a2073616c65206973206e6f74207374617274656400000000604482015260640161089f565b60006112bd60035490565b90506000826020015183600001516112d591906130b4565b61ffff169050806112e6858461309c565b11156113345760405162461bcd60e51b815260206004820152601d60248201527f4170655a756b693a20657863656564207075626c696320737570706c79000000604482015260640161089f565b826040015161ffff168210156114235733600090815260076020526040902054610100900460ff161580156113695750836001145b6113db5760405162461bcd60e51b815260206004820152602560248201527f4170655a756b693a20796f752063616e206f6e6c79206d696e74203120666f7260448201527f2066726565000000000000000000000000000000000000000000000000000000606482015260840161089f565b33600081815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010017905561141d90611ee1565b50505050565b6114348466d529ae9e86000061301c565b3410156114835760405162461bcd60e51b815260206004820152601a60248201527f4170655a756b693a20696e73756666696369656e742066756e64000000000000604482015260640161089f565b600080600a549050600081866060015161ffff166114a19190612f68565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152603481018790524460548201527f495f947276749ce646f68ac8c248420045cb7b5e45cb7b5e45cb7b5eea21378260748201529091506000906094016040516020818303038152906040528051906020012060001c905060005b88811080156115385750600083115b1561158a578261154c8761ffff85166130d7565b61ffff1610156115715761156160018661309c565b945061156e600184612f68565b92505b60109190911c908061158281612fe3565b915050611529565b5083156115ef5761159b848461309c565b600a556115b333610cba66d529ae9e8600008761301c565b6040805133815260ff861660208201527fc89ef39957625d3551c30404a1ad2f205b88775b155ea22d6fba724c697e131a910160405180910390a15b6115f93389611efa565b505050505050505050565b610cbf33838361211f565b6040805160a08101825260085461ffff8082168084526201000083048216602085015264010000000083048216948401949094526601000000000000820416606083015268010000000000000000900460ff161515608082015260035490918111156116bd5760405162461bcd60e51b815260206004820152601a60248201527f4170655a756b693a20657863656564206d617820737570706c79000000000000604482015260640161089f565b3360009081526007602052604090205460ff161561171d5760405162461bcd60e51b815260206004820152601860248201527f4170655a756b693a20616c72656164792061646f707465640000000000000000604482015260640161089f565b600061172a86868661220c565b33600081815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590915061176f9082611efa565b50505050505050565b6117823383611a7c565b6117f45760405162461bcd60e51b815260206004820152603860248201527f455243373231536c696d4170653a207472616e736665722063616c6c6572206960448201527f73206e6f74206f776e6572206e6f7220617070726f7665640000000000000000606482015260840161089f565b61141d84848484612408565b606061180b82611997565b61187d5760405162461bcd60e51b815260206004820152602860248201527f4170655a756b693a2055524920717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e000000000000000000000000000000000000000000000000606482015260840161089f565b600961188883612491565b604051602001611899929190613107565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146119095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6001600160a01b0381166119855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089f565b61198e81611e77565b50565b3b151590565b6003546000908210801561078e575060006001600160a01b0316600383815481106119c4576119c4612f7f565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155600380548392919083908110611a3b57611a3b612f7f565b60009182526020822001546040516001600160a01b03909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6000611a8782611997565b611af95760405162461bcd60e51b815260206004820152603360248201527f455243373231536c696d4170653a206f70657261746f7220717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e00000000000000000000000000606482015260840161089f565b6000611b0483610eac565b9050806001600160a01b0316846001600160a01b03161480611b3f5750836001600160a01b0316611b3484610826565b6001600160a01b0316145b80611b6f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b8a82610eac565b6001600160a01b031614611c065760405162461bcd60e51b815260206004820152602c60248201527f455243373231536c696d4170653a207472616e736665722066726f6d20696e6360448201527f6f7272656374206f776e65720000000000000000000000000000000000000000606482015260840161089f565b6001600160a01b038216611c825760405162461bcd60e51b815260206004820152602b60248201527f455243373231536c696d4170653a207472616e7366657220746f20746865207a60448201527f65726f2061646472657373000000000000000000000000000000000000000000606482015260840161089f565b8160038281548110611c9657611c96612f7f565b6000918252602080832090910180546001600160a01b039485167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558483526004909152604080832080549092169091555183928616907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80471015611dae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161089f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611dfb576040519150601f19603f3d011682016040523d82523d6000602084013e611e00565b606091505b50509050806109f15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161089f565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61198e81604051806020016040528060008152506125c3565b60006001600160a01b038316611f785760405162461bcd60e51b815260206004820152602760248201527f455243373231536c696d4170653a206d696e7420746f20746865207a65726f2060448201527f6164647265737300000000000000000000000000000000000000000000000000606482015260840161089f565b60008211611fc85760405162461bcd60e51b815260206004820152601b60248201527f455243373231536c696d4170653a206d696e74206e6f7468696e670000000000604482015260640161089f565b5060035460005b8281101561209057600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03881617905590546120489190612f68565b6040516001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061208881612fe3565b915050611fcf565b506120ad600084836040518060200160405280600081525061264f565b61078e5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b816001600160a01b0316836001600160a01b031614156121815760405162461bcd60e51b815260206004820181905260248201527f455243373231536c696d4170653a20617070726f766520746f2063616c6c6572604482015260640161089f565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b604080517f9a3c0e6ceacb8213f31948e71213c05beae861ac6333949addbf9e1f2d3aeb786020820152339181019190915260ff808516606083018190526000929091600887901c1690839060800160405160208183030381529060405280519060200120905060006122d78261228161281a565b604080517f19010000000000000000000000000000000000000000000000000000000000006020808301919091526022820193909352604280820194909452815180820390940184526062019052815191012090565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810191909152605c016040516020818303038152906040528051906020012090506123356006546001600160a01b031690565b6001600160a01b0316600182858a8a6040516000815260200160405260405161237a949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa15801561239c573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146123fc5760405162461bcd60e51b815260206004820152601760248201527f4170655a756b693a20696e76616c6964207369676e6572000000000000000000604482015260640161089f565b50919695505050505050565b612413848484611b77565b61241f8484848461264f565b61141d5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b6060816124d157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124fb57806124e581612fe3565b91506124f49050600a83613088565b91506124d5565b60008167ffffffffffffffff81111561251657612516612d89565b6040519080825280601f01601f191660200182016040528015612540576020820181803683370190505b5090505b8415611b6f57612555600183612f68565b9150612562600a866130d7565b61256d90603061309c565b60f81b81838151811061258257612582612f7f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125bc600a86613088565b9450612544565b60006125ce83612941565b90506125dd600084838561264f565b6109f15760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b60006001600160a01b0384163b1561280f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906126ac903390899088908890600401613211565b602060405180830381600087803b1580156126c657600080fd5b505af1925050508015612714575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526127119181019061324d565b60015b6127c4573d808015612742576040519150601f19603f3d011682016040523d82523d6000602084013e612747565b606091505b5080516127bc5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b6f565b506001949350505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561287357507f000000000000000000000000000000000000000000000000000000000000000046145b1561289d57507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60006001600160a01b0382166129bf5760405162461bcd60e51b815260206004820152602760248201527f455243373231536c696d4170653a206d696e7420746f20746865207a65726f2060448201527f6164647265737300000000000000000000000000000000000000000000000000606482015260840161089f565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038616908117909155604051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a492915050565b828054612a6390612ee5565b90600052602060002090601f016020900481019282612a855760008555612ae9565b82601f10612abc578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612ae9565b82800160010185558215612ae9579182015b82811115612ae9578235825591602001919060010190612ace565b50612af5929150612af9565b5090565b5b80821115612af55760008155600101612afa565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461198e57600080fd5b600060208284031215612b4e57600080fd5b8135612b5981612b0e565b9392505050565b60005b83811015612b7b578181015183820152602001612b63565b8381111561141d5750506000910152565b60008151808452612ba4816020860160208601612b60565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000612b596020830184612b8c565b600060208284031215612bfb57600080fd5b5035919050565b80356001600160a01b0381168114612c1957600080fd5b919050565b60008060408385031215612c3157600080fd5b612c3a83612c02565b946020939093013593505050565b600080600060608486031215612c5d57600080fd5b612c6684612c02565b9250612c7460208501612c02565b9150604084013590509250925092565b600060208284031215612c9657600080fd5b612b5982612c02565b60008060208385031215612cb257600080fd5b823567ffffffffffffffff80821115612cca57600080fd5b818501915085601f830112612cde57600080fd5b813581811115612ced57600080fd5b866020828501011115612cff57600080fd5b60209290920196919550909350505050565b60008060408385031215612d2457600080fd5b612d2d83612c02565b915060208301358015158114612d4257600080fd5b809150509250929050565b600080600060608486031215612d6257600080fd5b833561ffff81168114612d7457600080fd5b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215612dce57600080fd5b612dd785612c02565b9350612de560208601612c02565b925060408501359150606085013567ffffffffffffffff80821115612e0957600080fd5b818701915087601f830112612e1d57600080fd5b813581811115612e2f57612e2f612d89565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715612e7557612e75612d89565b816040528281528a6020848701011115612e8e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ec557600080fd5b612ece83612c02565b9150612edc60208401612c02565b90509250929050565b600181811c90821680612ef957607f821691505b60208210811415612f33577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612f7a57612f7a612f39565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081612fbd57612fbd612f39565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561301557613015612f39565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561305457613054612f39565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261309757613097613059565b500490565b600082198211156130af576130af612f39565b500190565b600061ffff838116908316818110156130cf576130cf612f39565b039392505050565b6000826130e6576130e6613059565b500690565b600081516130fd818560208601612b60565b9290920192915050565b600080845481600182811c91508083168061312357607f831692505b602080841082141561315c577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613170576001811461319f576131cc565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506131cc565b60008b81526020902060005b868110156131c45781548b8201529085019083016131ab565b505084890196505b5050505050506132086131df82866130eb565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526132436080830184612b8c565b9695505050505050565b60006020828403121561325f57600080fd5b8151612b5981612b0e56fea26469706673582212206252344394f4a8bfd25833cff8e083dc607de3db68f2c1dfcc84619c3667c8a764736f6c63430008090033455243373231536c696d4170653a207472616e7366657220746f206e6f6e204500000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6173736574732e6170657a756b692e636f6d2f64656661756c742f6a736f6e2f000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101d85760003560e01c806370a0823111610102578063a22cb46511610095578063cb58204211610064578063cb582042146105b0578063e985e9c5146105e4578063f2fde38b1461062d578063f493c25f1461064d57600080fd5b8063a22cb46514610530578063adbfd3bf14610550578063b88d4fde14610570578063c87b56dd1461059057600080fd5b80638d859f3e116100d15780638d859f3e146104cf5780638da5cb5b146104ea57806395d89b41146105085780639e0a397e1461051d57600080fd5b806370a0823114610470578063715018a614610490578063743976a0146104a55780638c8d47fd146104ba57600080fd5b80632ed42bf71161017a57806342842e0e1161014957806342842e0e146103f05780634f6ccce71461041057806355f804b3146104305780636352211e1461045057600080fd5b80632ed42bf7146103215780632f745c59146103a657806334918dfd146103c65780633ccfd60b146103db57600080fd5b8063095ea7b3116101b6578063095ea7b31461026c57806318160ddd1461028e57806323b872dd146102b157806324eae679146102d157600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004612b3c565b610663565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610227610794565b6040516102099190612bd6565b34801561024057600080fd5b5061025461024f366004612be9565b610826565b6040516001600160a01b039091168152602001610209565b34801561027857600080fd5b5061028c610287366004612c1e565b6108c4565b005b34801561029a57600080fd5b506102a36109f6565b604051908152602001610209565b3480156102bd57600080fd5b5061028c6102cc366004612c48565b610a0d565b3480156102dd57600080fd5b5061030a6102ec366004612c84565b60076020526000908152604090205460ff8082169161010090041682565b604080519215158352901515602083015201610209565b34801561032d57600080fd5b506008546103709061ffff808216916201000081048216916401000000008204811691660100000000000081049091169068010000000000000000900460ff1685565b6040805161ffff96871681529486166020860152928516928401929092529092166060820152901515608082015260a001610209565b3480156103b257600080fd5b506102a36103c1366004612c1e565b610a94565b3480156103d257600080fd5b5061028c610b7d565b3480156103e757600080fd5b5061028c610c18565b3480156103fc57600080fd5b5061028c61040b366004612c48565b610cc3565b34801561041c57600080fd5b506102a361042b366004612be9565b610cde565b34801561043c57600080fd5b5061028c61044b366004612c9f565b610e46565b34801561045c57600080fd5b5061025461046b366004612be9565b610eac565b34801561047c57600080fd5b506102a361048b366004612c84565b610fc8565b34801561049c57600080fd5b5061028c6110b3565b3480156104b157600080fd5b50610227611119565b3480156104c657600080fd5b506102a3600a81565b3480156104db57600080fd5b506102a366d529ae9e86000081565b3480156104f657600080fd5b506006546001600160a01b0316610254565b34801561051457600080fd5b506102276111a7565b61028c61052b366004612be9565b6111b6565b34801561053c57600080fd5b5061028c61054b366004612d11565b611604565b34801561055c57600080fd5b5061028c61056b366004612d4d565b61160f565b34801561057c57600080fd5b5061028c61058b366004612db8565b611778565b34801561059c57600080fd5b506102276105ab366004612be9565b611800565b3480156105bc57600080fd5b506102a37f495f947276749ce646f68ac8c248420045cb7b5e45cb7b5e45cb7b5eea21378281565b3480156105f057600080fd5b506101fd6105ff366004612eb2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561063957600080fd5b5061028c610648366004612c84565b6118af565b34801561065957600080fd5b506102a3600a5481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106f657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061074257507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b8061078e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546107a390612ee5565b80601f01602080910402602001604051908101604052809291908181526020018280546107cf90612ee5565b801561081c5780601f106107f15761010080835404028352916020019161081c565b820191906000526020600020905b8154815290600101906020018083116107ff57829003601f168201915b5050505050905090565b600061083182611997565b6108a85760405162461bcd60e51b815260206004820152603360248201527f455243373231536c696d4170653a20617070726f76656420717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e0000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108cf82610eac565b9050806001600160a01b0316836001600160a01b031614156109595760405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d4170653a20617070726f76616c20746f20637572726560448201527f6e74206f776e6572000000000000000000000000000000000000000000000000606482015260840161089f565b336001600160a01b0382161480610975575061097581336105ff565b6109e75760405162461bcd60e51b815260206004820152603f60248201527f455243373231536c696d4170653a20617070726f76652063616c6c657220697360448201527f206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c00606482015260840161089f565b6109f183836119e1565b505050565b600254600354600091610a0891612f68565b905090565b610a173382611a7c565b610a895760405162461bcd60e51b815260206004820152603860248201527f455243373231536c696d4170653a207472616e736665722063616c6c6572206960448201527f73206e6f74206f776e6572206e6f7220617070726f7665640000000000000000606482015260840161089f565b6109f1838383611b77565b600354600090815b81811015610b0e57846001600160a01b031660038281548110610ac157610ac1612f7f565b6000918252602090912001546001600160a01b031614610ae057610afc565b83610aee57915061078e9050565b83610af881612fae565b9450505b80610b0681612fe3565b915050610a9c565b5060405162461bcd60e51b815260206004820152602860248201527f455243373231536c696d4170653a206f776e657220696e646578206f7574206f60448201527f6620626f756e6473000000000000000000000000000000000000000000000000606482015260840161089f565b6006546001600160a01b03163314610bd75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b600880547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff8116680100000000000000009182900460ff1615909102179055565b6006546001600160a01b03163314610c725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b4760006064610c8283600461301c565b610c8c9190613088565b9050610cac73bac331c5748c7a650db24078c9fb29d0b9d93b3582611d5e565b610cbf33610cba8385612f68565b611d5e565b5050565b6109f183838360405180602001604052806000815250611778565b6003546000908210610d585760405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d4170653a20676c6f62616c20696e646578206f75742060448201527f6f6620626f756e64730000000000000000000000000000000000000000000000606482015260840161089f565b6000805b600354811015610dd75760006001600160a01b031660038281548110610d8457610d84612f7f565b6000918252602090912001546001600160a01b03161415610dad5781610da981612fe3565b9250505b610db7828561309c565b811415610dc5579392505050565b80610dcf81612fe3565b915050610d5c565b5060405162461bcd60e51b815260206004820152602960248201527f455243373231536c696d4170653a20676c6f62616c20696e646578206f75742060448201527f6f6620626f756e64730000000000000000000000000000000000000000000000606482015260840161089f565b6006546001600160a01b03163314610ea05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6109f160098383612a57565b6000610eb782611997565b610f295760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d4170653a206f776e657220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161089f565b600060038381548110610f3e57610f3e612f7f565b6000918252602090912001546001600160a01b031690508061078e5760405162461bcd60e51b815260206004820152603060248201527f455243373231536c696d4170653a206f776e657220717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161089f565b60006001600160a01b0382166110465760405162461bcd60e51b815260206004820152603160248201527f455243373231536c696d4170653a2062616c616e636520717565727920666f7260448201527f20746865207a65726f2061646472657373000000000000000000000000000000606482015260840161089f565b6000805b6003548110156110ac57836001600160a01b03166003828154811061107157611071612f7f565b6000918252602090912001546001600160a01b0316141561109a578161109681612fe3565b9250505b806110a481612fe3565b91505061104a565b5092915050565b6006546001600160a01b0316331461110d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6111176000611e77565b565b6009805461112690612ee5565b80601f016020809104026020016040519081016040528092919081815260200182805461115290612ee5565b801561119f5780601f106111745761010080835404028352916020019161119f565b820191906000526020600020905b81548152906001019060200180831161118257829003601f168201915b505050505081565b6060600180546107a390612ee5565b6040805160a08101825260085461ffff80821683526201000082048116602084015264010000000082048116938301939093526601000000000000810490921660608201526801000000000000000090910460ff16151560808201523332146112615760405162461bcd60e51b815260206004820152601760248201527f4170655a756b693a2061706520686174657320626f7473000000000000000000604482015260640161089f565b80608001516112b25760405162461bcd60e51b815260206004820152601c60248201527f4170655a756b693a2073616c65206973206e6f74207374617274656400000000604482015260640161089f565b60006112bd60035490565b90506000826020015183600001516112d591906130b4565b61ffff169050806112e6858461309c565b11156113345760405162461bcd60e51b815260206004820152601d60248201527f4170655a756b693a20657863656564207075626c696320737570706c79000000604482015260640161089f565b826040015161ffff168210156114235733600090815260076020526040902054610100900460ff161580156113695750836001145b6113db5760405162461bcd60e51b815260206004820152602560248201527f4170655a756b693a20796f752063616e206f6e6c79206d696e74203120666f7260448201527f2066726565000000000000000000000000000000000000000000000000000000606482015260840161089f565b33600081815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff1661010017905561141d90611ee1565b50505050565b6114348466d529ae9e86000061301c565b3410156114835760405162461bcd60e51b815260206004820152601a60248201527f4170655a756b693a20696e73756666696369656e742066756e64000000000000604482015260640161089f565b600080600a549050600081866060015161ffff166114a19190612f68565b6040517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003360601b166020820152603481018790524460548201527f495f947276749ce646f68ac8c248420045cb7b5e45cb7b5e45cb7b5eea21378260748201529091506000906094016040516020818303038152906040528051906020012060001c905060005b88811080156115385750600083115b1561158a578261154c8761ffff85166130d7565b61ffff1610156115715761156160018661309c565b945061156e600184612f68565b92505b60109190911c908061158281612fe3565b915050611529565b5083156115ef5761159b848461309c565b600a556115b333610cba66d529ae9e8600008761301c565b6040805133815260ff861660208201527fc89ef39957625d3551c30404a1ad2f205b88775b155ea22d6fba724c697e131a910160405180910390a15b6115f93389611efa565b505050505050505050565b610cbf33838361211f565b6040805160a08101825260085461ffff8082168084526201000083048216602085015264010000000083048216948401949094526601000000000000820416606083015268010000000000000000900460ff161515608082015260035490918111156116bd5760405162461bcd60e51b815260206004820152601a60248201527f4170655a756b693a20657863656564206d617820737570706c79000000000000604482015260640161089f565b3360009081526007602052604090205460ff161561171d5760405162461bcd60e51b815260206004820152601860248201527f4170655a756b693a20616c72656164792061646f707465640000000000000000604482015260640161089f565b600061172a86868661220c565b33600081815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905590915061176f9082611efa565b50505050505050565b6117823383611a7c565b6117f45760405162461bcd60e51b815260206004820152603860248201527f455243373231536c696d4170653a207472616e736665722063616c6c6572206960448201527f73206e6f74206f776e6572206e6f7220617070726f7665640000000000000000606482015260840161089f565b61141d84848484612408565b606061180b82611997565b61187d5760405162461bcd60e51b815260206004820152602860248201527f4170655a756b693a2055524920717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e000000000000000000000000000000000000000000000000606482015260840161089f565b600961188883612491565b604051602001611899929190613107565b6040516020818303038152906040529050919050565b6006546001600160a01b031633146119095760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161089f565b6001600160a01b0381166119855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161089f565b61198e81611e77565b50565b3b151590565b6003546000908210801561078e575060006001600160a01b0316600383815481106119c4576119c4612f7f565b6000918252602090912001546001600160a01b0316141592915050565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155600380548392919083908110611a3b57611a3b612f7f565b60009182526020822001546040516001600160a01b03909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6000611a8782611997565b611af95760405162461bcd60e51b815260206004820152603360248201527f455243373231536c696d4170653a206f70657261746f7220717565727920666f60448201527f72206e6f6e6578697374656e7420746f6b656e00000000000000000000000000606482015260840161089f565b6000611b0483610eac565b9050806001600160a01b0316846001600160a01b03161480611b3f5750836001600160a01b0316611b3484610826565b6001600160a01b0316145b80611b6f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b8a82610eac565b6001600160a01b031614611c065760405162461bcd60e51b815260206004820152602c60248201527f455243373231536c696d4170653a207472616e736665722066726f6d20696e6360448201527f6f7272656374206f776e65720000000000000000000000000000000000000000606482015260840161089f565b6001600160a01b038216611c825760405162461bcd60e51b815260206004820152602b60248201527f455243373231536c696d4170653a207472616e7366657220746f20746865207a60448201527f65726f2061646472657373000000000000000000000000000000000000000000606482015260840161089f565b8160038281548110611c9657611c96612f7f565b6000918252602080832090910180546001600160a01b039485167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558483526004909152604080832080549092169091555183928616907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925908390a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b80471015611dae5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161089f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611dfb576040519150601f19603f3d011682016040523d82523d6000602084013e611e00565b606091505b50509050806109f15760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161089f565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61198e81604051806020016040528060008152506125c3565b60006001600160a01b038316611f785760405162461bcd60e51b815260206004820152602760248201527f455243373231536c696d4170653a206d696e7420746f20746865207a65726f2060448201527f6164647265737300000000000000000000000000000000000000000000000000606482015260840161089f565b60008211611fc85760405162461bcd60e51b815260206004820152601b60248201527f455243373231536c696d4170653a206d696e74206e6f7468696e670000000000604482015260640161089f565b5060035460005b8281101561209057600380546001808201835560008390527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03881617905590546120489190612f68565b6040516001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48061208881612fe3565b915050611fcf565b506120ad600084836040518060200160405280600081525061264f565b61078e5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b816001600160a01b0316836001600160a01b031614156121815760405162461bcd60e51b815260206004820181905260248201527f455243373231536c696d4170653a20617070726f766520746f2063616c6c6572604482015260640161089f565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b604080517f9a3c0e6ceacb8213f31948e71213c05beae861ac6333949addbf9e1f2d3aeb786020820152339181019190915260ff808516606083018190526000929091600887901c1690839060800160405160208183030381529060405280519060200120905060006122d78261228161281a565b604080517f19010000000000000000000000000000000000000000000000000000000000006020808301919091526022820193909352604280820194909452815180820390940184526062019052815191012090565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810191909152605c016040516020818303038152906040528051906020012090506123356006546001600160a01b031690565b6001600160a01b0316600182858a8a6040516000815260200160405260405161237a949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa15801561239c573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146123fc5760405162461bcd60e51b815260206004820152601760248201527f4170655a756b693a20696e76616c6964207369676e6572000000000000000000604482015260640161089f565b50919695505050505050565b612413848484611b77565b61241f8484848461264f565b61141d5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b6060816124d157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124fb57806124e581612fe3565b91506124f49050600a83613088565b91506124d5565b60008167ffffffffffffffff81111561251657612516612d89565b6040519080825280601f01601f191660200182016040528015612540576020820181803683370190505b5090505b8415611b6f57612555600183612f68565b9150612562600a866130d7565b61256d90603061309c565b60f81b81838151811061258257612582612f7f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125bc600a86613088565b9450612544565b60006125ce83612941565b90506125dd600084838561264f565b6109f15760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b60006001600160a01b0384163b1561280f576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906126ac903390899088908890600401613211565b602060405180830381600087803b1580156126c657600080fd5b505af1925050508015612714575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526127119181019061324d565b60015b6127c4573d808015612742576040519150601f19603f3d011682016040523d82523d6000602084013e612747565b606091505b5080516127bc5760405162461bcd60e51b815260206004820152603960248201527f455243373231536c696d4170653a207472616e7366657220746f206e6f6e204560448201527f5243373231526563656976657220696d706c656d656e74657200000000000000606482015260840161089f565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b6f565b506001949350505050565b6000306001600160a01b037f00000000000000000000000016ef6e8563456283f50654a8fb16056a88eecbb51614801561287357507f000000000000000000000000000000000000000000000000000000000000000146145b1561289d57507fc709ca1700abbb113f10d4723916b0b9887ff614cf6f390bf027a2e570fbcd5790565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fce103a087f2c7c011eb614585cdc659dc8e9c53c9018a042ab544431f24b53e5828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60006001600160a01b0382166129bf5760405162461bcd60e51b815260206004820152602760248201527f455243373231536c696d4170653a206d696e7420746f20746865207a65726f2060448201527f6164647265737300000000000000000000000000000000000000000000000000606482015260840161089f565b6003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038616908117909155604051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a492915050565b828054612a6390612ee5565b90600052602060002090601f016020900481019282612a855760008555612ae9565b82601f10612abc578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555612ae9565b82800160010185558215612ae9579182015b82811115612ae9578235825591602001919060010190612ace565b50612af5929150612af9565b5090565b5b80821115612af55760008155600101612afa565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461198e57600080fd5b600060208284031215612b4e57600080fd5b8135612b5981612b0e565b9392505050565b60005b83811015612b7b578181015183820152602001612b63565b8381111561141d5750506000910152565b60008151808452612ba4816020860160208601612b60565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000612b596020830184612b8c565b600060208284031215612bfb57600080fd5b5035919050565b80356001600160a01b0381168114612c1957600080fd5b919050565b60008060408385031215612c3157600080fd5b612c3a83612c02565b946020939093013593505050565b600080600060608486031215612c5d57600080fd5b612c6684612c02565b9250612c7460208501612c02565b9150604084013590509250925092565b600060208284031215612c9657600080fd5b612b5982612c02565b60008060208385031215612cb257600080fd5b823567ffffffffffffffff80821115612cca57600080fd5b818501915085601f830112612cde57600080fd5b813581811115612ced57600080fd5b866020828501011115612cff57600080fd5b60209290920196919550909350505050565b60008060408385031215612d2457600080fd5b612d2d83612c02565b915060208301358015158114612d4257600080fd5b809150509250929050565b600080600060608486031215612d6257600080fd5b833561ffff81168114612d7457600080fd5b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215612dce57600080fd5b612dd785612c02565b9350612de560208601612c02565b925060408501359150606085013567ffffffffffffffff80821115612e0957600080fd5b818701915087601f830112612e1d57600080fd5b813581811115612e2f57612e2f612d89565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715612e7557612e75612d89565b816040528281528a6020848701011115612e8e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612ec557600080fd5b612ece83612c02565b9150612edc60208401612c02565b90509250929050565b600181811c90821680612ef957607f821691505b60208210811415612f33577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015612f7a57612f7a612f39565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081612fbd57612fbd612f39565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561301557613015612f39565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561305457613054612f39565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261309757613097613059565b500490565b600082198211156130af576130af612f39565b500190565b600061ffff838116908316818110156130cf576130cf612f39565b039392505050565b6000826130e6576130e6613059565b500690565b600081516130fd818560208601612b60565b9290920192915050565b600080845481600182811c91508083168061312357607f831692505b602080841082141561315c577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015613170576001811461319f576131cc565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506131cc565b60008b81526020902060005b868110156131c45781548b8201529085019083016131ab565b505084890196505b5050505050506132086131df82866130eb565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526132436080830184612b8c565b9695505050505050565b60006020828403121561325f57600080fd5b8151612b5981612b0e56fea26469706673582212206252344394f4a8bfd25833cff8e083dc607de3db68f2c1dfcc84619c3667c8a764736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6173736574732e6170657a756b692e636f6d2f64656661756c742f6a736f6e2f000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : config (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : baseURI (string): https://assets.apezuki.com/default/json/
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [7] : 68747470733a2f2f6173736574732e6170657a756b692e636f6d2f6465666175
Arg [8] : 6c742f6a736f6e2f000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.