NFT
Overview
TokenID
5008
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Slotie
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** OPENSEA INTERFACES */ /** This is a contract that can act on behalf of an Opensea user. It's a proxy for the user */ contract OwnableDelegateProxy {} /** This represents Opensea's ProxyRegistry contract. We use it to find and approve the opensea proxy contract of each user, which allows for better opensea integration like gassless listing etc. */ contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * Interface for WATTs future token */ interface IWATTs { function updateReward(address _from, address _to) external; } contract Slotie is AccessControl, Ownable, ERC721URIStorage { using SafeMath for uint256; using Strings for uint256; IWATTs public WATTs; /** ADDRESSES */ address public openseaProxyRegistryAddress; address public stakingContract; address public breedingContract; address public WATTS; address public lotteryContract; address public payoutContract; /** NFT DATA */ string public baseURIString = ""; string public preRevealBaseURIString = "https://gateway.pinata.cloud/ipfs/QmZg1fDgK7uDs24KuUZYpA8MMn7ZusdRT96gdNEWYoJazS/"; uint256 public nextTokenId = 0; uint256 public revealDate = 1638903600 + 86400 * 365; /** SCHEDULING */ /** ROLES */ bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); bytes32 public constant DAO_ROLE = keccak256("DAO_ROLE"); /** FLAGS */ bool public isModifiable = true; /** MODIFIERS */ modifier canModify { require(isModifiable, "NOT MODIFIABLE"); _; } /** EVENTS */ event Mint(address to, uint256 amount); event SetStakingContract(address _stakingContract); event SetBreedingContract(address _breedingContract); event SetWATTS(address _WATTS); event SetLotteryContract(address _lotteryContract); event SetPayoutContract(address _payoutContract); constructor( string memory _name, string memory _symbol, address _openseaProxyRegistryAddress ) ERC721(_name, _symbol) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); openseaProxyRegistryAddress = _openseaProxyRegistryAddress; } function setStakingContract(address _stakingContract) external onlyRole(DAO_ROLE) { stakingContract = _stakingContract; emit SetStakingContract(_stakingContract); } function setBreedingContract(address _breedingContract) external onlyRole(DAO_ROLE) { breedingContract = _breedingContract; emit SetBreedingContract(_breedingContract); } function setWATTSContract(address _WATTS) external onlyRole(DAO_ROLE) { WATTS = _WATTS; WATTs = IWATTs(_WATTS); emit SetWATTS(_WATTS); } function setLotteryContract(address _lotteryContract) external onlyRole(DAO_ROLE) { lotteryContract = _lotteryContract; emit SetLotteryContract(_lotteryContract); } function setPayoutContract(address _payoutContract) external onlyRole(DAO_ROLE) { payoutContract = _payoutContract; emit SetPayoutContract(_payoutContract); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (WATTS != address(0)) WATTs.updateReward(from, to); } /** * @dev function to change the baseURI of the metadata */ function setBaseURI(string memory _newBaseURI) external onlyRole(DEFAULT_ADMIN_ROLE) canModify { baseURIString = _newBaseURI; } /** * @dev function to change the baseURI of the metadata */ function setRevealDate(uint256 _revealDate) external onlyRole(DEFAULT_ADMIN_ROLE) canModify { revealDate = _revealDate; } function disableModification() external onlyRole(DEFAULT_ADMIN_ROLE) { isModifiable = false; } /** * @dev returns the baseURI for the metadata. Used by the tokenURI method. * @return the URI of the metadata */ function _baseURI() internal override view returns (string memory) { return baseURIString; } /** * @dev returns tokenURI of tokenId based on reveal date * @return the URI of token tokenid */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (block.timestamp >= revealDate) { return super.tokenURI(tokenId); } else { return string(abi.encodePacked(preRevealBaseURIString, tokenId.toString())); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() external view returns (uint256) { return nextTokenId; } /** * @dev override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Create an instance of the ProxyRegistry contract from Opensea ProxyRegistry proxyRegistry = ProxyRegistry(openseaProxyRegistryAddress); // whitelist the ProxyContract of the owner of the NFT if (address(proxyRegistry.proxies(owner)) == operator) { return true; } if (openseaProxyRegistryAddress == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * @dev override msgSender to allow for meta transactions on OpenSea. */ function _msgSender() override internal view returns (address sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } /** * @dev function to mint tokens to an address. Only * accessible by accounts with a role of MINTER_ROLE * @param amount the amount of tokens to be minted * @param _to the address to which the tokens will be minted to */ function mintTo(uint256 amount, address _to) external onlyRole(MINTER_ROLE) { for (uint i = 0; i < amount; i++) { _safeMint(_to, nextTokenId); nextTokenId = nextTokenId.add(1); } emit Mint(_to, amount); } /** * @dev function to burn token of tokenId. Only * accessible by accounts with a role of BURNER_ROLE * @param tokenId the tokenId to burn */ function burn(uint256 tokenId) external onlyRole(BURNER_ROLE) { _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_openseaProxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_breedingContract","type":"address"}],"name":"SetBreedingContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_lotteryContract","type":"address"}],"name":"SetLotteryContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_payoutContract","type":"address"}],"name":"SetPayoutContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_stakingContract","type":"address"}],"name":"SetStakingContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_WATTS","type":"address"}],"name":"SetWATTS","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WATTS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WATTs","outputs":[{"internalType":"contract IWATTs","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breedingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableModification","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isModifiable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotteryContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","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":"openseaProxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"payoutContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealBaseURIString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_breedingContract","type":"address"}],"name":"setBreedingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lotteryContract","type":"address"}],"name":"setLotteryContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutContract","type":"address"}],"name":"setPayoutContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_revealDate","type":"uint256"}],"name":"setRevealDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingContract","type":"address"}],"name":"setStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_WATTS","type":"address"}],"name":"setWATTSContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040819052600060808190526200001b9160109162000276565b50604051806080016040528060518152602001620032746051913980516200004c9160119160209091019062000276565b506000601255636390e2b06013556014805460ff191660011790553480156200007457600080fd5b50604051620032c5380380620032c58339810160408190526200009791620003e9565b8282620000ad620000a762000113565b62000172565b8151620000c290600290602085019062000276565b508051620000d890600390602084019062000276565b50620000ea91506000905033620001c4565b600a80546001600160a01b0319166001600160a01b039290921691909117905550620004b39050565b6000333014156200016c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200016f9050565b50335b90565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001d08282620001d4565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001d0576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200023262000113565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002849062000476565b90600052602060002090601f016020900481019282620002a85760008555620002f3565b82601f10620002c357805160ff1916838001178555620002f3565b82800160010185558215620002f3579182015b82811115620002f3578251825591602001919060010190620002d6565b506200030192915062000305565b5090565b5b8082111562000301576000815560010162000306565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200034457600080fd5b81516001600160401b03808211156200036157620003616200031c565b604051601f8301601f19908116603f011681019082821181831017156200038c576200038c6200031c565b81604052838152602092508683858801011115620003a957600080fd5b600091505b83821015620003cd5785820183015181830184015290820190620003ae565b83821115620003df5760008385830101525b9695505050505050565b600080600060608486031215620003ff57600080fd5b83516001600160401b03808211156200041757600080fd5b620004258783880162000332565b945060208601519150808211156200043c57600080fd5b506200044b8682870162000332565b604086015190935090506001600160a01b03811681146200046b57600080fd5b809150509250925092565b600181811c908216806200048b57607f821691505b60208210811415620004ad57634e487b7160e01b600052602260045260246000fd5b50919050565b612db180620004c36000396000f3fe608060405234801561001057600080fd5b50600436106103205760003560e01c80638c5527cf116101a7578063bc7872f1116100ee578063d6dc092c11610097578063ee99205c11610071578063ee99205c146106c9578063f1cfe289146106dc578063f2fde38b146106e457600080fd5b8063d6dc092c1461067c578063e985e9c51461068f578063e9c26518146106a257600080fd5b8063cf76a153116100c8578063cf76a1531461063a578063d539139314610642578063d547741f1461066957600080fd5b8063bc7872f114610601578063c87b56dd14610614578063cf002a5f1461062757600080fd5b8063a22cb46511610150578063b723b34e1161012a578063b723b34e146105c8578063b88d4fde146105db578063b92b2dc7146105ee57600080fd5b8063a22cb4651461059a578063b29c662a146105ad578063b5b93a18146105c057600080fd5b806395d89b411161018157806395d89b41146105775780639dd373b91461057f578063a217fddf1461059257600080fd5b80638c5527cf1461051c5780638da5cb5b1461052f57806391d148541461054057600080fd5b8063313455c21161026b57806370a0823111610214578063791b3616116101ee578063791b3616146104e35780637e369823146104f6578063836e33751461050957600080fd5b806370a08231146104bf578063715018a6146104d257806375794a3c146104da57600080fd5b806342966c681161024557806342966c681461048657806355f804b3146104995780636352211e146104ac57600080fd5b8063313455c21461045357806336568abe1461046057806342842e0e1461047357600080fd5b806318160ddd116102cd578063248a9ca3116102a7578063248a9ca3146103f6578063282c51f3146104195780632f2ff15d1461044057600080fd5b806318160ddd146103c85780631e08a9e4146103da57806323b872dd146103e357600080fd5b8063095ea7b3116102fe578063095ea7b31461038d5780630c88b731146103a25780631590a04f146103b557600080fd5b806301ffc9a71461032557806306fdde031461034d578063081812fc14610362575b600080fd5b610338610333366004612747565b6106f7565b60405190151581526020015b60405180910390f35b610355610758565b60405161034491906127bc565b6103756103703660046127cf565b6107ea565b6040516001600160a01b039091168152602001610344565b6103a061039b3660046127fd565b610884565b005b6103a06103b03660046127cf565b6109c8565b6103a06103c3366004612829565b610a33565b6012545b604051908152602001610344565b6103cc60135481565b6103a06103f1366004612846565b610ab6565b6103cc6104043660046127cf565b60009081526020819052604090206001015490565b6103cc7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6103a061044e366004612887565b610b44565b6014546103389060ff1681565b6103a061046e366004612887565b610b6c565b6103a0610481366004612846565b610c08565b6103a06104943660046127cf565b610c23565b6103a06104a7366004612943565b610c59565b6103756104ba3660046127cf565b610ccc565b6103cc6104cd366004612829565b610d57565b6103a0610df1565b6103cc60125481565b600a54610375906001600160a01b031681565b600d54610375906001600160a01b031681565b600c54610375906001600160a01b031681565b6103a061052a366004612829565b610e76565b6001546001600160a01b0316610375565b61033861054e366004612887565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610355610ef1565b6103a061058d366004612829565b610f00565b6103cc600081565b6103a06105a836600461298c565b610f7b565b600e54610375906001600160a01b031681565b610355610f8d565b6103a06105d6366004612887565b61101b565b6103a06105e93660046129bf565b6110ca565b6103a06105fc366004612829565b61115f565b6103a061060f366004612829565b6111da565b6103556106223660046127cf565b611261565b600954610375906001600160a01b031681565b6103556112a7565b6103cc7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103a0610677366004612887565b6112b4565b600f54610375906001600160a01b031681565b61033861069d366004612a3f565b6112dc565b6103cc7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b260381565b600b54610375906001600160a01b031681565b6103a06113d6565b6103a06106f2366004612829565b6113f1565b60006001600160e01b031982166380ac58cd60e01b148061072857506001600160e01b03198216635b5e139f60e01b145b8061074357506001600160e01b03198216637965db0b60e01b145b806107525750610752826114f2565b92915050565b60606002805461076790612a6d565b80601f016020809104026020016040519081016040528092919081815260200182805461079390612a6d565b80156107e05780601f106107b5576101008083540402835291602001916107e0565b820191906000526020600020905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166108685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088f82610ccc565b9050806001600160a01b0316836001600160a01b031614156109195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161085f565b806001600160a01b031661092b611532565b6001600160a01b0316148061094757506109478161069d611532565b6109b95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085f565b6109c3838361158f565b505050565b60006109db816109d6611532565b6115fd565b60145460ff16610a2d5760405162461bcd60e51b815260206004820152600e60248201527f4e4f54204d4f4449464941424c45000000000000000000000000000000000000604482015260640161085f565b50601355565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610a60816109d6611532565b600e80546001600160a01b0319166001600160a01b0384169081179091556040519081527f066000b784e3a4f638348cf0c6edde0679a2446cfb8be3a33038d59cf06f05bd906020015b60405180910390a15050565b610ac7610ac1611532565b8261167b565b610b395760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085f565b6109c383838361174a565b600082815260208190526040902060010154610b62816109d6611532565b6109c38383611922565b610b74611532565b6001600160a01b0316816001600160a01b031614610bfa5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161085f565b610c0482826119c1565b5050565b6109c3838383604051806020016040528060008152506110ca565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610c50816109d6611532565b610c0482611a5e565b6000610c67816109d6611532565b60145460ff16610cb95760405162461bcd60e51b815260206004820152600e60248201527f4e4f54204d4f4449464941424c45000000000000000000000000000000000000604482015260640161085f565b81516109c3906010906020850190612662565b6000818152600460205260408120546001600160a01b0316806107525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161085f565b60006001600160a01b038216610dd55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161085f565b506001600160a01b031660009081526005602052604090205490565b610df9611532565b6001600160a01b0316610e146001546001600160a01b031690565b6001600160a01b031614610e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085f565b610e746000611a9e565b565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610ea3816109d6611532565b600c80546001600160a01b0319166001600160a01b0384169081179091556040519081527fa37277bd6844da20ea391d80d685321fb6a6f8e4ea6654f25efc77a779433c7a90602001610aaa565b60606003805461076790612a6d565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610f2d816109d6611532565b600b80546001600160a01b0319166001600160a01b0384169081179091556040519081527f77da29da4ba6bf0a49e709076c8fc946886ea566b52a1429ac484d59f879be3790602001610aaa565b610c04610f86611532565b8383611af0565b60118054610f9a90612a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc690612a6d565b80156110135780601f10610fe857610100808354040283529160200191611013565b820191906000526020600020905b815481529060010190602001808311610ff657829003601f168201915b505050505081565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611048816109d6611532565b60005b838110156110825761105f83601254611bbf565b60125461106d906001611bd9565b6012558061107a81612abe565b91505061104b565b50604080516001600160a01b0384168152602081018590527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a1505050565b6110db6110d5611532565b8361167b565b61114d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085f565b61115984848484611bec565b50505050565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b260361118c816109d6611532565b600f80546001600160a01b0319166001600160a01b0384169081179091556040519081527ff4bc26d22109f556904f04a9b802c31d9a59c64a7a240bd04fb15a8811169e0090602001610aaa565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603611207816109d6611532565b600d80546001600160a01b0384166001600160a01b0319918216811790925560098054909116821790556040519081527fa1b52f7ac32e3ad13e3a91472261024212d188d344a7ea48cd82f3a48c29296b90602001610aaa565b606060135442106112755761075282611c6a565b601161128083611de8565b604051602001611291929190612af5565b6040516020818303038152906040529050919050565b60108054610f9a90612a6d565b6000828152602081905260409020600101546112d2816109d6611532565b6109c383836119c1565b600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136b9190612b9c565b6001600160a01b03161415611384576001915050610752565b600a546001600160a01b03848116911614156113a4576001915050610752565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b60006113e4816109d6611532565b506014805460ff19169055565b6113f9611532565b6001600160a01b03166114146001546001600160a01b031690565b6001600160a01b03161461146a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085f565b6001600160a01b0381166114e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085f565b6114ef81611a9e565b50565b60006001600160e01b031982166380ac58cd60e01b148061152357506001600160e01b03198216635b5e139f60e01b145b80610752575061075282611ee6565b60003330141561158957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061158c9050565b50335b90565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115c482610ccc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610c0457611639816001600160a01b03166014611f34565b611644836020611f34565b604051602001611655929190612bb9565b60408051601f198184030181529082905262461bcd60e51b825261085f916004016127bc565b6000818152600460205260408120546001600160a01b03166116f45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b60006116ff83610ccc565b9050806001600160a01b0316846001600160a01b0316148061173a5750836001600160a01b031661172f846107ea565b6001600160a01b0316145b806113ce57506113ce81856112dc565b826001600160a01b031661175d82610ccc565b6001600160a01b0316146117d95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161085f565b6001600160a01b0382166118545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161085f565b61185f8383836120f9565b61186a60008261158f565b6001600160a01b0383166000908152600560205260408120805460019290611893908490612c3a565b90915550506001600160a01b03821660009081526005602052604081208054600192906118c1908490612c51565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610c04576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561197d611532565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610c04576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611a1a611532565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611a678161218f565b60008181526008602052604090208054611a8090612a6d565b1590506114ef5760008181526008602052604081206114ef916126e6565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b525760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085f565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610c04828260405180602001604052806000815250612236565b6000611be58284612c51565b9392505050565b611bf784848461174a565b611c03848484846122b4565b6111595760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b6000818152600460205260409020546060906001600160a01b0316611cf75760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161085f565b60008281526008602052604081208054611d1090612a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3c90612a6d565b8015611d895780601f10611d5e57610100808354040283529160200191611d89565b820191906000526020600020905b815481529060010190602001808311611d6c57829003601f168201915b505050505090506000611d9a61241d565b9050805160001415611dad575092915050565b815115611ddf578082604051602001611dc7929190612c69565b60405160208183030381529060405292505050919050565b6113ce8461242c565b606081611e0c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e365780611e2081612abe565b9150611e2f9050600a83612cae565b9150611e10565b60008167ffffffffffffffff811115611e5157611e516128b7565b6040519080825280601f01601f191660200182016040528015611e7b576020820181803683370190505b5090505b84156113ce57611e90600183612c3a565b9150611e9d600a86612cc2565b611ea8906030612c51565b60f81b818381518110611ebd57611ebd612cd6565b60200101906001600160f81b031916908160001a905350611edf600a86612cae565b9450611e7f565b60006001600160e01b03198216637965db0b60e01b148061075257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610752565b60606000611f43836002612cec565b611f4e906002612c51565b67ffffffffffffffff811115611f6657611f666128b7565b6040519080825280601f01601f191660200182016040528015611f90576020820181803683370190505b509050600360fc1b81600081518110611fab57611fab612cd6565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ff657611ff6612cd6565b60200101906001600160f81b031916908160001a905350600061201a846002612cec565b612025906001612c51565b90505b60018111156120aa577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061206657612066612cd6565b1a60f81b82828151811061207c5761207c612cd6565b60200101906001600160f81b031916908160001a90535060049490941c936120a381612d0b565b9050612028565b508315611be55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161085f565b600d546001600160a01b0316156109c3576009546040517fd230af3a0000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b15801561217257600080fd5b505af1158015612186573d6000803e3d6000fd5b50505050505050565b600061219a82610ccc565b90506121a8816000846120f9565b6121b360008361158f565b6001600160a01b03811660009081526005602052604081208054600192906121dc908490612c3a565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6122408383612514565b61224d60008484846122b4565b6109c35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b60006001600160a01b0384163b1561241257836001600160a01b031663150b7a026122dd611532565b8786866040518563ffffffff1660e01b81526004016122ff9493929190612d22565b6020604051808303816000875af192505050801561233a575060408051601f3d908101601f1916820190925261233791810190612d5e565b60015b6123df573d808015612368576040519150601f19603f3d011682016040523d82523d6000602084013e61236d565b606091505b5080516123d75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506113ce565b506001949350505050565b60606010805461076790612a6d565b6000818152600460205260409020546060906001600160a01b03166124b95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161085f565b60006124c361241d565b905060008151116124e35760405180602001604052806000815250611be5565b806124ed84611de8565b6040516020016124fe929190612c69565b6040516020818303038152906040529392505050565b6001600160a01b03821661256a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085f565b6000818152600460205260409020546001600160a01b0316156125cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085f565b6125db600083836120f9565b6001600160a01b0382166000908152600560205260408120805460019290612604908490612c51565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266e90612a6d565b90600052602060002090601f01602090048101928261269057600085556126d6565b82601f106126a957805160ff19168380011785556126d6565b828001600101855582156126d6579182015b828111156126d65782518255916020019190600101906126bb565b506126e292915061271c565b5090565b5080546126f290612a6d565b6000825580601f10612702575050565b601f0160209004906000526020600020908101906114ef91905b5b808211156126e2576000815560010161271d565b6001600160e01b0319811681146114ef57600080fd5b60006020828403121561275957600080fd5b8135611be581612731565b60005b8381101561277f578181015183820152602001612767565b838111156111595750506000910152565b600081518084526127a8816020860160208601612764565b601f01601f19169290920160200192915050565b602081526000611be56020830184612790565b6000602082840312156127e157600080fd5b5035919050565b6001600160a01b03811681146114ef57600080fd5b6000806040838503121561281057600080fd5b823561281b816127e8565b946020939093013593505050565b60006020828403121561283b57600080fd5b8135611be5816127e8565b60008060006060848603121561285b57600080fd5b8335612866816127e8565b92506020840135612876816127e8565b929592945050506040919091013590565b6000806040838503121561289a57600080fd5b8235915060208301356128ac816127e8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128e8576128e86128b7565b604051601f8501601f19908116603f01168101908282118183101715612910576129106128b7565b8160405280935085815286868601111561292957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561295557600080fd5b813567ffffffffffffffff81111561296c57600080fd5b8201601f8101841361297d57600080fd5b6113ce848235602084016128cd565b6000806040838503121561299f57600080fd5b82356129aa816127e8565b9150602083013580151581146128ac57600080fd5b600080600080608085870312156129d557600080fd5b84356129e0816127e8565b935060208501356129f0816127e8565b925060408501359150606085013567ffffffffffffffff811115612a1357600080fd5b8501601f81018713612a2457600080fd5b612a33878235602084016128cd565b91505092959194509250565b60008060408385031215612a5257600080fd5b8235612a5d816127e8565b915060208301356128ac816127e8565b600181811c90821680612a8157607f821691505b60208210811415612aa257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ad257612ad2612aa8565b5060010190565b60008151612aeb818560208601612764565b9290920192915050565b600080845481600182811c915080831680612b1157607f831692505b6020808410821415612b3157634e487b7160e01b86526022600452602486fd5b818015612b455760018114612b5657612b83565b60ff19861689528489019650612b83565b60008b81526020902060005b86811015612b7b5781548b820152908501908301612b62565b505084890196505b505050505050612b938185612ad9565b95945050505050565b600060208284031215612bae57600080fd5b8151611be5816127e8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612bf1816017850160208801612764565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612c2e816028840160208801612764565b01602801949350505050565b600082821015612c4c57612c4c612aa8565b500390565b60008219821115612c6457612c64612aa8565b500190565b60008351612c7b818460208801612764565b835190830190612c8f818360208801612764565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082612cbd57612cbd612c98565b500490565b600082612cd157612cd1612c98565b500690565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612d0657612d06612aa8565b500290565b600081612d1a57612d1a612aa8565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612d546080830184612790565b9695505050505050565b600060208284031215612d7057600080fd5b8151611be58161273156fea2646970667358221220eab450e4bd39ea58961174d050d63a62e645f775904dc67be1156442dcf89ab164736f6c634300080a003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d5a67316644674b3775447332344b75555a597041384d4d6e375a7573645254393667644e4557596f4a617a532f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000006536c6f74696500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534c4f5449450000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103205760003560e01c80638c5527cf116101a7578063bc7872f1116100ee578063d6dc092c11610097578063ee99205c11610071578063ee99205c146106c9578063f1cfe289146106dc578063f2fde38b146106e457600080fd5b8063d6dc092c1461067c578063e985e9c51461068f578063e9c26518146106a257600080fd5b8063cf76a153116100c8578063cf76a1531461063a578063d539139314610642578063d547741f1461066957600080fd5b8063bc7872f114610601578063c87b56dd14610614578063cf002a5f1461062757600080fd5b8063a22cb46511610150578063b723b34e1161012a578063b723b34e146105c8578063b88d4fde146105db578063b92b2dc7146105ee57600080fd5b8063a22cb4651461059a578063b29c662a146105ad578063b5b93a18146105c057600080fd5b806395d89b411161018157806395d89b41146105775780639dd373b91461057f578063a217fddf1461059257600080fd5b80638c5527cf1461051c5780638da5cb5b1461052f57806391d148541461054057600080fd5b8063313455c21161026b57806370a0823111610214578063791b3616116101ee578063791b3616146104e35780637e369823146104f6578063836e33751461050957600080fd5b806370a08231146104bf578063715018a6146104d257806375794a3c146104da57600080fd5b806342966c681161024557806342966c681461048657806355f804b3146104995780636352211e146104ac57600080fd5b8063313455c21461045357806336568abe1461046057806342842e0e1461047357600080fd5b806318160ddd116102cd578063248a9ca3116102a7578063248a9ca3146103f6578063282c51f3146104195780632f2ff15d1461044057600080fd5b806318160ddd146103c85780631e08a9e4146103da57806323b872dd146103e357600080fd5b8063095ea7b3116102fe578063095ea7b31461038d5780630c88b731146103a25780631590a04f146103b557600080fd5b806301ffc9a71461032557806306fdde031461034d578063081812fc14610362575b600080fd5b610338610333366004612747565b6106f7565b60405190151581526020015b60405180910390f35b610355610758565b60405161034491906127bc565b6103756103703660046127cf565b6107ea565b6040516001600160a01b039091168152602001610344565b6103a061039b3660046127fd565b610884565b005b6103a06103b03660046127cf565b6109c8565b6103a06103c3366004612829565b610a33565b6012545b604051908152602001610344565b6103cc60135481565b6103a06103f1366004612846565b610ab6565b6103cc6104043660046127cf565b60009081526020819052604090206001015490565b6103cc7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6103a061044e366004612887565b610b44565b6014546103389060ff1681565b6103a061046e366004612887565b610b6c565b6103a0610481366004612846565b610c08565b6103a06104943660046127cf565b610c23565b6103a06104a7366004612943565b610c59565b6103756104ba3660046127cf565b610ccc565b6103cc6104cd366004612829565b610d57565b6103a0610df1565b6103cc60125481565b600a54610375906001600160a01b031681565b600d54610375906001600160a01b031681565b600c54610375906001600160a01b031681565b6103a061052a366004612829565b610e76565b6001546001600160a01b0316610375565b61033861054e366004612887565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610355610ef1565b6103a061058d366004612829565b610f00565b6103cc600081565b6103a06105a836600461298c565b610f7b565b600e54610375906001600160a01b031681565b610355610f8d565b6103a06105d6366004612887565b61101b565b6103a06105e93660046129bf565b6110ca565b6103a06105fc366004612829565b61115f565b6103a061060f366004612829565b6111da565b6103556106223660046127cf565b611261565b600954610375906001600160a01b031681565b6103556112a7565b6103cc7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103a0610677366004612887565b6112b4565b600f54610375906001600160a01b031681565b61033861069d366004612a3f565b6112dc565b6103cc7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b260381565b600b54610375906001600160a01b031681565b6103a06113d6565b6103a06106f2366004612829565b6113f1565b60006001600160e01b031982166380ac58cd60e01b148061072857506001600160e01b03198216635b5e139f60e01b145b8061074357506001600160e01b03198216637965db0b60e01b145b806107525750610752826114f2565b92915050565b60606002805461076790612a6d565b80601f016020809104026020016040519081016040528092919081815260200182805461079390612a6d565b80156107e05780601f106107b5576101008083540402835291602001916107e0565b820191906000526020600020905b8154815290600101906020018083116107c357829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166108685760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061088f82610ccc565b9050806001600160a01b0316836001600160a01b031614156109195760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161085f565b806001600160a01b031661092b611532565b6001600160a01b0316148061094757506109478161069d611532565b6109b95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161085f565b6109c3838361158f565b505050565b60006109db816109d6611532565b6115fd565b60145460ff16610a2d5760405162461bcd60e51b815260206004820152600e60248201527f4e4f54204d4f4449464941424c45000000000000000000000000000000000000604482015260640161085f565b50601355565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610a60816109d6611532565b600e80546001600160a01b0319166001600160a01b0384169081179091556040519081527f066000b784e3a4f638348cf0c6edde0679a2446cfb8be3a33038d59cf06f05bd906020015b60405180910390a15050565b610ac7610ac1611532565b8261167b565b610b395760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085f565b6109c383838361174a565b600082815260208190526040902060010154610b62816109d6611532565b6109c38383611922565b610b74611532565b6001600160a01b0316816001600160a01b031614610bfa5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161085f565b610c0482826119c1565b5050565b6109c3838383604051806020016040528060008152506110ca565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610c50816109d6611532565b610c0482611a5e565b6000610c67816109d6611532565b60145460ff16610cb95760405162461bcd60e51b815260206004820152600e60248201527f4e4f54204d4f4449464941424c45000000000000000000000000000000000000604482015260640161085f565b81516109c3906010906020850190612662565b6000818152600460205260408120546001600160a01b0316806107525760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161085f565b60006001600160a01b038216610dd55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161085f565b506001600160a01b031660009081526005602052604090205490565b610df9611532565b6001600160a01b0316610e146001546001600160a01b031690565b6001600160a01b031614610e6a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085f565b610e746000611a9e565b565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610ea3816109d6611532565b600c80546001600160a01b0319166001600160a01b0384169081179091556040519081527fa37277bd6844da20ea391d80d685321fb6a6f8e4ea6654f25efc77a779433c7a90602001610aaa565b60606003805461076790612a6d565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603610f2d816109d6611532565b600b80546001600160a01b0319166001600160a01b0384169081179091556040519081527f77da29da4ba6bf0a49e709076c8fc946886ea566b52a1429ac484d59f879be3790602001610aaa565b610c04610f86611532565b8383611af0565b60118054610f9a90612a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc690612a6d565b80156110135780601f10610fe857610100808354040283529160200191611013565b820191906000526020600020905b815481529060010190602001808311610ff657829003601f168201915b505050505081565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611048816109d6611532565b60005b838110156110825761105f83601254611bbf565b60125461106d906001611bd9565b6012558061107a81612abe565b91505061104b565b50604080516001600160a01b0384168152602081018590527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a1505050565b6110db6110d5611532565b8361167b565b61114d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161085f565b61115984848484611bec565b50505050565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b260361118c816109d6611532565b600f80546001600160a01b0319166001600160a01b0384169081179091556040519081527ff4bc26d22109f556904f04a9b802c31d9a59c64a7a240bd04fb15a8811169e0090602001610aaa565b7f3b5d4cc60d3ec3516ee8ae083bd60934f6eb2a6c54b1229985c41bfb092b2603611207816109d6611532565b600d80546001600160a01b0384166001600160a01b0319918216811790925560098054909116821790556040519081527fa1b52f7ac32e3ad13e3a91472261024212d188d344a7ea48cd82f3a48c29296b90602001610aaa565b606060135442106112755761075282611c6a565b601161128083611de8565b604051602001611291929190612af5565b6040516020818303038152906040529050919050565b60108054610f9a90612a6d565b6000828152602081905260409020600101546112d2816109d6611532565b6109c383836119c1565b600a546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136b9190612b9c565b6001600160a01b03161415611384576001915050610752565b600a546001600160a01b03848116911614156113a4576001915050610752565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b60006113e4816109d6611532565b506014805460ff19169055565b6113f9611532565b6001600160a01b03166114146001546001600160a01b031690565b6001600160a01b03161461146a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085f565b6001600160a01b0381166114e65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161085f565b6114ef81611a9e565b50565b60006001600160e01b031982166380ac58cd60e01b148061152357506001600160e01b03198216635b5e139f60e01b145b80610752575061075282611ee6565b60003330141561158957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061158c9050565b50335b90565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115c482610ccc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610c0457611639816001600160a01b03166014611f34565b611644836020611f34565b604051602001611655929190612bb9565b60408051601f198184030181529082905262461bcd60e51b825261085f916004016127bc565b6000818152600460205260408120546001600160a01b03166116f45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161085f565b60006116ff83610ccc565b9050806001600160a01b0316846001600160a01b0316148061173a5750836001600160a01b031661172f846107ea565b6001600160a01b0316145b806113ce57506113ce81856112dc565b826001600160a01b031661175d82610ccc565b6001600160a01b0316146117d95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161085f565b6001600160a01b0382166118545760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161085f565b61185f8383836120f9565b61186a60008261158f565b6001600160a01b0383166000908152600560205260408120805460019290611893908490612c3a565b90915550506001600160a01b03821660009081526005602052604081208054600192906118c1908490612c51565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610c04576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561197d611532565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610c04576000828152602081815260408083206001600160a01b03851684529091529020805460ff19169055611a1a611532565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611a678161218f565b60008181526008602052604090208054611a8090612a6d565b1590506114ef5760008181526008602052604081206114ef916126e6565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b525760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161085f565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610c04828260405180602001604052806000815250612236565b6000611be58284612c51565b9392505050565b611bf784848461174a565b611c03848484846122b4565b6111595760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b6000818152600460205260409020546060906001600160a01b0316611cf75760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606482015260840161085f565b60008281526008602052604081208054611d1090612a6d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3c90612a6d565b8015611d895780601f10611d5e57610100808354040283529160200191611d89565b820191906000526020600020905b815481529060010190602001808311611d6c57829003601f168201915b505050505090506000611d9a61241d565b9050805160001415611dad575092915050565b815115611ddf578082604051602001611dc7929190612c69565b60405160208183030381529060405292505050919050565b6113ce8461242c565b606081611e0c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611e365780611e2081612abe565b9150611e2f9050600a83612cae565b9150611e10565b60008167ffffffffffffffff811115611e5157611e516128b7565b6040519080825280601f01601f191660200182016040528015611e7b576020820181803683370190505b5090505b84156113ce57611e90600183612c3a565b9150611e9d600a86612cc2565b611ea8906030612c51565b60f81b818381518110611ebd57611ebd612cd6565b60200101906001600160f81b031916908160001a905350611edf600a86612cae565b9450611e7f565b60006001600160e01b03198216637965db0b60e01b148061075257507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610752565b60606000611f43836002612cec565b611f4e906002612c51565b67ffffffffffffffff811115611f6657611f666128b7565b6040519080825280601f01601f191660200182016040528015611f90576020820181803683370190505b509050600360fc1b81600081518110611fab57611fab612cd6565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611ff657611ff6612cd6565b60200101906001600160f81b031916908160001a905350600061201a846002612cec565b612025906001612c51565b90505b60018111156120aa577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061206657612066612cd6565b1a60f81b82828151811061207c5761207c612cd6565b60200101906001600160f81b031916908160001a90535060049490941c936120a381612d0b565b9050612028565b508315611be55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161085f565b600d546001600160a01b0316156109c3576009546040517fd230af3a0000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301529091169063d230af3a90604401600060405180830381600087803b15801561217257600080fd5b505af1158015612186573d6000803e3d6000fd5b50505050505050565b600061219a82610ccc565b90506121a8816000846120f9565b6121b360008361158f565b6001600160a01b03811660009081526005602052604081208054600192906121dc908490612c3a565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6122408383612514565b61224d60008484846122b4565b6109c35760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b60006001600160a01b0384163b1561241257836001600160a01b031663150b7a026122dd611532565b8786866040518563ffffffff1660e01b81526004016122ff9493929190612d22565b6020604051808303816000875af192505050801561233a575060408051601f3d908101601f1916820190925261233791810190612d5e565b60015b6123df573d808015612368576040519150601f19603f3d011682016040523d82523d6000602084013e61236d565b606091505b5080516123d75760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161085f565b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490506113ce565b506001949350505050565b60606010805461076790612a6d565b6000818152600460205260409020546060906001600160a01b03166124b95760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161085f565b60006124c361241d565b905060008151116124e35760405180602001604052806000815250611be5565b806124ed84611de8565b6040516020016124fe929190612c69565b6040516020818303038152906040529392505050565b6001600160a01b03821661256a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161085f565b6000818152600460205260409020546001600160a01b0316156125cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161085f565b6125db600083836120f9565b6001600160a01b0382166000908152600560205260408120805460019290612604908490612c51565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461266e90612a6d565b90600052602060002090601f01602090048101928261269057600085556126d6565b82601f106126a957805160ff19168380011785556126d6565b828001600101855582156126d6579182015b828111156126d65782518255916020019190600101906126bb565b506126e292915061271c565b5090565b5080546126f290612a6d565b6000825580601f10612702575050565b601f0160209004906000526020600020908101906114ef91905b5b808211156126e2576000815560010161271d565b6001600160e01b0319811681146114ef57600080fd5b60006020828403121561275957600080fd5b8135611be581612731565b60005b8381101561277f578181015183820152602001612767565b838111156111595750506000910152565b600081518084526127a8816020860160208601612764565b601f01601f19169290920160200192915050565b602081526000611be56020830184612790565b6000602082840312156127e157600080fd5b5035919050565b6001600160a01b03811681146114ef57600080fd5b6000806040838503121561281057600080fd5b823561281b816127e8565b946020939093013593505050565b60006020828403121561283b57600080fd5b8135611be5816127e8565b60008060006060848603121561285b57600080fd5b8335612866816127e8565b92506020840135612876816127e8565b929592945050506040919091013590565b6000806040838503121561289a57600080fd5b8235915060208301356128ac816127e8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128e8576128e86128b7565b604051601f8501601f19908116603f01168101908282118183101715612910576129106128b7565b8160405280935085815286868601111561292957600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561295557600080fd5b813567ffffffffffffffff81111561296c57600080fd5b8201601f8101841361297d57600080fd5b6113ce848235602084016128cd565b6000806040838503121561299f57600080fd5b82356129aa816127e8565b9150602083013580151581146128ac57600080fd5b600080600080608085870312156129d557600080fd5b84356129e0816127e8565b935060208501356129f0816127e8565b925060408501359150606085013567ffffffffffffffff811115612a1357600080fd5b8501601f81018713612a2457600080fd5b612a33878235602084016128cd565b91505092959194509250565b60008060408385031215612a5257600080fd5b8235612a5d816127e8565b915060208301356128ac816127e8565b600181811c90821680612a8157607f821691505b60208210811415612aa257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ad257612ad2612aa8565b5060010190565b60008151612aeb818560208601612764565b9290920192915050565b600080845481600182811c915080831680612b1157607f831692505b6020808410821415612b3157634e487b7160e01b86526022600452602486fd5b818015612b455760018114612b5657612b83565b60ff19861689528489019650612b83565b60008b81526020902060005b86811015612b7b5781548b820152908501908301612b62565b505084890196505b505050505050612b938185612ad9565b95945050505050565b600060208284031215612bae57600080fd5b8151611be5816127e8565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612bf1816017850160208801612764565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612c2e816028840160208801612764565b01602801949350505050565b600082821015612c4c57612c4c612aa8565b500390565b60008219821115612c6457612c64612aa8565b500190565b60008351612c7b818460208801612764565b835190830190612c8f818360208801612764565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082612cbd57612cbd612c98565b500490565b600082612cd157612cd1612c98565b500690565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612d0657612d06612aa8565b500290565b600081612d1a57612d1a612aa8565b506000190190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612d546080830184612790565b9695505050505050565b600060208284031215612d7057600080fd5b8151611be58161273156fea2646970667358221220eab450e4bd39ea58961174d050d63a62e645f775904dc67be1156442dcf89ab164736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000006536c6f74696500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006534c4f5449450000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Slotie
Arg [1] : _symbol (string): SLOTIE
Arg [2] : _openseaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 536c6f7469650000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 534c4f5449450000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.