ERC-721
Overview
Max Total Supply
2,000 CK
Holders
547
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 CKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ConsortiumKey
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract ConsortiumKey is ERC721, Ownable, ReentrancyGuard { using Counters for Counters.Counter; // contract dynamics string public baseURI; uint256 public immutable totalSupply; uint256 public allowListSupply; uint256 public publicInitialSupply; // mint dynamics uint256 public maxSaleMint = 1; uint256 public mintPricePublicInitial = 690000000000000000; // 0.69 ETH uint256 public mintPriceAllowLInitial = 440000000000000000; // 0.44 ETH uint256 public mintPriceBurnOff = 1130000000000000000; // 1.13 ETH // we setup two maps to track the minting by wallets mapping(address => bool) private _allowList; mapping(address => bool) private _hasMinted; // state of mint dynamics bool public initialSaleIsActive = false; // yeah, yeah, i know bool public burnoffSaleIsActive = false; // yeah, yeah, i know // counters for faster use by frontend Counters.Counter private totalMintedCounter; Counters.Counter private allowListMintedCounter; Counters.Counter private publicINitialMintedCounter; constructor( string memory _name, string memory _symbol, string memory _baseTokenURI, uint256 _totalSupply ) ERC721(_name, _symbol) { baseURI = _baseTokenURI; totalSupply = _totalSupply; publicInitialSupply = _totalSupply; doMint(); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(owner()), balance); } function setBaseURI(string memory _baseTokenURI) external onlyOwner { baseURI = _baseTokenURI; } function setAllowList(address[] calldata addresses) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { _allowList[addresses[i]] = true; allowListSupply += 1; publicInitialSupply -= 1; } } // start initial sale function toggleInitialSaleState() external onlyOwner { require(!burnoffSaleIsActive, "Too late in cycle."); initialSaleIsActive = true; } // end initial sale, move to burnoff sale function toggleBurnoffSaleState() external onlyOwner { require( initialSaleIsActive || burnoffSaleIsActive, "Too early in cycle." ); initialSaleIsActive = false; burnoffSaleIsActive = true; } function mint() public payable nonReentrant { require(totalMintedCounter.current() < totalSupply, "Minted out."); require((initialSaleIsActive || burnoffSaleIsActive), "Mint not open."); require(!hasMinted(_msgSender()), "You've minted, ser."); if (burnoffSaleIsActive) { require( msg.value >= mintPriceBurnOff, "Send more ether for burnoff." ); doMint(); return; } if (hasAllowList(_msgSender())) { require( // we'll never not satisfy this if hasMinted guard works allowListMintedCounter.current() < allowListSupply, "AllowList minted out." ); require( msg.value >= mintPriceAllowLInitial, "Send more ether for allowlist." ); doMint(); allowListMintedCounter._value += 1; return; } require( publicINitialMintedCounter.current() < publicInitialSupply, "Public minted out." ); require( msg.value >= mintPricePublicInitial, "Send more ether for public." ); doMint(); publicINitialMintedCounter._value += 1; } // Returns the current amount of NFTs minted in total. function totalMinted() public view returns (uint256) { return totalMintedCounter.current(); } // Returns the current amount of NFTs minted from the allow list tranche. function allowListMinted() public view returns (uint256) { return allowListMintedCounter.current(); } // Returns the current amount of NFTs minted from the public tranche. function publicINitialMinted() public view returns (uint256) { return publicINitialMintedCounter.current(); } // Returns whether the address is on the allow list function hasAllowList(address _addy) public view returns (bool) { return _allowList[_addy]; } // Returns whether the address has minted function hasMinted(address _addy) public view returns (bool) { return _hasMinted[_addy]; } // helper function to do the mint function doMint() internal { _safeMint(_msgSender(), (totalMintedCounter.current() + 1)); totalMintedCounter._value += 1; _hasMinted[_msgSender()] = true; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } }
// 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 v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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 // 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 // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (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.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // 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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"string","name":"_baseTokenURI","type":"string"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"allowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnoffSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addy","type":"address"}],"name":"hasAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addy","type":"address"}],"name":"hasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialSaleIsActive","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":"maxSaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPriceAllowLInitial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceBurnOff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPricePublicInitial","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":"publicINitialMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicInitialSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setAllowList","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":"_baseTokenURI","type":"string"}],"name":"setBaseURI","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":"toggleBurnoffSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleInitialSaleState","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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526001600b556709935f581f050000600c5567061b31ab352c0000600d55670fae910354310000600e556011805461ffff191690553480156200004557600080fd5b5060405162002a7038038062002a708339810160408190526200006891620005c7565b83836000620000788382620006ee565b506001620000878282620006ee565b505050620000a46200009e620000d660201b60201c565b620000da565b60016007556008620000b78382620006ee565b506080819052600a819055620000cc6200012c565b505050506200086a565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200015b336200014860126200019460201b620011321760201c565b62000155906001620007ba565b62000198565b600160126000016000828254620001739190620007ba565b9091555050336000908152601060205260409020805460ff19166001179055565b5490565b620001ba828260405180602001604052806000815250620001be60201b60201c565b5050565b620001ca83836200023a565b620001d9600084848462000382565b620002355760405162461bcd60e51b8152602060048201526032602482015260008051602062002a5083398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084015b60405180910390fd5b505050565b6001600160a01b038216620002925760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016200022c565b6000818152600260205260409020546001600160a01b031615620002f95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016200022c565b6001600160a01b038216600090815260036020526040812080546001929062000324908490620007ba565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620003a3846001600160a01b0316620004de60201b620011361760201c565b15620004d257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620003dd903390899088908890600401620007e1565b6020604051808303816000875af19250505080156200041b575060408051601f3d908101601f19168201909252620004189181019062000837565b60015b620004b7573d8080156200044c576040519150601f19603f3d011682016040523d82523d6000602084013e62000451565b606091505b508051600003620004af5760405162461bcd60e51b8152602060048201526032602482015260008051602062002a5083398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016200022c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620004d6565b5060015b949350505050565b6001600160a01b03163b151590565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200052057818101518382015260200162000506565b8381111562000530576000848401525b50505050565b600082601f8301126200054857600080fd5b81516001600160401b0380821115620005655762000565620004ed565b604051601f8301601f19908116603f01168101908282118183101715620005905762000590620004ed565b81604052838152866020858801011115620005aa57600080fd5b620005bd84602083016020890162000503565b9695505050505050565b60008060008060808587031215620005de57600080fd5b84516001600160401b0380821115620005f657600080fd5b620006048883890162000536565b955060208701519150808211156200061b57600080fd5b620006298883890162000536565b945060408701519150808211156200064057600080fd5b506200064f8782880162000536565b606096909601519497939650505050565b600181811c908216806200067557607f821691505b6020821081036200069657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023557600081815260208120601f850160051c81016020861015620006c55750805b601f850160051c820191505b81811015620006e657828155600101620006d1565b505050505050565b81516001600160401b038111156200070a576200070a620004ed565b62000722816200071b845462000660565b846200069c565b602080601f8311600181146200075a5760008415620007415750858301515b600019600386901b1c1916600185901b178555620006e6565b600085815260208120601f198616915b828110156200078b578886015182559484019460019091019084016200076a565b5085821015620007aa5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115620007dc57634e487b7160e01b600052601160045260246000fd5b500190565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620008208160a085016020870162000503565b601f01601f19169190910160a00195945050505050565b6000602082840312156200084a57600080fd5b81516001600160e01b0319811681146200086357600080fd5b9392505050565b6080516121c36200088d60003960008181610323015261099e01526121c36000f3fe60806040526004361061021a5760003560e01c80636c0360eb11610123578063ae38d177116100ab578063cf5a13f61161006f578063cf5a13f6146105e0578063dc0fbf73146105f5578063e985e9c51461062e578063f2aba85b14610677578063f2fde38b1461068d57600080fd5b8063ae38d1771461055b578063b0a8a63a14610570578063b88d4fde1461058a578063c81557e8146105aa578063c87b56dd146105c057600080fd5b80638f598d2a116100f25780638f598d2a146104dc57806395d89b41146104fb578063a0cd3b2414610510578063a22cb46514610526578063a2309ff81461054657600080fd5b80636c0360eb1461047457806370a0823114610489578063715018a6146104a95780638da5cb5b146104be57600080fd5b80633628998c116101a65780635331d1c1116101755780635331d1c1146103e857806355f804b3146103fe5780636352211e1461041e578063639faaf91461043e5780636447c35d1461045457600080fd5b80633628998c1461036557806338e21cce1461037a5780633ccfd60b146103b357806342842e0e146103c857600080fd5b8063081812fc116101ed578063081812fc146102b1578063095ea7b3146102e95780631249c58b1461030957806318160ddd1461031157806323b872dd1461034557600080fd5b80630108470f1461021f57806301ffc9a714610248578063049faca01461027857806306fdde031461028f575b600080fd5b34801561022b57600080fd5b5061023560095481565b6040519081526020015b60405180910390f35b34801561025457600080fd5b50610268610263366004611af7565b6106ad565b604051901515815260200161023f565b34801561028457600080fd5b5061028d6106ff565b005b34801561029b57600080fd5b506102a4610777565b60405161023f9190611b6c565b3480156102bd57600080fd5b506102d16102cc366004611b7f565b610809565b6040516001600160a01b03909116815260200161023f565b3480156102f557600080fd5b5061028d610304366004611bb4565b610830565b61028d610945565b34801561031d57600080fd5b506102357f000000000000000000000000000000000000000000000000000000000000000081565b34801561035157600080fd5b5061028d610360366004611bde565b610caa565b34801561037157600080fd5b5061028d610cdb565b34801561038657600080fd5b50610268610395366004611c1a565b6001600160a01b031660009081526010602052604090205460ff1690565b3480156103bf57600080fd5b5061028d610d3f565b3480156103d457600080fd5b5061028d6103e3366004611bde565b610d66565b3480156103f457600080fd5b50610235600d5481565b34801561040a57600080fd5b5061028d610419366004611cc1565b610d81565b34801561042a57600080fd5b506102d1610439366004611b7f565b610d99565b34801561044a57600080fd5b50610235600e5481565b34801561046057600080fd5b5061028d61046f366004611d0a565b610df9565b34801561048057600080fd5b506102a4610eb5565b34801561049557600080fd5b506102356104a4366004611c1a565b610f43565b3480156104b557600080fd5b5061028d610fc9565b3480156104ca57600080fd5b506006546001600160a01b03166102d1565b3480156104e857600080fd5b5060115461026890610100900460ff1681565b34801561050757600080fd5b506102a4610fdd565b34801561051c57600080fd5b50610235600c5481565b34801561053257600080fd5b5061028d610541366004611d7f565b610fec565b34801561055257600080fd5b50610235610ff7565b34801561056757600080fd5b50610235611007565b34801561057c57600080fd5b506011546102689060ff1681565b34801561059657600080fd5b5061028d6105a5366004611dbb565b611012565b3480156105b657600080fd5b50610235600b5481565b3480156105cc57600080fd5b506102a46105db366004611b7f565b61104a565b3480156105ec57600080fd5b506102356110b1565b34801561060157600080fd5b50610268610610366004611c1a565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561063a57600080fd5b50610268610649366004611e37565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561068357600080fd5b50610235600a5481565b34801561069957600080fd5b5061028d6106a8366004611c1a565b6110bc565b60006001600160e01b031982166380ac58cd60e01b14806106de57506001600160e01b03198216635b5e139f60e01b145b806106f957506301ffc9a760e01b6001600160e01b03198316145b92915050565b610707611145565b60115460ff168061071f5750601154610100900460ff165b6107665760405162461bcd60e51b81526020600482015260136024820152722a37b79032b0b9363c9034b71031bcb1b6329760691b60448201526064015b60405180910390fd5b6011805461ffff1916610100179055565b60606000805461078690611e6a565b80601f01602080910402602001604051908101604052809291908181526020018280546107b290611e6a565b80156107ff5780601f106107d4576101008083540402835291602001916107ff565b820191906000526020600020905b8154815290600101906020018083116107e257829003601f168201915b5050505050905090565b60006108148261119f565b506000908152600460205260409020546001600160a01b031690565b600061083b82610d99565b9050806001600160a01b0316836001600160a01b0316036108a85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161075d565b336001600160a01b03821614806108c457506108c48133610649565b6109365760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161075d565b61094083836111fe565b505050565b6002600754036109975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075d565b60026007557f00000000000000000000000000000000000000000000000000000000000000006109c660125490565b10610a015760405162461bcd60e51b815260206004820152600b60248201526a26b4b73a32b21037baba1760a91b604482015260640161075d565b60115460ff1680610a195750601154610100900460ff165b610a565760405162461bcd60e51b815260206004820152600e60248201526d26b4b73a103737ba1037b832b71760911b604482015260640161075d565b610a5f33610395565b15610aa25760405162461bcd60e51b81526020600482015260136024820152722cb7ba93bb329036b4b73a32b2161039b2b91760691b604482015260640161075d565b601154610100900460ff1615610b1157600e54341015610b045760405162461bcd60e51b815260206004820152601c60248201527f53656e64206d6f726520657468657220666f72206275726e6f66662e00000000604482015260640161075d565b610b0c61126c565b610ca3565b610b1a33610610565b15610be55760095460135410610b6a5760405162461bcd60e51b815260206004820152601560248201527420b63637bba634b9ba1036b4b73a32b21037baba1760591b604482015260640161075d565b600d54341015610bbc5760405162461bcd60e51b815260206004820152601e60248201527f53656e64206d6f726520657468657220666f7220616c6c6f776c6973742e0000604482015260640161075d565b610bc461126c565b600160136000016000828254610bda9190611eba565b90915550610ca39050565b600a5460145410610c2d5760405162461bcd60e51b8152602060048201526012602482015271283ab13634b19036b4b73a32b21037baba1760711b604482015260640161075d565b600c54341015610c7f5760405162461bcd60e51b815260206004820152601b60248201527f53656e64206d6f726520657468657220666f72207075626c69632e0000000000604482015260640161075d565b610c8761126c565b600160146000016000828254610c9d9190611eba565b90915550505b6001600755565b610cb433826112ba565b610cd05760405162461bcd60e51b815260040161075d90611ed2565b610940838383611339565b610ce3611145565b601154610100900460ff1615610d305760405162461bcd60e51b81526020600482015260126024820152712a37b7903630ba329034b71031bcb1b6329760711b604482015260640161075d565b6011805460ff19166001179055565b610d47611145565b47610d63610d5d6006546001600160a01b031690565b826114d5565b50565b61094083838360405180602001604052806000815250611012565b610d89611145565b6008610d958282611f6e565b5050565b6000818152600260205260408120546001600160a01b0316806106f95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075d565b610e01611145565b60005b81811015610940576001600f6000858585818110610e2457610e2461202e565b9050602002016020810190610e399190611c1a565b6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160096000828254610e839190611eba565b925050819055506001600a6000828254610e9d9190612044565b90915550819050610ead8161205b565b915050610e04565b60088054610ec290611e6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610eee90611e6a565b8015610f3b5780601f10610f1057610100808354040283529160200191610f3b565b820191906000526020600020905b815481529060010190602001808311610f1e57829003601f168201915b505050505081565b60006001600160a01b038216610fad5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161075d565b506001600160a01b031660009081526003602052604090205490565b610fd1611145565b610fdb60006115ee565b565b60606001805461078690611e6a565b610d95338383611640565b600061100260125490565b905090565b600061100260145490565b61101c33836112ba565b6110385760405162461bcd60e51b815260040161075d90611ed2565b6110448484848461170e565b50505050565b60606110558261119f565b600061105f611741565b9050600081511161107f57604051806020016040528060008152506110aa565b8061108984611750565b60405160200161109a929190612074565b6040516020818303038152906040525b9392505050565b600061100260135490565b6110c4611145565b6001600160a01b0381166111295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075d565b610d63816115ee565b5490565b6001600160a01b03163b151590565b6006546001600160a01b03163314610fdb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161075d565b6000818152600260205260409020546001600160a01b0316610d635760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061123382610d99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112833360125461127e906001611eba565b611851565b6001601260000160008282546112999190611eba565b9091555050336000908152601060205260409020805460ff19166001179055565b6000806112c683610d99565b9050806001600160a01b0316846001600160a01b0316148061130d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113315750836001600160a01b031661132684610809565b6001600160a01b0316145b949350505050565b826001600160a01b031661134c82610d99565b6001600160a01b0316146113b05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161075d565b6001600160a01b0382166114125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161075d565b61141d6000826111fe565b6001600160a01b0383166000908152600360205260408120805460019290611446908490612044565b90915550506001600160a01b0382166000908152600360205260408120805460019290611474908490611eba565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156115255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161075d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611572576040519150601f19603f3d011682016040523d82523d6000602084013e611577565b606091505b50509050806109405760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161075d565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161075d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611719848484611339565b6117258484848461186b565b6110445760405162461bcd60e51b815260040161075d906120a3565b60606008805461078690611e6a565b6060816000036117775750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117a1578061178b8161205b565b915061179a9050600a8361210b565b915061177b565b60008167ffffffffffffffff8111156117bc576117bc611c35565b6040519080825280601f01601f1916602001820160405280156117e6576020820181803683370190505b5090505b8415611331576117fb600183612044565b9150611808600a8661211f565b611813906030611eba565b60f81b8183815181106118285761182861202e565b60200101906001600160f81b031916908160001a90535061184a600a8661210b565b94506117ea565b610d9582826040518060200160405280600081525061196c565b60006001600160a01b0384163b1561196157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118af903390899088908890600401612133565b6020604051808303816000875af19250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612170565b60015b611947573d808015611918576040519150601f19603f3d011682016040523d82523d6000602084013e61191d565b606091505b50805160000361193f5760405162461bcd60e51b815260040161075d906120a3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611331565b506001949350505050565b611976838361199f565b611983600084848461186b565b6109405760405162461bcd60e51b815260040161075d906120a3565b6001600160a01b0382166119f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161075d565b6000818152600260205260409020546001600160a01b031615611a5a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161075d565b6001600160a01b0382166000908152600360205260408120805460019290611a83908490611eba565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610d6357600080fd5b600060208284031215611b0957600080fd5b81356110aa81611ae1565b60005b83811015611b2f578181015183820152602001611b17565b838111156110445750506000910152565b60008151808452611b58816020860160208601611b14565b601f01601f19169290920160200192915050565b6020815260006110aa6020830184611b40565b600060208284031215611b9157600080fd5b5035919050565b80356001600160a01b0381168114611baf57600080fd5b919050565b60008060408385031215611bc757600080fd5b611bd083611b98565b946020939093013593505050565b600080600060608486031215611bf357600080fd5b611bfc84611b98565b9250611c0a60208501611b98565b9150604084013590509250925092565b600060208284031215611c2c57600080fd5b6110aa82611b98565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c6657611c66611c35565b604051601f8501601f19908116603f01168101908282118183101715611c8e57611c8e611c35565b81604052809350858152868686011115611ca757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611cd357600080fd5b813567ffffffffffffffff811115611cea57600080fd5b8201601f81018413611cfb57600080fd5b61133184823560208401611c4b565b60008060208385031215611d1d57600080fd5b823567ffffffffffffffff80821115611d3557600080fd5b818501915085601f830112611d4957600080fd5b813581811115611d5857600080fd5b8660208260051b8501011115611d6d57600080fd5b60209290920196919550909350505050565b60008060408385031215611d9257600080fd5b611d9b83611b98565b915060208301358015158114611db057600080fd5b809150509250929050565b60008060008060808587031215611dd157600080fd5b611dda85611b98565b9350611de860208601611b98565b925060408501359150606085013567ffffffffffffffff811115611e0b57600080fd5b8501601f81018713611e1c57600080fd5b611e2b87823560208401611c4b565b91505092959194509250565b60008060408385031215611e4a57600080fd5b611e5383611b98565b9150611e6160208401611b98565b90509250929050565b600181811c90821680611e7e57607f821691505b602082108103611e9e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ecd57611ecd611ea4565b500190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b601f82111561094057600081815260208120601f850160051c81016020861015611f475750805b601f850160051c820191505b81811015611f6657828155600101611f53565b505050505050565b815167ffffffffffffffff811115611f8857611f88611c35565b611f9c81611f968454611e6a565b84611f20565b602080601f831160018114611fd15760008415611fb95750858301515b600019600386901b1c1916600185901b178555611f66565b600085815260208120601f198616915b8281101561200057888601518255948401946001909101908401611fe1565b508582101561201e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008282101561205657612056611ea4565b500390565b60006001820161206d5761206d611ea4565b5060010190565b60008351612086818460208801611b14565b83519083019061209a818360208801611b14565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261211a5761211a6120f5565b500490565b60008261212e5761212e6120f5565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061216690830184611b40565b9695505050505050565b60006020828403121561218257600080fd5b81516110aa81611ae156fea26469706673582212200b7c1c59c377492a2a088557266ed78afc2095345e96a4d291b297b47c0b902764736f6c634300080f00334552433732313a207472616e7366657220746f206e6f6e204552433732315265000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000e436f6e736f727469756d204b65790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57437557666b564a4d6133503677465774556b504d706b6e3931474e446a6145557a7379504738644d4a79322f00000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636c0360eb11610123578063ae38d177116100ab578063cf5a13f61161006f578063cf5a13f6146105e0578063dc0fbf73146105f5578063e985e9c51461062e578063f2aba85b14610677578063f2fde38b1461068d57600080fd5b8063ae38d1771461055b578063b0a8a63a14610570578063b88d4fde1461058a578063c81557e8146105aa578063c87b56dd146105c057600080fd5b80638f598d2a116100f25780638f598d2a146104dc57806395d89b41146104fb578063a0cd3b2414610510578063a22cb46514610526578063a2309ff81461054657600080fd5b80636c0360eb1461047457806370a0823114610489578063715018a6146104a95780638da5cb5b146104be57600080fd5b80633628998c116101a65780635331d1c1116101755780635331d1c1146103e857806355f804b3146103fe5780636352211e1461041e578063639faaf91461043e5780636447c35d1461045457600080fd5b80633628998c1461036557806338e21cce1461037a5780633ccfd60b146103b357806342842e0e146103c857600080fd5b8063081812fc116101ed578063081812fc146102b1578063095ea7b3146102e95780631249c58b1461030957806318160ddd1461031157806323b872dd1461034557600080fd5b80630108470f1461021f57806301ffc9a714610248578063049faca01461027857806306fdde031461028f575b600080fd5b34801561022b57600080fd5b5061023560095481565b6040519081526020015b60405180910390f35b34801561025457600080fd5b50610268610263366004611af7565b6106ad565b604051901515815260200161023f565b34801561028457600080fd5b5061028d6106ff565b005b34801561029b57600080fd5b506102a4610777565b60405161023f9190611b6c565b3480156102bd57600080fd5b506102d16102cc366004611b7f565b610809565b6040516001600160a01b03909116815260200161023f565b3480156102f557600080fd5b5061028d610304366004611bb4565b610830565b61028d610945565b34801561031d57600080fd5b506102357f00000000000000000000000000000000000000000000000000000000000007d081565b34801561035157600080fd5b5061028d610360366004611bde565b610caa565b34801561037157600080fd5b5061028d610cdb565b34801561038657600080fd5b50610268610395366004611c1a565b6001600160a01b031660009081526010602052604090205460ff1690565b3480156103bf57600080fd5b5061028d610d3f565b3480156103d457600080fd5b5061028d6103e3366004611bde565b610d66565b3480156103f457600080fd5b50610235600d5481565b34801561040a57600080fd5b5061028d610419366004611cc1565b610d81565b34801561042a57600080fd5b506102d1610439366004611b7f565b610d99565b34801561044a57600080fd5b50610235600e5481565b34801561046057600080fd5b5061028d61046f366004611d0a565b610df9565b34801561048057600080fd5b506102a4610eb5565b34801561049557600080fd5b506102356104a4366004611c1a565b610f43565b3480156104b557600080fd5b5061028d610fc9565b3480156104ca57600080fd5b506006546001600160a01b03166102d1565b3480156104e857600080fd5b5060115461026890610100900460ff1681565b34801561050757600080fd5b506102a4610fdd565b34801561051c57600080fd5b50610235600c5481565b34801561053257600080fd5b5061028d610541366004611d7f565b610fec565b34801561055257600080fd5b50610235610ff7565b34801561056757600080fd5b50610235611007565b34801561057c57600080fd5b506011546102689060ff1681565b34801561059657600080fd5b5061028d6105a5366004611dbb565b611012565b3480156105b657600080fd5b50610235600b5481565b3480156105cc57600080fd5b506102a46105db366004611b7f565b61104a565b3480156105ec57600080fd5b506102356110b1565b34801561060157600080fd5b50610268610610366004611c1a565b6001600160a01b03166000908152600f602052604090205460ff1690565b34801561063a57600080fd5b50610268610649366004611e37565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561068357600080fd5b50610235600a5481565b34801561069957600080fd5b5061028d6106a8366004611c1a565b6110bc565b60006001600160e01b031982166380ac58cd60e01b14806106de57506001600160e01b03198216635b5e139f60e01b145b806106f957506301ffc9a760e01b6001600160e01b03198316145b92915050565b610707611145565b60115460ff168061071f5750601154610100900460ff165b6107665760405162461bcd60e51b81526020600482015260136024820152722a37b79032b0b9363c9034b71031bcb1b6329760691b60448201526064015b60405180910390fd5b6011805461ffff1916610100179055565b60606000805461078690611e6a565b80601f01602080910402602001604051908101604052809291908181526020018280546107b290611e6a565b80156107ff5780601f106107d4576101008083540402835291602001916107ff565b820191906000526020600020905b8154815290600101906020018083116107e257829003601f168201915b5050505050905090565b60006108148261119f565b506000908152600460205260409020546001600160a01b031690565b600061083b82610d99565b9050806001600160a01b0316836001600160a01b0316036108a85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161075d565b336001600160a01b03821614806108c457506108c48133610649565b6109365760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000606482015260840161075d565b61094083836111fe565b505050565b6002600754036109975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075d565b60026007557f00000000000000000000000000000000000000000000000000000000000007d06109c660125490565b10610a015760405162461bcd60e51b815260206004820152600b60248201526a26b4b73a32b21037baba1760a91b604482015260640161075d565b60115460ff1680610a195750601154610100900460ff165b610a565760405162461bcd60e51b815260206004820152600e60248201526d26b4b73a103737ba1037b832b71760911b604482015260640161075d565b610a5f33610395565b15610aa25760405162461bcd60e51b81526020600482015260136024820152722cb7ba93bb329036b4b73a32b2161039b2b91760691b604482015260640161075d565b601154610100900460ff1615610b1157600e54341015610b045760405162461bcd60e51b815260206004820152601c60248201527f53656e64206d6f726520657468657220666f72206275726e6f66662e00000000604482015260640161075d565b610b0c61126c565b610ca3565b610b1a33610610565b15610be55760095460135410610b6a5760405162461bcd60e51b815260206004820152601560248201527420b63637bba634b9ba1036b4b73a32b21037baba1760591b604482015260640161075d565b600d54341015610bbc5760405162461bcd60e51b815260206004820152601e60248201527f53656e64206d6f726520657468657220666f7220616c6c6f776c6973742e0000604482015260640161075d565b610bc461126c565b600160136000016000828254610bda9190611eba565b90915550610ca39050565b600a5460145410610c2d5760405162461bcd60e51b8152602060048201526012602482015271283ab13634b19036b4b73a32b21037baba1760711b604482015260640161075d565b600c54341015610c7f5760405162461bcd60e51b815260206004820152601b60248201527f53656e64206d6f726520657468657220666f72207075626c69632e0000000000604482015260640161075d565b610c8761126c565b600160146000016000828254610c9d9190611eba565b90915550505b6001600755565b610cb433826112ba565b610cd05760405162461bcd60e51b815260040161075d90611ed2565b610940838383611339565b610ce3611145565b601154610100900460ff1615610d305760405162461bcd60e51b81526020600482015260126024820152712a37b7903630ba329034b71031bcb1b6329760711b604482015260640161075d565b6011805460ff19166001179055565b610d47611145565b47610d63610d5d6006546001600160a01b031690565b826114d5565b50565b61094083838360405180602001604052806000815250611012565b610d89611145565b6008610d958282611f6e565b5050565b6000818152600260205260408120546001600160a01b0316806106f95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075d565b610e01611145565b60005b81811015610940576001600f6000858585818110610e2457610e2461202e565b9050602002016020810190610e399190611c1a565b6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160096000828254610e839190611eba565b925050819055506001600a6000828254610e9d9190612044565b90915550819050610ead8161205b565b915050610e04565b60088054610ec290611e6a565b80601f0160208091040260200160405190810160405280929190818152602001828054610eee90611e6a565b8015610f3b5780601f10610f1057610100808354040283529160200191610f3b565b820191906000526020600020905b815481529060010190602001808311610f1e57829003601f168201915b505050505081565b60006001600160a01b038216610fad5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b606482015260840161075d565b506001600160a01b031660009081526003602052604090205490565b610fd1611145565b610fdb60006115ee565b565b60606001805461078690611e6a565b610d95338383611640565b600061100260125490565b905090565b600061100260145490565b61101c33836112ba565b6110385760405162461bcd60e51b815260040161075d90611ed2565b6110448484848461170e565b50505050565b60606110558261119f565b600061105f611741565b9050600081511161107f57604051806020016040528060008152506110aa565b8061108984611750565b60405160200161109a929190612074565b6040516020818303038152906040525b9392505050565b600061100260135490565b6110c4611145565b6001600160a01b0381166111295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075d565b610d63816115ee565b5490565b6001600160a01b03163b151590565b6006546001600160a01b03163314610fdb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161075d565b6000818152600260205260409020546001600160a01b0316610d635760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604482015260640161075d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061123382610d99565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6112833360125461127e906001611eba565b611851565b6001601260000160008282546112999190611eba565b9091555050336000908152601060205260409020805460ff19166001179055565b6000806112c683610d99565b9050806001600160a01b0316846001600160a01b0316148061130d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806113315750836001600160a01b031661132684610809565b6001600160a01b0316145b949350505050565b826001600160a01b031661134c82610d99565b6001600160a01b0316146113b05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161075d565b6001600160a01b0382166114125760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161075d565b61141d6000826111fe565b6001600160a01b0383166000908152600360205260408120805460019290611446908490612044565b90915550506001600160a01b0382166000908152600360205260408120805460019290611474908490611eba565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156115255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161075d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611572576040519150601f19603f3d011682016040523d82523d6000602084013e611577565b606091505b50509050806109405760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161075d565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036116a15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161075d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611719848484611339565b6117258484848461186b565b6110445760405162461bcd60e51b815260040161075d906120a3565b60606008805461078690611e6a565b6060816000036117775750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117a1578061178b8161205b565b915061179a9050600a8361210b565b915061177b565b60008167ffffffffffffffff8111156117bc576117bc611c35565b6040519080825280601f01601f1916602001820160405280156117e6576020820181803683370190505b5090505b8415611331576117fb600183612044565b9150611808600a8661211f565b611813906030611eba565b60f81b8183815181106118285761182861202e565b60200101906001600160f81b031916908160001a90535061184a600a8661210b565b94506117ea565b610d9582826040518060200160405280600081525061196c565b60006001600160a01b0384163b1561196157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118af903390899088908890600401612133565b6020604051808303816000875af19250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612170565b60015b611947573d808015611918576040519150601f19603f3d011682016040523d82523d6000602084013e61191d565b606091505b50805160000361193f5760405162461bcd60e51b815260040161075d906120a3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611331565b506001949350505050565b611976838361199f565b611983600084848461186b565b6109405760405162461bcd60e51b815260040161075d906120a3565b6001600160a01b0382166119f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161075d565b6000818152600260205260409020546001600160a01b031615611a5a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161075d565b6001600160a01b0382166000908152600360205260408120805460019290611a83908490611eba565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b031981168114610d6357600080fd5b600060208284031215611b0957600080fd5b81356110aa81611ae1565b60005b83811015611b2f578181015183820152602001611b17565b838111156110445750506000910152565b60008151808452611b58816020860160208601611b14565b601f01601f19169290920160200192915050565b6020815260006110aa6020830184611b40565b600060208284031215611b9157600080fd5b5035919050565b80356001600160a01b0381168114611baf57600080fd5b919050565b60008060408385031215611bc757600080fd5b611bd083611b98565b946020939093013593505050565b600080600060608486031215611bf357600080fd5b611bfc84611b98565b9250611c0a60208501611b98565b9150604084013590509250925092565b600060208284031215611c2c57600080fd5b6110aa82611b98565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611c6657611c66611c35565b604051601f8501601f19908116603f01168101908282118183101715611c8e57611c8e611c35565b81604052809350858152868686011115611ca757600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611cd357600080fd5b813567ffffffffffffffff811115611cea57600080fd5b8201601f81018413611cfb57600080fd5b61133184823560208401611c4b565b60008060208385031215611d1d57600080fd5b823567ffffffffffffffff80821115611d3557600080fd5b818501915085601f830112611d4957600080fd5b813581811115611d5857600080fd5b8660208260051b8501011115611d6d57600080fd5b60209290920196919550909350505050565b60008060408385031215611d9257600080fd5b611d9b83611b98565b915060208301358015158114611db057600080fd5b809150509250929050565b60008060008060808587031215611dd157600080fd5b611dda85611b98565b9350611de860208601611b98565b925060408501359150606085013567ffffffffffffffff811115611e0b57600080fd5b8501601f81018713611e1c57600080fd5b611e2b87823560208401611c4b565b91505092959194509250565b60008060408385031215611e4a57600080fd5b611e5383611b98565b9150611e6160208401611b98565b90509250929050565b600181811c90821680611e7e57607f821691505b602082108103611e9e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ecd57611ecd611ea4565b500190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b601f82111561094057600081815260208120601f850160051c81016020861015611f475750805b601f850160051c820191505b81811015611f6657828155600101611f53565b505050505050565b815167ffffffffffffffff811115611f8857611f88611c35565b611f9c81611f968454611e6a565b84611f20565b602080601f831160018114611fd15760008415611fb95750858301515b600019600386901b1c1916600185901b178555611f66565b600085815260208120601f198616915b8281101561200057888601518255948401946001909101908401611fe1565b508582101561201e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60008282101561205657612056611ea4565b500390565b60006001820161206d5761206d611ea4565b5060010190565b60008351612086818460208801611b14565b83519083019061209a818360208801611b14565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261211a5761211a6120f5565b500490565b60008261212e5761212e6120f5565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061216690830184611b40565b9695505050505050565b60006020828403121561218257600080fd5b81516110aa81611ae156fea26469706673582212200b7c1c59c377492a2a088557266ed78afc2095345e96a4d291b297b47c0b902764736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000e436f6e736f727469756d204b65790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57437557666b564a4d6133503677465774556b504d706b6e3931474e446a6145557a7379504738644d4a79322f00000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Consortium Key
Arg [1] : _symbol (string): CK
Arg [2] : _baseTokenURI (string): ipfs://QmWCuWfkVJMa3P6wFWtUkPMpkn91GNDjaEUzsyPG8dMJy2/
Arg [3] : _totalSupply (uint256): 2000
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 436f6e736f727469756d204b6579000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 434b000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [9] : 697066733a2f2f516d57437557666b564a4d6133503677465774556b504d706b
Arg [10] : 6e3931474e446a6145557a7379504738644d4a79322f00000000000000000000
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.