More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 622 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20658876 | 2 days ago | IN | 0 ETH | 0.0000323 | ||||
Safe Transfer Fr... | 20583679 | 13 days ago | IN | 0 ETH | 0.00016675 | ||||
Set Approval For... | 20539235 | 19 days ago | IN | 0 ETH | 0.00004609 | ||||
Transfer From | 20539197 | 19 days ago | IN | 0 ETH | 0.00010396 | ||||
Transfer From | 20539193 | 19 days ago | IN | 0 ETH | 0.00009608 | ||||
Set Approval For... | 20534026 | 20 days ago | IN | 0 ETH | 0.00045647 | ||||
Set Approval For... | 20529718 | 20 days ago | IN | 0 ETH | 0.00011146 | ||||
Set Approval For... | 20369137 | 43 days ago | IN | 0 ETH | 0.00027426 | ||||
Set Approval For... | 20355330 | 44 days ago | IN | 0 ETH | 0.00012902 | ||||
Set Approval For... | 20327272 | 48 days ago | IN | 0 ETH | 0.00050509 | ||||
Safe Transfer Fr... | 20257796 | 58 days ago | IN | 0 ETH | 0.00024454 | ||||
Set Approval For... | 20089275 | 82 days ago | IN | 0 ETH | 0.00032103 | ||||
Set Approval For... | 20078971 | 83 days ago | IN | 0 ETH | 0.00044763 | ||||
Safe Transfer Fr... | 20026781 | 90 days ago | IN | 0 ETH | 0.00170603 | ||||
Set Approval For... | 19887529 | 110 days ago | IN | 0 ETH | 0.00014962 | ||||
Safe Transfer Fr... | 19825625 | 118 days ago | IN | 0 ETH | 0.00061087 | ||||
Set Approval For... | 19809062 | 121 days ago | IN | 0 ETH | 0.00027731 | ||||
Set Approval For... | 19806321 | 121 days ago | IN | 0 ETH | 0.00028362 | ||||
Safe Transfer Fr... | 19776794 | 125 days ago | IN | 0 ETH | 0.0011818 | ||||
Set Approval For... | 19718838 | 133 days ago | IN | 0 ETH | 0.00098479 | ||||
Set Approval For... | 19718834 | 133 days ago | IN | 0 ETH | 0.00097492 | ||||
Set Approval For... | 19679832 | 139 days ago | IN | 0 ETH | 0.00045921 | ||||
Safe Transfer Fr... | 19679805 | 139 days ago | IN | 0 ETH | 0.00078579 | ||||
Set Approval For... | 19679783 | 139 days ago | IN | 0 ETH | 0.00045724 | ||||
Set Approval For... | 19675932 | 139 days ago | IN | 0 ETH | 0.00184811 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13431361 | 1053 days ago | 17.355 ETH |
Loading...
Loading
Contract Name:
BondBears
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import {ERC721BasicMint} from "../erc721/presets/ERC721BasicMint.sol"; //===================================================================================================================== /// 🐻 ( ♥‿♥) OOGA BOOGA BONGA BEARA ( ♥‿♥) 🐻 //===================================================================================================================== contract BondBears is ERC721BasicMint { mapping(address => uint8) internal hasMinted; //================================================================================================================= /// Constructor //================================================================================================================= constructor(string memory baseURI_, string memory contractURI_) ERC721BasicMint( "Bond Bears", "BEARS", baseURI_, contractURI_ ) { // Set some variables here to prevent stack too deep error. maxSupply = 126; priceInWei = uint256(694200000000000000); /* 0.6942 eth */ maxMintPerTx = 1; launchTime = 0; publicMintingEnabled = false; } //======================== ========================================================================================= /// Minting Functionality //================================================================================================================= /** * @dev Public function that mints a specified number of ERC721 tokens. * @param numMint uint16: The number of tokens that are going to be minted. */ function mint(uint16 numMint) public payable virtual override nonReentrant limitToOneMint whenPublicMintingOpen whenNotPaused opensAt(launchTime, "Minting has not started yet") costs(numMint, priceInWei) { _mint(numMint); } /** * @dev Modifier to limit the number of mints to one per user. */ modifier limitToOneMint() { require(hasMinted[_msgSender()] == 0, "Only allowed to Mint 1 Bond Bear"); hasMinted[_msgSender()] = 1; _; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; /* External Imports */ import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {Counters} from "@openzeppelin/contracts/utils/Counters.sol"; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {ERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; /* Internal Imports */ import {ERC721URIStorageLite} from "./ERC721URIStorageLite.sol"; import {Constants} from "../../utils/Constants.sol"; import {Modifiers} from "../../utils/Modifiers.sol"; //===================================================================================================================== /// 😎 Free Internet Money 😎 //===================================================================================================================== contract ERC721BasicMint is ERC721URIStorageLite, ERC721Enumerable, AccessControl, Ownable, Pausable, ReentrancyGuard, Modifiers { using Counters for Counters.Counter; using SafeMath for uint16; using SafeMath for uint256; using Strings for string; //================================================================================================================= /// State Variables //================================================================================================================= /* Public */ uint16 public maxSupply; uint16 public maxMintPerTx; uint256 public priceInWei; uint256 public launchTime; bool public publicMintingEnabled; /* Private */ Counters.Counter private _tokenIdCounter; //================================================================================================================= /// Constructor //================================================================================================================= constructor( string memory name_, string memory symbol_, string memory baseURI_, string memory contractURI_ ) ERC721(name_, symbol_) { _setBaseURI(baseURI_); _setContractURI(contractURI_); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } //================================================================================================================= /// Minting Functionality //================================================================================================================= /** * @dev Public function that mints a specified number of ERC721 tokens. * @param numMint uint16: The number of tokens that are going to be minted. */ function mint(uint16 numMint) public payable virtual nonReentrant whenPublicMintingOpen whenNotPaused opensAt(launchTime, "Minting has not started yet") costs(numMint, priceInWei) { _mint(numMint); } /** * @dev Internal function that mints a specified number of ERC721 tokens. Contains * safety checks related to payment, security and supply. * @param numMint uint16: The number of tokens that are going to be minted. */ function _mint(uint16 numMint) internal virtual _supplySafetyChecks(numMint) { _safeMintTokens(_msgSender(), numMint); } /** * @dev Public function that mints tokens to a set of wallet addresses. Each address has a specified number of * ERC721 tokens minted to it. Contains basic safety checks to ensure supply of tokens stays within limits. * This function is non-payable and thus is only callable by contract admins. * @param addrs address[] memory: List of addresses to which tokens will be sent to. * @param numMint uint16: The number of tokens that are going to be minted to each address. */ function mintAirDrop(address[] memory addrs, uint16 numMint) public virtual nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { if (addrs.length == 0) { // If no specified addresses, mint to the caller. address[] memory temp = new address[](1); temp[0] = _msgSender(); _mintAirDrop(temp, numMint); } else { _mintAirDrop(addrs, numMint); } } /** * @dev Internal function that mints tokens to set a of wallet addresses. Each address is minted * a specified number of ERC721 token. Contains basic safety checks to ensure supply of tokens stays within limits. * @param addrs address[] memory: List of addresses to which tokens will be sent to. * @param numMint uint16: The number of tokens that are going to be minted to each address. */ function _mintAirDrop(address[] memory addrs, uint16 numMint) internal virtual _supplySafetyChecks(uint16((addrs.length).mul(numMint))) { for (uint16 i = 0; i < addrs.length; ++i) { _safeMintTokens(addrs[i], numMint); } } /** * @dev Internal function that mints a specified number of ERC721 tokens to a specific address. * contains NO SAFETY CHECKS and thus should be wrapped in a function that does. * @param to_ address: The address to mint the tokens to. * @param numMint uint16: The number of tokens to be minted. */ function _safeMintTokens(address to_, uint16 numMint) internal { for (uint16 i = 0; i < numMint; ++i) { _tokenIdCounter.increment(); _safeMint(to_, _tokenIdCounter.current()); } } //================================================================================================================= /// Metadata URI //================================================================================================================= /** * @dev External function that sets the contractURI Only callable by contract admins. * For more info: https://docs.opensea.io/docs/contract-level-metadata * @param newContractURI string memory: The new contractURI. */ function setContractURI(string memory newContractURI) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { _setContractURI(newContractURI); } /** * @dev External function that sets the base string of TokenURIs. Only callable by contract admins. * @param newBaseURI string memory: The new baseURI. */ function setBaseURI(string memory newBaseURI) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { _setBaseURI(newBaseURI); } /** * @dev Internal function that retrieves the baseURI of this ERC721 token. * @return string memory: The baseURI of the contract. */ function _baseURI() internal view virtual override(ERC721, ERC721URIStorageLite) returns (string memory) { return super._baseURI(); } /** * @dev Public function that retrieves the tokenURI of a ERC721 token. For more info please view the * ERC721 spec: https://eips.ethereum.org/EIPS/eip-721. * @param tokenId uint256: The tokenId to be queried. * @return string memory: The tokenURI of the queried token. */ function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorageLite) returns (string memory) { return super.tokenURI(tokenId); } //================================================================================================================= /// Misc. Administrative //================================================================================================================= /** * @dev External function that pauses the contract. Only callable by contract admins. * FOR EMERGENCY USE ONLY - Pauses all aspects of the contract, not overly applicable for * ERC721BasicMint, but may be quite useful for future children of this contract. * */ function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } /** * @dev External function that unpauses the contract. Only callable by contract admins. * FOR EMERGENCY USE ONLY - Unpauses all aspects of the contract, not overly applicable for * ERC721BasicMint, but may be quite useful for future children of this contract. */ function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } /** * @dev Set minting access. Only callable by contract admins. */ function setPublicMinting(bool _publicMintingEnabled) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { publicMintingEnabled = _publicMintingEnabled; } /** * @dev Public function that sets the maximum number of ERC721 tokens that exist under this contract. * If supply is reduced below the number of tokens that have already been minted, tokens above the * threshold WILL be burned and lost forever. Not sure how much I love this function, so it's * behavior will likely be revisited in the future. * @param newSupply uint16: The new maximum number of tokens. * @param confirmation uint256: A combination of digits that must be sent with the contract for it to execute. */ function setSupply(uint16 newSupply, uint256 confirmation) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { // Require a confirmation code to prevent accidental burn require(confirmation == 73435567465418567456694564986745984357984); for (uint16 i = maxSupply; i > newSupply; --i) { if (_exists(i)) { _burn(i); } // Not really important, since if this logic happens the mint is over. // But does prevent the counter from getting in a bad state, so it felt wrong not to add this. if (i < _tokenIdCounter.current()) { _tokenIdCounter.decrement(); } } maxSupply = newSupply; } /** * @dev Public function that sets the price for the mint. Only callable by contract admins. * @param newPrice uint256: The new price. */ function setPrice(uint256 newPrice) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { priceInWei = newPrice; } /** * @dev Public function that sets the max number of mints per sent transaction. Only callable by contract admins. * @param newMaxMintPerTx uint256: The new max. */ function setMaxMintPerTx(uint16 newMaxMintPerTx) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { maxMintPerTx = newMaxMintPerTx; } /** * @dev Public function that sets the time for the mint to begin at. Time is stored as an integer represent the * number of seconds since January 1st, 1970. This is referred to as epoch time. Only callable by contract admins. * @param newLaunchTime uint256: The new launch time. */ function setLaunchTime(uint256 newLaunchTime) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { launchTime = newLaunchTime; } /** * @dev Public function that pulls a set amount of Ether from the contract. Only callable by contract admins. * @param amount uint256: The amount of wei to withdraw from the contract. */ function withdraw(uint256 amount) public nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { require(amount <= address(this).balance); // dev: Insufficient contract balance (bool noErr, ) = payable(_msgSender()).call{value: amount}(""); require(noErr); // dev: Failed to withdraw } /** * @dev Public function that pulls the entire balance of Ether from the contract. Only callable by contract admins. */ function withdrawAll() public nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { (bool noErr, ) = payable(_msgSender()).call{value: address(this).balance}(""); require(noErr); // dev: Failed to withdraw } //================================================================================================================= /// Other Required Functions //================================================================================================================= /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable) whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } //================================================================================================================= /// Useful Checks & Modifiers //================================================================================================================= /** * @dev An function to make sure the contract is in a good state before intiating the minting process. * @return string memory: A human readible string contanting information about the state of the contract. */ function preflightCheck() external view returns (string memory) { require(publicMintingEnabled); require(paused() == false, "Contract is Paused"); require(totalSupply() == 0, "Supply is not Empty"); require(bytes(_baseURI()).length == Constants.IPFS_URI_LENGTH(), "baseURI is of improper length"); int256 countdown = int256(launchTime) - int256(block.timestamp); if (countdown <= 0) return string("All systems are go. We are Launched."); return string( abi.encodePacked("All systems are go. Launch in: t-", Strings.toString(uint256(countdown)), " seconds") ); } /** * @dev A function to verify that the token supply will is in a valid state and will remain in a valid * state after the creation of a set number of tokens. * @param numMint uint16: The number of tokens requested to be created. */ function _requireBasicSupplySafetyChecks(uint16 numMint) internal view { require(totalSupply() < maxSupply, "Sold Out"); require(totalSupply().add(numMint) <= maxSupply, "Requested more Tokens than remaining"); require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) || (numMint > 0 && numMint <= maxMintPerTx), "Outside mint per tx range"); } /** * See {ERC721BasicMint-_requireBasicSupplySafetyChecks} */ modifier _supplySafetyChecks(uint16 numMint) { _requireBasicSupplySafetyChecks(numMint); _; } /** * @dev A modifier to guard the minting functions thus allowing minting to be enabled & disabled. */ modifier whenPublicMintingOpen() { require(publicMintingEnabled || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) , "Minting is disabled"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT 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 pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @dev Lightweight version of OpenZeppelin's ERC721URIStorage.sol */ abstract contract ERC721URIStorageLite is ERC721 { using Strings for uint256; string private baseURI_; string private contractURI_; /** * @dev Retrieves tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); return string(abi.encodePacked(_baseURI(), Strings.toString(tokenId), ".json")); } /** * @dev The contractURI method returns a URL for the storefront-level metadata * of a contract. For more info: https://docs.opensea.io/docs/contract-level-metadata * @return string memory: The contractURI of the contract. */ function contractURI() external view virtual returns (string memory) { return _contractURI(); } /** * @dev Retrieve `contractURI_` * @return string memory: The contractURI of the contract. */ function _contractURI() internal view virtual returns (string memory) { return contractURI_; } /** * @dev Set `contractURI_` * */ function _setContractURI(string memory newContractURI) internal virtual { contractURI_ = newContractURI; } /** * @dev External function that retrieves the baseURI of this ERC721 token. Useful for confirming the baseURI is correct * and/or unit testing. * @return string memory: The baseURI of the contract. */ function baseURI() external view virtual returns (string memory) { return _baseURI(); } /** * @dev Retrieve `baseURI_` * @return string memory: The baseURI of the contract. */ function _baseURI() internal view virtual override(ERC721) returns (string memory) { return baseURI_; } /** * @dev Set `baseURI_` * */ function _setBaseURI(string memory newBaseURI) internal virtual { baseURI_ = newBaseURI; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; library Constants { /* Constants */ uint256 private constant _WEI_PER_ETH = 10**18; uint16 private constant _IPFS_URI_LENGTH = 54; // len("ipfs://") == 7, len(hash) == 46, len("/") == 1, sum => 54 function WEI_PER_ETH() internal pure returns (uint256) { return _WEI_PER_ETH; } function IPFS_URI_LENGTH() internal pure returns (uint16) { return _IPFS_URI_LENGTH; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; abstract contract Modifiers { using SafeMath for uint16; using SafeMath for uint256; /** * @dev A modifier that verifies that the correct amount of Ether has been recieved prior to executing * the function is it applied to. */ modifier requireTrue(bool x, string memory errMsg) { require(x, errMsg); _; } modifier requireFalse(bool x, string memory errMsg) { require(!x, errMsg); _; } modifier costs(uint16 num, uint256 price) { require(msg.value >= price.mul(num), "Insufficient funds sent to fulfill request"); _; } /** * @dev A modifier that ensures it is passed a certain time before the function it is applied to can be executed. */ modifier opensAt(uint256 timestamp, string memory errMsg) { require(block.timestamp >= timestamp, errMsg); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"numMint","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"uint16","name":"numMint","type":"uint16"}],"name":"mintAirDrop","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preflightCheck","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLaunchTime","type":"uint256"}],"name":"setLaunchTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newMaxMintPerTx","type":"uint16"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintingEnabled","type":"bool"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newSupply","type":"uint16"},{"internalType":"uint256","name":"confirmation","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620037af380380620037af8339810160408190526200003491620003d6565b6040518060400160405280600a815260200169426f6e6420426561727360b01b81525060405180604001604052806005815260200164424541525360d81b8152508383838381600090805190602001906200009192919062000263565b508051620000a790600190602084019062000263565b505050620000c4620000be6200013260201b60201c565b62000136565b600d805460ff60a01b191690556001600e55620000e18262000188565b620000ec81620001a1565b620000f9600033620001b6565b5050600f80546709a24b38d313800060105563ffffffff19166201007e1790555050600060115550506012805460ff191690556200047d565b3390565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516200019d90600690602084019062000263565b5050565b80516200019d90600790602084019062000263565b6000828152600c602090815260408083206001600160a01b03851684529091529020546200019d908390839060ff166200019d576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200021f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002719062000440565b90600052602060002090601f016020900481019282620002955760008555620002e0565b82601f10620002b057805160ff1916838001178555620002e0565b82800160010185558215620002e0579182015b82811115620002e0578251825591602001919060010190620002c3565b50620002ee929150620002f2565b5090565b5b80821115620002ee5760008155600101620002f3565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200033157600080fd5b81516001600160401b03808211156200034e576200034e62000309565b604051601f8301601f19908116603f0116810190828211818310171562000379576200037962000309565b816040528381526020925086838588010111156200039657600080fd5b600091505b83821015620003ba57858201830151818301840152908201906200039b565b83821115620003cc5760008385830101525b9695505050505050565b60008060408385031215620003ea57600080fd5b82516001600160401b03808211156200040257600080fd5b62000410868387016200031f565b935060208501519150808211156200042757600080fd5b5062000436858286016200031f565b9150509250929050565b600181811c908216806200045557607f821691505b602082108114156200047757634e487b7160e01b600052602260045260246000fd5b50919050565b613322806200048d6000396000f3fe6080604052600436106102885760003560e01c806370a082311161015a5780639ff46e74116100c1578063d547741f1161007a578063d547741f1461076b578063d5abeb011461078b578063de7fcb1d146107b9578063e8a3d485146107da578063e985e9c5146107ef578063f2fde38b1461083857600080fd5b80639ff46e74146106b6578063a217fddf146106d6578063a22cb465146106eb578063b6a741211461070b578063b88d4fde1461072b578063c87b56dd1461074b57600080fd5b80638dec9f7a116101135780638dec9f7a1461061257806391b7f5ed1461062c57806391d148541461064c578063938e3d7b1461066c57806395d89b411461068c5780639cf616b6146106a157600080fd5b806370a082311461057f578063715018a61461059f578063790ca413146105b45780638456cb59146105ca578063853828b6146105df5780638da5cb5b146105f457600080fd5b80632f745c59116101fe57806342cc2697116101b757806342cc2697146104cb5780634f6ccce7146104eb57806355f804b31461050b5780635c975abb1461052b5780636352211e1461054a5780636c0360eb1461056a57600080fd5b80632f745c5914610420578063333452621461044057806336568abe146104605780633c8da588146104805780633f4ba83a1461049657806342842e0e146104ab57600080fd5b806323b872dd1161025057806323b872dd1461035d57806323cf0a221461037d578063248a9ca314610390578063254a4737146103c05780632e1a7d4d146103e05780632f2ff15d1461040057600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806318160ddd1461033e575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612a46565b610858565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d7610869565b6040516102b99190612abb565b3480156102f057600080fd5b506103046102ff366004612ace565b6108fb565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612b03565b610995565b005b34801561034a57600080fd5b50600a545b6040519081526020016102b9565b34801561036957600080fd5b5061033c610378366004612b2d565b610aab565b61033c61038b366004612b7b565b610adc565b34801561039c57600080fd5b5061034f6103ab366004612ace565b6000908152600c602052604090206001015490565b3480156103cc57600080fd5b5061033c6103db366004612ba6565b610ce8565b3480156103ec57600080fd5b5061033c6103fb366004612ace565b610d08565b34801561040c57600080fd5b5061033c61041b366004612bc1565b610da8565b34801561042c57600080fd5b5061034f61043b366004612b03565b610dce565b34801561044c57600080fd5b5061033c61045b366004612bed565b610e64565b34801561046c57600080fd5b5061033c61047b366004612bc1565b610f18565b34801561048c57600080fd5b5061034f60105481565b3480156104a257600080fd5b5061033c610f96565b3480156104b757600080fd5b5061033c6104c6366004612b2d565b610fad565b3480156104d757600080fd5b5061033c6104e6366004612c50565b610fc8565b3480156104f757600080fd5b5061034f610506366004612ace565b611072565b34801561051757600080fd5b5061033c610526366004612d67565b611105565b34801561053757600080fd5b50600d54600160a01b900460ff166102ad565b34801561055657600080fd5b50610304610565366004612ace565b61111a565b34801561057657600080fd5b506102d7611191565b34801561058b57600080fd5b5061034f61059a366004612db0565b6111a0565b3480156105ab57600080fd5b5061033c611227565b3480156105c057600080fd5b5061034f60115481565b3480156105d657600080fd5b5061033c61128d565b3480156105eb57600080fd5b5061033c6112a1565b34801561060057600080fd5b50600d546001600160a01b0316610304565b34801561061e57600080fd5b506012546102ad9060ff1681565b34801561063857600080fd5b5061033c610647366004612ace565b611333565b34801561065857600080fd5b506102ad610667366004612bc1565b611345565b34801561067857600080fd5b5061033c610687366004612d67565b611370565b34801561069857600080fd5b506102d7611385565b3480156106ad57600080fd5b506102d7611394565b3480156106c257600080fd5b5061033c6106d1366004612ace565b6114fa565b3480156106e257600080fd5b5061034f600081565b3480156106f757600080fd5b5061033c610706366004612dcb565b61150c565b34801561071757600080fd5b5061033c610726366004612b7b565b6115d1565b34801561073757600080fd5b5061033c610746366004612df5565b6115fe565b34801561075757600080fd5b506102d7610766366004612ace565b611636565b34801561077757600080fd5b5061033c610786366004612bc1565b611641565b34801561079757600080fd5b50600f546107a69061ffff1681565b60405161ffff90911681526020016102b9565b3480156107c557600080fd5b50600f546107a69062010000900461ffff1681565b3480156107e657600080fd5b506102d7611667565b3480156107fb57600080fd5b506102ad61080a366004612e71565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561084457600080fd5b5061033c610853366004612db0565b611671565b600061086382611739565b92915050565b60606000805461087890612e9b565b80601f01602080910402602001604051908101604052809291908181526020018280546108a490612e9b565b80156108f15780601f106108c6576101008083540402835291602001916108f1565b820191906000526020600020905b8154815290600101906020018083116108d457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109a08261111a565b9050806001600160a01b0316836001600160a01b03161415610a0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610970565b336001600160a01b0382161480610a2a5750610a2a813361080a565b610a9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610970565b610aa6838361175e565b505050565b610ab533826117cc565b610ad15760405162461bcd60e51b815260040161097090612ed6565b610aa68383836118c3565b6002600e541415610aff5760405162461bcd60e51b815260040161097090612f27565b6002600e553360009081526014602052604090205460ff1615610b645760405162461bcd60e51b815260206004820181905260248201527f4f6e6c7920616c6c6f77656420746f204d696e74203120426f6e6420426561726044820152606401610970565b336000908152601460205260409020805460ff1916600117905560125460ff1680610b955750610b95600033611345565b610bd75760405162461bcd60e51b8152602060048201526013602482015272135a5b9d1a5b99c81a5cc8191a5cd8589b1959606a1b6044820152606401610970565b600d54600160a01b900460ff1615610c015760405162461bcd60e51b815260040161097090612f5e565b6011546040518060400160405280601b81526020017f4d696e74696e6720686173206e6f742073746172746564207965740000000000815250814210158190610c5d5760405162461bcd60e51b81526004016109709190612abb565b506010548390610c718161ffff8416611a6e565b341015610cd35760405162461bcd60e51b815260206004820152602a60248201527f496e73756666696369656e742066756e64732073656e7420746f2066756c66696044820152691b1b081c995c5d595cdd60b21b6064820152608401610970565b610cdc85611a81565b50506001600e55505050565b6000610cf48133611a95565b506012805460ff1916911515919091179055565b6002600e541415610d2b5760405162461bcd60e51b815260040161097090612f27565b6002600e556000610d3c8133611a95565b47821115610d4957600080fd5b604051600090339084908381818185875af1925050503d8060008114610d8b576040519150601f19603f3d011682016040523d82523d6000602084013e610d90565b606091505b5050905080610d9e57600080fd5b50506001600e5550565b6000828152600c6020526040902060010154610dc48133611a95565b610aa68383611af9565b6000610dd9836111a0565b8210610e3b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610970565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6000610e708133611a95565b8170d7cec7d623053897df8bc71206b64b966014610e8d57600080fd5b600f5461ffff165b8361ffff168161ffff161115610efc5761ffff81166000908152600260205260409020546001600160a01b031615610ed457610ed48161ffff16611b7f565b6013548161ffff161015610eec57610eec6013611c26565b610ef581612f9e565b9050610e95565b5050600f805461ffff191661ffff939093169290921790915550565b6001600160a01b0381163314610f885760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610970565b610f928282611c7d565b5050565b6000610fa28133611a95565b610faa611ce4565b50565b610aa6838383604051806020016040528060008152506115fe565b6002600e541415610feb5760405162461bcd60e51b815260040161097090612f27565b6002600e556000610ffc8133611a95565b82516110685760408051600180825281830190925260009160208083019080368337019050509050338160008151811061103857611038612fbc565b60200260200101906001600160a01b031690816001600160a01b0316815250506110628184611d81565b50610d9e565b610d9e8383611d81565b600061107d600a5490565b82106110e05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610970565b600a82815481106110f3576110f3612fbc565b90600052602060002001549050919050565b60006111118133611a95565b610f9282611de1565b6000818152600260205260408120546001600160a01b0316806108635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610970565b606061119b611df4565b905090565b60006001600160a01b03821661120b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610970565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146112815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610970565b61128b6000611dfe565b565b60006112998133611a95565b610faa611e50565b6002600e5414156112c45760405162461bcd60e51b815260040161097090612f27565b6002600e5560006112d58133611a95565b604051600090339047908381818185875af1925050503d8060008114611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b505090508061132a57600080fd5b50506001600e55565b600061133f8133611a95565b50601055565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061137c8133611a95565b610f9282611eb5565b60606001805461087890612e9b565b60125460609060ff166113a657600080fd5b600d54600160a01b900460ff16156113f55760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc814185d5cd95960721b6044820152606401610970565b600a541561143b5760405162461bcd60e51b8152602060048201526013602482015272537570706c79206973206e6f7420456d70747960681b6044820152606401610970565b6036611445611df4565b51146114935760405162461bcd60e51b815260206004820152601d60248201527f62617365555249206973206f6620696d70726f706572206c656e6774680000006044820152606401610970565b6000426011546114a39190612fd2565b9050600081136114cc576040518060600160405280602481526020016132c96024913991505090565b6114d581611ec8565b6040516020016114e59190613011565b60405160208183030381529060405291505090565b60006115068133611a95565b50601155565b6001600160a01b0382163314156115655760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610970565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115dd8133611a95565b50600f805461ffff909216620100000263ffff000019909216919091179055565b61160833836117cc565b6116245760405162461bcd60e51b815260040161097090612ed6565b61163084848484611fc6565b50505050565b606061086382611ff9565b6000828152600c602052604090206001015461165d8133611a95565b610aa68383611c7d565b606061119b6120b2565b600d546001600160a01b031633146116cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610970565b6001600160a01b0381166117305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610970565b610faa81611dfe565b60006001600160e01b03198216637965db0b60e01b14806108635750610863826120c1565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117938261111a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166118455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610970565b60006118508361111a565b9050806001600160a01b0316846001600160a01b0316148061188b5750836001600160a01b0316611880846108fb565b6001600160a01b0316145b806118bb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118d68261111a565b6001600160a01b03161461193e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610970565b6001600160a01b0382166119a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610970565b6119ab8383836120e6565b6119b660008261175e565b6001600160a01b03831660009081526003602052604081208054600192906119df908490613072565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a0d908490613089565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a7a82846130a1565b9392505050565b80611a8b8161211b565b610f92338361225d565b611a9f8282611345565b610f9257611ab7816001600160a01b031660146122a0565b611ac28360206122a0565b604051602001611ad39291906130c0565b60408051601f198184030181529082905262461bcd60e51b825261097091600401612abb565b611b038282611345565b610f92576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611b3b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611b8a8261111a565b9050611b98816000846120e6565b611ba360008361175e565b6001600160a01b0381166000908152600360205260408120805460019290611bcc908490613072565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b805480611c755760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610970565b600019019055565b611c878282611345565b15610f92576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600d54600160a01b900460ff16611d345760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610970565b600d805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8151611d919061ffff8316611a6e565b611d9a8161211b565b60005b83518161ffff16101561163057611dd1848261ffff1681518110611dc357611dc3612fbc565b60200260200101518461225d565b611dda81613135565b9050611d9d565b8051610f92906006906020840190612997565b606061119b61243c565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d54600160a01b900460ff1615611e7a5760405162461bcd60e51b815260040161097090612f5e565b600d805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d643390565b8051610f92906007906020840190612997565b606081611eec5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f165780611f0081613157565b9150611f0f9050600a83613188565b9150611ef0565b60008167ffffffffffffffff811115611f3157611f31612c09565b6040519080825280601f01601f191660200182016040528015611f5b576020820181803683370190505b5090505b84156118bb57611f70600183613072565b9150611f7d600a8661319c565b611f88906030613089565b60f81b818381518110611f9d57611f9d612fbc565b60200101906001600160f81b031916908160001a905350611fbf600a86613188565b9450611f5f565b611fd18484846118c3565b611fdd8484848461244b565b6116305760405162461bcd60e51b8152600401610970906131b0565b6000818152600260205260409020546060906001600160a01b031661207a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610970565b612082611df4565b61208b83611ec8565b60405160200161209c929190613202565b6040516020818303038152906040529050919050565b60606007805461087890612e9b565b60006001600160e01b0319821663780e9d6360e01b1480610863575061086382612558565b600d54600160a01b900460ff16156121105760405162461bcd60e51b815260040161097090612f5e565b610aa68383836125a8565b600f5461ffff1661212b600a5490565b106121635760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610970565b600f5461ffff9081169061218290831661217c600a5490565b90612660565b11156121dc5760405162461bcd60e51b8152602060048201526024808201527f526571756573746564206d6f726520546f6b656e73207468616e2072656d61696044820152636e696e6760e01b6064820152608401610970565b6121e7600033611345565b80612211575060008161ffff161180156122115750600f5461ffff62010000909104811690821611155b610faa5760405162461bcd60e51b815260206004820152601960248201527f4f757473696465206d696e74207065722074782072616e6765000000000000006044820152606401610970565b60005b8161ffff168161ffff161015610aa65761227e601380546001019055565b6122908361228b60135490565b61266c565b61229981613135565b9050612260565b606060006122af8360026130a1565b6122ba906002613089565b67ffffffffffffffff8111156122d2576122d2612c09565b6040519080825280601f01601f1916602001820160405280156122fc576020820181803683370190505b509050600360fc1b8160008151811061231757612317612fbc565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061234657612346612fbc565b60200101906001600160f81b031916908160001a905350600061236a8460026130a1565b612375906001613089565b90505b60018111156123ed576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123a9576123a9612fbc565b1a60f81b8282815181106123bf576123bf612fbc565b60200101906001600160f81b031916908160001a90535060049490941c936123e681613241565b9050612378565b508315611a7a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610970565b60606006805461087890612e9b565b60006001600160a01b0384163b1561254d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061248f903390899088908890600401613258565b602060405180830381600087803b1580156124a957600080fd5b505af19250505080156124d9575060408051601f3d908101601f191682019092526124d691810190613295565b60015b612533573d808015612507576040519150601f19603f3d011682016040523d82523d6000602084013e61250c565b606091505b50805161252b5760405162461bcd60e51b8152600401610970906131b0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118bb565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061258957506001600160e01b03198216635b5e139f60e01b145b8061086357506301ffc9a760e01b6001600160e01b0319831614610863565b6001600160a01b038316612603576125fe81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b612626565b816001600160a01b0316836001600160a01b031614612626576126268382612686565b6001600160a01b03821661263d57610aa681612723565b826001600160a01b0316826001600160a01b031614610aa657610aa682826127d2565b6000611a7a8284613089565b610f92828260405180602001604052806000815250612816565b60006001612693846111a0565b61269d9190613072565b6000838152600960205260409020549091508082146126f0576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061273590600190613072565b6000838152600b6020526040812054600a805493945090928490811061275d5761275d612fbc565b9060005260206000200154905080600a838154811061277e5761277e612fbc565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806127b6576127b66132b2565b6001900381819060005260206000200160009055905550505050565b60006127dd836111a0565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6128208383612849565b61282d600084848461244b565b610aa65760405162461bcd60e51b8152600401610970906131b0565b6001600160a01b03821661289f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610970565b6000818152600260205260409020546001600160a01b0316156129045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610970565b612910600083836120e6565b6001600160a01b0382166000908152600360205260408120805460019290612939908490613089565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546129a390612e9b565b90600052602060002090601f0160209004810192826129c55760008555612a0b565b82601f106129de57805160ff1916838001178555612a0b565b82800160010185558215612a0b579182015b82811115612a0b5782518255916020019190600101906129f0565b50612a17929150612a1b565b5090565b5b80821115612a175760008155600101612a1c565b6001600160e01b031981168114610faa57600080fd5b600060208284031215612a5857600080fd5b8135611a7a81612a30565b60005b83811015612a7e578181015183820152602001612a66565b838111156116305750506000910152565b60008151808452612aa7816020860160208601612a63565b601f01601f19169290920160200192915050565b602081526000611a7a6020830184612a8f565b600060208284031215612ae057600080fd5b5035919050565b80356001600160a01b0381168114612afe57600080fd5b919050565b60008060408385031215612b1657600080fd5b612b1f83612ae7565b946020939093013593505050565b600080600060608486031215612b4257600080fd5b612b4b84612ae7565b9250612b5960208501612ae7565b9150604084013590509250925092565b803561ffff81168114612afe57600080fd5b600060208284031215612b8d57600080fd5b611a7a82612b69565b80358015158114612afe57600080fd5b600060208284031215612bb857600080fd5b611a7a82612b96565b60008060408385031215612bd457600080fd5b82359150612be460208401612ae7565b90509250929050565b60008060408385031215612c0057600080fd5b612b1f83612b69565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c4857612c48612c09565b604052919050565b60008060408385031215612c6357600080fd5b823567ffffffffffffffff80821115612c7b57600080fd5b818501915085601f830112612c8f57600080fd5b8135602082821115612ca357612ca3612c09565b8160051b9250612cb4818401612c1f565b8281529284018101928181019089851115612cce57600080fd5b948201945b84861015612cf357612ce486612ae7565b82529482019490820190612cd3565b9650612d029050878201612b69565b9450505050509250929050565b600067ffffffffffffffff831115612d2957612d29612c09565b612d3c601f8401601f1916602001612c1f565b9050828152838383011115612d5057600080fd5b828260208301376000602084830101529392505050565b600060208284031215612d7957600080fd5b813567ffffffffffffffff811115612d9057600080fd5b8201601f81018413612da157600080fd5b6118bb84823560208401612d0f565b600060208284031215612dc257600080fd5b611a7a82612ae7565b60008060408385031215612dde57600080fd5b612de783612ae7565b9150612be460208401612b96565b60008060008060808587031215612e0b57600080fd5b612e1485612ae7565b9350612e2260208601612ae7565b925060408501359150606085013567ffffffffffffffff811115612e4557600080fd5b8501601f81018713612e5657600080fd5b612e6587823560208401612d0f565b91505092959194509250565b60008060408385031215612e8457600080fd5b612e8d83612ae7565b9150612be460208401612ae7565b600181811c90821680612eaf57607f821691505b60208210811415612ed057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff821680612fb257612fb2612f88565b6000190192915050565b634e487b7160e01b600052603260045260246000fd5b60008083128015600160ff1b850184121615612ff057612ff0612f88565b6001600160ff1b038401831381161561300b5761300b612f88565b50500390565b7f416c6c2073797374656d732061726520676f2e204c61756e636820696e3a20748152602d60f81b602082015260008251613053816021850160208701612a63565b67207365636f6e647360c01b6021939091019283015250602901919050565b60008282101561308457613084612f88565b500390565b6000821982111561309c5761309c612f88565b500190565b60008160001904831182151516156130bb576130bb612f88565b500290565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130f8816017850160208801612a63565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613129816028840160208801612a63565b01602801949350505050565b600061ffff8083168181141561314d5761314d612f88565b6001019392505050565b600060001982141561316b5761316b612f88565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261319757613197613172565b500490565b6000826131ab576131ab613172565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351613214818460208801612a63565b835190830190613228818360208801612a63565b64173539b7b760d91b9101908152600501949350505050565b60008161325057613250612f88565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061328b90830184612a8f565b9695505050505050565b6000602082840312156132a757600080fd5b8151611a7a81612a30565b634e487b7160e01b600052603160045260246000fdfe416c6c2073797374656d732061726520676f2e20576520617265204c61756e636865642ea26469706673582212205b1066865dce79e838663ce5dac2cd56720f99725bb3f57313cb1b9f5a3dee6664736f6c63430008090033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d534264706e4a5143434363445a3770767835644342317175327a42414b7a43364b757767736542777972376d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d59457a596764384c314c6b39713963546f6b55575650345066524d68624d457a5331353843534c45526470450000000000000000000000
Deployed Bytecode
0x6080604052600436106102885760003560e01c806370a082311161015a5780639ff46e74116100c1578063d547741f1161007a578063d547741f1461076b578063d5abeb011461078b578063de7fcb1d146107b9578063e8a3d485146107da578063e985e9c5146107ef578063f2fde38b1461083857600080fd5b80639ff46e74146106b6578063a217fddf146106d6578063a22cb465146106eb578063b6a741211461070b578063b88d4fde1461072b578063c87b56dd1461074b57600080fd5b80638dec9f7a116101135780638dec9f7a1461061257806391b7f5ed1461062c57806391d148541461064c578063938e3d7b1461066c57806395d89b411461068c5780639cf616b6146106a157600080fd5b806370a082311461057f578063715018a61461059f578063790ca413146105b45780638456cb59146105ca578063853828b6146105df5780638da5cb5b146105f457600080fd5b80632f745c59116101fe57806342cc2697116101b757806342cc2697146104cb5780634f6ccce7146104eb57806355f804b31461050b5780635c975abb1461052b5780636352211e1461054a5780636c0360eb1461056a57600080fd5b80632f745c5914610420578063333452621461044057806336568abe146104605780633c8da588146104805780633f4ba83a1461049657806342842e0e146104ab57600080fd5b806323b872dd1161025057806323b872dd1461035d57806323cf0a221461037d578063248a9ca314610390578063254a4737146103c05780632e1a7d4d146103e05780632f2ff15d1461040057600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806318160ddd1461033e575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612a46565b610858565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d7610869565b6040516102b99190612abb565b3480156102f057600080fd5b506103046102ff366004612ace565b6108fb565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612b03565b610995565b005b34801561034a57600080fd5b50600a545b6040519081526020016102b9565b34801561036957600080fd5b5061033c610378366004612b2d565b610aab565b61033c61038b366004612b7b565b610adc565b34801561039c57600080fd5b5061034f6103ab366004612ace565b6000908152600c602052604090206001015490565b3480156103cc57600080fd5b5061033c6103db366004612ba6565b610ce8565b3480156103ec57600080fd5b5061033c6103fb366004612ace565b610d08565b34801561040c57600080fd5b5061033c61041b366004612bc1565b610da8565b34801561042c57600080fd5b5061034f61043b366004612b03565b610dce565b34801561044c57600080fd5b5061033c61045b366004612bed565b610e64565b34801561046c57600080fd5b5061033c61047b366004612bc1565b610f18565b34801561048c57600080fd5b5061034f60105481565b3480156104a257600080fd5b5061033c610f96565b3480156104b757600080fd5b5061033c6104c6366004612b2d565b610fad565b3480156104d757600080fd5b5061033c6104e6366004612c50565b610fc8565b3480156104f757600080fd5b5061034f610506366004612ace565b611072565b34801561051757600080fd5b5061033c610526366004612d67565b611105565b34801561053757600080fd5b50600d54600160a01b900460ff166102ad565b34801561055657600080fd5b50610304610565366004612ace565b61111a565b34801561057657600080fd5b506102d7611191565b34801561058b57600080fd5b5061034f61059a366004612db0565b6111a0565b3480156105ab57600080fd5b5061033c611227565b3480156105c057600080fd5b5061034f60115481565b3480156105d657600080fd5b5061033c61128d565b3480156105eb57600080fd5b5061033c6112a1565b34801561060057600080fd5b50600d546001600160a01b0316610304565b34801561061e57600080fd5b506012546102ad9060ff1681565b34801561063857600080fd5b5061033c610647366004612ace565b611333565b34801561065857600080fd5b506102ad610667366004612bc1565b611345565b34801561067857600080fd5b5061033c610687366004612d67565b611370565b34801561069857600080fd5b506102d7611385565b3480156106ad57600080fd5b506102d7611394565b3480156106c257600080fd5b5061033c6106d1366004612ace565b6114fa565b3480156106e257600080fd5b5061034f600081565b3480156106f757600080fd5b5061033c610706366004612dcb565b61150c565b34801561071757600080fd5b5061033c610726366004612b7b565b6115d1565b34801561073757600080fd5b5061033c610746366004612df5565b6115fe565b34801561075757600080fd5b506102d7610766366004612ace565b611636565b34801561077757600080fd5b5061033c610786366004612bc1565b611641565b34801561079757600080fd5b50600f546107a69061ffff1681565b60405161ffff90911681526020016102b9565b3480156107c557600080fd5b50600f546107a69062010000900461ffff1681565b3480156107e657600080fd5b506102d7611667565b3480156107fb57600080fd5b506102ad61080a366004612e71565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561084457600080fd5b5061033c610853366004612db0565b611671565b600061086382611739565b92915050565b60606000805461087890612e9b565b80601f01602080910402602001604051908101604052809291908181526020018280546108a490612e9b565b80156108f15780601f106108c6576101008083540402835291602001916108f1565b820191906000526020600020905b8154815290600101906020018083116108d457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109795760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109a08261111a565b9050806001600160a01b0316836001600160a01b03161415610a0e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610970565b336001600160a01b0382161480610a2a5750610a2a813361080a565b610a9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610970565b610aa6838361175e565b505050565b610ab533826117cc565b610ad15760405162461bcd60e51b815260040161097090612ed6565b610aa68383836118c3565b6002600e541415610aff5760405162461bcd60e51b815260040161097090612f27565b6002600e553360009081526014602052604090205460ff1615610b645760405162461bcd60e51b815260206004820181905260248201527f4f6e6c7920616c6c6f77656420746f204d696e74203120426f6e6420426561726044820152606401610970565b336000908152601460205260409020805460ff1916600117905560125460ff1680610b955750610b95600033611345565b610bd75760405162461bcd60e51b8152602060048201526013602482015272135a5b9d1a5b99c81a5cc8191a5cd8589b1959606a1b6044820152606401610970565b600d54600160a01b900460ff1615610c015760405162461bcd60e51b815260040161097090612f5e565b6011546040518060400160405280601b81526020017f4d696e74696e6720686173206e6f742073746172746564207965740000000000815250814210158190610c5d5760405162461bcd60e51b81526004016109709190612abb565b506010548390610c718161ffff8416611a6e565b341015610cd35760405162461bcd60e51b815260206004820152602a60248201527f496e73756666696369656e742066756e64732073656e7420746f2066756c66696044820152691b1b081c995c5d595cdd60b21b6064820152608401610970565b610cdc85611a81565b50506001600e55505050565b6000610cf48133611a95565b506012805460ff1916911515919091179055565b6002600e541415610d2b5760405162461bcd60e51b815260040161097090612f27565b6002600e556000610d3c8133611a95565b47821115610d4957600080fd5b604051600090339084908381818185875af1925050503d8060008114610d8b576040519150601f19603f3d011682016040523d82523d6000602084013e610d90565b606091505b5050905080610d9e57600080fd5b50506001600e5550565b6000828152600c6020526040902060010154610dc48133611a95565b610aa68383611af9565b6000610dd9836111a0565b8210610e3b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610970565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6000610e708133611a95565b8170d7cec7d623053897df8bc71206b64b966014610e8d57600080fd5b600f5461ffff165b8361ffff168161ffff161115610efc5761ffff81166000908152600260205260409020546001600160a01b031615610ed457610ed48161ffff16611b7f565b6013548161ffff161015610eec57610eec6013611c26565b610ef581612f9e565b9050610e95565b5050600f805461ffff191661ffff939093169290921790915550565b6001600160a01b0381163314610f885760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610970565b610f928282611c7d565b5050565b6000610fa28133611a95565b610faa611ce4565b50565b610aa6838383604051806020016040528060008152506115fe565b6002600e541415610feb5760405162461bcd60e51b815260040161097090612f27565b6002600e556000610ffc8133611a95565b82516110685760408051600180825281830190925260009160208083019080368337019050509050338160008151811061103857611038612fbc565b60200260200101906001600160a01b031690816001600160a01b0316815250506110628184611d81565b50610d9e565b610d9e8383611d81565b600061107d600a5490565b82106110e05760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610970565b600a82815481106110f3576110f3612fbc565b90600052602060002001549050919050565b60006111118133611a95565b610f9282611de1565b6000818152600260205260408120546001600160a01b0316806108635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610970565b606061119b611df4565b905090565b60006001600160a01b03821661120b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610970565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146112815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610970565b61128b6000611dfe565b565b60006112998133611a95565b610faa611e50565b6002600e5414156112c45760405162461bcd60e51b815260040161097090612f27565b6002600e5560006112d58133611a95565b604051600090339047908381818185875af1925050503d8060008114611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b505090508061132a57600080fd5b50506001600e55565b600061133f8133611a95565b50601055565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061137c8133611a95565b610f9282611eb5565b60606001805461087890612e9b565b60125460609060ff166113a657600080fd5b600d54600160a01b900460ff16156113f55760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc814185d5cd95960721b6044820152606401610970565b600a541561143b5760405162461bcd60e51b8152602060048201526013602482015272537570706c79206973206e6f7420456d70747960681b6044820152606401610970565b6036611445611df4565b51146114935760405162461bcd60e51b815260206004820152601d60248201527f62617365555249206973206f6620696d70726f706572206c656e6774680000006044820152606401610970565b6000426011546114a39190612fd2565b9050600081136114cc576040518060600160405280602481526020016132c96024913991505090565b6114d581611ec8565b6040516020016114e59190613011565b60405160208183030381529060405291505090565b60006115068133611a95565b50601155565b6001600160a01b0382163314156115655760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610970565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115dd8133611a95565b50600f805461ffff909216620100000263ffff000019909216919091179055565b61160833836117cc565b6116245760405162461bcd60e51b815260040161097090612ed6565b61163084848484611fc6565b50505050565b606061086382611ff9565b6000828152600c602052604090206001015461165d8133611a95565b610aa68383611c7d565b606061119b6120b2565b600d546001600160a01b031633146116cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610970565b6001600160a01b0381166117305760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610970565b610faa81611dfe565b60006001600160e01b03198216637965db0b60e01b14806108635750610863826120c1565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117938261111a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166118455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610970565b60006118508361111a565b9050806001600160a01b0316846001600160a01b0316148061188b5750836001600160a01b0316611880846108fb565b6001600160a01b0316145b806118bb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166118d68261111a565b6001600160a01b03161461193e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610970565b6001600160a01b0382166119a05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610970565b6119ab8383836120e6565b6119b660008261175e565b6001600160a01b03831660009081526003602052604081208054600192906119df908490613072565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a0d908490613089565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611a7a82846130a1565b9392505050565b80611a8b8161211b565b610f92338361225d565b611a9f8282611345565b610f9257611ab7816001600160a01b031660146122a0565b611ac28360206122a0565b604051602001611ad39291906130c0565b60408051601f198184030181529082905262461bcd60e51b825261097091600401612abb565b611b038282611345565b610f92576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611b3b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611b8a8261111a565b9050611b98816000846120e6565b611ba360008361175e565b6001600160a01b0381166000908152600360205260408120805460019290611bcc908490613072565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b805480611c755760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610970565b600019019055565b611c878282611345565b15610f92576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600d54600160a01b900460ff16611d345760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610970565b600d805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8151611d919061ffff8316611a6e565b611d9a8161211b565b60005b83518161ffff16101561163057611dd1848261ffff1681518110611dc357611dc3612fbc565b60200260200101518461225d565b611dda81613135565b9050611d9d565b8051610f92906006906020840190612997565b606061119b61243c565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d54600160a01b900460ff1615611e7a5760405162461bcd60e51b815260040161097090612f5e565b600d805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d643390565b8051610f92906007906020840190612997565b606081611eec5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f165780611f0081613157565b9150611f0f9050600a83613188565b9150611ef0565b60008167ffffffffffffffff811115611f3157611f31612c09565b6040519080825280601f01601f191660200182016040528015611f5b576020820181803683370190505b5090505b84156118bb57611f70600183613072565b9150611f7d600a8661319c565b611f88906030613089565b60f81b818381518110611f9d57611f9d612fbc565b60200101906001600160f81b031916908160001a905350611fbf600a86613188565b9450611f5f565b611fd18484846118c3565b611fdd8484848461244b565b6116305760405162461bcd60e51b8152600401610970906131b0565b6000818152600260205260409020546060906001600160a01b031661207a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610970565b612082611df4565b61208b83611ec8565b60405160200161209c929190613202565b6040516020818303038152906040529050919050565b60606007805461087890612e9b565b60006001600160e01b0319821663780e9d6360e01b1480610863575061086382612558565b600d54600160a01b900460ff16156121105760405162461bcd60e51b815260040161097090612f5e565b610aa68383836125a8565b600f5461ffff1661212b600a5490565b106121635760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610970565b600f5461ffff9081169061218290831661217c600a5490565b90612660565b11156121dc5760405162461bcd60e51b8152602060048201526024808201527f526571756573746564206d6f726520546f6b656e73207468616e2072656d61696044820152636e696e6760e01b6064820152608401610970565b6121e7600033611345565b80612211575060008161ffff161180156122115750600f5461ffff62010000909104811690821611155b610faa5760405162461bcd60e51b815260206004820152601960248201527f4f757473696465206d696e74207065722074782072616e6765000000000000006044820152606401610970565b60005b8161ffff168161ffff161015610aa65761227e601380546001019055565b6122908361228b60135490565b61266c565b61229981613135565b9050612260565b606060006122af8360026130a1565b6122ba906002613089565b67ffffffffffffffff8111156122d2576122d2612c09565b6040519080825280601f01601f1916602001820160405280156122fc576020820181803683370190505b509050600360fc1b8160008151811061231757612317612fbc565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061234657612346612fbc565b60200101906001600160f81b031916908160001a905350600061236a8460026130a1565b612375906001613089565b90505b60018111156123ed576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106123a9576123a9612fbc565b1a60f81b8282815181106123bf576123bf612fbc565b60200101906001600160f81b031916908160001a90535060049490941c936123e681613241565b9050612378565b508315611a7a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610970565b60606006805461087890612e9b565b60006001600160a01b0384163b1561254d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061248f903390899088908890600401613258565b602060405180830381600087803b1580156124a957600080fd5b505af19250505080156124d9575060408051601f3d908101601f191682019092526124d691810190613295565b60015b612533573d808015612507576040519150601f19603f3d011682016040523d82523d6000602084013e61250c565b606091505b50805161252b5760405162461bcd60e51b8152600401610970906131b0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118bb565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148061258957506001600160e01b03198216635b5e139f60e01b145b8061086357506301ffc9a760e01b6001600160e01b0319831614610863565b6001600160a01b038316612603576125fe81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b612626565b816001600160a01b0316836001600160a01b031614612626576126268382612686565b6001600160a01b03821661263d57610aa681612723565b826001600160a01b0316826001600160a01b031614610aa657610aa682826127d2565b6000611a7a8284613089565b610f92828260405180602001604052806000815250612816565b60006001612693846111a0565b61269d9190613072565b6000838152600960205260409020549091508082146126f0576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061273590600190613072565b6000838152600b6020526040812054600a805493945090928490811061275d5761275d612fbc565b9060005260206000200154905080600a838154811061277e5761277e612fbc565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806127b6576127b66132b2565b6001900381819060005260206000200160009055905550505050565b60006127dd836111a0565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6128208383612849565b61282d600084848461244b565b610aa65760405162461bcd60e51b8152600401610970906131b0565b6001600160a01b03821661289f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610970565b6000818152600260205260409020546001600160a01b0316156129045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610970565b612910600083836120e6565b6001600160a01b0382166000908152600360205260408120805460019290612939908490613089565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546129a390612e9b565b90600052602060002090601f0160209004810192826129c55760008555612a0b565b82601f106129de57805160ff1916838001178555612a0b565b82800160010185558215612a0b579182015b82811115612a0b5782518255916020019190600101906129f0565b50612a17929150612a1b565b5090565b5b80821115612a175760008155600101612a1c565b6001600160e01b031981168114610faa57600080fd5b600060208284031215612a5857600080fd5b8135611a7a81612a30565b60005b83811015612a7e578181015183820152602001612a66565b838111156116305750506000910152565b60008151808452612aa7816020860160208601612a63565b601f01601f19169290920160200192915050565b602081526000611a7a6020830184612a8f565b600060208284031215612ae057600080fd5b5035919050565b80356001600160a01b0381168114612afe57600080fd5b919050565b60008060408385031215612b1657600080fd5b612b1f83612ae7565b946020939093013593505050565b600080600060608486031215612b4257600080fd5b612b4b84612ae7565b9250612b5960208501612ae7565b9150604084013590509250925092565b803561ffff81168114612afe57600080fd5b600060208284031215612b8d57600080fd5b611a7a82612b69565b80358015158114612afe57600080fd5b600060208284031215612bb857600080fd5b611a7a82612b96565b60008060408385031215612bd457600080fd5b82359150612be460208401612ae7565b90509250929050565b60008060408385031215612c0057600080fd5b612b1f83612b69565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612c4857612c48612c09565b604052919050565b60008060408385031215612c6357600080fd5b823567ffffffffffffffff80821115612c7b57600080fd5b818501915085601f830112612c8f57600080fd5b8135602082821115612ca357612ca3612c09565b8160051b9250612cb4818401612c1f565b8281529284018101928181019089851115612cce57600080fd5b948201945b84861015612cf357612ce486612ae7565b82529482019490820190612cd3565b9650612d029050878201612b69565b9450505050509250929050565b600067ffffffffffffffff831115612d2957612d29612c09565b612d3c601f8401601f1916602001612c1f565b9050828152838383011115612d5057600080fd5b828260208301376000602084830101529392505050565b600060208284031215612d7957600080fd5b813567ffffffffffffffff811115612d9057600080fd5b8201601f81018413612da157600080fd5b6118bb84823560208401612d0f565b600060208284031215612dc257600080fd5b611a7a82612ae7565b60008060408385031215612dde57600080fd5b612de783612ae7565b9150612be460208401612b96565b60008060008060808587031215612e0b57600080fd5b612e1485612ae7565b9350612e2260208601612ae7565b925060408501359150606085013567ffffffffffffffff811115612e4557600080fd5b8501601f81018713612e5657600080fd5b612e6587823560208401612d0f565b91505092959194509250565b60008060408385031215612e8457600080fd5b612e8d83612ae7565b9150612be460208401612ae7565b600181811c90821680612eaf57607f821691505b60208210811415612ed057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff821680612fb257612fb2612f88565b6000190192915050565b634e487b7160e01b600052603260045260246000fd5b60008083128015600160ff1b850184121615612ff057612ff0612f88565b6001600160ff1b038401831381161561300b5761300b612f88565b50500390565b7f416c6c2073797374656d732061726520676f2e204c61756e636820696e3a20748152602d60f81b602082015260008251613053816021850160208701612a63565b67207365636f6e647360c01b6021939091019283015250602901919050565b60008282101561308457613084612f88565b500390565b6000821982111561309c5761309c612f88565b500190565b60008160001904831182151516156130bb576130bb612f88565b500290565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516130f8816017850160208801612a63565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613129816028840160208801612a63565b01602801949350505050565b600061ffff8083168181141561314d5761314d612f88565b6001019392505050565b600060001982141561316b5761316b612f88565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261319757613197613172565b500490565b6000826131ab576131ab613172565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351613214818460208801612a63565b835190830190613228818360208801612a63565b64173539b7b760d91b9101908152600501949350505050565b60008161325057613250612f88565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061328b90830184612a8f565b9695505050505050565b6000602082840312156132a757600080fd5b8151611a7a81612a30565b634e487b7160e01b600052603160045260246000fdfe416c6c2073797374656d732061726520676f2e20576520617265204c61756e636865642ea26469706673582212205b1066865dce79e838663ce5dac2cd56720f99725bb3f57313cb1b9f5a3dee6664736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d534264706e4a5143434363445a3770767835644342317175327a42414b7a43364b757767736542777972376d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d59457a596764384c314c6b39713963546f6b55575650345066524d68624d457a5331353843534c45526470450000000000000000000000
-----Decoded View---------------
Arg [0] : baseURI_ (string): ipfs://QmSBdpnJQCCCcDZ7pvx5dCB1qu2zBAKzC6KuwgseBwyr7m/
Arg [1] : contractURI_ (string): ipfs://QmYEzYgd8L1Lk9q9cTokUWVP4PfRMhbMEzS158CSLERdpE
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [3] : 697066733a2f2f516d534264706e4a5143434363445a37707678356443423171
Arg [4] : 75327a42414b7a43364b757767736542777972376d2f00000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [6] : 697066733a2f2f516d59457a596764384c314c6b39713963546f6b5557565034
Arg [7] : 5066524d68624d457a5331353843534c45526470450000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
126 absolutely zooted NFT bears on a mission to go Pro.Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.