ERC-721
Overview
Max Total Supply
4,246 DUCK
Holders
1,230
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 DUCKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DuckFrensV2
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC-BY-NC-4.0 pragma solidity ^0.8.13; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IStakeDucks} from "./interfaces/IStakeDucks.sol"; /** * MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0O0KXNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMMMMMNK0OxxOOOO00KKNWMMMMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMMMNKOO0KXXXXXXXK000K0KNMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMMMNKOOKXXXXXXXXXXXXXXNXK0KNMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMMN0OOKXXXXXXXXXXXXXXXXXNNN0OXWMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMMXkdOXXXXXXXXXXXXXXXXXXXXXNN0OXWMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMXkdOKXXXXXXXNNNNXXXXXXXXXXXXXkkNMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMWOdOKXXXXXKkddkOKNNXXXXXXXXX0dodkXMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMKxkKXXXXX0d;;oxld0XXXXXXXXXXkclxd0MMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMXxdkKXXXXXk:,;ooc:dKXXXXXXXXXOc;;cOWMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMXddOKXXXXXk:,,,,,;dKXX0OOkxxxdl:cdO0XWMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMXdoOKXXXXX0xlcccldOKkdoolllooooooodokNMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMNkdk0KXXXXXK0OO0KKOdooddoooodddddxxlxNMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMN0kkOKXXXXXXXXXXXxlllooddddddxkkkkkKWMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMMWKxoxOKXXXXXXXXXKOxdllllllllloxkKWMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMN0OkxxdxxxkkO0KXKKKK0OkxdollloOXWMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMN0OOKK0OOkkxdddxxxddddddddddxkkkkKNMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMWKkk0KKXXKK00OOOOkkkkkkkkkkkOOOOOOOO0KWMMMMMMMMMMMMMMM * MMMMMMMMMMN00K000xxOO0KXXXXXXKKK00000000000000000KKNXO0WMMMMMMMMMMMMMM * MMMMMMMMMMKdoolcldkOKKKKKKXXXXXXKKKKXXXXXXXXXXXXXXKKXXO0WMMMMMMMMMMMMM * MMMMMMMMMMXxxkoccdkO0KK00KXKKKKOk0KXXXXXXXXXXXXXXXXKO0kONMMMMMMMMMMMMM * MMMMMMMMMMWOdkkolodxkOOO0Oxkkkxk0XXXXXXXXXXXXXXXXXXX0ddONMMMMMMMMMMMMM * MMMMMMMMMMMNOxxxxdoooodxxxdxkO0KKKXXXXXXXXXXXXXXXXXKOkKNMMMMMMMMMMMMMM * MMMMMMMMMMMMWXOxxkOxdxO0KKKXXXXOx0XXXXXXXXXXXXXXXXKO0NMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMWXOkxold0XXXXXXX0ddk0KKXXXXXXXXXXXK00KWMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMWX0xlxOKXXXX0dlooxxkOO0O000OOkO0XWMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMMWKkdxOO0OO0K0OOOOOxlllllllxNMMMMMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMMWWN0oclookXMMMMMMMMNOlclllo0NNNNWMMMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMMNOxolooloxOOXWMMMMMN0dlcclclxkddkOKWMMMMMMMMMMMMMMMM * MMMMMMMMMMMMMMMMMWkccccloc:odlxNMMMMWOlcccc;;cddlcoodKMMMMMMMMMMMMMMMM * * @title DuckFrens Contract (V2) * @custom:website www.duckfrens.com * @author @lozzereth (www.allthingsweb3.com) * @notice A non-sequential mint of 5000 ducks, 1000 of which are migrated * from the old Duck contract and the remaining 4000 as a free mint. */ contract DuckFrensV2 is ERC721, Ownable { /// @dev Number of mint types uint256 public constant MAX_MINT_TYPES = 2; /// @dev A mint type is either a migration or a new mint enum MintType { Migration, New } /// @dev Attributes for each of the mint types struct MintAttributes { uint256 supply; uint256 startingId; uint256 minted; uint256 burnt; } /// @dev Mapping for mint types and its attributes mapping(MintType => MintAttributes) public mint; /// @dev The DuckFrens contract to migrate IERC721 public immutable legacy721Contract; /// @dev The DuckFrens legacy contract IStakeDucks public immutable legacyStakingContract; /// @dev The public sale will be based on a per txn basis uint256 public maxMintPerTxn = 2; /// @dev Modify number of maximum mints using whitelist uint256 public maxMintPerWallet = 1; /// @dev Toggle public sale bool public publicSale = false; /// @dev Toggle whitelist sale bool public whitelistSale = false; /// @dev Toggle swapping bool public swapEnabled = false; /// @dev Whitelist sale merkle root bytes32 public whitelistSaleMerkleRoot; /// @dev Track the mint counts for whitelisted wallets mapping(address => uint256) public whitelistMintCount; constructor(IERC721 _legacy721Contract, IStakeDucks _legacyStakingContract) ERC721("Duck Frens", "DUCK") { legacy721Contract = _legacy721Contract; legacyStakingContract = _legacyStakingContract; mint[MintType.Migration] = MintAttributes(1000, 0, 0, 0); mint[MintType.New] = MintAttributes(4000, 1000, 0, 0); baseURI = "ipfs://QmSXH6kSYaigqQKqrVbhXq79NpF7xwWAjjSt79C34szgZ6/"; } /** * @notice Toggle the public sale */ function togglePublicSale() external onlyOwner { publicSale = !publicSale; } modifier publicSaleActive() { require(publicSale, "Public sale not started"); _; } /** * @notice Toggle the whitelist sale */ function toggleWhitelistSale() external onlyOwner { whitelistSale = !whitelistSale; } modifier whitelistSaleActive() { require(whitelistSale, "Whitelist sale not started"); _; } /** * @notice Toggle swapping of original NFTs */ function toggleSwapping() external onlyOwner { swapEnabled = !swapEnabled; } /** * @notice Set the maximum mints per txn as owner * @param max Maximum to set */ function setMaxMintPerTxn(uint256 max) external onlyOwner { maxMintPerTxn = max; } /** * @notice Set the maximum mints per whitelist wallet * @param max Maximum to set */ function setMaxMintPerWallet(uint256 max) external onlyOwner { maxMintPerWallet = max; } /** * @notice Public minting functionality * @param quantity Quantity */ function mintPublic(uint256 quantity) public publicSaleActive withinSupplyLimit(MintType.New, quantity) withinMaximumPerTxn(quantity) { _mintMany(MintType.New, msg.sender, quantity); } modifier withinMaximumPerTxn(uint256 quantity) { require(quantity > 0 && quantity <= maxMintPerTxn, "Over max per txn"); _; } /** * @notice Set the whitelist merkle root * @param merkleRoot Merkle root for the whitelist */ function setWhitelistSaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { whitelistSaleMerkleRoot = merkleRoot; } /** * @notice Mint as a whitelisted wallet address * @param merkleProof Proof of whitelist * @param quantity Quantity */ function mintWhitelist(bytes32[] calldata merkleProof, uint256 quantity) public whitelistSaleActive hasWhitelistedAddress(merkleProof) withinSupplyLimit(MintType.New, quantity) withinMaximumPerWallet(quantity) { whitelistMintCount[msg.sender] += quantity; _mintMany(MintType.New, msg.sender, quantity); } modifier withinMaximumPerWallet(uint256 _quantity) { require( _quantity > 0 && whitelistMintCount[msg.sender] + _quantity <= maxMintPerWallet, "Over max per wallet" ); _; } modifier hasWhitelistedAddress(bytes32[] calldata merkleProof) { require( _hasWhitelistProof(msg.sender, merkleProof) || _hasLegacyDucks(msg.sender), "Address not eligible" ); _; } /** * @dev Check if the address is a part of a valid whitelist proof * @param _address Address to query * @param merkleProof Proof for verification * @return hasValidProof */ function _hasWhitelistProof( address _address, bytes32[] calldata merkleProof ) private view returns (bool) { return MerkleProof.verify( merkleProof, whitelistSaleMerkleRoot, keccak256(abi.encodePacked(_address)) ); } /** * @dev Check if the address is an owner of legacy ducks * @param _address Address to query * @return hasDucks */ function _hasLegacyDucks(address _address) private view returns (bool) { return legacy721Contract.balanceOf(_address) > 0 || legacyStakingContract.depositsOf(_address).length > 0; } /** * @notice Swap your old Ducks for new Ducks. * @dev This will send the old tokens to the standard burn address and issue * new tokens. * @param tokenIds Tokens to migrate */ function swap(uint256[] calldata tokenIds) public { require(swapEnabled, "Swapping not enabled"); uint256 numTokens = tokenIds.length; unchecked { mint[MintType.Migration].minted += numTokens; } for (uint256 i; i < numTokens; ++i) { uint256 tokenId = tokenIds[i]; IERC721(legacy721Contract).safeTransferFrom( msg.sender, 0x000000000000000000000000000000000000dEaD, tokenId, "" ); _mint(msg.sender, tokenId); } } /** * @notice Allows the contract owner to mint within limits * @param _recipient Mint to recipient * @param _quantity Quantity to mint */ function mintAdmin(address _recipient, uint256 _quantity) public onlyOwner withinSupplyLimit(MintType.New, _quantity) { _mintMany(MintType.New, _recipient, _quantity); } /** * @notice Burn a token * @param tokenId Token to burn */ function burn(uint256 tokenId) public { require( _isApprovedOrOwner(msg.sender, tokenId), "DuckFrensV2: caller is not owner nor approved" ); MintType _type = getMintType(tokenId); unchecked { mint[_type].burnt++; } _burn(tokenId); } /** * @notice Get the mint type for a token id * @param _tokenId Return the type of mint the token belongs in * @return mintType */ function getMintType(uint256 _tokenId) public view returns (MintType) { for (uint256 s; s < MAX_MINT_TYPES; s++) { MintType _type = MintType(s); uint256 start = mint[_type].startingId; if (_tokenId >= start && _tokenId <= start + mint[_type].minted) { return _type; } } revert("DuckFrensV2: mint status query for nonexistent token"); } /** * @notice Base URI for the NFT */ string private baseURI; function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev Mints many nfts * @param _type Mint type * @param _to Destination address * @param _quantity Quantity to mint */ function _mintMany( MintType _type, address _to, uint256 _quantity ) private { uint256 startingId = mint[_type].minted + mint[_type].startingId; unchecked { mint[_type].minted += _quantity; } for (uint256 i; i < _quantity; i++) { _mint(_to, startingId + i); } } modifier withinSupplyLimit(MintType _type, uint256 _quantity) { require( mint[_type].minted + _quantity <= mint[_type].supply, "Surpasses supply" ); _; } /** * @notice Fetch total supply * @return totalSupply */ function totalSupply() public view returns (uint256) { uint256 total; for (uint256 s; s < MAX_MINT_TYPES; s++) { total += mint[MintType(s)].minted; } return total; } /** * @notice Track tokens of an account * @dev Intended for off-chain computation having O(totalSupply) complexity * @param account - Account to query * @return tokenIds */ function tokensOfOwner(address account) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; uint256 tokenIdsLength = balanceOf(account); uint256[] memory tokenIds = new uint256[](tokenIdsLength); for (uint256 i; tokenIdsIdx != tokenIdsLength; ++i) { if (!_exists(i)) { continue; } if (ownerOf(i) == account) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IStakeDucks { function depositsOf(address account) external view returns (uint256[] 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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC721","name":"_legacy721Contract","type":"address"},{"internalType":"contract IStakeDucks","name":"_legacyStakingContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_TYPES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getMintType","outputs":[{"internalType":"enum DuckFrensV2.MintType","name":"","type":"uint8"}],"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":"legacy721Contract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legacyStakingContract","outputs":[{"internalType":"contract IStakeDucks","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTxn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum DuckFrensV2.MintType","name":"","type":"uint8"}],"name":"mint","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"startingId","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"burnt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"nonpayable","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":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"max","type":"uint256"}],"name":"setMaxMintPerTxn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhitelistSaleMerkleRoot","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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSwapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405260026008556001600955600a805462ffffff191690553480156200002757600080fd5b50604051620031cc380380620031cc8339810160408190526200004a91620003a0565b604080518082018252600a8152694475636b204672656e7360b01b6020808301918252835180850190945260048452634455434b60e01b9084015281519192916200009891600091620002e1565b508051620000ae906001906020840190620002e1565b505050620000cb620000c56200028b60201b60201c565b6200028f565b6001600160a01b03828116608090815290821660a0526040805180830182526103e8808252600060208084018281528486018381526060808701858152858052600780865297517f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6df5592517f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6e05590517f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6e15590517f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6e25585519687018652610fa08752868201938452868601838152878201848152600190945294825295517fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b8285591517fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b8295591517fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a5590517fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82b558151928301909152603680835290620031969083013980516200028291600d91602090910190620002e1565b5050506200041b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002ef90620003df565b90600052602060002090601f0160209004810192826200031357600085556200035e565b82601f106200032e57805160ff19168380011785556200035e565b828001600101855582156200035e579182015b828111156200035e57825182559160200191906001019062000341565b506200036c92915062000370565b5090565b5b808211156200036c576000815560010162000371565b6001600160a01b03811681146200039d57600080fd5b50565b60008060408385031215620003b457600080fd5b8251620003c18162000387565b6020840151909250620003d48162000387565b809150509250929050565b600181811c90821680620003f457607f821691505b6020821081036200041557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051612d406200045660003960008181610396015261207b0152600081816104a901528181610c4c0152611fe70152612d406000f3fe608060405234801561001057600080fd5b50600436106102de5760003560e01c80636ddd171311610186578063b228d925116100e3578063caa8078f11610097578063ef586f7111610071578063ef586f7114610658578063efd0cbf914610660578063f2fde38b1461067357600080fd5b8063caa8078f1461060b578063e222c7f914610614578063e985e9c51461061c57600080fd5b8063c0159040116100c8578063c0159040146105dc578063c3a71999146105e5578063c87b56dd146105f857600080fd5b8063b228d925146105c0578063b88d4fde146105c957600080fd5b80638da5cb5b1161013a578063a22cb4651161011f578063a22cb46514610587578063a6d612f91461059a578063afdf6134146105ad57600080fd5b80638da5cb5b1461056e57806395d89b411461057f57600080fd5b806370a082311161016b57806370a0823114610533578063715018a6146105465780638462151c1461054e57600080fd5b80636ddd1713146104cb5780636ecd2306146104de57600080fd5b806333bc1c5c1161023f57806355f804b3116101f35780636352211e116101cd5780636352211e1461047157806367ef6b7d146104845780636827ec25146104a457600080fd5b806355f804b3146104435780635797db751461045657806359eda1b51461046957600080fd5b806342842e0e1161022457806342842e0e1461040a57806342966c681461041d57806348bf630b1461043057600080fd5b806333bc1c5c146103dd5780633bdf4ac6146103ea57600080fd5b8063172759021161029657806319fdfbb81161027b57806319fdfbb81461039157806323b872dd146103b857806331ffd6f1146103cb57600080fd5b8063172759021461037357806318160ddd1461038957600080fd5b806306fdde03116102c757806306fdde0314610320578063081812fc14610335578063095ea7b31461036057600080fd5b806301ffc9a7146102e357806305026cee1461030b575b600080fd5b6102f66102f136600461262f565b610686565b60405190151581526020015b60405180910390f35b61031e61031936600461264c565b6106d8565b005b61032861072a565b60405161030291906126bd565b61034861034336600461264c565b6107bc565b6040516001600160a01b039091168152602001610302565b61031e61036e3660046126ec565b610851565b61037b600281565b604051908152602001610302565b61037b610966565b6103487f000000000000000000000000000000000000000000000000000000000000000081565b61031e6103c6366004612716565b6109e4565b600a546102f690610100900460ff1681565b600a546102f69060ff1681565b61037b6103f8366004612752565b600c6020526000908152604090205481565b61031e610418366004612716565b610a6b565b61031e61042b36600461264c565b610a86565b61031e61043e3660046127b9565b610b5d565b61031e61045136600461289a565b610cc9565b61031e61046436600461264c565b610d24565b61031e610d71565b61034861047f36600461264c565b610dd6565b61049761049236600461264c565b610e61565b60405161030291906128f9565b6103487f000000000000000000000000000000000000000000000000000000000000000081565b600a546102f69062010000900460ff1681565b6105136104ec366004612921565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610302565b61037b610541366004612752565b610fa5565b61031e61103f565b61056161055c366004612752565b611093565b6040516103029190612942565b6006546001600160a01b0316610348565b610328611169565b61031e610595366004612986565b611178565b61031e6105a83660046129c2565b611183565b61031e6105bb36600461264c565b611395565b61037b60095481565b61031e6105d7366004612a0e565b6113e2565b61037b600b5481565b61031e6105f33660046126ec565b61146a565b61032861060636600461264c565b61155d565b61037b60085481565b61031e611646565b6102f661062a366004612a8a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61031e6116a2565b61031e61066e36600461264c565b611709565b61031e610681366004612752565b611865565b60006001600160e01b031982166380ac58cd60e01b14806106b757506001600160e01b03198216635b5e139f60e01b145b806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146107255760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb83398151915260448201526064015b60405180910390fd5b600855565b60606000805461073990612abd565b80601f016020809104026020016040519081016040528092919081815260200182805461076590612abd565b80156107b25780601f10610787576101008083540402835291602001916107b2565b820191906000526020600020905b81548152906001019060200180831161079557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108355760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161071c565b506000908152600460205260409020546001600160a01b031690565b600061085c82610dd6565b9050806001600160a01b0316836001600160a01b0316036108c95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161071c565b336001600160a01b03821614806108e557506108e5813361062a565b6109575760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161071c565b6109618383611935565b505050565b60008060005b60028110156109de576007600082600181111561098b5761098b6128e3565b600181111561099c5761099c6128e3565b60018111156109ad576109ad6128e3565b815260200190815260200160002060020154826109ca9190612b07565b9150806109d681612b1f565b91505061096c565b50919050565b6109ee33826119a3565b610a605760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161071c565b610961838383611a9a565b610961838383604051806020016040528060008152506113e2565b610a9033826119a3565b610b025760405162461bcd60e51b815260206004820152602d60248201527f4475636b4672656e7356323a2063616c6c6572206973206e6f74206f776e657260448201527f206e6f7220617070726f76656400000000000000000000000000000000000000606482015260840161071c565b6000610b0d82610e61565b905060076000826001811115610b2557610b256128e3565b6001811115610b3657610b366128e3565b8152602081019190915260400160002060030180546001019055610b5982611c4e565b5050565b600a5462010000900460ff16610bb55760405162461bcd60e51b815260206004820152601460248201527f5377617070696e67206e6f7420656e61626c6564000000000000000000000000604482015260640161071c565b600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6e180548301905581905b81811015610cc3576000848483818110610c0557610c05612b38565b604051635c46a7ef60e11b815233600482015261dead6024820152602090910292909201356044830181905260806064840152600060848401529250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b88d4fde9060a401600060405180830381600087803b158015610c9057600080fd5b505af1158015610ca4573d6000803e3d6000fd5b50505050610cb23382611ce9565b50610cbc81612b1f565b9050610be9565b50505050565b6006546001600160a01b03163314610d115760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b8051610b5990600d906020840190612580565b6006546001600160a01b03163314610d6c5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600b55565b6006546001600160a01b03163314610db95760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b0316806106d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161071c565b6000805b6002811015610f36576000816001811115610e8257610e826128e3565b9050600060076000836001811115610e9c57610e9c6128e3565b6001811115610ead57610ead6128e3565b8152602001908152602001600020600101549050808510158015610f14575060076000836001811115610ee257610ee26128e3565b6001811115610ef357610ef36128e3565b81526020019081526020016000206002015481610f109190612b07565b8511155b15610f2157509392505050565b50508080610f2e90612b1f565b915050610e65565b5060405162461bcd60e51b815260206004820152603460248201527f4475636b4672656e7356323a206d696e7420737461747573207175657279206660448201527f6f72206e6f6e6578697374656e7420746f6b656e000000000000000000000000606482015260840161071c565b60006001600160a01b0382166110235760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161071c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110875760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6110916000611e2b565b565b60606000806110a184610fa5565b905060008167ffffffffffffffff8111156110be576110be6127fb565b6040519080825280602002602001820160405280156110e7578160200160208202803683370190505b50905060005b828414611160576000818152600260205260409020546001600160a01b03161561115857856001600160a01b031661112482610dd6565b6001600160a01b031603611158578082858060010196508151811061114b5761114b612b38565b6020026020010181815250505b6001016110ed565b50949350505050565b60606001805461073990612abd565b610b59338383611e7d565b600a54610100900460ff166111da5760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c65206e6f742073746172746564000000000000604482015260640161071c565b82826111e7338383611f4b565b806111f657506111f633611fc3565b6112425760405162461bcd60e51b815260206004820152601460248201527f41646472657373206e6f7420656c696769626c65000000000000000000000000604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a548591906112a0908390612b07565b11156112e15760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b8460008111801561130e5750600954336000908152600c602052604090205461130b908390612b07565b11155b61135a5760405162461bcd60e51b815260206004820152601360248201527f4f766572206d6178207065722077616c6c657400000000000000000000000000604482015260640161071c565b336000908152600c602052604081208054889290611379908490612b07565b9091555061138b9050600133886120f4565b5050505050505050565b6006546001600160a01b031633146113dd5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600955565b6113ec33836119a3565b61145e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161071c565b610cc3848484846121ee565b6006546001600160a01b031633146114b25760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a54839190611510908390612b07565b11156115515760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b610cc3600185856120f4565b6000818152600260205260409020546060906001600160a01b03166115ea5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161071c565b60006115f4612277565b90506000815111611614576040518060200160405280600081525061163f565b8061161e84612286565b60405160200161162f929190612b4e565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461168e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805460ff19811660ff90911615179055565b6006546001600160a01b031633146116ea5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805462ff0000198116620100009182900460ff1615909102179055565b600a5460ff1661175b5760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206e6f742073746172746564000000000000000000604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a548391906117b9908390612b07565b11156117fa5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b8260008111801561180d57506008548111155b6118595760405162461bcd60e51b815260206004820152601060248201527f4f766572206d6178207065722074786e00000000000000000000000000000000604482015260640161071c565b610cc3600133866120f4565b6006546001600160a01b031633146118ad5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6001600160a01b0381166119295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161071c565b61193281611e2b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061196a82610dd6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a1c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161071c565b6000611a2783610dd6565b9050806001600160a01b0316846001600160a01b03161480611a6e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a925750836001600160a01b0316611a87846107bc565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aad82610dd6565b6001600160a01b031614611b295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161071c565b6001600160a01b038216611b8b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161071c565b611b96600082611935565b6001600160a01b0383166000908152600360205260408120805460019290611bbf908490612b7d565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bed908490612b07565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611c5982610dd6565b9050611c66600083611935565b6001600160a01b0381166000908152600360205260408120805460019290611c8f908490612b7d565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611d3f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161071c565b6000818152600260205260409020546001600160a01b031615611da45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161071c565b6001600160a01b0382166000908152600360205260408120805460019290611dcd908490612b07565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611ede5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161071c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000611a9283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190506040516020818303038152906040528051906020012061239f565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561202e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120529190612b94565b11806106d257506040516371d4ed8d60e11b81526001600160a01b0383811660048301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063e3a9db1a90602401600060405180830381865afa1580156120c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120ec9190810190612bad565b511192915050565b60006007600085600181111561210c5761210c6128e3565b600181111561211d5761211d6128e3565b81526020019081526020016000206001015460076000866001811115612145576121456128e3565b6001811115612156576121566128e3565b8152602001908152602001600020600201546121729190612b07565b9050816007600086600181111561218b5761218b6128e3565b600181111561219c5761219c6128e3565b81526020810191909152604001600090812060020180549092019091555b828110156121e7576121d5846121d08385612b07565b611ce9565b806121df81612b1f565b9150506121ba565b5050505050565b6121f9848484611a9a565b612205848484846123b5565b610cc35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161071c565b6060600d805461073990612abd565b6060816000036122ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d757806122c181612b1f565b91506122d09050600a83612c69565b91506122b1565b60008167ffffffffffffffff8111156122f2576122f26127fb565b6040519080825280601f01601f19166020018201604052801561231c576020820181803683370190505b5090505b8415611a9257612331600183612b7d565b915061233e600a86612c7d565b612349906030612b07565b60f81b81838151811061235e5761235e612b38565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612398600a86612c69565b9450612320565b6000826123ac858461250c565b14949350505050565b60006001600160a01b0384163b1561250157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123f9903390899088908890600401612c91565b6020604051808303816000875af1925050508015612434575060408051601f3d908101601f1916820190925261243191810190612ccd565b60015b6124e7573d808015612462576040519150601f19603f3d011682016040523d82523d6000602084013e612467565b606091505b5080516000036124df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161071c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a92565b506001949350505050565b600081815b845181101561257857600085828151811061252e5761252e612b38565b602002602001015190508083116125545760008381526020829052604090209250612565565b600081815260208490526040902092505b508061257081612b1f565b915050612511565b509392505050565b82805461258c90612abd565b90600052602060002090601f0160209004810192826125ae57600085556125f4565b82601f106125c757805160ff19168380011785556125f4565b828001600101855582156125f4579182015b828111156125f45782518255916020019190600101906125d9565b50612600929150612604565b5090565b5b808211156126005760008155600101612605565b6001600160e01b03198116811461193257600080fd5b60006020828403121561264157600080fd5b813561163f81612619565b60006020828403121561265e57600080fd5b5035919050565b60005b83811015612680578181015183820152602001612668565b83811115610cc35750506000910152565b600081518084526126a9816020860160208601612665565b601f01601f19169290920160200192915050565b60208152600061163f6020830184612691565b80356001600160a01b03811681146126e757600080fd5b919050565b600080604083850312156126ff57600080fd5b612708836126d0565b946020939093013593505050565b60008060006060848603121561272b57600080fd5b612734846126d0565b9250612742602085016126d0565b9150604084013590509250925092565b60006020828403121561276457600080fd5b61163f826126d0565b60008083601f84011261277f57600080fd5b50813567ffffffffffffffff81111561279757600080fd5b6020830191508360208260051b85010111156127b257600080fd5b9250929050565b600080602083850312156127cc57600080fd5b823567ffffffffffffffff8111156127e357600080fd5b6127ef8582860161276d565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561283a5761283a6127fb565b604052919050565b600067ffffffffffffffff83111561285c5761285c6127fb565b61286f601f8401601f1916602001612811565b905082815283838301111561288357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156128ac57600080fd5b813567ffffffffffffffff8111156128c357600080fd5b8201601f810184136128d457600080fd5b611a9284823560208401612842565b634e487b7160e01b600052602160045260246000fd5b602081016002831061291b57634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561293357600080fd5b81356002811061163f57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561297a5783518352928401929184019160010161295e565b50909695505050505050565b6000806040838503121561299957600080fd5b6129a2836126d0565b9150602083013580151581146129b757600080fd5b809150509250929050565b6000806000604084860312156129d757600080fd5b833567ffffffffffffffff8111156129ee57600080fd5b6129fa8682870161276d565b909790965060209590950135949350505050565b60008060008060808587031215612a2457600080fd5b612a2d856126d0565b9350612a3b602086016126d0565b925060408501359150606085013567ffffffffffffffff811115612a5e57600080fd5b8501601f81018713612a6f57600080fd5b612a7e87823560208401612842565b91505092959194509250565b60008060408385031215612a9d57600080fd5b612aa6836126d0565b9150612ab4602084016126d0565b90509250929050565b600181811c90821680612ad157607f821691505b6020821081036109de57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612b1a57612b1a612af1565b500190565b600060018201612b3157612b31612af1565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008351612b60818460208801612665565b835190830190612b74818360208801612665565b01949350505050565b600082821015612b8f57612b8f612af1565b500390565b600060208284031215612ba657600080fd5b5051919050565b60006020808385031215612bc057600080fd5b825167ffffffffffffffff80821115612bd857600080fd5b818501915085601f830112612bec57600080fd5b815181811115612bfe57612bfe6127fb565b8060051b9150612c0f848301612811565b8181529183018401918481019088841115612c2957600080fd5b938501935b83851015612c4757845182529385019390850190612c2e565b98975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082612c7857612c78612c53565b500490565b600082612c8c57612c8c612c53565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cc36080830184612691565b9695505050505050565b600060208284031215612cdf57600080fd5b815161163f8161261956fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220220592b0998df27301a7793843603233669f73a084e8e41cfdd5d8b05deb083964736f6c634300080d0033697066733a2f2f516d535848366b535961696771514b7172566268587137394e704637787757416a6a53743739433334737a675a362f0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e000000000000000000000000401cee9353466b3d249701c3ebcbf26452ee61b5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102de5760003560e01c80636ddd171311610186578063b228d925116100e3578063caa8078f11610097578063ef586f7111610071578063ef586f7114610658578063efd0cbf914610660578063f2fde38b1461067357600080fd5b8063caa8078f1461060b578063e222c7f914610614578063e985e9c51461061c57600080fd5b8063c0159040116100c8578063c0159040146105dc578063c3a71999146105e5578063c87b56dd146105f857600080fd5b8063b228d925146105c0578063b88d4fde146105c957600080fd5b80638da5cb5b1161013a578063a22cb4651161011f578063a22cb46514610587578063a6d612f91461059a578063afdf6134146105ad57600080fd5b80638da5cb5b1461056e57806395d89b411461057f57600080fd5b806370a082311161016b57806370a0823114610533578063715018a6146105465780638462151c1461054e57600080fd5b80636ddd1713146104cb5780636ecd2306146104de57600080fd5b806333bc1c5c1161023f57806355f804b3116101f35780636352211e116101cd5780636352211e1461047157806367ef6b7d146104845780636827ec25146104a457600080fd5b806355f804b3146104435780635797db751461045657806359eda1b51461046957600080fd5b806342842e0e1161022457806342842e0e1461040a57806342966c681461041d57806348bf630b1461043057600080fd5b806333bc1c5c146103dd5780633bdf4ac6146103ea57600080fd5b8063172759021161029657806319fdfbb81161027b57806319fdfbb81461039157806323b872dd146103b857806331ffd6f1146103cb57600080fd5b8063172759021461037357806318160ddd1461038957600080fd5b806306fdde03116102c757806306fdde0314610320578063081812fc14610335578063095ea7b31461036057600080fd5b806301ffc9a7146102e357806305026cee1461030b575b600080fd5b6102f66102f136600461262f565b610686565b60405190151581526020015b60405180910390f35b61031e61031936600461264c565b6106d8565b005b61032861072a565b60405161030291906126bd565b61034861034336600461264c565b6107bc565b6040516001600160a01b039091168152602001610302565b61031e61036e3660046126ec565b610851565b61037b600281565b604051908152602001610302565b61037b610966565b6103487f000000000000000000000000401cee9353466b3d249701c3ebcbf26452ee61b581565b61031e6103c6366004612716565b6109e4565b600a546102f690610100900460ff1681565b600a546102f69060ff1681565b61037b6103f8366004612752565b600c6020526000908152604090205481565b61031e610418366004612716565b610a6b565b61031e61042b36600461264c565b610a86565b61031e61043e3660046127b9565b610b5d565b61031e61045136600461289a565b610cc9565b61031e61046436600461264c565b610d24565b61031e610d71565b61034861047f36600461264c565b610dd6565b61049761049236600461264c565b610e61565b60405161030291906128f9565b6103487f0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e81565b600a546102f69062010000900460ff1681565b6105136104ec366004612921565b60076020526000908152604090208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610302565b61037b610541366004612752565b610fa5565b61031e61103f565b61056161055c366004612752565b611093565b6040516103029190612942565b6006546001600160a01b0316610348565b610328611169565b61031e610595366004612986565b611178565b61031e6105a83660046129c2565b611183565b61031e6105bb36600461264c565b611395565b61037b60095481565b61031e6105d7366004612a0e565b6113e2565b61037b600b5481565b61031e6105f33660046126ec565b61146a565b61032861060636600461264c565b61155d565b61037b60085481565b61031e611646565b6102f661062a366004612a8a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61031e6116a2565b61031e61066e36600461264c565b611709565b61031e610681366004612752565b611865565b60006001600160e01b031982166380ac58cd60e01b14806106b757506001600160e01b03198216635b5e139f60e01b145b806106d257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146107255760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb83398151915260448201526064015b60405180910390fd5b600855565b60606000805461073990612abd565b80601f016020809104026020016040519081016040528092919081815260200182805461076590612abd565b80156107b25780601f10610787576101008083540402835291602001916107b2565b820191906000526020600020905b81548152906001019060200180831161079557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108355760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161071c565b506000908152600460205260409020546001600160a01b031690565b600061085c82610dd6565b9050806001600160a01b0316836001600160a01b0316036108c95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161071c565b336001600160a01b03821614806108e557506108e5813361062a565b6109575760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161071c565b6109618383611935565b505050565b60008060005b60028110156109de576007600082600181111561098b5761098b6128e3565b600181111561099c5761099c6128e3565b60018111156109ad576109ad6128e3565b815260200190815260200160002060020154826109ca9190612b07565b9150806109d681612b1f565b91505061096c565b50919050565b6109ee33826119a3565b610a605760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161071c565b610961838383611a9a565b610961838383604051806020016040528060008152506113e2565b610a9033826119a3565b610b025760405162461bcd60e51b815260206004820152602d60248201527f4475636b4672656e7356323a2063616c6c6572206973206e6f74206f776e657260448201527f206e6f7220617070726f76656400000000000000000000000000000000000000606482015260840161071c565b6000610b0d82610e61565b905060076000826001811115610b2557610b256128e3565b6001811115610b3657610b366128e3565b8152602081019190915260400160002060030180546001019055610b5982611c4e565b5050565b600a5462010000900460ff16610bb55760405162461bcd60e51b815260206004820152601460248201527f5377617070696e67206e6f7420656e61626c6564000000000000000000000000604482015260640161071c565b600080805260076020527f6d5257204ebe7d88fd91ae87941cb2dd9d8062b64ae5a2bd2d28ec40b9fbf6e180548301905581905b81811015610cc3576000848483818110610c0557610c05612b38565b604051635c46a7ef60e11b815233600482015261dead6024820152602090910292909201356044830181905260806064840152600060848401529250506001600160a01b037f0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e169063b88d4fde9060a401600060405180830381600087803b158015610c9057600080fd5b505af1158015610ca4573d6000803e3d6000fd5b50505050610cb23382611ce9565b50610cbc81612b1f565b9050610be9565b50505050565b6006546001600160a01b03163314610d115760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b8051610b5990600d906020840190612580565b6006546001600160a01b03163314610d6c5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600b55565b6006546001600160a01b03163314610db95760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b0316806106d25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161071c565b6000805b6002811015610f36576000816001811115610e8257610e826128e3565b9050600060076000836001811115610e9c57610e9c6128e3565b6001811115610ead57610ead6128e3565b8152602001908152602001600020600101549050808510158015610f14575060076000836001811115610ee257610ee26128e3565b6001811115610ef357610ef36128e3565b81526020019081526020016000206002015481610f109190612b07565b8511155b15610f2157509392505050565b50508080610f2e90612b1f565b915050610e65565b5060405162461bcd60e51b815260206004820152603460248201527f4475636b4672656e7356323a206d696e7420737461747573207175657279206660448201527f6f72206e6f6e6578697374656e7420746f6b656e000000000000000000000000606482015260840161071c565b60006001600160a01b0382166110235760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161071c565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110875760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6110916000611e2b565b565b60606000806110a184610fa5565b905060008167ffffffffffffffff8111156110be576110be6127fb565b6040519080825280602002602001820160405280156110e7578160200160208202803683370190505b50905060005b828414611160576000818152600260205260409020546001600160a01b03161561115857856001600160a01b031661112482610dd6565b6001600160a01b031603611158578082858060010196508151811061114b5761114b612b38565b6020026020010181815250505b6001016110ed565b50949350505050565b60606001805461073990612abd565b610b59338383611e7d565b600a54610100900460ff166111da5760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c65206e6f742073746172746564000000000000604482015260640161071c565b82826111e7338383611f4b565b806111f657506111f633611fc3565b6112425760405162461bcd60e51b815260206004820152601460248201527f41646472657373206e6f7420656c696769626c65000000000000000000000000604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a548591906112a0908390612b07565b11156112e15760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b8460008111801561130e5750600954336000908152600c602052604090205461130b908390612b07565b11155b61135a5760405162461bcd60e51b815260206004820152601360248201527f4f766572206d6178207065722077616c6c657400000000000000000000000000604482015260640161071c565b336000908152600c602052604081208054889290611379908490612b07565b9091555061138b9050600133886120f4565b5050505050505050565b6006546001600160a01b031633146113dd5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600955565b6113ec33836119a3565b61145e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161071c565b610cc3848484846121ee565b6006546001600160a01b031633146114b25760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a54839190611510908390612b07565b11156115515760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b610cc3600185856120f4565b6000818152600260205260409020546060906001600160a01b03166115ea5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161071c565b60006115f4612277565b90506000815111611614576040518060200160405280600081525061163f565b8061161e84612286565b60405160200161162f929190612b4e565b6040516020818303038152906040525b9392505050565b6006546001600160a01b0316331461168e5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805460ff19811660ff90911615179055565b6006546001600160a01b031633146116ea5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b600a805462ff0000198116620100009182900460ff1615909102179055565b600a5460ff1661175b5760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206e6f742073746172746564000000000000000000604482015260640161071c565b6001600081905260076020527fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b828547fb39221ace053465ec3453ce2b36430bd138b997ecea25c1043da0c366812b82a548391906117b9908390612b07565b11156117fa5760405162461bcd60e51b815260206004820152601060248201526f53757270617373657320737570706c7960801b604482015260640161071c565b8260008111801561180d57506008548111155b6118595760405162461bcd60e51b815260206004820152601060248201527f4f766572206d6178207065722074786e00000000000000000000000000000000604482015260640161071c565b610cc3600133866120f4565b6006546001600160a01b031633146118ad5760405162461bcd60e51b81526020600482018190526024820152600080516020612ceb833981519152604482015260640161071c565b6001600160a01b0381166119295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161071c565b61193281611e2b565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061196a82610dd6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611a1c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161071c565b6000611a2783610dd6565b9050806001600160a01b0316846001600160a01b03161480611a6e57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a925750836001600160a01b0316611a87846107bc565b6001600160a01b0316145b949350505050565b826001600160a01b0316611aad82610dd6565b6001600160a01b031614611b295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161071c565b6001600160a01b038216611b8b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161071c565b611b96600082611935565b6001600160a01b0383166000908152600360205260408120805460019290611bbf908490612b7d565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bed908490612b07565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611c5982610dd6565b9050611c66600083611935565b6001600160a01b0381166000908152600360205260408120805460019290611c8f908490612b7d565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611d3f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161071c565b6000818152600260205260409020546001600160a01b031615611da45760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161071c565b6001600160a01b0382166000908152600360205260408120805460019290611dcd908490612b07565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611ede5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161071c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000611a9283838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b546040516bffffffffffffffffffffffff1960608b901b16602082015290925060340190506040516020818303038152906040528051906020012061239f565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e16906370a0823190602401602060405180830381865afa15801561202e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120529190612b94565b11806106d257506040516371d4ed8d60e11b81526001600160a01b0383811660048301526000917f000000000000000000000000401cee9353466b3d249701c3ebcbf26452ee61b59091169063e3a9db1a90602401600060405180830381865afa1580156120c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526120ec9190810190612bad565b511192915050565b60006007600085600181111561210c5761210c6128e3565b600181111561211d5761211d6128e3565b81526020019081526020016000206001015460076000866001811115612145576121456128e3565b6001811115612156576121566128e3565b8152602001908152602001600020600201546121729190612b07565b9050816007600086600181111561218b5761218b6128e3565b600181111561219c5761219c6128e3565b81526020810191909152604001600090812060020180549092019091555b828110156121e7576121d5846121d08385612b07565b611ce9565b806121df81612b1f565b9150506121ba565b5050505050565b6121f9848484611a9a565b612205848484846123b5565b610cc35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161071c565b6060600d805461073990612abd565b6060816000036122ad5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122d757806122c181612b1f565b91506122d09050600a83612c69565b91506122b1565b60008167ffffffffffffffff8111156122f2576122f26127fb565b6040519080825280601f01601f19166020018201604052801561231c576020820181803683370190505b5090505b8415611a9257612331600183612b7d565b915061233e600a86612c7d565b612349906030612b07565b60f81b81838151811061235e5761235e612b38565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612398600a86612c69565b9450612320565b6000826123ac858461250c565b14949350505050565b60006001600160a01b0384163b1561250157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123f9903390899088908890600401612c91565b6020604051808303816000875af1925050508015612434575060408051601f3d908101601f1916820190925261243191810190612ccd565b60015b6124e7573d808015612462576040519150601f19603f3d011682016040523d82523d6000602084013e612467565b606091505b5080516000036124df5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161071c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a92565b506001949350505050565b600081815b845181101561257857600085828151811061252e5761252e612b38565b602002602001015190508083116125545760008381526020829052604090209250612565565b600081815260208490526040902092505b508061257081612b1f565b915050612511565b509392505050565b82805461258c90612abd565b90600052602060002090601f0160209004810192826125ae57600085556125f4565b82601f106125c757805160ff19168380011785556125f4565b828001600101855582156125f4579182015b828111156125f45782518255916020019190600101906125d9565b50612600929150612604565b5090565b5b808211156126005760008155600101612605565b6001600160e01b03198116811461193257600080fd5b60006020828403121561264157600080fd5b813561163f81612619565b60006020828403121561265e57600080fd5b5035919050565b60005b83811015612680578181015183820152602001612668565b83811115610cc35750506000910152565b600081518084526126a9816020860160208601612665565b601f01601f19169290920160200192915050565b60208152600061163f6020830184612691565b80356001600160a01b03811681146126e757600080fd5b919050565b600080604083850312156126ff57600080fd5b612708836126d0565b946020939093013593505050565b60008060006060848603121561272b57600080fd5b612734846126d0565b9250612742602085016126d0565b9150604084013590509250925092565b60006020828403121561276457600080fd5b61163f826126d0565b60008083601f84011261277f57600080fd5b50813567ffffffffffffffff81111561279757600080fd5b6020830191508360208260051b85010111156127b257600080fd5b9250929050565b600080602083850312156127cc57600080fd5b823567ffffffffffffffff8111156127e357600080fd5b6127ef8582860161276d565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561283a5761283a6127fb565b604052919050565b600067ffffffffffffffff83111561285c5761285c6127fb565b61286f601f8401601f1916602001612811565b905082815283838301111561288357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156128ac57600080fd5b813567ffffffffffffffff8111156128c357600080fd5b8201601f810184136128d457600080fd5b611a9284823560208401612842565b634e487b7160e01b600052602160045260246000fd5b602081016002831061291b57634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561293357600080fd5b81356002811061163f57600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561297a5783518352928401929184019160010161295e565b50909695505050505050565b6000806040838503121561299957600080fd5b6129a2836126d0565b9150602083013580151581146129b757600080fd5b809150509250929050565b6000806000604084860312156129d757600080fd5b833567ffffffffffffffff8111156129ee57600080fd5b6129fa8682870161276d565b909790965060209590950135949350505050565b60008060008060808587031215612a2457600080fd5b612a2d856126d0565b9350612a3b602086016126d0565b925060408501359150606085013567ffffffffffffffff811115612a5e57600080fd5b8501601f81018713612a6f57600080fd5b612a7e87823560208401612842565b91505092959194509250565b60008060408385031215612a9d57600080fd5b612aa6836126d0565b9150612ab4602084016126d0565b90509250929050565b600181811c90821680612ad157607f821691505b6020821081036109de57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612b1a57612b1a612af1565b500190565b600060018201612b3157612b31612af1565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008351612b60818460208801612665565b835190830190612b74818360208801612665565b01949350505050565b600082821015612b8f57612b8f612af1565b500390565b600060208284031215612ba657600080fd5b5051919050565b60006020808385031215612bc057600080fd5b825167ffffffffffffffff80821115612bd857600080fd5b818501915085601f830112612bec57600080fd5b815181811115612bfe57612bfe6127fb565b8060051b9150612c0f848301612811565b8181529183018401918481019088841115612c2957600080fd5b938501935b83851015612c4757845182529385019390850190612c2e565b98975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082612c7857612c78612c53565b500490565b600082612c8c57612c8c612c53565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612cc36080830184612691565b9695505050505050565b600060208284031215612cdf57600080fd5b815161163f8161261956fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220220592b0998df27301a7793843603233669f73a084e8e41cfdd5d8b05deb083964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e000000000000000000000000401cee9353466b3d249701c3ebcbf26452ee61b5
-----Decoded View---------------
Arg [0] : _legacy721Contract (address): 0x1a3043d23dC70AEa1D9912725E2aA056bE1A471E
Arg [1] : _legacyStakingContract (address): 0x401cEe9353466B3d249701c3EBCBf26452EE61b5
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001a3043d23dc70aea1d9912725e2aa056be1a471e
Arg [1] : 000000000000000000000000401cee9353466b3d249701c3ebcbf26452ee61b5
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.