Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 22 from a total of 22 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 15784046 | 790 days ago | IN | 0 ETH | 0.00680926 | ||||
Mint | 15784045 | 790 days ago | IN | 0 ETH | 0.00687952 | ||||
Mint | 15784045 | 790 days ago | IN | 0 ETH | 0.00687952 | ||||
Mint | 15784044 | 790 days ago | IN | 0 ETH | 0.0067409 | ||||
Mint | 15784043 | 790 days ago | IN | 0 ETH | 0.00698755 | ||||
Mint | 15784042 | 790 days ago | IN | 0 ETH | 0.00701278 | ||||
Mint | 15784042 | 790 days ago | IN | 0 ETH | 0.00701278 | ||||
Mint | 15784041 | 790 days ago | IN | 0 ETH | 0.00704599 | ||||
Mint | 15784040 | 790 days ago | IN | 0 ETH | 0.00726931 | ||||
Mint | 15784039 | 790 days ago | IN | 0 ETH | 0.00708051 | ||||
Mint | 15784038 | 790 days ago | IN | 0 ETH | 0.00737021 | ||||
Mint | 15784037 | 790 days ago | IN | 0 ETH | 0.0071835 | ||||
Mint | 15784037 | 790 days ago | IN | 0 ETH | 0.0071835 | ||||
Mint | 15784037 | 790 days ago | IN | 0 ETH | 0.0071835 | ||||
Mint | 15784033 | 790 days ago | IN | 0 ETH | 0.00745052 | ||||
Mint | 15784032 | 790 days ago | IN | 0 ETH | 0.00741928 | ||||
Mint | 15784031 | 790 days ago | IN | 0 ETH | 0.00739723 | ||||
Mint | 15784031 | 790 days ago | IN | 0 ETH | 0.00739723 | ||||
Mint | 15784030 | 790 days ago | IN | 0 ETH | 0.00724969 | ||||
Set Base URI | 15784000 | 790 days ago | IN | 0 ETH | 0.00174937 | ||||
Set Base URI | 15783841 | 790 days ago | IN | 0 ETH | 0.00194773 | ||||
Mint | 15783826 | 790 days ago | IN | 0 ETH | 0.00758139 |
Loading...
Loading
Contract Name:
NFTMASK
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract NFTMASK is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; uint256 public maxSupply = 1000; uint256 public maxMintAmount = 10; uint256 public cost = 0.5 ether; bool public paused = false; bool public revealed = true; string public notRevealedUri; constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { require(msg.value >= cost * _mintAmount); } for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.sender, supply + i); } } function mint(address _to,uint256 _mintAmount) public onlyOwner{ uint256 supply = totalSupply(); require(!paused); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount); require(supply + _mintAmount <= maxSupply); for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(_to, supply + i); } } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } //only owner function reveal() public onlyOwner { revealed = true; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pause(bool _state) public onlyOwner { paused = _state; } function withdraw() public payable onlyOwner { // ============================================================================= (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); // ============================================================================= } }
// 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/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // 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.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 (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 (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/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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","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":[{"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":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c90805190602001906200005192919062000335565b506103e8600d55600a600e556706f05b59d3b20000600f556000601060006101000a81548160ff0219169083151502179055506001601060016101000a81548160ff021916908315150217905550348015620000ac57600080fd5b5060405162004700380380620047008339818101604052810190620000d2919062000457565b83838160009080519060200190620000ec92919062000335565b5080600190805190602001906200010592919062000335565b505050620001286200011c6200015460201b60201c565b6200015c60201b60201c565b62000139826200022260201b60201c565b6200014a816200024e60201b60201c565b505050506200071a565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002326200027a60201b60201c565b80600b90805190602001906200024a92919062000335565b5050565b6200025e6200027a60201b60201c565b80601190805190602001906200027692919062000335565b5050565b6200028a6200015460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002b06200030b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000300906200054e565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003439062000616565b90600052602060002090601f016020900481019282620003675760008555620003b3565b82601f106200038257805160ff1916838001178555620003b3565b82800160010185558215620003b3579182015b82811115620003b257825182559160200191906001019062000395565b5b509050620003c29190620003c6565b5090565b5b80821115620003e1576000816000905550600101620003c7565b5090565b6000620003fc620003f68462000599565b62000570565b9050828152602081018484840111156200041557600080fd5b62000422848285620005e0565b509392505050565b600082601f8301126200043c57600080fd5b81516200044e848260208601620003e5565b91505092915050565b600080600080608085870312156200046e57600080fd5b600085015167ffffffffffffffff8111156200048957600080fd5b62000497878288016200042a565b945050602085015167ffffffffffffffff811115620004b557600080fd5b620004c3878288016200042a565b935050604085015167ffffffffffffffff811115620004e157600080fd5b620004ef878288016200042a565b925050606085015167ffffffffffffffff8111156200050d57600080fd5b6200051b878288016200042a565b91505092959194509250565b600062000536602083620005cf565b91506200054382620006f1565b602082019050919050565b60006020820190508181036000830152620005698162000527565b9050919050565b60006200057c6200058f565b90506200058a82826200064c565b919050565b6000604051905090565b600067ffffffffffffffff821115620005b757620005b6620006b1565b5b620005c282620006e0565b9050602081019050919050565b600082825260208201905092915050565b60005b8381101562000600578082015181840152602081019050620005e3565b8381111562000610576000848401525b50505050565b600060028204905060018216806200062f57607f821691505b6020821081141562000646576200064562000682565b5b50919050565b6200065782620006e0565b810181811067ffffffffffffffff82111715620006795762000678620006b1565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b613fd6806200072a6000396000f3fe60806040526004361061021a5760003560e01c806355f804b311610123578063a22cb465116100ab578063d5abeb011161006f578063d5abeb01146107a3578063da3ef23f146107ce578063e985e9c5146107f7578063f2c4ce1e14610834578063f2fde38b1461085d5761021a565b8063a22cb465146106d2578063a475b5dd146106fb578063b88d4fde14610712578063c66828621461073b578063c87b56dd146107665761021a565b8063715018a6116100f2578063715018a6146106205780637f00c7a6146106375780638da5cb5b1461066057806395d89b411461068b578063a0712d68146106b65761021a565b806355f804b3146105525780635c975abb1461057b5780636352211e146105a657806370a08231146105e35761021a565b806323b872dd116101a657806342842e0e1161017557806342842e0e1461045b578063438b63001461048457806344a0d68a146104c15780634f6ccce7146104ea57806351830227146105275761021a565b806323b872dd146103c25780632f745c59146103eb5780633ccfd60b1461042857806340c10f19146104325761021a565b8063081c8c44116101ed578063081c8c44146102ed578063095ea7b31461031857806313faede61461034157806318160ddd1461036c578063239c70ae146103975761021a565b806301ffc9a71461021f57806302329a291461025c57806306fdde0314610285578063081812fc146102b0575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190612e6d565b610886565b604051610253919061341f565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190612e44565b610900565b005b34801561029157600080fd5b5061029a610925565b6040516102a7919061343a565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190612f00565b6109b7565b6040516102e49190613396565b60405180910390f35b3480156102f957600080fd5b506103026109fd565b60405161030f919061343a565b60405180910390f35b34801561032457600080fd5b5061033f600480360381019061033a9190612e08565b610a8b565b005b34801561034d57600080fd5b50610356610ba3565b604051610363919061365c565b60405180910390f35b34801561037857600080fd5b50610381610ba9565b60405161038e919061365c565b60405180910390f35b3480156103a357600080fd5b506103ac610bb6565b6040516103b9919061365c565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190612d02565b610bbc565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612e08565b610c1c565b60405161041f919061365c565b60405180910390f35b610430610cc1565b005b34801561043e57600080fd5b5061045960048036038101906104549190612e08565b610d49565b005b34801561046757600080fd5b50610482600480360381019061047d9190612d02565b610de9565b005b34801561049057600080fd5b506104ab60048036038101906104a69190612c9d565b610e09565b6040516104b891906133fd565b60405180910390f35b3480156104cd57600080fd5b506104e860048036038101906104e39190612f00565b610f03565b005b3480156104f657600080fd5b50610511600480360381019061050c9190612f00565b610f15565b60405161051e919061365c565b60405180910390f35b34801561053357600080fd5b5061053c610fac565b604051610549919061341f565b60405180910390f35b34801561055e57600080fd5b5061057960048036038101906105749190612ebf565b610fbf565b005b34801561058757600080fd5b50610590610fe1565b60405161059d919061341f565b60405180910390f35b3480156105b257600080fd5b506105cd60048036038101906105c89190612f00565b610ff4565b6040516105da9190613396565b60405180910390f35b3480156105ef57600080fd5b5061060a60048036038101906106059190612c9d565b6110a6565b604051610617919061365c565b60405180910390f35b34801561062c57600080fd5b5061063561115e565b005b34801561064357600080fd5b5061065e60048036038101906106599190612f00565b611172565b005b34801561066c57600080fd5b50610675611184565b6040516106829190613396565b60405180910390f35b34801561069757600080fd5b506106a06111ae565b6040516106ad919061343a565b60405180910390f35b6106d060048036038101906106cb9190612f00565b611240565b005b3480156106de57600080fd5b506106f960048036038101906106f49190612dcc565b61132c565b005b34801561070757600080fd5b50610710611342565b005b34801561071e57600080fd5b5061073960048036038101906107349190612d51565b611367565b005b34801561074757600080fd5b506107506113c9565b60405161075d919061343a565b60405180910390f35b34801561077257600080fd5b5061078d60048036038101906107889190612f00565b611457565b60405161079a919061343a565b60405180910390f35b3480156107af57600080fd5b506107b86115b0565b6040516107c5919061365c565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190612ebf565b6115b6565b005b34801561080357600080fd5b5061081e60048036038101906108199190612cc6565b6115d8565b60405161082b919061341f565b60405180910390f35b34801561084057600080fd5b5061085b60048036038101906108569190612ebf565b61166c565b005b34801561086957600080fd5b50610884600480360381019061087f9190612c9d565b61168e565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108f957506108f882611712565b5b9050919050565b6109086117f4565b80601060006101000a81548160ff02191690831515021790555050565b60606000805461093490613965565b80601f016020809104026020016040519081016040528092919081815260200182805461096090613965565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c282611872565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60118054610a0a90613965565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690613965565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b505050505081565b6000610a9682610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe906135fc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b266118bd565b73ffffffffffffffffffffffffffffffffffffffff161480610b555750610b5481610b4f6118bd565b6115d8565b5b610b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8b9061355c565b60405180910390fd5b610b9e83836118c5565b505050565b600f5481565b6000600880549050905090565b600e5481565b610bcd610bc76118bd565b8261197e565b610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c039061363c565b60405180910390fd5b610c17838383611a13565b505050565b6000610c27836110a6565b8210610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061345c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610cc96117f4565b6000610cd3611184565b73ffffffffffffffffffffffffffffffffffffffff1647604051610cf690613381565b60006040518083038185875af1925050503d8060008114610d33576040519150601f19603f3d011682016040523d82523d6000602084013e610d38565b606091505b5050905080610d4657600080fd5b50565b610d516117f4565b6000610d5b610ba9565b9050601060009054906101000a900460ff1615610d7757600080fd5b60008211610d8457600080fd5b600e54821115610d9357600080fd5b600d548282610da2919061379a565b1115610dad57600080fd5b6000600190505b828111610de357610dd0848284610dcb919061379a565b611c7a565b8080610ddb906139c8565b915050610db4565b50505050565b610e0483838360405180602001604052806000815250611367565b505050565b60606000610e16836110a6565b905060008167ffffffffffffffff811115610e5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e885781602001602082028036833780820191505090505b50905060005b82811015610ef857610ea08582610c1c565b828281518110610ed9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610ef0906139c8565b915050610e8e565b508092505050919050565b610f0b6117f4565b80600f8190555050565b6000610f1f610ba9565b8210610f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f579061361c565b60405180910390fd5b60088281548110610f9a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b601060019054906101000a900460ff1681565b610fc76117f4565b80600b9080519060200190610fdd929190612ac1565b5050565b601060009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561109d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611094906135dc565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110e9061353c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111666117f4565b6111706000611c98565b565b61117a6117f4565b80600e8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111bd90613965565b80601f01602080910402602001604051908101604052809291908181526020018280546111e990613965565b80156112365780601f1061120b57610100808354040283529160200191611236565b820191906000526020600020905b81548152906001019060200180831161121957829003601f168201915b5050505050905090565b600061124a610ba9565b9050601060009054906101000a900460ff161561126657600080fd5b6000821161127357600080fd5b600e5482111561128257600080fd5b600d548282611291919061379a565b111561129c57600080fd5b6112a4611184565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f15781600f546112e49190613821565b3410156112f057600080fd5b5b6000600190505b8281116113275761131433828461130f919061379a565b611c7a565b808061131f906139c8565b9150506112f8565b505050565b61133e6113376118bd565b8383611d5e565b5050565b61134a6117f4565b6001601060016101000a81548160ff021916908315150217905550565b6113786113726118bd565b8361197e565b6113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae9061363c565b60405180910390fd5b6113c384848484611ecb565b50505050565b600c80546113d690613965565b80601f016020809104026020016040519081016040528092919081815260200182805461140290613965565b801561144f5780601f106114245761010080835404028352916020019161144f565b820191906000526020600020905b81548152906001019060200180831161143257829003601f168201915b505050505081565b606061146282611f27565b6114a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611498906135bc565b60405180910390fd5b60001515601060019054906101000a900460ff161515141561154f57601180546114ca90613965565b80601f01602080910402602001604051908101604052809291908181526020018280546114f690613965565b80156115435780601f1061151857610100808354040283529160200191611543565b820191906000526020600020905b81548152906001019060200180831161152657829003601f168201915b505050505090506115ab565b6000611559611f93565b9050600081511161157957604051806020016040528060008152506115a7565b8061158384612025565b600c60405160200161159793929190613350565b6040516020818303038152906040525b9150505b919050565b600d5481565b6115be6117f4565b80600c90805190602001906115d4929190612ac1565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116746117f4565b806011908051906020019061168a929190612ac1565b5050565b6116966117f4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd9061349c565b60405180910390fd5b61170f81611c98565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117dd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806117ed57506117ec826121d2565b5b9050919050565b6117fc6118bd565b73ffffffffffffffffffffffffffffffffffffffff1661181a611184565b73ffffffffffffffffffffffffffffffffffffffff1614611870576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118679061359c565b60405180910390fd5b565b61187b81611f27565b6118ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b1906135dc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661193883610ff4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061198a83610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119cc57506119cb81856115d8565b5b80611a0a57508373ffffffffffffffffffffffffffffffffffffffff166119f2846109b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a3382610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906134bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611af9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af0906134fc565b60405180910390fd5b611b0483838361223c565b611b0f6000826118c5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b5f919061387b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bb6919061379a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c75838383612350565b505050565b611c94828260405180602001604052806000815250612355565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc49061351c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ebe919061341f565b60405180910390a3505050565b611ed6848484611a13565b611ee2848484846123b0565b611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f189061347c565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054611fa290613965565b80601f0160208091040260200160405190810160405280929190818152602001828054611fce90613965565b801561201b5780601f10611ff05761010080835404028352916020019161201b565b820191906000526020600020905b815481529060010190602001808311611ffe57829003601f168201915b5050505050905090565b6060600082141561206d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121cd565b600082905060005b6000821461209f578080612088906139c8565b915050600a8261209891906137f0565b9150612075565b60008167ffffffffffffffff8111156120e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121135781602001600182028036833780820191505090505b5090505b600085146121c65760018261212c919061387b565b9150600a8561213b9190613a11565b6030612147919061379a565b60f81b818381518110612183577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121bf91906137f0565b9450612117565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612247838383612547565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561228a576122858161254c565b6122c9565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122c8576122c78382612595565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561230c5761230781612702565b61234b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461234a576123498282612845565b5b5b505050565b505050565b61235f83836128c4565b61236c60008484846123b0565b6123ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a29061347c565b60405180910390fd5b505050565b60006123d18473ffffffffffffffffffffffffffffffffffffffff16612a9e565b1561253a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123fa6118bd565b8786866040518563ffffffff1660e01b815260040161241c94939291906133b1565b602060405180830381600087803b15801561243657600080fd5b505af192505050801561246757506040513d601f19601f820116820180604052508101906124649190612e96565b60015b6124ea573d8060008114612497576040519150601f19603f3d011682016040523d82523d6000602084013e61249c565b606091505b506000815114156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d99061347c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061253f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016125a2846110a6565b6125ac919061387b565b9050600060076000848152602001908152602001600020549050818114612691576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612716919061387b565b905060006009600084815260200190815260200160002054905060006008838154811061276c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106127b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612829577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612850836110a6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292b9061357c565b60405180910390fd5b61293d81611f27565b1561297d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612974906134dc565b60405180910390fd5b6129896000838361223c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129d9919061379a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a9a60008383612350565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612acd90613965565b90600052602060002090601f016020900481019282612aef5760008555612b36565b82601f10612b0857805160ff1916838001178555612b36565b82800160010185558215612b36579182015b82811115612b35578251825591602001919060010190612b1a565b5b509050612b439190612b47565b5090565b5b80821115612b60576000816000905550600101612b48565b5090565b6000612b77612b728461369c565b613677565b905082815260208101848484011115612b8f57600080fd5b612b9a848285613923565b509392505050565b6000612bb5612bb0846136cd565b613677565b905082815260208101848484011115612bcd57600080fd5b612bd8848285613923565b509392505050565b600081359050612bef81613f44565b92915050565b600081359050612c0481613f5b565b92915050565b600081359050612c1981613f72565b92915050565b600081519050612c2e81613f72565b92915050565b600082601f830112612c4557600080fd5b8135612c55848260208601612b64565b91505092915050565b600082601f830112612c6f57600080fd5b8135612c7f848260208601612ba2565b91505092915050565b600081359050612c9781613f89565b92915050565b600060208284031215612caf57600080fd5b6000612cbd84828501612be0565b91505092915050565b60008060408385031215612cd957600080fd5b6000612ce785828601612be0565b9250506020612cf885828601612be0565b9150509250929050565b600080600060608486031215612d1757600080fd5b6000612d2586828701612be0565b9350506020612d3686828701612be0565b9250506040612d4786828701612c88565b9150509250925092565b60008060008060808587031215612d6757600080fd5b6000612d7587828801612be0565b9450506020612d8687828801612be0565b9350506040612d9787828801612c88565b925050606085013567ffffffffffffffff811115612db457600080fd5b612dc087828801612c34565b91505092959194509250565b60008060408385031215612ddf57600080fd5b6000612ded85828601612be0565b9250506020612dfe85828601612bf5565b9150509250929050565b60008060408385031215612e1b57600080fd5b6000612e2985828601612be0565b9250506020612e3a85828601612c88565b9150509250929050565b600060208284031215612e5657600080fd5b6000612e6484828501612bf5565b91505092915050565b600060208284031215612e7f57600080fd5b6000612e8d84828501612c0a565b91505092915050565b600060208284031215612ea857600080fd5b6000612eb684828501612c1f565b91505092915050565b600060208284031215612ed157600080fd5b600082013567ffffffffffffffff811115612eeb57600080fd5b612ef784828501612c5e565b91505092915050565b600060208284031215612f1257600080fd5b6000612f2084828501612c88565b91505092915050565b6000612f358383613332565b60208301905092915050565b612f4a816138af565b82525050565b6000612f5b82613723565b612f658185613751565b9350612f70836136fe565b8060005b83811015612fa1578151612f888882612f29565b9750612f9383613744565b925050600181019050612f74565b5085935050505092915050565b612fb7816138c1565b82525050565b6000612fc88261372e565b612fd28185613762565b9350612fe2818560208601613932565b612feb81613afe565b840191505092915050565b600061300182613739565b61300b818561377e565b935061301b818560208601613932565b61302481613afe565b840191505092915050565b600061303a82613739565b613044818561378f565b9350613054818560208601613932565b80840191505092915050565b6000815461306d81613965565b613077818661378f565b9450600182166000811461309257600181146130a3576130d6565b60ff198316865281860193506130d6565b6130ac8561370e565b60005b838110156130ce578154818901526001820191506020810190506130af565b838801955050505b50505092915050565b60006130ec602b8361377e565b91506130f782613b0f565b604082019050919050565b600061310f60328361377e565b915061311a82613b5e565b604082019050919050565b600061313260268361377e565b915061313d82613bad565b604082019050919050565b600061315560258361377e565b915061316082613bfc565b604082019050919050565b6000613178601c8361377e565b915061318382613c4b565b602082019050919050565b600061319b60248361377e565b91506131a682613c74565b604082019050919050565b60006131be60198361377e565b91506131c982613cc3565b602082019050919050565b60006131e160298361377e565b91506131ec82613cec565b604082019050919050565b6000613204603e8361377e565b915061320f82613d3b565b604082019050919050565b600061322760208361377e565b915061323282613d8a565b602082019050919050565b600061324a60208361377e565b915061325582613db3565b602082019050919050565b600061326d602f8361377e565b915061327882613ddc565b604082019050919050565b600061329060188361377e565b915061329b82613e2b565b602082019050919050565b60006132b360218361377e565b91506132be82613e54565b604082019050919050565b60006132d6600083613773565b91506132e182613ea3565b600082019050919050565b60006132f9602c8361377e565b915061330482613ea6565b604082019050919050565b600061331c602e8361377e565b915061332782613ef5565b604082019050919050565b61333b81613919565b82525050565b61334a81613919565b82525050565b600061335c828661302f565b9150613368828561302f565b91506133748284613060565b9150819050949350505050565b600061338c826132c9565b9150819050919050565b60006020820190506133ab6000830184612f41565b92915050565b60006080820190506133c66000830187612f41565b6133d36020830186612f41565b6133e06040830185613341565b81810360608301526133f28184612fbd565b905095945050505050565b600060208201905081810360008301526134178184612f50565b905092915050565b60006020820190506134346000830184612fae565b92915050565b600060208201905081810360008301526134548184612ff6565b905092915050565b60006020820190508181036000830152613475816130df565b9050919050565b6000602082019050818103600083015261349581613102565b9050919050565b600060208201905081810360008301526134b581613125565b9050919050565b600060208201905081810360008301526134d581613148565b9050919050565b600060208201905081810360008301526134f58161316b565b9050919050565b600060208201905081810360008301526135158161318e565b9050919050565b60006020820190508181036000830152613535816131b1565b9050919050565b60006020820190508181036000830152613555816131d4565b9050919050565b60006020820190508181036000830152613575816131f7565b9050919050565b600060208201905081810360008301526135958161321a565b9050919050565b600060208201905081810360008301526135b58161323d565b9050919050565b600060208201905081810360008301526135d581613260565b9050919050565b600060208201905081810360008301526135f581613283565b9050919050565b60006020820190508181036000830152613615816132a6565b9050919050565b60006020820190508181036000830152613635816132ec565b9050919050565b600060208201905081810360008301526136558161330f565b9050919050565b60006020820190506136716000830184613341565b92915050565b6000613681613692565b905061368d8282613997565b919050565b6000604051905090565b600067ffffffffffffffff8211156136b7576136b6613acf565b5b6136c082613afe565b9050602081019050919050565b600067ffffffffffffffff8211156136e8576136e7613acf565b5b6136f182613afe565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137a582613919565b91506137b083613919565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137e5576137e4613a42565b5b828201905092915050565b60006137fb82613919565b915061380683613919565b92508261381657613815613a71565b5b828204905092915050565b600061382c82613919565b915061383783613919565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138705761386f613a42565b5b828202905092915050565b600061388682613919565b915061389183613919565b9250828210156138a4576138a3613a42565b5b828203905092915050565b60006138ba826138f9565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613950578082015181840152602081019050613935565b8381111561395f576000848401525b50505050565b6000600282049050600182168061397d57607f821691505b6020821081141561399157613990613aa0565b5b50919050565b6139a082613afe565b810181811067ffffffffffffffff821117156139bf576139be613acf565b5b80604052505050565b60006139d382613919565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a0657613a05613a42565b5b600182019050919050565b6000613a1c82613919565b9150613a2783613919565b925082613a3757613a36613a71565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b613f4d816138af565b8114613f5857600080fd5b50565b613f64816138c1565b8114613f6f57600080fd5b50565b613f7b816138cd565b8114613f8657600080fd5b50565b613f9281613919565b8114613f9d57600080fd5b5056fea2646970667358221220cb6e6249f7e703020c7c6c649fa039659582e5366544983084ed67300e61665364736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000074e46544d41534b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074e46544d41534b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d613935416378785852714839445478623655744b3835385068754c67697a706879755879674456473637384500000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806355f804b311610123578063a22cb465116100ab578063d5abeb011161006f578063d5abeb01146107a3578063da3ef23f146107ce578063e985e9c5146107f7578063f2c4ce1e14610834578063f2fde38b1461085d5761021a565b8063a22cb465146106d2578063a475b5dd146106fb578063b88d4fde14610712578063c66828621461073b578063c87b56dd146107665761021a565b8063715018a6116100f2578063715018a6146106205780637f00c7a6146106375780638da5cb5b1461066057806395d89b411461068b578063a0712d68146106b65761021a565b806355f804b3146105525780635c975abb1461057b5780636352211e146105a657806370a08231146105e35761021a565b806323b872dd116101a657806342842e0e1161017557806342842e0e1461045b578063438b63001461048457806344a0d68a146104c15780634f6ccce7146104ea57806351830227146105275761021a565b806323b872dd146103c25780632f745c59146103eb5780633ccfd60b1461042857806340c10f19146104325761021a565b8063081c8c44116101ed578063081c8c44146102ed578063095ea7b31461031857806313faede61461034157806318160ddd1461036c578063239c70ae146103975761021a565b806301ffc9a71461021f57806302329a291461025c57806306fdde0314610285578063081812fc146102b0575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190612e6d565b610886565b604051610253919061341f565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e9190612e44565b610900565b005b34801561029157600080fd5b5061029a610925565b6040516102a7919061343a565b60405180910390f35b3480156102bc57600080fd5b506102d760048036038101906102d29190612f00565b6109b7565b6040516102e49190613396565b60405180910390f35b3480156102f957600080fd5b506103026109fd565b60405161030f919061343a565b60405180910390f35b34801561032457600080fd5b5061033f600480360381019061033a9190612e08565b610a8b565b005b34801561034d57600080fd5b50610356610ba3565b604051610363919061365c565b60405180910390f35b34801561037857600080fd5b50610381610ba9565b60405161038e919061365c565b60405180910390f35b3480156103a357600080fd5b506103ac610bb6565b6040516103b9919061365c565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190612d02565b610bbc565b005b3480156103f757600080fd5b50610412600480360381019061040d9190612e08565b610c1c565b60405161041f919061365c565b60405180910390f35b610430610cc1565b005b34801561043e57600080fd5b5061045960048036038101906104549190612e08565b610d49565b005b34801561046757600080fd5b50610482600480360381019061047d9190612d02565b610de9565b005b34801561049057600080fd5b506104ab60048036038101906104a69190612c9d565b610e09565b6040516104b891906133fd565b60405180910390f35b3480156104cd57600080fd5b506104e860048036038101906104e39190612f00565b610f03565b005b3480156104f657600080fd5b50610511600480360381019061050c9190612f00565b610f15565b60405161051e919061365c565b60405180910390f35b34801561053357600080fd5b5061053c610fac565b604051610549919061341f565b60405180910390f35b34801561055e57600080fd5b5061057960048036038101906105749190612ebf565b610fbf565b005b34801561058757600080fd5b50610590610fe1565b60405161059d919061341f565b60405180910390f35b3480156105b257600080fd5b506105cd60048036038101906105c89190612f00565b610ff4565b6040516105da9190613396565b60405180910390f35b3480156105ef57600080fd5b5061060a60048036038101906106059190612c9d565b6110a6565b604051610617919061365c565b60405180910390f35b34801561062c57600080fd5b5061063561115e565b005b34801561064357600080fd5b5061065e60048036038101906106599190612f00565b611172565b005b34801561066c57600080fd5b50610675611184565b6040516106829190613396565b60405180910390f35b34801561069757600080fd5b506106a06111ae565b6040516106ad919061343a565b60405180910390f35b6106d060048036038101906106cb9190612f00565b611240565b005b3480156106de57600080fd5b506106f960048036038101906106f49190612dcc565b61132c565b005b34801561070757600080fd5b50610710611342565b005b34801561071e57600080fd5b5061073960048036038101906107349190612d51565b611367565b005b34801561074757600080fd5b506107506113c9565b60405161075d919061343a565b60405180910390f35b34801561077257600080fd5b5061078d60048036038101906107889190612f00565b611457565b60405161079a919061343a565b60405180910390f35b3480156107af57600080fd5b506107b86115b0565b6040516107c5919061365c565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190612ebf565b6115b6565b005b34801561080357600080fd5b5061081e60048036038101906108199190612cc6565b6115d8565b60405161082b919061341f565b60405180910390f35b34801561084057600080fd5b5061085b60048036038101906108569190612ebf565b61166c565b005b34801561086957600080fd5b50610884600480360381019061087f9190612c9d565b61168e565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108f957506108f882611712565b5b9050919050565b6109086117f4565b80601060006101000a81548160ff02191690831515021790555050565b60606000805461093490613965565b80601f016020809104026020016040519081016040528092919081815260200182805461096090613965565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c282611872565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60118054610a0a90613965565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690613965565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b505050505081565b6000610a9682610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe906135fc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b266118bd565b73ffffffffffffffffffffffffffffffffffffffff161480610b555750610b5481610b4f6118bd565b6115d8565b5b610b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8b9061355c565b60405180910390fd5b610b9e83836118c5565b505050565b600f5481565b6000600880549050905090565b600e5481565b610bcd610bc76118bd565b8261197e565b610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c039061363c565b60405180910390fd5b610c17838383611a13565b505050565b6000610c27836110a6565b8210610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f9061345c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610cc96117f4565b6000610cd3611184565b73ffffffffffffffffffffffffffffffffffffffff1647604051610cf690613381565b60006040518083038185875af1925050503d8060008114610d33576040519150601f19603f3d011682016040523d82523d6000602084013e610d38565b606091505b5050905080610d4657600080fd5b50565b610d516117f4565b6000610d5b610ba9565b9050601060009054906101000a900460ff1615610d7757600080fd5b60008211610d8457600080fd5b600e54821115610d9357600080fd5b600d548282610da2919061379a565b1115610dad57600080fd5b6000600190505b828111610de357610dd0848284610dcb919061379a565b611c7a565b8080610ddb906139c8565b915050610db4565b50505050565b610e0483838360405180602001604052806000815250611367565b505050565b60606000610e16836110a6565b905060008167ffffffffffffffff811115610e5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e885781602001602082028036833780820191505090505b50905060005b82811015610ef857610ea08582610c1c565b828281518110610ed9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610ef0906139c8565b915050610e8e565b508092505050919050565b610f0b6117f4565b80600f8190555050565b6000610f1f610ba9565b8210610f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f579061361c565b60405180910390fd5b60088281548110610f9a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b601060019054906101000a900460ff1681565b610fc76117f4565b80600b9080519060200190610fdd929190612ac1565b5050565b601060009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561109d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611094906135dc565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611117576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110e9061353c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111666117f4565b6111706000611c98565b565b61117a6117f4565b80600e8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546111bd90613965565b80601f01602080910402602001604051908101604052809291908181526020018280546111e990613965565b80156112365780601f1061120b57610100808354040283529160200191611236565b820191906000526020600020905b81548152906001019060200180831161121957829003601f168201915b5050505050905090565b600061124a610ba9565b9050601060009054906101000a900460ff161561126657600080fd5b6000821161127357600080fd5b600e5482111561128257600080fd5b600d548282611291919061379a565b111561129c57600080fd5b6112a4611184565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112f15781600f546112e49190613821565b3410156112f057600080fd5b5b6000600190505b8281116113275761131433828461130f919061379a565b611c7a565b808061131f906139c8565b9150506112f8565b505050565b61133e6113376118bd565b8383611d5e565b5050565b61134a6117f4565b6001601060016101000a81548160ff021916908315150217905550565b6113786113726118bd565b8361197e565b6113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae9061363c565b60405180910390fd5b6113c384848484611ecb565b50505050565b600c80546113d690613965565b80601f016020809104026020016040519081016040528092919081815260200182805461140290613965565b801561144f5780601f106114245761010080835404028352916020019161144f565b820191906000526020600020905b81548152906001019060200180831161143257829003601f168201915b505050505081565b606061146282611f27565b6114a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611498906135bc565b60405180910390fd5b60001515601060019054906101000a900460ff161515141561154f57601180546114ca90613965565b80601f01602080910402602001604051908101604052809291908181526020018280546114f690613965565b80156115435780601f1061151857610100808354040283529160200191611543565b820191906000526020600020905b81548152906001019060200180831161152657829003601f168201915b505050505090506115ab565b6000611559611f93565b9050600081511161157957604051806020016040528060008152506115a7565b8061158384612025565b600c60405160200161159793929190613350565b6040516020818303038152906040525b9150505b919050565b600d5481565b6115be6117f4565b80600c90805190602001906115d4929190612ac1565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116746117f4565b806011908051906020019061168a929190612ac1565b5050565b6116966117f4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd9061349c565b60405180910390fd5b61170f81611c98565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117dd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806117ed57506117ec826121d2565b5b9050919050565b6117fc6118bd565b73ffffffffffffffffffffffffffffffffffffffff1661181a611184565b73ffffffffffffffffffffffffffffffffffffffff1614611870576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118679061359c565b60405180910390fd5b565b61187b81611f27565b6118ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b1906135dc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661193883610ff4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061198a83610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119cc57506119cb81856115d8565b5b80611a0a57508373ffffffffffffffffffffffffffffffffffffffff166119f2846109b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a3382610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906134bc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611af9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af0906134fc565b60405180910390fd5b611b0483838361223c565b611b0f6000826118c5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b5f919061387b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bb6919061379a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c75838383612350565b505050565b611c94828260405180602001604052806000815250612355565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc49061351c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ebe919061341f565b60405180910390a3505050565b611ed6848484611a13565b611ee2848484846123b0565b611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f189061347c565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054611fa290613965565b80601f0160208091040260200160405190810160405280929190818152602001828054611fce90613965565b801561201b5780601f10611ff05761010080835404028352916020019161201b565b820191906000526020600020905b815481529060010190602001808311611ffe57829003601f168201915b5050505050905090565b6060600082141561206d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121cd565b600082905060005b6000821461209f578080612088906139c8565b915050600a8261209891906137f0565b9150612075565b60008167ffffffffffffffff8111156120e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121135781602001600182028036833780820191505090505b5090505b600085146121c65760018261212c919061387b565b9150600a8561213b9190613a11565b6030612147919061379a565b60f81b818381518110612183577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121bf91906137f0565b9450612117565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612247838383612547565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561228a576122858161254c565b6122c9565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122c8576122c78382612595565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561230c5761230781612702565b61234b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461234a576123498282612845565b5b5b505050565b505050565b61235f83836128c4565b61236c60008484846123b0565b6123ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a29061347c565b60405180910390fd5b505050565b60006123d18473ffffffffffffffffffffffffffffffffffffffff16612a9e565b1561253a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026123fa6118bd565b8786866040518563ffffffff1660e01b815260040161241c94939291906133b1565b602060405180830381600087803b15801561243657600080fd5b505af192505050801561246757506040513d601f19601f820116820180604052508101906124649190612e96565b60015b6124ea573d8060008114612497576040519150601f19603f3d011682016040523d82523d6000602084013e61249c565b606091505b506000815114156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d99061347c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061253f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016125a2846110a6565b6125ac919061387b565b9050600060076000848152602001908152602001600020549050818114612691576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612716919061387b565b905060006009600084815260200190815260200160002054905060006008838154811061276c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106127b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612829577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612850836110a6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612934576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292b9061357c565b60405180910390fd5b61293d81611f27565b1561297d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612974906134dc565b60405180910390fd5b6129896000838361223c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129d9919061379a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a9a60008383612350565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612acd90613965565b90600052602060002090601f016020900481019282612aef5760008555612b36565b82601f10612b0857805160ff1916838001178555612b36565b82800160010185558215612b36579182015b82811115612b35578251825591602001919060010190612b1a565b5b509050612b439190612b47565b5090565b5b80821115612b60576000816000905550600101612b48565b5090565b6000612b77612b728461369c565b613677565b905082815260208101848484011115612b8f57600080fd5b612b9a848285613923565b509392505050565b6000612bb5612bb0846136cd565b613677565b905082815260208101848484011115612bcd57600080fd5b612bd8848285613923565b509392505050565b600081359050612bef81613f44565b92915050565b600081359050612c0481613f5b565b92915050565b600081359050612c1981613f72565b92915050565b600081519050612c2e81613f72565b92915050565b600082601f830112612c4557600080fd5b8135612c55848260208601612b64565b91505092915050565b600082601f830112612c6f57600080fd5b8135612c7f848260208601612ba2565b91505092915050565b600081359050612c9781613f89565b92915050565b600060208284031215612caf57600080fd5b6000612cbd84828501612be0565b91505092915050565b60008060408385031215612cd957600080fd5b6000612ce785828601612be0565b9250506020612cf885828601612be0565b9150509250929050565b600080600060608486031215612d1757600080fd5b6000612d2586828701612be0565b9350506020612d3686828701612be0565b9250506040612d4786828701612c88565b9150509250925092565b60008060008060808587031215612d6757600080fd5b6000612d7587828801612be0565b9450506020612d8687828801612be0565b9350506040612d9787828801612c88565b925050606085013567ffffffffffffffff811115612db457600080fd5b612dc087828801612c34565b91505092959194509250565b60008060408385031215612ddf57600080fd5b6000612ded85828601612be0565b9250506020612dfe85828601612bf5565b9150509250929050565b60008060408385031215612e1b57600080fd5b6000612e2985828601612be0565b9250506020612e3a85828601612c88565b9150509250929050565b600060208284031215612e5657600080fd5b6000612e6484828501612bf5565b91505092915050565b600060208284031215612e7f57600080fd5b6000612e8d84828501612c0a565b91505092915050565b600060208284031215612ea857600080fd5b6000612eb684828501612c1f565b91505092915050565b600060208284031215612ed157600080fd5b600082013567ffffffffffffffff811115612eeb57600080fd5b612ef784828501612c5e565b91505092915050565b600060208284031215612f1257600080fd5b6000612f2084828501612c88565b91505092915050565b6000612f358383613332565b60208301905092915050565b612f4a816138af565b82525050565b6000612f5b82613723565b612f658185613751565b9350612f70836136fe565b8060005b83811015612fa1578151612f888882612f29565b9750612f9383613744565b925050600181019050612f74565b5085935050505092915050565b612fb7816138c1565b82525050565b6000612fc88261372e565b612fd28185613762565b9350612fe2818560208601613932565b612feb81613afe565b840191505092915050565b600061300182613739565b61300b818561377e565b935061301b818560208601613932565b61302481613afe565b840191505092915050565b600061303a82613739565b613044818561378f565b9350613054818560208601613932565b80840191505092915050565b6000815461306d81613965565b613077818661378f565b9450600182166000811461309257600181146130a3576130d6565b60ff198316865281860193506130d6565b6130ac8561370e565b60005b838110156130ce578154818901526001820191506020810190506130af565b838801955050505b50505092915050565b60006130ec602b8361377e565b91506130f782613b0f565b604082019050919050565b600061310f60328361377e565b915061311a82613b5e565b604082019050919050565b600061313260268361377e565b915061313d82613bad565b604082019050919050565b600061315560258361377e565b915061316082613bfc565b604082019050919050565b6000613178601c8361377e565b915061318382613c4b565b602082019050919050565b600061319b60248361377e565b91506131a682613c74565b604082019050919050565b60006131be60198361377e565b91506131c982613cc3565b602082019050919050565b60006131e160298361377e565b91506131ec82613cec565b604082019050919050565b6000613204603e8361377e565b915061320f82613d3b565b604082019050919050565b600061322760208361377e565b915061323282613d8a565b602082019050919050565b600061324a60208361377e565b915061325582613db3565b602082019050919050565b600061326d602f8361377e565b915061327882613ddc565b604082019050919050565b600061329060188361377e565b915061329b82613e2b565b602082019050919050565b60006132b360218361377e565b91506132be82613e54565b604082019050919050565b60006132d6600083613773565b91506132e182613ea3565b600082019050919050565b60006132f9602c8361377e565b915061330482613ea6565b604082019050919050565b600061331c602e8361377e565b915061332782613ef5565b604082019050919050565b61333b81613919565b82525050565b61334a81613919565b82525050565b600061335c828661302f565b9150613368828561302f565b91506133748284613060565b9150819050949350505050565b600061338c826132c9565b9150819050919050565b60006020820190506133ab6000830184612f41565b92915050565b60006080820190506133c66000830187612f41565b6133d36020830186612f41565b6133e06040830185613341565b81810360608301526133f28184612fbd565b905095945050505050565b600060208201905081810360008301526134178184612f50565b905092915050565b60006020820190506134346000830184612fae565b92915050565b600060208201905081810360008301526134548184612ff6565b905092915050565b60006020820190508181036000830152613475816130df565b9050919050565b6000602082019050818103600083015261349581613102565b9050919050565b600060208201905081810360008301526134b581613125565b9050919050565b600060208201905081810360008301526134d581613148565b9050919050565b600060208201905081810360008301526134f58161316b565b9050919050565b600060208201905081810360008301526135158161318e565b9050919050565b60006020820190508181036000830152613535816131b1565b9050919050565b60006020820190508181036000830152613555816131d4565b9050919050565b60006020820190508181036000830152613575816131f7565b9050919050565b600060208201905081810360008301526135958161321a565b9050919050565b600060208201905081810360008301526135b58161323d565b9050919050565b600060208201905081810360008301526135d581613260565b9050919050565b600060208201905081810360008301526135f581613283565b9050919050565b60006020820190508181036000830152613615816132a6565b9050919050565b60006020820190508181036000830152613635816132ec565b9050919050565b600060208201905081810360008301526136558161330f565b9050919050565b60006020820190506136716000830184613341565b92915050565b6000613681613692565b905061368d8282613997565b919050565b6000604051905090565b600067ffffffffffffffff8211156136b7576136b6613acf565b5b6136c082613afe565b9050602081019050919050565b600067ffffffffffffffff8211156136e8576136e7613acf565b5b6136f182613afe565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137a582613919565b91506137b083613919565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137e5576137e4613a42565b5b828201905092915050565b60006137fb82613919565b915061380683613919565b92508261381657613815613a71565b5b828204905092915050565b600061382c82613919565b915061383783613919565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138705761386f613a42565b5b828202905092915050565b600061388682613919565b915061389183613919565b9250828210156138a4576138a3613a42565b5b828203905092915050565b60006138ba826138f9565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613950578082015181840152602081019050613935565b8381111561395f576000848401525b50505050565b6000600282049050600182168061397d57607f821691505b6020821081141561399157613990613aa0565b5b50919050565b6139a082613afe565b810181811067ffffffffffffffff821117156139bf576139be613acf565b5b80604052505050565b60006139d382613919565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613a0657613a05613a42565b5b600182019050919050565b6000613a1c82613919565b9150613a2783613919565b925082613a3757613a36613a71565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b613f4d816138af565b8114613f5857600080fd5b50565b613f64816138c1565b8114613f6f57600080fd5b50565b613f7b816138cd565b8114613f8657600080fd5b50565b613f9281613919565b8114613f9d57600080fd5b5056fea2646970667358221220cb6e6249f7e703020c7c6c649fa039659582e5366544983084ed67300e61665364736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000074e46544d41534b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074e46544d41534b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d613935416378785852714839445478623655744b3835385068754c67697a706879755879674456473637384500000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): NFTMASK
Arg [1] : _symbol (string): NFTMASK
Arg [2] : _initBaseURI (string): ipfs://Qma95AcxxXRqH9DTxb6UtK858PhuLgizphyuXygDVG678E
Arg [3] : _initNotRevealedUri (string):
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 4e46544d41534b00000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [7] : 4e46544d41534b00000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [9] : 697066733a2f2f516d613935416378785852714839445478623655744b383538
Arg [10] : 5068754c67697a70687975587967445647363738450000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.