ERC-721
Source Code
NFT
Overview
Max Total Supply
0 GM
Holders
3,066
Transfers
-
0
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
Generativemasks
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED
pragma solidity =0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./../extensions/HasSecondarySaleFees.sol";
interface iGenerativemasks {
function price() external returns (uint256);
function remainingAmount() external returns (uint256);
function mintForPromotion(uint256 amount) external;
function buy(uint256 amount) external payable;
function withdrawETH() external;
function switchOnSale() external;
function lottery() external;
}
contract Generativemasks is iGenerativemasks, ERC721Burnable, HasSecondarySaleFees, Ownable {
using Strings for uint256;
bool private _isOnSale;
string private baseURI;
uint256 private constant NFT_SUPPLY_AMOUNT = 10000;
uint256 public nextTokenId;
uint256 private _price = 0.1 ether;
uint256 public lotterySeed;
uint256 public metadataIndex;
uint256 private _revealDate;
address payable[2] royaltyRecipients;
constructor(
string memory initialBaseURI,
address payable[2] memory _royaltyRecipients,
uint256 __revealDate
)
ERC721("Generativemasks", "GM")
HasSecondarySaleFees(new address payable[](0), new uint256[](0))
{
require(_royaltyRecipients[0] != address(0), "Invalid address");
require(_royaltyRecipients[1] != address(0), "Invalid address");
require(0 < __revealDate, "Invalid date");
baseURI = initialBaseURI;
royaltyRecipients = _royaltyRecipients;
_revealDate = __revealDate;
address payable[] memory thisAddressInArray = new address payable[](1);
thisAddressInArray[0] = payable(address(this));
uint256[] memory royaltyWithTwoDecimals = new uint256[](1);
royaltyWithTwoDecimals[0] = 1000;
_setCommonRoyalties(thisAddressInArray, royaltyWithTwoDecimals);
}
function price() external override view returns (uint256) {
return _price;
}
function remainingAmount() external override view returns (uint256) {
return NFT_SUPPLY_AMOUNT - nextTokenId;
}
function mintForPromotion(uint256 amount) external override onlyOwner {
require(!_isOnSale, "On sale");
require(nextTokenId < 500, "All tokens for promotion are minted");
for (uint256 i = 0; i < amount; i++) {
_mint(msg.sender, nextTokenId++);
}
}
function buy(uint256 amount) external payable override {
require(_isOnSale, "Not on sale");
require(0 != amount, "Incorrect amount");
require(msg.value == amount * _price, "Incorrect value");
require(nextTokenId + amount <= NFT_SUPPLY_AMOUNT, "No remaining tokens");
for (uint256 i = 0; i < amount; i++) {
_mint(msg.sender, nextTokenId++);
}
if (lotterySeed != 0) {
return;
}
if (nextTokenId == NFT_SUPPLY_AMOUNT || _revealDate < block.timestamp) {
lotterySeed = block.number;
}
}
function withdrawETH() external override {
uint256 royalty = address(this).balance / 2;
Address.sendValue(payable(royaltyRecipients[0]), royalty);
Address.sendValue(payable(royaltyRecipients[1]), royalty);
}
function lottery() external override {
require(metadataIndex == 0, "Metadata index is already set");
require(lotterySeed != 0, "Lottery seed must be set");
metadataIndex = uint256(blockhash(lotterySeed)) % NFT_SUPPLY_AMOUNT;
if ((block.number - lotterySeed) > 255) {
metadataIndex = uint256(blockhash(block.number - 1)) % NFT_SUPPLY_AMOUNT;
}
if (metadataIndex == 0) {
metadataIndex = metadataIndex + 1;
}
}
function switchOnSale() external override onlyOwner {
require(nextTokenId == 500, "Invalid id");
_isOnSale = true;
}
function updateBaseURI(string calldata newBaseURI) external onlyOwner {
baseURI = newBaseURI;
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
if (metadataIndex == 0) {
return string(abi.encodePacked(baseURI, "unrevealed.json"));
}
uint256 metadataId = (tokenId + metadataIndex) % NFT_SUPPLY_AMOUNT;
return string(abi.encodePacked(baseURI, metadataId.toString(), ".json"));
}
receive() external payable {}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721, HasSecondarySaleFees)
returns (bool)
{
return ERC721.supportsInterface(interfaceId) ||
HasSecondarySaleFees.supportsInterface(interfaceId);
}
}// 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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), 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 {
emit OwnershipTransferred(_owner, address(0));
_owner = 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");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "../../../utils/Context.sol";
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenId` or be an approved operator.
*/
function burn(uint256 tokenId) public virtual {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
_burn(tokenId);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// this is copied from chocomintapp/chocofactory
// https://github.com/chocomintapp/chocofactory/blob/main/packages/contracts/contracts/extentions/HasSecondarySaleFees.sol
// modified by TART-tokyo
pragma solidity =0.8.6;
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
interface IHasSecondarySaleFees {
function getFeeBps(uint256 id) external view returns (uint256[] memory);
function getFeeRecipients(uint256 id) external view returns (address payable[] memory);
}
contract HasSecondarySaleFees is IERC165, IHasSecondarySaleFees {
event ChangeCommonRoyalty(
address payable[] royaltyAddresses,
uint256[] royaltiesWithTwoDecimals
);
event ChangeRoyalty(
uint256 id,
address payable[] royaltyAddresses,
uint256[] royaltiesWithTwoDecimals
);
struct RoyaltyInfo {
bool isPresent;
address payable[] royaltyAddresses;
uint256[] royaltiesWithTwoDecimals;
}
mapping(bytes32 => RoyaltyInfo) royaltyInfoMap;
mapping(uint256 => bytes32) tokenRoyaltyMap;
address payable[] public commonRoyaltyAddresses;
uint256[] public commonRoyaltiesWithTwoDecimals;
constructor(
address payable[] memory _commonRoyaltyAddresses,
uint256[] memory _commonRoyaltiesWithTwoDecimals
) {
_setCommonRoyalties(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals);
}
function _setRoyaltiesOf(
uint256 _tokenId,
address payable[] memory _royaltyAddresses,
uint256[] memory _royaltiesWithTwoDecimals
) internal {
require(_royaltyAddresses.length == _royaltiesWithTwoDecimals.length, "input length must be same");
bytes32 key = 0x0;
for (uint256 i = 0; i < _royaltyAddresses.length; i++) {
require(_royaltyAddresses[i] != address(0), "Must not be zero-address");
key = keccak256(abi.encodePacked(key, _royaltyAddresses[i], _royaltiesWithTwoDecimals[i]));
}
tokenRoyaltyMap[_tokenId] = key;
emit ChangeRoyalty(_tokenId, _royaltyAddresses, _royaltiesWithTwoDecimals);
if (royaltyInfoMap[key].isPresent) {
return;
}
royaltyInfoMap[key] = RoyaltyInfo(
true,
_royaltyAddresses,
_royaltiesWithTwoDecimals
);
}
function _setCommonRoyalties(
address payable[] memory _commonRoyaltyAddresses,
uint256[] memory _commonRoyaltiesWithTwoDecimals
) internal {
require(_commonRoyaltyAddresses.length == _commonRoyaltiesWithTwoDecimals.length, "input length must be same");
for (uint256 i = 0; i < _commonRoyaltyAddresses.length; i++) {
require(_commonRoyaltyAddresses[i] != address(0), "Must not be zero-address");
}
commonRoyaltyAddresses = _commonRoyaltyAddresses;
commonRoyaltiesWithTwoDecimals = _commonRoyaltiesWithTwoDecimals;
emit ChangeCommonRoyalty(_commonRoyaltyAddresses, _commonRoyaltiesWithTwoDecimals);
}
function getFeeRecipients(uint256 _tokenId)
public view override returns (address payable[] memory)
{
RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]];
if (!royaltyInfo.isPresent) {
return commonRoyaltyAddresses;
}
uint256 length = commonRoyaltyAddresses.length + royaltyInfo.royaltyAddresses.length;
address payable[] memory recipients = new address payable[](length);
for (uint256 i = 0; i < commonRoyaltyAddresses.length; i++) {
recipients[i] = commonRoyaltyAddresses[i];
}
for (uint256 i = 0; i < royaltyInfo.royaltyAddresses.length; i++) {
recipients[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltyAddresses[i];
}
return recipients;
}
function getFeeBps(uint256 _tokenId) public view override returns (uint256[] memory) {
RoyaltyInfo memory royaltyInfo = royaltyInfoMap[tokenRoyaltyMap[_tokenId]];
if (!royaltyInfo.isPresent) {
return commonRoyaltiesWithTwoDecimals;
}
uint256 length = commonRoyaltiesWithTwoDecimals.length + royaltyInfo.royaltiesWithTwoDecimals.length;
uint256[] memory fees = new uint256[](length);
for (uint256 i = 0; i < commonRoyaltiesWithTwoDecimals.length; i++) {
fees[i] = commonRoyaltiesWithTwoDecimals[i];
}
for (uint256 i = 0; i < royaltyInfo.royaltiesWithTwoDecimals.length; i++) {
fees[i + commonRoyaltyAddresses.length] = royaltyInfo.royaltiesWithTwoDecimals[i];
}
return fees;
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(IERC165)
returns (bool)
{
return interfaceId == type(IHasSecondarySaleFees).interfaceId;
}
}// 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) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}// 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}. 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(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
// solhint-disable-next-line no-inline-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` 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 { }
}// 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;
// solhint-disable-next-line no-inline-assembly
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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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
// solhint-disable-next-line no-inline-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 "./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);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"initialBaseURI","type":"string"},{"internalType":"address payable[2]","name":"_royaltyRecipients","type":"address[2]"},{"internalType":"uint256","name":"__revealDate","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeCommonRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"royaltyAddresses","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"royaltiesWithTwoDecimals","type":"uint256[]"}],"name":"ChangeRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltiesWithTwoDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"commonRoyaltyAddresses","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lottery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lotterySeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintForPromotion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchOnSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405267016345785d8a0000600d553480156200001d57600080fd5b506040516200306a3803806200306a83398101604081905262000040916200064f565b6040805160008082526020808301828152608084018552600f8486019081526e47656e657261746976656d61736b7360881b6060860190815286518088019097526002875261474d60f01b9387019390935280519495919490939192620000a8929162000434565b508051620000be90600190602084019062000434565b505050620000d38282620002d260201b60201c565b5050600a80546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35081516001600160a01b0316620001675760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b60208201516001600160a01b0316620001b55760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016200015e565b80600010620001f65760405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206461746560a01b60448201526064016200015e565b82516200020b90600b90602086019062000434565b506200021b6011836002620004c3565b5060108190556040805160018082528183019092526000916020808301908036833701905050905030816000815181106200025a576200025a6200084d565b6001600160a01b0392909216602092830291909101909101526040805160018082528183019092526000918160200160208202803683370190505090506103e881600081518110620002b057620002b06200084d565b6020908102919091010152620002c78282620002d2565b505050505062000879565b8051825114620003255760405162461bcd60e51b815260206004820152601960248201527f696e707574206c656e677468206d7573742062652073616d650000000000000060448201526064016200015e565b60005b8251811015620003c85760006001600160a01b03168382815181106200035257620003526200084d565b60200260200101516001600160a01b03161415620003b35760405162461bcd60e51b815260206004820152601860248201527f4d757374206e6f74206265207a65726f2d61646472657373000000000000000060448201526064016200015e565b80620003bf8162000823565b91505062000328565b508151620003de9060089060208501906200050e565b508051620003f490600990602084019062000565565b507f5d2bfbaa8b7f0a1c8af86340416cb6051131510959c7fd9ab84a1c75fed9464f8282604051620004289291906200072b565b60405180910390a15050565b8280546200044290620007e6565b90600052602060002090601f016020900481019282620004665760008555620004b1565b82601f106200048157805160ff1916838001178555620004b1565b82800160010185558215620004b1579182015b82811115620004b157825182559160200191906001019062000494565b50620004bf929150620005a2565b5090565b8260028101928215620004b1579160200282015b82811115620004b157825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004d7565b828054828255906000526020600020908101928215620004b15791602002820182811115620004b157825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004d7565b828054828255906000526020600020908101928215620004b15791602002820182811115620004b157825182559160200191906001019062000494565b5b80821115620004bf5760008155600101620005a3565b600082601f830112620005cb57600080fd5b604080519081016001600160401b0381118282101715620005f057620005f062000863565b80604052508083856040860111156200060857600080fd5b6000805b6002811015620006435782516001600160a01b03811681146200062d578283fd5b845260209384019392909201916001016200060c565b50929695505050505050565b6000806000608084860312156200066557600080fd5b83516001600160401b03808211156200067d57600080fd5b818601915086601f8301126200069257600080fd5b815181811115620006a757620006a762000863565b60209150620006bf601f8201601f19168301620007b3565b8181528883838601011115620006d457600080fd5b60005b82811015620006f4578481018401518282018501528301620006d7565b82811115620007065760008484840101525b50955062000719905087878301620005b9565b93505050606084015190509250925092565b604080825283519082018190526000906020906060840190828701845b828110156200076f5781516001600160a01b03168452928401929084019060010162000748565b5050508381038285015284518082528583019183019060005b81811015620007a65783518352928401929184019160010162000788565b5090979650505050505050565b604051601f8201601f191681016001600160401b0381118282101715620007de57620007de62000863565b604052919050565b600181811c90821680620007fb57607f821691505b602082108114156200081d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200084657634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6127e180620008896000396000f3fe6080604052600436106101e75760003560e01c8063931688cb11610102578063ba13a57211610095578063e086e5ec11610064578063e086e5ec1461055d578063e985e9c514610572578063f2fde38b146105bb578063fd06ca86146105db57600080fd5b8063ba13a572146104f5578063c3a983b21461050a578063c87b56dd1461052a578063d96a094a1461054a57600080fd5b8063a22cb465116100d1578063a22cb46514610473578063a50a1fe614610493578063b88d4fde146104a8578063b9c4d9fb146104c857600080fd5b8063931688cb1461041457806395d89b41146104345780639c7fdce214610449578063a035b1fe1461045e57600080fd5b806342966c681161017a578063715018a611610149578063715018a6146103b557806375794a3c146103ca5780638da5cb5b146103e05780638fa3a33c146103fe57600080fd5b806342966c681461033f5780635b975d6b1461035f5780636352211e1461037557806370a082311461039557600080fd5b80630ebd4c7f116101b65780630ebd4c7f146102a45780631196a0c4146102d157806323b872dd146102ff57806342842e0e1461031f57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b31461028257600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021361020e3660046122ad565b6105fb565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610627565b60405161021f919061255a565b34801561025657600080fd5b5061026a610265366004612359565b6106b9565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004612283565b610753565b005b3480156102b057600080fd5b506102c46102bf366004612359565b610869565b60405161021f9190612522565b3480156102dd57600080fd5b506102f16102ec366004612359565b610ae4565b60405190815260200161021f565b34801561030b57600080fd5b506102a261031a36600461212f565b610b05565b34801561032b57600080fd5b506102a261033a36600461212f565b610b37565b34801561034b57600080fd5b506102a261035a366004612359565b610b52565b34801561036b57600080fd5b506102f1600f5481565b34801561038157600080fd5b5061026a610390366004612359565b610bcc565b3480156103a157600080fd5b506102f16103b03660046120da565b610c43565b3480156103c157600080fd5b506102a2610cca565b3480156103d657600080fd5b506102f1600c5481565b3480156103ec57600080fd5b50600a546001600160a01b031661026a565b34801561040a57600080fd5b506102f1600e5481565b34801561042057600080fd5b506102a261042f3660046122e7565b610d3e565b34801561044057600080fd5b5061023d610d74565b34801561045557600080fd5b506102a2610d83565b34801561046a57600080fd5b50600d546102f1565b34801561047f57600080fd5b506102a261048e366004612247565b610e02565b34801561049f57600080fd5b506102f1610ec7565b3480156104b457600080fd5b506102a26104c336600461216b565b610ede565b3480156104d457600080fd5b506104e86104e3366004612359565b610f16565b60405161021f91906124d5565b34801561050157600080fd5b506102a26111be565b34801561051657600080fd5b5061026a610525366004612359565b6112bf565b34801561053657600080fd5b5061023d610545366004612359565b6112e9565b6102a2610558366004612359565b6113e9565b34801561056957600080fd5b506102a2611579565b34801561057e57600080fd5b5061021361058d3660046120fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105c757600080fd5b506102a26105d63660046120da565b6115ad565b3480156105e757600080fd5b506102a26105f6366004612359565b611698565b60006106068261179c565b806106215750632dde656160e21b6001600160e01b03198316145b92915050565b606060008054610636906126d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610662906126d3565b80156106af5780601f10610684576101008083540402835291602001916106af565b820191906000526020600020905b81548152906001019060200180831161069257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075e82610bcc565b9050806001600160a01b0316836001600160a01b031614156107cc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161072e565b336001600160a01b03821614806107e857506107e8813361058d565b61085a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161072e565b61086483836117ec565b505050565b600081815260076020908152604080832054835260068252808320815160608181018452825460ff16151582526001830180548551818802810188019096528086529196959294858401939092908301828280156108f057602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108d2575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561094857602002820191906000526020600020905b815481526020019060010190808311610934575b505050505081525050905080600001516109b55760098054806020026020016040519081016040528092919081815260200182805480156109a857602002820191906000526020600020905b815481526020019060010190808311610994575b5050505050915050919050565b6040810151516009546000916109ca91612645565b905060008167ffffffffffffffff8111156109e7576109e761277f565b604051908082528060200260200182016040528015610a10578160200160208202803683370190505b50905060005b600954811015610a6d5760098181548110610a3357610a33612769565b9060005260206000200154828281518110610a5057610a50612769565b602090810291909101015280610a658161270e565b915050610a16565b5060005b836040015151811015610adb5783604001518181518110610a9457610a94612769565b60200260200101518260088054905083610aae9190612645565b81518110610abe57610abe612769565b602090810291909101015280610ad38161270e565b915050610a71565b50949350505050565b60098181548110610af457600080fd5b600091825260209091200154905081565b610b10335b8261185a565b610b2c5760405162461bcd60e51b815260040161072e906125f4565b610864838383611951565b61086483838360405180602001604052806000815250610ede565b610b5b33610b0a565b610bc05760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161072e565b610bc981611af1565b50565b6000818152600260205260408120546001600160a01b0316806106215760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161072e565b60006001600160a01b038216610cae5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161072e565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610cf45760405162461bcd60e51b815260040161072e906125bf565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b03163314610d685760405162461bcd60e51b815260040161072e906125bf565b610864600b8383612025565b606060018054610636906126d3565b600a546001600160a01b03163314610dad5760405162461bcd60e51b815260040161072e906125bf565b600c546101f414610ded5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a59081a5960b21b604482015260640161072e565b600a805460ff60a01b1916600160a01b179055565b6001600160a01b038216331415610e5b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161072e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000600c54612710610ed99190612690565b905090565b610ee8338361185a565b610f045760405162461bcd60e51b815260040161072e906125f4565b610f1084848484611b8c565b50505050565b600081815260076020908152604080832054835260068252808320815160608181018452825460ff1615158252600183018054855181880281018801909652808652919695929485840193909290830182828015610f9d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f7f575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610ff557602002820191906000526020600020905b815481526020019060010190808311610fe1575b5050505050815250509050806000015161106b5760088054806020026020016040519081016040528092919081815260200182805480156109a857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611041575050505050915050919050565b60208101515160085460009161108091612645565b905060008167ffffffffffffffff81111561109d5761109d61277f565b6040519080825280602002602001820160405280156110c6578160200160208202803683370190505b50905060005b60085481101561114357600881815481106110e9576110e9612769565b9060005260206000200160009054906101000a90046001600160a01b031682828151811061111957611119612769565b6001600160a01b03909216602092830291909101909101528061113b8161270e565b9150506110cc565b5060005b836020015151811015610adb578360200151818151811061116a5761116a612769565b602002602001015182600880549050836111849190612645565b8151811061119457611194612769565b6001600160a01b0390921660209283029190910190910152806111b68161270e565b915050611147565b600f541561120e5760405162461bcd60e51b815260206004820152601d60248201527f4d6574616461746120696e64657820697320616c726561647920736574000000604482015260640161072e565b600e5461125d5760405162461bcd60e51b815260206004820152601860248201527f4c6f74746572792073656564206d757374206265207365740000000000000000604482015260640161072e565b600e5461126e906127109040612729565b600f55600e5460ff906112819043612690565b11156112a457612710611295600143612690565b6112a0919040612729565b600f555b600f546112bd57600f546112b9906001612645565b600f555b565b600881815481106112cf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600260205260409020546060906001600160a01b03166113685760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161072e565b600f5461139757600b604051602001611381919061246d565b6040516020818303038152906040529050919050565b6000612710600f54846113aa9190612645565b6113b49190612729565b9050600b6113c182611bbf565b6040516020016113d2929190612438565b604051602081830303815290604052915050919050565b600a54600160a01b900460ff166114305760405162461bcd60e51b815260206004820152600b60248201526a4e6f74206f6e2073616c6560a81b604482015260640161072e565b806114705760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b604482015260640161072e565b600d5461147d9082612671565b34146114bd5760405162461bcd60e51b815260206004820152600f60248201526e496e636f72726563742076616c756560881b604482015260640161072e565b61271081600c546114ce9190612645565b11156115125760405162461bcd60e51b81526020600482015260136024820152724e6f2072656d61696e696e6720746f6b656e7360681b604482015260640161072e565b60005b8181101561154e57600c805461153c9133919060006115338361270e565b91905055611cbd565b806115468161270e565b915050611515565b50600e541561155a5750565b612710600c54148061156d575042601054105b15610bc95743600e5550565b600061158660024761265d565b90506115a1601160005b01546001600160a01b031682611dff565b610bc960116001611590565b600a546001600160a01b031633146115d75760405162461bcd60e51b815260040161072e906125bf565b6001600160a01b03811661163c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072e565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146116c25760405162461bcd60e51b815260040161072e906125bf565b600a54600160a01b900460ff16156117065760405162461bcd60e51b81526020600482015260076024820152664f6e2073616c6560c81b604482015260640161072e565b6101f4600c54106117655760405162461bcd60e51b815260206004820152602360248201527f416c6c20746f6b656e7320666f722070726f6d6f74696f6e20617265206d696e6044820152621d195960ea1b606482015260840161072e565b60005b8181101561179857600c80546117869133919060006115338361270e565b806117908161270e565b915050611768565b5050565b60006001600160e01b031982166380ac58cd60e01b14806117cd57506001600160e01b03198216635b5e139f60e01b145b8061062157506301ffc9a760e01b6001600160e01b0319831614610621565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061182182610bcc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166118d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161072e565b60006118de83610bcc565b9050806001600160a01b0316846001600160a01b031614806119195750836001600160a01b031661190e846106b9565b6001600160a01b0316145b8061194957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661196482610bcc565b6001600160a01b0316146119cc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161072e565b6001600160a01b038216611a2e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161072e565b611a396000826117ec565b6001600160a01b0383166000908152600360205260408120805460019290611a62908490612690565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a90908490612645565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611afc82610bcc565b9050611b096000836117ec565b6001600160a01b0381166000908152600360205260408120805460019290611b32908490612690565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611b97848484611951565b611ba384848484611f18565b610f105760405162461bcd60e51b815260040161072e9061256d565b606081611be35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c0d5780611bf78161270e565b9150611c069050600a8361265d565b9150611be7565b60008167ffffffffffffffff811115611c2857611c2861277f565b6040519080825280601f01601f191660200182016040528015611c52576020820181803683370190505b5090505b841561194957611c67600183612690565b9150611c74600a86612729565b611c7f906030612645565b60f81b818381518110611c9457611c94612769565b60200101906001600160f81b031916908160001a905350611cb6600a8661265d565b9450611c56565b6001600160a01b038216611d135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161072e565b6000818152600260205260409020546001600160a01b031615611d785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161072e565b6001600160a01b0382166000908152600360205260408120805460019290611da1908490612645565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015611e4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161072e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e9c576040519150601f19603f3d011682016040523d82523d6000602084013e611ea1565b606091505b50509050806108645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161072e565b60006001600160a01b0384163b1561201a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f5c903390899088908890600401612498565b602060405180830381600087803b158015611f7657600080fd5b505af1925050508015611fa6575060408051601f3d908101601f19168201909252611fa3918101906122ca565b60015b612000573d808015611fd4576040519150601f19603f3d011682016040523d82523d6000602084013e611fd9565b606091505b508051611ff85760405162461bcd60e51b815260040161072e9061256d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611949565b506001949350505050565b828054612031906126d3565b90600052602060002090601f0160209004810192826120535760008555612099565b82601f1061206c5782800160ff19823516178555612099565b82800160010185558215612099579182015b8281111561209957823582559160200191906001019061207e565b506120a59291506120a9565b5090565b5b808211156120a557600081556001016120aa565b80356001600160a01b03811681146120d557600080fd5b919050565b6000602082840312156120ec57600080fd5b6120f5826120be565b9392505050565b6000806040838503121561210f57600080fd5b612118836120be565b9150612126602084016120be565b90509250929050565b60008060006060848603121561214457600080fd5b61214d846120be565b925061215b602085016120be565b9150604084013590509250925092565b6000806000806080858703121561218157600080fd5b61218a856120be565b9350612198602086016120be565b925060408501359150606085013567ffffffffffffffff808211156121bc57600080fd5b818701915087601f8301126121d057600080fd5b8135818111156121e2576121e261277f565b604051601f8201601f19908116603f0116810190838211818310171561220a5761220a61277f565b816040528281528a602084870101111561222357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561225a57600080fd5b612263836120be565b91506020830135801515811461227857600080fd5b809150509250929050565b6000806040838503121561229657600080fd5b61229f836120be565b946020939093013593505050565b6000602082840312156122bf57600080fd5b81356120f581612795565b6000602082840312156122dc57600080fd5b81516120f581612795565b600080602083850312156122fa57600080fd5b823567ffffffffffffffff8082111561231257600080fd5b818501915085601f83011261232657600080fd5b81358181111561233557600080fd5b86602082850101111561234757600080fd5b60209290920196919550909350505050565b60006020828403121561236b57600080fd5b5035919050565b6000815180845261238a8160208601602086016126a7565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806123b857607f831692505b60208084108214156123da57634e487b7160e01b600052602260045260246000fd5b8180156123ee57600181146123ff5761242c565b60ff1986168952848901965061242c565b60008881526020902060005b868110156124245781548b82015290850190830161240b565b505084890196505b50505050505092915050565b6000612444828561239e565b83516124548183602088016126a7565b64173539b7b760d91b9101908152600501949350505050565b6000612479828461239e565b6e3ab73932bb32b0b632b2173539b7b760891b8152600f019392505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124cb90830184612372565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125165783516001600160a01b0316835292840192918401916001016124f1565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125165783518352928401929184019160010161253e565b6020815260006120f56020830184612372565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156126585761265861273d565b500190565b60008261266c5761266c612753565b500490565b600081600019048311821515161561268b5761268b61273d565b500290565b6000828210156126a2576126a261273d565b500390565b60005b838110156126c25781810151838201526020016126aa565b83811115610f105750506000910152565b600181811c908216806126e757607f821691505b6020821081141561270857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127225761272261273d565b5060010190565b60008261273857612738612753565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610bc957600080fdfea2646970667358221220ad6930de1250b09b12ed68675fa53149ce0b9155b6439486ac4bf01add1d875864736f6c634300080600330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000329f3a45a09566c1118d10260bdadff901a0702e0000000000000000000000008994f0775318c212a3f79190d5f63206379bebff000000000000000000000000000000000000000000000000000000006124b510000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d525339346b634143505554697156447637634a6e535661414374726674594d434e7a35764175317735636f6b2f00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101e75760003560e01c8063931688cb11610102578063ba13a57211610095578063e086e5ec11610064578063e086e5ec1461055d578063e985e9c514610572578063f2fde38b146105bb578063fd06ca86146105db57600080fd5b8063ba13a572146104f5578063c3a983b21461050a578063c87b56dd1461052a578063d96a094a1461054a57600080fd5b8063a22cb465116100d1578063a22cb46514610473578063a50a1fe614610493578063b88d4fde146104a8578063b9c4d9fb146104c857600080fd5b8063931688cb1461041457806395d89b41146104345780639c7fdce214610449578063a035b1fe1461045e57600080fd5b806342966c681161017a578063715018a611610149578063715018a6146103b557806375794a3c146103ca5780638da5cb5b146103e05780638fa3a33c146103fe57600080fd5b806342966c681461033f5780635b975d6b1461035f5780636352211e1461037557806370a082311461039557600080fd5b80630ebd4c7f116101b65780630ebd4c7f146102a45780631196a0c4146102d157806323b872dd146102ff57806342842e0e1461031f57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b31461028257600080fd5b366101ee57005b600080fd5b3480156101ff57600080fd5b5061021361020e3660046122ad565b6105fb565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610627565b60405161021f919061255a565b34801561025657600080fd5b5061026a610265366004612359565b6106b9565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004612283565b610753565b005b3480156102b057600080fd5b506102c46102bf366004612359565b610869565b60405161021f9190612522565b3480156102dd57600080fd5b506102f16102ec366004612359565b610ae4565b60405190815260200161021f565b34801561030b57600080fd5b506102a261031a36600461212f565b610b05565b34801561032b57600080fd5b506102a261033a36600461212f565b610b37565b34801561034b57600080fd5b506102a261035a366004612359565b610b52565b34801561036b57600080fd5b506102f1600f5481565b34801561038157600080fd5b5061026a610390366004612359565b610bcc565b3480156103a157600080fd5b506102f16103b03660046120da565b610c43565b3480156103c157600080fd5b506102a2610cca565b3480156103d657600080fd5b506102f1600c5481565b3480156103ec57600080fd5b50600a546001600160a01b031661026a565b34801561040a57600080fd5b506102f1600e5481565b34801561042057600080fd5b506102a261042f3660046122e7565b610d3e565b34801561044057600080fd5b5061023d610d74565b34801561045557600080fd5b506102a2610d83565b34801561046a57600080fd5b50600d546102f1565b34801561047f57600080fd5b506102a261048e366004612247565b610e02565b34801561049f57600080fd5b506102f1610ec7565b3480156104b457600080fd5b506102a26104c336600461216b565b610ede565b3480156104d457600080fd5b506104e86104e3366004612359565b610f16565b60405161021f91906124d5565b34801561050157600080fd5b506102a26111be565b34801561051657600080fd5b5061026a610525366004612359565b6112bf565b34801561053657600080fd5b5061023d610545366004612359565b6112e9565b6102a2610558366004612359565b6113e9565b34801561056957600080fd5b506102a2611579565b34801561057e57600080fd5b5061021361058d3660046120fc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105c757600080fd5b506102a26105d63660046120da565b6115ad565b3480156105e757600080fd5b506102a26105f6366004612359565b611698565b60006106068261179c565b806106215750632dde656160e21b6001600160e01b03198316145b92915050565b606060008054610636906126d3565b80601f0160208091040260200160405190810160405280929190818152602001828054610662906126d3565b80156106af5780601f10610684576101008083540402835291602001916106af565b820191906000526020600020905b81548152906001019060200180831161069257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061075e82610bcc565b9050806001600160a01b0316836001600160a01b031614156107cc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161072e565b336001600160a01b03821614806107e857506107e8813361058d565b61085a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161072e565b61086483836117ec565b505050565b600081815260076020908152604080832054835260068252808320815160608181018452825460ff16151582526001830180548551818802810188019096528086529196959294858401939092908301828280156108f057602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116108d2575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561094857602002820191906000526020600020905b815481526020019060010190808311610934575b505050505081525050905080600001516109b55760098054806020026020016040519081016040528092919081815260200182805480156109a857602002820191906000526020600020905b815481526020019060010190808311610994575b5050505050915050919050565b6040810151516009546000916109ca91612645565b905060008167ffffffffffffffff8111156109e7576109e761277f565b604051908082528060200260200182016040528015610a10578160200160208202803683370190505b50905060005b600954811015610a6d5760098181548110610a3357610a33612769565b9060005260206000200154828281518110610a5057610a50612769565b602090810291909101015280610a658161270e565b915050610a16565b5060005b836040015151811015610adb5783604001518181518110610a9457610a94612769565b60200260200101518260088054905083610aae9190612645565b81518110610abe57610abe612769565b602090810291909101015280610ad38161270e565b915050610a71565b50949350505050565b60098181548110610af457600080fd5b600091825260209091200154905081565b610b10335b8261185a565b610b2c5760405162461bcd60e51b815260040161072e906125f4565b610864838383611951565b61086483838360405180602001604052806000815250610ede565b610b5b33610b0a565b610bc05760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161072e565b610bc981611af1565b50565b6000818152600260205260408120546001600160a01b0316806106215760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161072e565b60006001600160a01b038216610cae5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161072e565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610cf45760405162461bcd60e51b815260040161072e906125bf565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546001600160a01b03163314610d685760405162461bcd60e51b815260040161072e906125bf565b610864600b8383612025565b606060018054610636906126d3565b600a546001600160a01b03163314610dad5760405162461bcd60e51b815260040161072e906125bf565b600c546101f414610ded5760405162461bcd60e51b815260206004820152600a602482015269125b9d985b1a59081a5960b21b604482015260640161072e565b600a805460ff60a01b1916600160a01b179055565b6001600160a01b038216331415610e5b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161072e565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000600c54612710610ed99190612690565b905090565b610ee8338361185a565b610f045760405162461bcd60e51b815260040161072e906125f4565b610f1084848484611b8c565b50505050565b600081815260076020908152604080832054835260068252808320815160608181018452825460ff1615158252600183018054855181880281018801909652808652919695929485840193909290830182828015610f9d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f7f575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610ff557602002820191906000526020600020905b815481526020019060010190808311610fe1575b5050505050815250509050806000015161106b5760088054806020026020016040519081016040528092919081815260200182805480156109a857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611041575050505050915050919050565b60208101515160085460009161108091612645565b905060008167ffffffffffffffff81111561109d5761109d61277f565b6040519080825280602002602001820160405280156110c6578160200160208202803683370190505b50905060005b60085481101561114357600881815481106110e9576110e9612769565b9060005260206000200160009054906101000a90046001600160a01b031682828151811061111957611119612769565b6001600160a01b03909216602092830291909101909101528061113b8161270e565b9150506110cc565b5060005b836020015151811015610adb578360200151818151811061116a5761116a612769565b602002602001015182600880549050836111849190612645565b8151811061119457611194612769565b6001600160a01b0390921660209283029190910190910152806111b68161270e565b915050611147565b600f541561120e5760405162461bcd60e51b815260206004820152601d60248201527f4d6574616461746120696e64657820697320616c726561647920736574000000604482015260640161072e565b600e5461125d5760405162461bcd60e51b815260206004820152601860248201527f4c6f74746572792073656564206d757374206265207365740000000000000000604482015260640161072e565b600e5461126e906127109040612729565b600f55600e5460ff906112819043612690565b11156112a457612710611295600143612690565b6112a0919040612729565b600f555b600f546112bd57600f546112b9906001612645565b600f555b565b600881815481106112cf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600260205260409020546060906001600160a01b03166113685760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161072e565b600f5461139757600b604051602001611381919061246d565b6040516020818303038152906040529050919050565b6000612710600f54846113aa9190612645565b6113b49190612729565b9050600b6113c182611bbf565b6040516020016113d2929190612438565b604051602081830303815290604052915050919050565b600a54600160a01b900460ff166114305760405162461bcd60e51b815260206004820152600b60248201526a4e6f74206f6e2073616c6560a81b604482015260640161072e565b806114705760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b604482015260640161072e565b600d5461147d9082612671565b34146114bd5760405162461bcd60e51b815260206004820152600f60248201526e496e636f72726563742076616c756560881b604482015260640161072e565b61271081600c546114ce9190612645565b11156115125760405162461bcd60e51b81526020600482015260136024820152724e6f2072656d61696e696e6720746f6b656e7360681b604482015260640161072e565b60005b8181101561154e57600c805461153c9133919060006115338361270e565b91905055611cbd565b806115468161270e565b915050611515565b50600e541561155a5750565b612710600c54148061156d575042601054105b15610bc95743600e5550565b600061158660024761265d565b90506115a1601160005b01546001600160a01b031682611dff565b610bc960116001611590565b600a546001600160a01b031633146115d75760405162461bcd60e51b815260040161072e906125bf565b6001600160a01b03811661163c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161072e565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146116c25760405162461bcd60e51b815260040161072e906125bf565b600a54600160a01b900460ff16156117065760405162461bcd60e51b81526020600482015260076024820152664f6e2073616c6560c81b604482015260640161072e565b6101f4600c54106117655760405162461bcd60e51b815260206004820152602360248201527f416c6c20746f6b656e7320666f722070726f6d6f74696f6e20617265206d696e6044820152621d195960ea1b606482015260840161072e565b60005b8181101561179857600c80546117869133919060006115338361270e565b806117908161270e565b915050611768565b5050565b60006001600160e01b031982166380ac58cd60e01b14806117cd57506001600160e01b03198216635b5e139f60e01b145b8061062157506301ffc9a760e01b6001600160e01b0319831614610621565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061182182610bcc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166118d35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161072e565b60006118de83610bcc565b9050806001600160a01b0316846001600160a01b031614806119195750836001600160a01b031661190e846106b9565b6001600160a01b0316145b8061194957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661196482610bcc565b6001600160a01b0316146119cc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161072e565b6001600160a01b038216611a2e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161072e565b611a396000826117ec565b6001600160a01b0383166000908152600360205260408120805460019290611a62908490612690565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a90908490612645565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611afc82610bcc565b9050611b096000836117ec565b6001600160a01b0381166000908152600360205260408120805460019290611b32908490612690565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611b97848484611951565b611ba384848484611f18565b610f105760405162461bcd60e51b815260040161072e9061256d565b606081611be35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c0d5780611bf78161270e565b9150611c069050600a8361265d565b9150611be7565b60008167ffffffffffffffff811115611c2857611c2861277f565b6040519080825280601f01601f191660200182016040528015611c52576020820181803683370190505b5090505b841561194957611c67600183612690565b9150611c74600a86612729565b611c7f906030612645565b60f81b818381518110611c9457611c94612769565b60200101906001600160f81b031916908160001a905350611cb6600a8661265d565b9450611c56565b6001600160a01b038216611d135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161072e565b6000818152600260205260409020546001600160a01b031615611d785760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161072e565b6001600160a01b0382166000908152600360205260408120805460019290611da1908490612645565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015611e4f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161072e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e9c576040519150601f19603f3d011682016040523d82523d6000602084013e611ea1565b606091505b50509050806108645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161072e565b60006001600160a01b0384163b1561201a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f5c903390899088908890600401612498565b602060405180830381600087803b158015611f7657600080fd5b505af1925050508015611fa6575060408051601f3d908101601f19168201909252611fa3918101906122ca565b60015b612000573d808015611fd4576040519150601f19603f3d011682016040523d82523d6000602084013e611fd9565b606091505b508051611ff85760405162461bcd60e51b815260040161072e9061256d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611949565b506001949350505050565b828054612031906126d3565b90600052602060002090601f0160209004810192826120535760008555612099565b82601f1061206c5782800160ff19823516178555612099565b82800160010185558215612099579182015b8281111561209957823582559160200191906001019061207e565b506120a59291506120a9565b5090565b5b808211156120a557600081556001016120aa565b80356001600160a01b03811681146120d557600080fd5b919050565b6000602082840312156120ec57600080fd5b6120f5826120be565b9392505050565b6000806040838503121561210f57600080fd5b612118836120be565b9150612126602084016120be565b90509250929050565b60008060006060848603121561214457600080fd5b61214d846120be565b925061215b602085016120be565b9150604084013590509250925092565b6000806000806080858703121561218157600080fd5b61218a856120be565b9350612198602086016120be565b925060408501359150606085013567ffffffffffffffff808211156121bc57600080fd5b818701915087601f8301126121d057600080fd5b8135818111156121e2576121e261277f565b604051601f8201601f19908116603f0116810190838211818310171561220a5761220a61277f565b816040528281528a602084870101111561222357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561225a57600080fd5b612263836120be565b91506020830135801515811461227857600080fd5b809150509250929050565b6000806040838503121561229657600080fd5b61229f836120be565b946020939093013593505050565b6000602082840312156122bf57600080fd5b81356120f581612795565b6000602082840312156122dc57600080fd5b81516120f581612795565b600080602083850312156122fa57600080fd5b823567ffffffffffffffff8082111561231257600080fd5b818501915085601f83011261232657600080fd5b81358181111561233557600080fd5b86602082850101111561234757600080fd5b60209290920196919550909350505050565b60006020828403121561236b57600080fd5b5035919050565b6000815180845261238a8160208601602086016126a7565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806123b857607f831692505b60208084108214156123da57634e487b7160e01b600052602260045260246000fd5b8180156123ee57600181146123ff5761242c565b60ff1986168952848901965061242c565b60008881526020902060005b868110156124245781548b82015290850190830161240b565b505084890196505b50505050505092915050565b6000612444828561239e565b83516124548183602088016126a7565b64173539b7b760d91b9101908152600501949350505050565b6000612479828461239e565b6e3ab73932bb32b0b632b2173539b7b760891b8152600f019392505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906124cb90830184612372565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125165783516001600160a01b0316835292840192918401916001016124f1565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156125165783518352928401929184019160010161253e565b6020815260006120f56020830184612372565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156126585761265861273d565b500190565b60008261266c5761266c612753565b500490565b600081600019048311821515161561268b5761268b61273d565b500290565b6000828210156126a2576126a261273d565b500390565b60005b838110156126c25781810151838201526020016126aa565b83811115610f105750506000910152565b600181811c908216806126e757607f821691505b6020821081141561270857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127225761272261273d565b5060010190565b60008261273857612738612753565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610bc957600080fdfea2646970667358221220ad6930de1250b09b12ed68675fa53149ce0b9155b6439486ac4bf01add1d875864736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000329f3a45a09566c1118d10260bdadff901a0702e0000000000000000000000008994f0775318c212a3f79190d5f63206379bebff000000000000000000000000000000000000000000000000000000006124b510000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d525339346b634143505554697156447637634a6e535661414374726674594d434e7a35764175317735636f6b2f00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialBaseURI (string): https://ipfs.io/ipfs/QmRS94kcACPUTiqVDv7cJnSVaACtrftYMCNz5vAu1w5cok/
Arg [1] : _royaltyRecipients (address[2]): 0x329f3a45A09566c1118d10260BDadfF901a0702E,0x8994f0775318c212a3f79190d5f63206379BEBFF
Arg [2] : __revealDate (uint256): 1629795600
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000329f3a45a09566c1118d10260bdadff901a0702e
Arg [2] : 0000000000000000000000008994f0775318c212a3f79190d5f63206379bebff
Arg [3] : 000000000000000000000000000000000000000000000000000000006124b510
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [5] : 68747470733a2f2f697066732e696f2f697066732f516d525339346b63414350
Arg [6] : 5554697156447637634a6e535661414374726674594d434e7a35764175317735
Arg [7] : 636f6b2f00000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.