ERC-721
Overview
Max Total Supply
1,316 TotemheadsNFTs
Holders
82
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 TotemheadsNFTsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Totemheads
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; import "@openzeppelin/[email protected]/access/Ownable.sol"; import "../DefaultOperatorFilterer.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface OLDCONTRACT { function totalSupply() external view returns (uint256); function ownerOf(uint256 _tokenId) external view returns (address); } contract Totemheads is ERC721, DefaultOperatorFilterer, Ownable, ReentrancyGuard { using Strings for uint256; bool paused = true; bool presaleAirdropComplete = false; uint256 internal maxSupply = 6969; uint256 internal publicSupply = 6900; // (24 x 1/1's and 45 x promo) uint256 internal nextTokenId = 1; uint256 mintCost = 0.06 ether; string baseURI = "https://lordcalder.com/totemheads/final/"; address BROKENDEPLOYMENT = 0x015B7aA92C5448B2062eAE4e2e50020180413a74; address theDev = 0xa0270756B3a3E18AfA74dB7812367aF9E5e79BF3; address theArt = 0x05a78085EBd9a5a4E6E94a5167480E106C1B6028; address internal _owner; constructor() ERC721("TotemheadsNFTs", "TotemheadsNFTs") { _owner = msg.sender; initiateAirDrop(); } modifier callerIsUser() { require(tx.origin == msg.sender, "Totemheads :: Cannot be called by contracts"); _; } function setCost(uint256 _cost) public onlyOwner { mintCost = _cost; } function setTheDev(address _theDev) public onlyOwner { theDev = _theDev; } function setTheArtist(address _theArt) public onlyOwner { theArt = _theArt; } function totalSupply() public view returns (uint256) { return nextTokenId-1; } function getMaxSupply() public view returns (uint256) { return maxSupply; } function getPublicMintSupply() public view returns (uint256) { return publicSupply; } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function isPaused() public view returns (bool) { return paused; } function togglePaused() public onlyOwner { paused = !paused; } function mintPrice() public view returns (uint256) { return mintCost; } function initiateAirDrop() public onlyOwner { require(paused,"Contract must be paused"); require(presaleAirdropComplete == false, "Presale Airdrop already completed"); uint256 theTokenIds = OLDCONTRACT(BROKENDEPLOYMENT).totalSupply(); for(uint256 t=1; t <= theTokenIds; t++) { _safeMint(OLDCONTRACT(BROKENDEPLOYMENT).ownerOf(t), t); nextTokenId += 1; } presaleAirdropComplete = true; paused = false; } function mint(address sendTo, uint256 howMany) public payable callerIsUser nonReentrant { require(howMany > 0, "Cannot mint 0" ); if(msg.sender != _owner) { require(paused == false,"Public mint is not live"); require((totalSupply() + howMany) <= getPublicMintSupply(), "Cannot mint more than are available" ); require(msg.value == (howMany * mintCost), "Not enough ETH"); sendTo = msg.sender; } else { require((totalSupply() + howMany) <= getMaxSupply(), "Cannot mint more than are available" ); } for (uint256 i = 0; i < howMany; ++i) { _safeMint(sendTo, nextTokenId); nextTokenId += 1; } } function withdraw() public payable onlyOwner nonReentrant { uint256 balance = address(this).balance; (bool devShare, ) = payable(theDev).call{value: balance * 45 / 100}('Developer'); require(devShare); (bool artShare, ) = payable(theArt).call{value: balance * 45 / 100}('Artist'); require(artShare); (bool marketing, ) = payable(owner()).call{value: address(this).balance}('Owner'); require(marketing); } function withdrawAll() public payable onlyOwner { payable(msg.sender).transfer(address(this).balance); } // The following functions are overrides required by Solidity. function _burn(uint256 tokenId) internal override(ERC721) { super._burn(tokenId); } function tokenURI(uint256 _tokenId) public view virtual override(ERC721) returns (string memory) { require(_exists(_tokenId), "ERC721Metadata: Nonexistent token"); return string(abi.encodePacked(_baseURI(), (_tokenId).toString(), ".json")); } function supportsInterface(bytes4 interfaceId) public view override(ERC721) returns (bool) { return super.supportsInterface(interfaceId); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPublicMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initiateAirDrop","outputs":[],"stateMutability":"nonpayable","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":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sendTo","type":"address"},{"internalType":"uint256","name":"howMany","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_theArt","type":"address"}],"name":"setTheArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_theDev","type":"address"}],"name":"setTheDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6008805461ffff19166001908117909155611b39600955611af4600a55600b5566d529ae9e860000600c5560e0604052602860808181529062002ca760a039600d906200004d908262000924565b50600e80546001600160a01b031990811673015b7aa92c5448b2062eae4e2e50020180413a7417909155600f8054821673a0270756b3a3e18afa74db7812367af9e5e79bf3179055601080549091167305a78085ebd9a5a4e6e94a5167480e106c1b6028179055348015620000c0575f80fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600e81526020016d546f74656d68656164734e46547360901b8152506040518060400160405280600e81526020016d546f74656d68656164734e46547360901b815250815f908162000136919062000924565b50600162000145828262000924565b5050506daaeb6d7670e522a718067333cd4e3b1562000283578015620001d657604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b5f604051808303815f87803b158015620001b9575f80fd5b505af1158015620001cc573d5f803e3d5ffd5b5050505062000283565b6001600160a01b03821615620002275760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620001a1565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024015f604051808303815f87803b1580156200026b575f80fd5b505af11580156200027e573d5f803e3d5ffd5b505050505b5062000291905033620002b8565b6001600755601180546001600160a01b03191633179055620002b262000309565b62000b17565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6200031362000504565b60085460ff166200036b5760405162461bcd60e51b815260206004820152601760248201527f436f6e7472616374206d7573742062652070617573656400000000000000000060448201526064015b60405180910390fd5b600854610100900460ff1615620003cf5760405162461bcd60e51b815260206004820152602160248201527f50726573616c652041697264726f7020616c726561647920636f6d706c6574656044820152601960fa1b606482015260840162000362565b600e54604080516318160ddd60e01b815290515f926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa15801562000417573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200043d9190620009ec565b905060015b818111620004f157600e546040516331a9108f60e11b815260048101839052620004c2916001600160a01b031690636352211e90602401602060405180830381865afa15801562000495573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620004bb919062000a04565b8262000562565b6001600b5f828254620004d6919062000a47565b90915550819050620004e88162000a63565b91505062000442565b50506008805461ffff1916610100179055565b6006546001600160a01b03163314620005605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000362565b565b62000583828260405180602001604052805f8152506200058760201b60201c565b5050565b620005938383620005fd565b620005a15f84848462000742565b620005f85760405162461bcd60e51b815260206004820152603260248201525f8051602062002c8783398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000362565b505050565b6001600160a01b038216620006555760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000362565b5f818152600260205260409020546001600160a01b031615620006bb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000362565b6001600160a01b0382165f908152600360205260408120805460019290620006e590849062000a47565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f6001600160a01b0384163b156200087957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906200078890339089908890889060040162000a7e565b6020604051808303815f875af1925050508015620007c5575060408051601f3d908101601f19168201909252620007c29181019062000aee565b60015b6200085e573d808015620007f5576040519150601f19603f3d011682016040523d82523d5f602084013e620007fa565b606091505b5080515f03620008565760405162461bcd60e51b815260206004820152603260248201525f8051602062002c8783398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000362565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506200087d565b5060015b949350505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620008ae57607f821691505b602082108103620008cd57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620005f8575f81815260208120601f850160051c81016020861015620008fb5750805b601f850160051c820191505b818110156200091c5782815560010162000907565b505050505050565b81516001600160401b0381111562000940576200094062000885565b620009588162000951845462000899565b84620008d3565b602080601f8311600181146200098e575f8415620009765750858301515b5f19600386901b1c1916600185901b1785556200091c565b5f85815260208120601f198616915b82811015620009be578886015182559484019460019091019084016200099d565b5085821015620009dc57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215620009fd575f80fd5b5051919050565b5f6020828403121562000a15575f80fd5b81516001600160a01b038116811462000a2c575f80fd5b9392505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111562000a5d5762000a5d62000a33565b92915050565b5f6001820162000a775762000a7762000a33565b5060010190565b5f60018060a01b03808716835260208187168185015285604085015260806060850152845191508160808501525f5b8281101562000acb5785810182015185820160a00152810162000aad565b50505f60a0828501015260a0601f19601f83011684010191505095945050505050565b5f6020828403121562000aff575f80fd5b81516001600160e01b03198116811462000a2c575f80fd5b6121628062000b255f395ff3fe6080604052600436106101d0575f3560e01c80635050c9dd116100fd57806395d89b4111610092578063b88d4fde11610062578063b88d4fde146104ba578063c87b56dd146104d9578063e985e9c5146104f8578063f2fde38b14610517575f80fd5b806395d89b4114610451578063a22cb46514610465578063ad11c47f14610484578063b187bd26146104a3575f80fd5b806370a08231116100cd57806370a08231146103f9578063715018a614610418578063853828b61461042c5780638da5cb5b14610434575f80fd5b80635050c9dd1461039357806355f804b3146103a75780636352211e146103c65780636817c76c146103e5575f80fd5b806323b872dd1161017357806341f434341161014357806341f434341461032057806342842e0e1461034157806344a0d68a146103605780634c0f38c21461037f575f80fd5b806323b872dd146102d257806336566f06146102f15780633ccfd60b1461030557806340c10f191461030d575f80fd5b8063081812fc116101ae578063081812fc1461024a578063095ea7b3146102815780630a52929c146102a057806318160ddd146102be575f80fd5b8063011c0e5b146101d457806301ffc9a7146101f557806306fdde0314610229575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004611a88565b610536565b005b348015610200575f80fd5b5061021461020f366004611abf565b610560565b60405190151581526020015b60405180910390f35b348015610234575f80fd5b5061023d610570565b6040516102209190611b27565b348015610255575f80fd5b50610269610264366004611b39565b6105ff565b6040516001600160a01b039091168152602001610220565b34801561028c575f80fd5b506101f361029b366004611b50565b610624565b3480156102ab575f80fd5b50600a545b604051908152602001610220565b3480156102c9575f80fd5b506102b061063d565b3480156102dd575f80fd5b506101f36102ec366004611b7a565b610652565b3480156102fc575f80fd5b506101f361067d565b6101f3610699565b6101f361031b366004611b50565b610845565b34801561032b575f80fd5b506102696daaeb6d7670e522a718067333cd4e81565b34801561034c575f80fd5b506101f361035b366004611b7a565b610a62565b34801561036b575f80fd5b506101f361037a366004611b39565b610a87565b34801561038a575f80fd5b506009546102b0565b34801561039e575f80fd5b506101f3610a94565b3480156103b2575f80fd5b506101f36103c1366004611c3f565b610c77565b3480156103d1575f80fd5b506102696103e0366004611b39565b610c8b565b3480156103f0575f80fd5b50600c546102b0565b348015610404575f80fd5b506102b0610413366004611a88565b610cea565b348015610423575f80fd5b506101f3610d6e565b6101f3610d7f565b34801561043f575f80fd5b506006546001600160a01b0316610269565b34801561045c575f80fd5b5061023d610db3565b348015610470575f80fd5b506101f361047f366004611c91565b610dc2565b34801561048f575f80fd5b506101f361049e366004611a88565b610dd6565b3480156104ae575f80fd5b5060085460ff16610214565b3480156104c5575f80fd5b506101f36104d4366004611cc8565b610e00565b3480156104e4575f80fd5b5061023d6104f3366004611b39565b610e2d565b348015610503575f80fd5b50610214610512366004611d43565b610ed5565b348015610522575f80fd5b506101f3610531366004611a88565b610f02565b61053e610f78565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f61056a82610fd2565b92915050565b60605f805461057e90611d6f565b80601f01602080910402602001604051908101604052809291908181526020018280546105aa90611d6f565b80156105f55780601f106105cc576101008083540402835291602001916105f5565b820191905f5260205f20905b8154815290600101906020018083116105d857829003601f168201915b5050505050905090565b5f61060982611021565b505f908152600460205260409020546001600160a01b031690565b8161062e8161107f565b6106388383611136565b505050565b5f6001600b5461064d9190611dbb565b905090565b826001600160a01b038116331461066c5761066c3361107f565b610677848484611245565b50505050565b610685610f78565b6008805460ff19811660ff90911615179055565b6106a1610f78565b6106a9611276565b600f5447905f906001600160a01b031660646106c684602d611dce565b6106d09190611df9565b604051682232bb32b637b832b960b91b81526009015f6040518083038185875af1925050503d805f811461071f576040519150601f19603f3d011682016040523d82523d5f602084013e610724565b606091505b5050905080610731575f80fd5b6010545f906001600160a01b0316606461074c85602d611dce565b6107569190611df9565b60405165105c9d1a5cdd60d21b81526006015f6040518083038185875af1925050503d805f81146107a2576040519150601f19603f3d011682016040523d82523d5f602084013e6107a7565b606091505b50509050806107b4575f80fd5b5f6107c76006546001600160a01b031690565b6001600160a01b0316476040516107e9906427bbb732b960d91b815260050190565b5f6040518083038185875af1925050503d805f8114610823576040519150601f19603f3d011682016040523d82523d5f602084013e610828565b606091505b5050905080610835575f80fd5b505050506108436001600755565b565b3233146108ad5760405162461bcd60e51b815260206004820152602b60248201527f546f74656d6865616473203a3a2043616e6e6f742062652063616c6c6564206260448201526a7920636f6e74726163747360a81b60648201526084015b60405180910390fd5b6108b5611276565b5f81116108f45760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b60448201526064016108a4565b6011546001600160a01b031633146109e15760085460ff16156109595760405162461bcd60e51b815260206004820152601760248201527f5075626c6963206d696e74206973206e6f74206c69766500000000000000000060448201526064016108a4565b600a548161096561063d565b61096f9190611e0c565b111561098d5760405162461bcd60e51b81526004016108a490611e1f565b600c5461099a9082611dce565b34146109d95760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016108a4565b339150610a15565b600954816109ed61063d565b6109f79190611e0c565b1115610a155760405162461bcd60e51b81526004016108a490611e1f565b5f5b81811015610a5357610a2b83600b546112cf565b6001600b5f828254610a3d9190611e0c565b90915550610a4c905081611e62565b9050610a17565b50610a5e6001600755565b5050565b826001600160a01b0381163314610a7c57610a7c3361107f565b6106778484846112e8565b610a8f610f78565b600c55565b610a9c610f78565b60085460ff16610aee5760405162461bcd60e51b815260206004820152601760248201527f436f6e7472616374206d7573742062652070617573656400000000000000000060448201526064016108a4565b600854610100900460ff1615610b505760405162461bcd60e51b815260206004820152602160248201527f50726573616c652041697264726f7020616c726561647920636f6d706c6574656044820152601960fa1b60648201526084016108a4565b600e54604080516318160ddd60e01b815290515f926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610b97573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bbb9190611e7a565b905060015b818111610c6457600e546040516331a9108f60e11b815260048101839052610c3a916001600160a01b031690636352211e90602401602060405180830381865afa158015610c10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c349190611e91565b826112cf565b6001600b5f828254610c4c9190611e0c565b90915550819050610c5c81611e62565b915050610bc0565b50506008805461ffff1916610100179055565b610c7f610f78565b600d610a5e8282611ef9565b5f818152600260205260408120546001600160a01b03168061056a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108a4565b5f6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108a4565b506001600160a01b03165f9081526003602052604090205490565b610d76610f78565b6108435f611302565b610d87610f78565b60405133904780156108fc02915f818181858888f19350505050158015610db0573d5f803e3d5ffd5b50565b60606001805461057e90611d6f565b81610dcc8161107f565b6106388383611353565b610dde610f78565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b836001600160a01b0381163314610e1a57610e1a3361107f565b610e268585858561135e565b5050505050565b5f818152600260205260409020546060906001600160a01b0316610e9d5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016108a4565b610ea5611390565b610eae8361139f565b604051602001610ebf929190611fb5565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610f0a610f78565b6001600160a01b038116610f6f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a4565b610db081611302565b6006546001600160a01b031633146108435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a4565b5f6001600160e01b031982166380ac58cd60e01b148061100257506001600160e01b03198216635b5e139f60e01b145b8061056a57506301ffc9a760e01b6001600160e01b031983161461056a565b5f818152600260205260409020546001600160a01b0316610db05760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108a4565b6daaeb6d7670e522a718067333cd4e3b15610db057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061110e9190611ff3565b610db057604051633b79c77360e21b81526001600160a01b03821660048201526024016108a4565b5f61114082610c8b565b9050806001600160a01b0316836001600160a01b0316036111ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108a4565b336001600160a01b03821614806111c957506111c98133610ed5565b61123b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108a4565b61063883836114a4565b61124f3382611511565b61126b5760405162461bcd60e51b81526004016108a49061200e565b61063883838361156e565b6002600754036112c85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a4565b6002600755565b610a5e828260405180602001604052805f815250611706565b61063883838360405180602001604052805f815250610e00565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610a5e338383611738565b6113683383611511565b6113845760405162461bcd60e51b81526004016108a49061200e565b61067784848484611805565b6060600d805461057e90611d6f565b6060815f036113c55750506040805180820190915260018152600360fc1b602082015290565b815f5b81156113ee57806113d881611e62565b91506113e79050600a83611df9565b91506113c8565b5f8167ffffffffffffffff81111561140857611408611bb8565b6040519080825280601f01601f191660200182016040528015611432576020820181803683370190505b5090505b841561149c57611447600183611dbb565b9150611454600a8661205c565b61145f906030611e0c565b60f81b8183815181106114745761147461206f565b60200101906001600160f81b03191690815f1a905350611495600a86611df9565b9450611436565b949350505050565b5f81815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114d882610c8b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061151c83610c8b565b9050806001600160a01b0316846001600160a01b0316148061154357506115438185610ed5565b8061149c5750836001600160a01b031661155c846105ff565b6001600160a01b031614949350505050565b826001600160a01b031661158182610c8b565b6001600160a01b0316146115e55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a4565b6001600160a01b0382166116475760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a4565b6116515f826114a4565b6001600160a01b0383165f908152600360205260408120805460019290611679908490611dbb565b90915550506001600160a01b0382165f9081526003602052604081208054600192906116a6908490611e0c565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117108383611838565b61171c5f848484611977565b6106385760405162461bcd60e51b81526004016108a490612083565b816001600160a01b0316836001600160a01b0316036117995760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a4565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61181084848461156e565b61181c84848484611977565b6106775760405162461bcd60e51b81526004016108a490612083565b6001600160a01b03821661188e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a4565b5f818152600260205260409020546001600160a01b0316156118f25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a4565b6001600160a01b0382165f90815260036020526040812080546001929061191a908490611e0c565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f6001600160a01b0384163b15611a6957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba9033908990889088906004016120d5565b6020604051808303815f875af19250505080156119f4575060408051601f3d908101601f191682019092526119f191810190612111565b60015b611a4f573d808015611a21576040519150601f19603f3d011682016040523d82523d5f602084013e611a26565b606091505b5080515f03611a475760405162461bcd60e51b81526004016108a490612083565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149c565b506001949350505050565b6001600160a01b0381168114610db0575f80fd5b5f60208284031215611a98575f80fd5b8135611aa381611a74565b9392505050565b6001600160e01b031981168114610db0575f80fd5b5f60208284031215611acf575f80fd5b8135611aa381611aaa565b5f5b83811015611af4578181015183820152602001611adc565b50505f910152565b5f8151808452611b13816020860160208601611ada565b601f01601f19169290920160200192915050565b602081525f611aa36020830184611afc565b5f60208284031215611b49575f80fd5b5035919050565b5f8060408385031215611b61575f80fd5b8235611b6c81611a74565b946020939093013593505050565b5f805f60608486031215611b8c575f80fd5b8335611b9781611a74565b92506020840135611ba781611a74565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115611be657611be6611bb8565b604051601f8501601f19908116603f01168101908282118183101715611c0e57611c0e611bb8565b81604052809350858152868686011115611c26575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611c4f575f80fd5b813567ffffffffffffffff811115611c65575f80fd5b8201601f81018413611c75575f80fd5b61149c84823560208401611bcc565b8015158114610db0575f80fd5b5f8060408385031215611ca2575f80fd5b8235611cad81611a74565b91506020830135611cbd81611c84565b809150509250929050565b5f805f8060808587031215611cdb575f80fd5b8435611ce681611a74565b93506020850135611cf681611a74565b925060408501359150606085013567ffffffffffffffff811115611d18575f80fd5b8501601f81018713611d28575f80fd5b611d3787823560208401611bcc565b91505092959194509250565b5f8060408385031215611d54575f80fd5b8235611d5f81611a74565b91506020830135611cbd81611a74565b600181811c90821680611d8357607f821691505b602082108103611da157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561056a5761056a611da7565b808202811582820484141761056a5761056a611da7565b634e487b7160e01b5f52601260045260245ffd5b5f82611e0757611e07611de5565b500490565b8082018082111561056a5761056a611da7565b60208082526023908201527f43616e6e6f74206d696e74206d6f7265207468616e2061726520617661696c61604082015262626c6560e81b606082015260800190565b5f60018201611e7357611e73611da7565b5060010190565b5f60208284031215611e8a575f80fd5b5051919050565b5f60208284031215611ea1575f80fd5b8151611aa381611a74565b601f821115610638575f81815260208120601f850160051c81016020861015611ed25750805b601f850160051c820191505b81811015611ef157828155600101611ede565b505050505050565b815167ffffffffffffffff811115611f1357611f13611bb8565b611f2781611f218454611d6f565b84611eac565b602080601f831160018114611f5a575f8415611f435750858301515b5f19600386901b1c1916600185901b178555611ef1565b5f85815260208120601f198616915b82811015611f8857888601518255948401946001909101908401611f69565b5085821015611fa557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351611fc6818460208801611ada565b835190830190611fda818360208801611ada565b64173539b7b760d91b9101908152600501949350505050565b5f60208284031215612003575f80fd5b8151611aa381611c84565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b5f8261206a5761206a611de5565b500690565b634e487b7160e01b5f52603260045260245ffd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061210790830184611afc565b9695505050505050565b5f60208284031215612121575f80fd5b8151611aa381611aaa56fea2646970667358221220e094078e386206620666875204323188e796c0254564b715c05e5d6b31fff2e664736f6c634300081500334552433732313a207472616e7366657220746f206e6f6e20455243373231526568747470733a2f2f6c6f726463616c6465722e636f6d2f746f74656d68656164732f66696e616c2f
Deployed Bytecode
0x6080604052600436106101d0575f3560e01c80635050c9dd116100fd57806395d89b4111610092578063b88d4fde11610062578063b88d4fde146104ba578063c87b56dd146104d9578063e985e9c5146104f8578063f2fde38b14610517575f80fd5b806395d89b4114610451578063a22cb46514610465578063ad11c47f14610484578063b187bd26146104a3575f80fd5b806370a08231116100cd57806370a08231146103f9578063715018a614610418578063853828b61461042c5780638da5cb5b14610434575f80fd5b80635050c9dd1461039357806355f804b3146103a75780636352211e146103c65780636817c76c146103e5575f80fd5b806323b872dd1161017357806341f434341161014357806341f434341461032057806342842e0e1461034157806344a0d68a146103605780634c0f38c21461037f575f80fd5b806323b872dd146102d257806336566f06146102f15780633ccfd60b1461030557806340c10f191461030d575f80fd5b8063081812fc116101ae578063081812fc1461024a578063095ea7b3146102815780630a52929c146102a057806318160ddd146102be575f80fd5b8063011c0e5b146101d457806301ffc9a7146101f557806306fdde0314610229575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004611a88565b610536565b005b348015610200575f80fd5b5061021461020f366004611abf565b610560565b60405190151581526020015b60405180910390f35b348015610234575f80fd5b5061023d610570565b6040516102209190611b27565b348015610255575f80fd5b50610269610264366004611b39565b6105ff565b6040516001600160a01b039091168152602001610220565b34801561028c575f80fd5b506101f361029b366004611b50565b610624565b3480156102ab575f80fd5b50600a545b604051908152602001610220565b3480156102c9575f80fd5b506102b061063d565b3480156102dd575f80fd5b506101f36102ec366004611b7a565b610652565b3480156102fc575f80fd5b506101f361067d565b6101f3610699565b6101f361031b366004611b50565b610845565b34801561032b575f80fd5b506102696daaeb6d7670e522a718067333cd4e81565b34801561034c575f80fd5b506101f361035b366004611b7a565b610a62565b34801561036b575f80fd5b506101f361037a366004611b39565b610a87565b34801561038a575f80fd5b506009546102b0565b34801561039e575f80fd5b506101f3610a94565b3480156103b2575f80fd5b506101f36103c1366004611c3f565b610c77565b3480156103d1575f80fd5b506102696103e0366004611b39565b610c8b565b3480156103f0575f80fd5b50600c546102b0565b348015610404575f80fd5b506102b0610413366004611a88565b610cea565b348015610423575f80fd5b506101f3610d6e565b6101f3610d7f565b34801561043f575f80fd5b506006546001600160a01b0316610269565b34801561045c575f80fd5b5061023d610db3565b348015610470575f80fd5b506101f361047f366004611c91565b610dc2565b34801561048f575f80fd5b506101f361049e366004611a88565b610dd6565b3480156104ae575f80fd5b5060085460ff16610214565b3480156104c5575f80fd5b506101f36104d4366004611cc8565b610e00565b3480156104e4575f80fd5b5061023d6104f3366004611b39565b610e2d565b348015610503575f80fd5b50610214610512366004611d43565b610ed5565b348015610522575f80fd5b506101f3610531366004611a88565b610f02565b61053e610f78565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b5f61056a82610fd2565b92915050565b60605f805461057e90611d6f565b80601f01602080910402602001604051908101604052809291908181526020018280546105aa90611d6f565b80156105f55780601f106105cc576101008083540402835291602001916105f5565b820191905f5260205f20905b8154815290600101906020018083116105d857829003601f168201915b5050505050905090565b5f61060982611021565b505f908152600460205260409020546001600160a01b031690565b8161062e8161107f565b6106388383611136565b505050565b5f6001600b5461064d9190611dbb565b905090565b826001600160a01b038116331461066c5761066c3361107f565b610677848484611245565b50505050565b610685610f78565b6008805460ff19811660ff90911615179055565b6106a1610f78565b6106a9611276565b600f5447905f906001600160a01b031660646106c684602d611dce565b6106d09190611df9565b604051682232bb32b637b832b960b91b81526009015f6040518083038185875af1925050503d805f811461071f576040519150601f19603f3d011682016040523d82523d5f602084013e610724565b606091505b5050905080610731575f80fd5b6010545f906001600160a01b0316606461074c85602d611dce565b6107569190611df9565b60405165105c9d1a5cdd60d21b81526006015f6040518083038185875af1925050503d805f81146107a2576040519150601f19603f3d011682016040523d82523d5f602084013e6107a7565b606091505b50509050806107b4575f80fd5b5f6107c76006546001600160a01b031690565b6001600160a01b0316476040516107e9906427bbb732b960d91b815260050190565b5f6040518083038185875af1925050503d805f8114610823576040519150601f19603f3d011682016040523d82523d5f602084013e610828565b606091505b5050905080610835575f80fd5b505050506108436001600755565b565b3233146108ad5760405162461bcd60e51b815260206004820152602b60248201527f546f74656d6865616473203a3a2043616e6e6f742062652063616c6c6564206260448201526a7920636f6e74726163747360a81b60648201526084015b60405180910390fd5b6108b5611276565b5f81116108f45760405162461bcd60e51b815260206004820152600d60248201526c043616e6e6f74206d696e74203609c1b60448201526064016108a4565b6011546001600160a01b031633146109e15760085460ff16156109595760405162461bcd60e51b815260206004820152601760248201527f5075626c6963206d696e74206973206e6f74206c69766500000000000000000060448201526064016108a4565b600a548161096561063d565b61096f9190611e0c565b111561098d5760405162461bcd60e51b81526004016108a490611e1f565b600c5461099a9082611dce565b34146109d95760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b60448201526064016108a4565b339150610a15565b600954816109ed61063d565b6109f79190611e0c565b1115610a155760405162461bcd60e51b81526004016108a490611e1f565b5f5b81811015610a5357610a2b83600b546112cf565b6001600b5f828254610a3d9190611e0c565b90915550610a4c905081611e62565b9050610a17565b50610a5e6001600755565b5050565b826001600160a01b0381163314610a7c57610a7c3361107f565b6106778484846112e8565b610a8f610f78565b600c55565b610a9c610f78565b60085460ff16610aee5760405162461bcd60e51b815260206004820152601760248201527f436f6e7472616374206d7573742062652070617573656400000000000000000060448201526064016108a4565b600854610100900460ff1615610b505760405162461bcd60e51b815260206004820152602160248201527f50726573616c652041697264726f7020616c726561647920636f6d706c6574656044820152601960fa1b60648201526084016108a4565b600e54604080516318160ddd60e01b815290515f926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610b97573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bbb9190611e7a565b905060015b818111610c6457600e546040516331a9108f60e11b815260048101839052610c3a916001600160a01b031690636352211e90602401602060405180830381865afa158015610c10573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c349190611e91565b826112cf565b6001600b5f828254610c4c9190611e0c565b90915550819050610c5c81611e62565b915050610bc0565b50506008805461ffff1916610100179055565b610c7f610f78565b600d610a5e8282611ef9565b5f818152600260205260408120546001600160a01b03168061056a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108a4565b5f6001600160a01b038216610d535760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108a4565b506001600160a01b03165f9081526003602052604090205490565b610d76610f78565b6108435f611302565b610d87610f78565b60405133904780156108fc02915f818181858888f19350505050158015610db0573d5f803e3d5ffd5b50565b60606001805461057e90611d6f565b81610dcc8161107f565b6106388383611353565b610dde610f78565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b836001600160a01b0381163314610e1a57610e1a3361107f565b610e268585858561135e565b5050505050565b5f818152600260205260409020546060906001600160a01b0316610e9d5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b60648201526084016108a4565b610ea5611390565b610eae8361139f565b604051602001610ebf929190611fb5565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610f0a610f78565b6001600160a01b038116610f6f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a4565b610db081611302565b6006546001600160a01b031633146108435760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108a4565b5f6001600160e01b031982166380ac58cd60e01b148061100257506001600160e01b03198216635b5e139f60e01b145b8061056a57506301ffc9a760e01b6001600160e01b031983161461056a565b5f818152600260205260409020546001600160a01b0316610db05760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108a4565b6daaeb6d7670e522a718067333cd4e3b15610db057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061110e9190611ff3565b610db057604051633b79c77360e21b81526001600160a01b03821660048201526024016108a4565b5f61114082610c8b565b9050806001600160a01b0316836001600160a01b0316036111ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108a4565b336001600160a01b03821614806111c957506111c98133610ed5565b61123b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108a4565b61063883836114a4565b61124f3382611511565b61126b5760405162461bcd60e51b81526004016108a49061200e565b61063883838361156e565b6002600754036112c85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108a4565b6002600755565b610a5e828260405180602001604052805f815250611706565b61063883838360405180602001604052805f815250610e00565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b610a5e338383611738565b6113683383611511565b6113845760405162461bcd60e51b81526004016108a49061200e565b61067784848484611805565b6060600d805461057e90611d6f565b6060815f036113c55750506040805180820190915260018152600360fc1b602082015290565b815f5b81156113ee57806113d881611e62565b91506113e79050600a83611df9565b91506113c8565b5f8167ffffffffffffffff81111561140857611408611bb8565b6040519080825280601f01601f191660200182016040528015611432576020820181803683370190505b5090505b841561149c57611447600183611dbb565b9150611454600a8661205c565b61145f906030611e0c565b60f81b8183815181106114745761147461206f565b60200101906001600160f81b03191690815f1a905350611495600a86611df9565b9450611436565b949350505050565b5f81815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114d882610c8b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061151c83610c8b565b9050806001600160a01b0316846001600160a01b0316148061154357506115438185610ed5565b8061149c5750836001600160a01b031661155c846105ff565b6001600160a01b031614949350505050565b826001600160a01b031661158182610c8b565b6001600160a01b0316146115e55760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108a4565b6001600160a01b0382166116475760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a4565b6116515f826114a4565b6001600160a01b0383165f908152600360205260408120805460019290611679908490611dbb565b90915550506001600160a01b0382165f9081526003602052604081208054600192906116a6908490611e0c565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117108383611838565b61171c5f848484611977565b6106385760405162461bcd60e51b81526004016108a490612083565b816001600160a01b0316836001600160a01b0316036117995760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a4565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61181084848461156e565b61181c84848484611977565b6106775760405162461bcd60e51b81526004016108a490612083565b6001600160a01b03821661188e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a4565b5f818152600260205260409020546001600160a01b0316156118f25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a4565b6001600160a01b0382165f90815260036020526040812080546001929061191a908490611e0c565b90915550505f8181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f6001600160a01b0384163b15611a6957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ba9033908990889088906004016120d5565b6020604051808303815f875af19250505080156119f4575060408051601f3d908101601f191682019092526119f191810190612111565b60015b611a4f573d808015611a21576040519150601f19603f3d011682016040523d82523d5f602084013e611a26565b606091505b5080515f03611a475760405162461bcd60e51b81526004016108a490612083565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061149c565b506001949350505050565b6001600160a01b0381168114610db0575f80fd5b5f60208284031215611a98575f80fd5b8135611aa381611a74565b9392505050565b6001600160e01b031981168114610db0575f80fd5b5f60208284031215611acf575f80fd5b8135611aa381611aaa565b5f5b83811015611af4578181015183820152602001611adc565b50505f910152565b5f8151808452611b13816020860160208601611ada565b601f01601f19169290920160200192915050565b602081525f611aa36020830184611afc565b5f60208284031215611b49575f80fd5b5035919050565b5f8060408385031215611b61575f80fd5b8235611b6c81611a74565b946020939093013593505050565b5f805f60608486031215611b8c575f80fd5b8335611b9781611a74565b92506020840135611ba781611a74565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115611be657611be6611bb8565b604051601f8501601f19908116603f01168101908282118183101715611c0e57611c0e611bb8565b81604052809350858152868686011115611c26575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611c4f575f80fd5b813567ffffffffffffffff811115611c65575f80fd5b8201601f81018413611c75575f80fd5b61149c84823560208401611bcc565b8015158114610db0575f80fd5b5f8060408385031215611ca2575f80fd5b8235611cad81611a74565b91506020830135611cbd81611c84565b809150509250929050565b5f805f8060808587031215611cdb575f80fd5b8435611ce681611a74565b93506020850135611cf681611a74565b925060408501359150606085013567ffffffffffffffff811115611d18575f80fd5b8501601f81018713611d28575f80fd5b611d3787823560208401611bcc565b91505092959194509250565b5f8060408385031215611d54575f80fd5b8235611d5f81611a74565b91506020830135611cbd81611a74565b600181811c90821680611d8357607f821691505b602082108103611da157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561056a5761056a611da7565b808202811582820484141761056a5761056a611da7565b634e487b7160e01b5f52601260045260245ffd5b5f82611e0757611e07611de5565b500490565b8082018082111561056a5761056a611da7565b60208082526023908201527f43616e6e6f74206d696e74206d6f7265207468616e2061726520617661696c61604082015262626c6560e81b606082015260800190565b5f60018201611e7357611e73611da7565b5060010190565b5f60208284031215611e8a575f80fd5b5051919050565b5f60208284031215611ea1575f80fd5b8151611aa381611a74565b601f821115610638575f81815260208120601f850160051c81016020861015611ed25750805b601f850160051c820191505b81811015611ef157828155600101611ede565b505050505050565b815167ffffffffffffffff811115611f1357611f13611bb8565b611f2781611f218454611d6f565b84611eac565b602080601f831160018114611f5a575f8415611f435750858301515b5f19600386901b1c1916600185901b178555611ef1565b5f85815260208120601f198616915b82811015611f8857888601518255948401946001909101908401611f69565b5085821015611fa557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351611fc6818460208801611ada565b835190830190611fda818360208801611ada565b64173539b7b760d91b9101908152600501949350505050565b5f60208284031215612003575f80fd5b8151611aa381611c84565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b5f8261206a5761206a611de5565b500690565b634e487b7160e01b5f52603260045260245ffd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061210790830184611afc565b9695505050505050565b5f60208284031215612121575f80fd5b8151611aa381611aaa56fea2646970667358221220e094078e386206620666875204323188e796c0254564b715c05e5d6b31fff2e664736f6c63430008150033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.