Overview
ETH Balance
0.14 ETH
Eth Value
$336.19 (@ $2,401.37/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 49 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 18892655 | 250 days ago | IN | 0 ETH | 0.00151839 | ||||
Set Approval For... | 18846235 | 257 days ago | IN | 0 ETH | 0.00057259 | ||||
Set Approval For... | 16727684 | 554 days ago | IN | 0 ETH | 0.00122894 | ||||
Set Approval For... | 16681029 | 561 days ago | IN | 0 ETH | 0.0007444 | ||||
Set Approval For... | 16621150 | 569 days ago | IN | 0 ETH | 0.00149311 | ||||
Safe Transfer Fr... | 16553929 | 579 days ago | IN | 0 ETH | 0.00145098 | ||||
Set Approval For... | 16502351 | 586 days ago | IN | 0 ETH | 0.00048504 | ||||
Set Approval For... | 16502349 | 586 days ago | IN | 0 ETH | 0.00050222 | ||||
Set Approval For... | 16501931 | 586 days ago | IN | 0 ETH | 0.00035968 | ||||
Set Approval For... | 16309024 | 613 days ago | IN | 0 ETH | 0.0007162 | ||||
Set Approval For... | 16250834 | 621 days ago | IN | 0 ETH | 0.00058001 | ||||
Set Approval For... | 16240607 | 623 days ago | IN | 0 ETH | 0.0008023 | ||||
Public Mint | 16207313 | 627 days ago | IN | 0.02 ETH | 0.00089431 | ||||
Set Approval For... | 16122029 | 639 days ago | IN | 0 ETH | 0.00058183 | ||||
Set Approval For... | 16117329 | 640 days ago | IN | 0 ETH | 0.00059122 | ||||
Safe Transfer Fr... | 16030465 | 652 days ago | IN | 0 ETH | 0.00077292 | ||||
Public Mint | 16010288 | 655 days ago | IN | 0.02 ETH | 0.00098006 | ||||
Set Approval For... | 15936390 | 665 days ago | IN | 0 ETH | 0.00153394 | ||||
Set Approval For... | 15927740 | 666 days ago | IN | 0 ETH | 0.00634535 | ||||
Set Approval For... | 15927739 | 666 days ago | IN | 0 ETH | 0.0064468 | ||||
Public Mint | 15847839 | 677 days ago | IN | 0.02 ETH | 0.00202501 | ||||
Set Approval For... | 15835102 | 679 days ago | IN | 0 ETH | 0.00081312 | ||||
Public Mint | 15788230 | 686 days ago | IN | 0.02 ETH | 0.0012282 | ||||
Public Mint | 15778162 | 687 days ago | IN | 0.02 ETH | 0.00135226 | ||||
Set Approval For... | 15776555 | 687 days ago | IN | 0 ETH | 0.00171762 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
16309025 | 613 days ago | 0 ETH | |||||
15825502 | 681 days ago | 0 ETH | |||||
15749777 | 691 days ago | 0 ETH | |||||
15749777 | 691 days ago | 0 ETH | |||||
15749777 | 691 days ago | 0 ETH | |||||
15749777 | 691 days ago | 0 ETH | |||||
15749768 | 691 days ago | 0 ETH | |||||
15749768 | 691 days ago | 0 ETH | |||||
15749768 | 691 days ago | 0 ETH | |||||
15749768 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH | |||||
15749213 | 691 days ago | 0 ETH |
Loading...
Loading
Contract Name:
HellHouse
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.14; //OpenZeppelin import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; //AlchemistCoin import "@alchemist.wtf/token-extensions/contracts/Erc721BurningErc20OnMint.sol"; // ▄█ █▄ ▄████████ ▄█ ▄█ ▄█ █▄ ▄██████▄ ███ █▄ ▄████████ ▄████████ // ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ // ███ ███ ███ █▀ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ███ █▀ // ▄███▄▄▄▄███▄▄ ▄███▄▄▄ ███ ███ ▄███▄▄▄▄███▄▄ ███ ███ ███ ███ ███ ▄███▄▄▄ // ▀▀███▀▀▀▀███▀ ▀▀███▀▀▀ ███ ███ ▀▀███▀▀▀▀███▀ ███ ███ ███ ███ ▀███████████ ▀▀███▀▀▀ // ███ ███ ███ █▄ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ █▄ // ███ ███ ███ ███ ███▌ ▄ ███▌ ▄ ███ ███ ███ ███ ███ ███ ▄█ ███ ███ ███ // ███ █▀ ██████████ █████▄▄██ █████▄▄██ ███ █▀ ▀██████▀ ████████▀ ▄████████▀ ██████████ // ▀ ▀ /* @title Hell House | FELT Zine x Fjord Drop 2 @notice FELT Zine & Fjord present a series of experimental NFT collections @artist Mark Sabb of Felt Zine @dev javvvs.eth */ contract HellHouse is Erc721BurningErc20OnMint, ReentrancyGuard, IERC2981{ /*////////////////////////////////////////////////////////////// ERRORS //////////////////////////////////////////////////////////////*/ error FJORD_TotalMinted(); error FJORD_InexactPayment(); error FJORD_MaxMintExceeded(); /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event MintedAnNFT(address indexed to, uint256 indexed tokenId); /*////////////////////////////////////////////////////////////// STATE VARIABLES //////////////////////////////////////////////////////////////*/ uint16 public mintCounter; uint16 public constant TOTAL_SUPPLY = 777; string public customBaseURI; string public contractURI = "ipfs://QmZvf1ZS2nnFh6sj8G61TmzLetvB82458SXU1TCNqLZD6u"; uint256 private PRICE_PER_PUBLIC_MINT; enum MintPhase { INACTIVE, FJORD, PUBLIC } MintPhase public stage = MintPhase.INACTIVE; /*////////////////////////////////////////////////////////////// INIT/CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory customBaseURI_) ERC721("HellHouse", "HHOUSE") { customBaseURI = customBaseURI_; stage = MintPhase.INACTIVE; } /*////////////////////////////////////////////////////////////// ONLY OWNER //////////////////////////////////////////////////////////////*/ //@notice: owner set the different states of the minting phase // 0 = INACTIVE 1 = FJORD 2 = PUBLIC function setMintStage(MintPhase val_) external onlyOwner { stage = val_; } function setPublicMintPrice(uint256 price) external onlyOwner { PRICE_PER_PUBLIC_MINT = price; } function updateMetadata(string memory newURI) external onlyOwner { customBaseURI = newURI; } /*////////////////////////////////////////////////////////////// MINT //////////////////////////////////////////////////////////////*/ /// @notice mint implementation interfacing w Erc721BurningErc20OnMint contract function mint() public override nonReentrant returns (uint256) { require(stage == MintPhase.FJORD, "Fjord drop is not active"); if (mintCounter >= TOTAL_SUPPLY) { revert FJORD_TotalMinted(); } else { unchecked { mintCounter++; } uint256 tokenId = mintCounter; _mint(msg.sender, tokenId); return tokenId; } } function publicMint(uint256 _amount) public payable { require(stage == MintPhase.PUBLIC, "Public Mint is disabled"); if (msg.value != PRICE_PER_PUBLIC_MINT * _amount) { revert FJORD_InexactPayment(); } else if (mintCounter + _amount > TOTAL_SUPPLY) { revert FJORD_MaxMintExceeded(); } else { uint256 i; for (i = 0; i < _amount; i++) { unchecked { mintCounter++; } uint256 tokenId = mintCounter; _mint(msg.sender, tokenId); emit MintedAnNFT(msg.sender, tokenId); } } } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(Erc721BurningErc20OnMint) { require(stage != MintPhase.INACTIVE, "Minting is not active"); if (stage == MintPhase.FJORD) { Erc721BurningErc20OnMint._beforeTokenTransfer(from, to, amount); } else if (stage == MintPhase.PUBLIC) { ERC721._beforeTokenTransfer(from, to, amount); } else { revert("Minting error"); } } /*////////////////////////////////////////////////////////////// READ //////////////////////////////////////////////////////////////*/ function _baseURI() internal view virtual override returns (string memory) { return customBaseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string(abi.encodePacked(super.tokenURI(tokenId))); } function totalSupply() public view returns (uint256) { return mintCounter; } /*////////////////////////////////////////////////////////////// WITHDRAW AND ROYALTIES FUNCTIONS //////////////////////////////////////////////////////////////*/ ///@notice sets the royalties for secondary sales. ///Override function gets royalty information for a token (EIP-2981) ///@param salePrice as an input to calculate the royalties ///@dev conforms to EIP-2981 function royaltyInfo(uint256, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (address(this), (salePrice * 10) / 100); } //PAYOUT ADDRESSES address private constant feltzine = 0x5e080D8b14c1DA5936509c2c9EF0168A19304202; address private constant dev = 0x52aA63A67b15e3C2F201c9422cAC1e81bD6ea847; //@notice : withdraws the royalties to the addresses above function withdraw() public nonReentrant onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(feltzine), (balance * 750) / 1000); Address.sendValue(payable(dev), (balance * 250) / 1000); } //Fallback receive() external payable {} }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IErc721BurningErc20OnMint.sol"; abstract contract Erc721BurningErc20OnMint is ERC721, IErc721BurningErc20OnMint, Ownable { address public erc20TokenAddress; function setErc20TokenAddress(address erc20TokenAddress_) public override onlyOwner { erc20TokenAddress = erc20TokenAddress_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) { return interfaceId == type(IErc721BurningErc20OnMint).interfaceId || super.supportsInterface(interfaceId); } /** * @dev this method hooks into ERC721's internal transfers mechanism (mint, burn, transfer) - see https://docs.openzeppelin.com/contracts/4.x/api/token/erc721#ERC721-_beforeTokenTransfer-address-address-uint256- * - When from and to are both non-zero, from's amount will be transferred to to. * - When from is zero, amount will be minted for to. * - When to is zero, from's amount will be burned. * from and to are never both zero. * This function checks that the "to" address has at least a balance of 1, in order for them to qualify for * minting an NFT, and if they do, we burn one token * the above logic only applies to minting, other transfer operations are ignored */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { ERC721._beforeTokenTransfer(from, to, amount); //check if it's a mint if (from == address(0) && to != address(0)) { require( erc20TokenAddress != address(0), "erc20TokenAddress undefined" ); uint256 balanceOfAddress = IERC20(erc20TokenAddress).balanceOf(to); require(balanceOfAddress >= 1, "user does not hold a token"); ERC20Burnable(erc20TokenAddress).burnFrom(to, 1); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; interface IErc721BurningErc20OnMint { function setErc20TokenAddress(address erc20TokenAddress_) external; // Input: address to mint ERC721 to, and returns the token ID minted function mint() external returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Storage.sol) pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// 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 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // 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/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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FJORD_InexactPayment","type":"error"},{"inputs":[],"name":"FJORD_MaxMintExceeded","type":"error"},{"inputs":[],"name":"FJORD_TotalMinted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintedAnNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"address","name":"erc20TokenAddress_","type":"address"}],"name":"setErc20TokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum HellHouse.MintPhase","name":"val_","type":"uint8"}],"name":"setMintStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum HellHouse.MintPhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060600160405280603581526020016200466d60359139600b9080519060200190620000359291906200027b565b506000600d60006101000a81548160ff021916908360028111156200005f576200005e6200032b565b5b02179055503480156200007157600080fd5b50604051620046a2380380620046a28339818101604052810190620000979190620004f7565b6040518060400160405280600981526020017f48656c6c486f75736500000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f48484f555345000000000000000000000000000000000000000000000000000081525081600090805190602001906200011b9291906200027b565b508060019080519060200190620001349291906200027b565b505050620001576200014b620001ad60201b60201c565b620001b560201b60201c565b600160088190555080600a9080519060200190620001779291906200027b565b506000600d60006101000a81548160ff02191690836002811115620001a157620001a06200032b565b5b021790555050620005ac565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002899062000577565b90600052602060002090601f016020900481019282620002ad5760008555620002f9565b82601f10620002c857805160ff1916838001178555620002f9565b82800160010185558215620002f9579182015b82811115620002f8578251825591602001919060010190620002db565b5b5090506200030891906200030c565b5090565b5b80821115620003275760008160009055506001016200030d565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003c38262000378565b810181811067ffffffffffffffff82111715620003e557620003e462000389565b5b80604052505050565b6000620003fa6200035a565b9050620004088282620003b8565b919050565b600067ffffffffffffffff8211156200042b576200042a62000389565b5b620004368262000378565b9050602081019050919050565b60005b838110156200046357808201518184015260208101905062000446565b8381111562000473576000848401525b50505050565b6000620004906200048a846200040d565b620003ee565b905082815260208101848484011115620004af57620004ae62000373565b5b620004bc84828562000443565b509392505050565b600082601f830112620004dc57620004db6200036e565b5b8151620004ee84826020860162000479565b91505092915050565b60006020828403121562000510576200050f62000364565b5b600082015167ffffffffffffffff81111562000531576200053062000369565b5b6200053f84828501620004c4565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059057607f821691505b602082108103620005a657620005a562000548565b5b50919050565b6140b180620005bc6000396000f3fe6080604052600436106101dc5760003560e01c8063715018a611610102578063bb0ba35d11610095578063e985e9c511610064578063e985e9c514610697578063eb107e20146106d4578063f2fde38b146106fd578063f835cd3c14610726576101e3565b8063bb0ba35d146105db578063c040e6b814610604578063c87b56dd1461062f578063e8a3d4851461066c576101e3565b8063918b5be1116100d1578063918b5be11461053557806395d89b411461055e578063a22cb46514610589578063b88d4fde146105b2576101e3565b8063715018a61461049d578063889a3f19146104b45780638da5cb5b146104df578063902d55a51461050a576101e3565b80632a55205a1161017a57806346aa52ce1161014957806346aa52ce146103cf5780635d82cf6e146103fa5780636352211e1461042357806370a0823114610460576101e3565b80632a55205a146103355780632db11544146103735780633ccfd60b1461038f57806342842e0e146103a6576101e3565b8063095ea7b3116101b6578063095ea7b31461028d5780631249c58b146102b657806318160ddd146102e157806323b872dd1461030c576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250576101e3565b366101e357005b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a919061294c565b610751565b60405161021c9190612994565b60405180910390f35b34801561023157600080fd5b5061023a6107cb565b6040516102479190612a48565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190612aa0565b61085d565b6040516102849190612b0e565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190612b55565b6108a3565b005b3480156102c257600080fd5b506102cb6109ba565b6040516102d89190612ba4565b60405180910390f35b3480156102ed57600080fd5b506102f6610b39565b6040516103039190612ba4565b60405180910390f35b34801561031857600080fd5b50610333600480360381019061032e9190612bbf565b610b55565b005b34801561034157600080fd5b5061035c60048036038101906103579190612c12565b610bb5565b60405161036a929190612c52565b60405180910390f35b61038d60048036038101906103889190612aa0565b610bdd565b005b34801561039b57600080fd5b506103a4610db6565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190612bbf565b610e8a565b005b3480156103db57600080fd5b506103e4610eaa565b6040516103f19190612c98565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190612aa0565b610ebe565b005b34801561042f57600080fd5b5061044a60048036038101906104459190612aa0565b610ed0565b6040516104579190612b0e565b60405180910390f35b34801561046c57600080fd5b5061048760048036038101906104829190612cb3565b610f81565b6040516104949190612ba4565b60405180910390f35b3480156104a957600080fd5b506104b2611038565b005b3480156104c057600080fd5b506104c961104c565b6040516104d69190612a48565b60405180910390f35b3480156104eb57600080fd5b506104f46110da565b6040516105019190612b0e565b60405180910390f35b34801561051657600080fd5b5061051f611104565b60405161052c9190612c98565b60405180910390f35b34801561054157600080fd5b5061055c60048036038101906105579190612e15565b61110a565b005b34801561056a57600080fd5b5061057361112c565b6040516105809190612a48565b60405180910390f35b34801561059557600080fd5b506105b060048036038101906105ab9190612e8a565b6111be565b005b3480156105be57600080fd5b506105d960048036038101906105d49190612f6b565b6111d4565b005b3480156105e757600080fd5b5061060260048036038101906105fd9190613013565b611236565b005b34801561061057600080fd5b5061061961126b565b60405161062691906130b7565b60405180910390f35b34801561063b57600080fd5b5061065660048036038101906106519190612aa0565b61127e565b6040516106639190612a48565b60405180910390f35b34801561067857600080fd5b506106816112af565b60405161068e9190612a48565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b991906130d2565b61133d565b6040516106cb9190612994565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612cb3565b6113d1565b005b34801561070957600080fd5b50610724600480360381019061071f9190612cb3565b61141d565b005b34801561073257600080fd5b5061073b6114a0565b6040516107489190612b0e565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c457506107c3826114c6565b5b9050919050565b6060600080546107da90613141565b80601f016020809104026020016040519081016040528092919081815260200182805461080690613141565b80156108535780601f1061082857610100808354040283529160200191610853565b820191906000526020600020905b81548152906001019060200180831161083657829003601f168201915b5050505050905090565b6000610868826115a8565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108ae82610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361091e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610915906131e4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661093d6115f3565b73ffffffffffffffffffffffffffffffffffffffff16148061096c575061096b816109666115f3565b61133d565b5b6109ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a290613276565b60405180910390fd5b6109b583836115fb565b505050565b6000600260085403610a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f8906132e2565b60405180910390fd5b600260088190555060016002811115610a1d57610a1c613040565b5b600d60009054906101000a900460ff166002811115610a3f57610a3e613040565b5b14610a7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a769061334e565b60405180910390fd5b61030961ffff16600960009054906101000a900461ffff1661ffff1610610ad2576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610b2a33826116b4565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610b66610b606115f3565b8261188d565b610ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9c906133e0565b60405180910390fd5b610bb0838383611922565b505050565b600080306064600a85610bc8919061342f565b610bd291906134b8565b915091509250929050565b600280811115610bf057610bef613040565b5b600d60009054906101000a900460ff166002811115610c1257610c11613040565b5b14610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990613535565b60405180910390fd5b80600c54610c60919061342f565b3414610c98576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61030961ffff1681600960009054906101000a900461ffff1661ffff16610cbf9190613555565b1115610cf7576040517fdec0507f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610db2576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610d5a33826116b4565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610daa906135ab565b915050610cfa565b5050565b600260085403610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df2906132e2565b60405180910390fd5b6002600881905550610e0b611b88565b6000479050610e48735e080d8b14c1da5936509c2c9ef0168a193042026103e86102ee84610e39919061342f565b610e4391906134b8565b611c06565b610e7f7352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610e70919061342f565b610e7a91906134b8565b611c06565b506001600881905550565b610ea5838383604051806020016040528060008152506111d4565b505050565b600960009054906101000a900461ffff1681565b610ec6611b88565b80600c8190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f9061363f565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe8906136d1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611040611b88565b61104a6000611cfa565b565b600a805461105990613141565b80601f016020809104026020016040519081016040528092919081815260200182805461108590613141565b80156110d25780601f106110a7576101008083540402835291602001916110d2565b820191906000526020600020905b8154815290600101906020018083116110b557829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61030981565b611112611b88565b80600a908051906020019061112892919061283d565b5050565b60606001805461113b90613141565b80601f016020809104026020016040519081016040528092919081815260200182805461116790613141565b80156111b45780601f10611189576101008083540402835291602001916111b4565b820191906000526020600020905b81548152906001019060200180831161119757829003601f168201915b5050505050905090565b6111d06111c96115f3565b8383611dc0565b5050565b6111e56111df6115f3565b8361188d565b611224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121b906133e0565b60405180910390fd5b61123084848484611f2c565b50505050565b61123e611b88565b80600d60006101000a81548160ff0219169083600281111561126357611262613040565b5b021790555050565b600d60009054906101000a900460ff1681565b606061128982611f88565b604051602001611299919061372d565b6040516020818303038152906040529050919050565b600b80546112bc90613141565b80601f01602080910402602001604051908101604052809291908181526020018280546112e890613141565b80156113355780601f1061130a57610100808354040283529160200191611335565b820191906000526020600020905b81548152906001019060200180831161131857829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6113d9611b88565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611425611b88565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b906137b6565b60405180910390fd5b61149d81611cfa565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061159157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806115a157506115a082611ff0565b5b9050919050565b6115b18161205a565b6115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e79061363f565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661166e83610ed0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171a90613822565b60405180910390fd5b61172c8161205a565b1561176c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117639061388e565b60405180910390fd5b611778600083836120c6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117c89190613555565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461188960008383612212565b5050565b60008061189983610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118db57506118da818561133d565b5b8061191957508373ffffffffffffffffffffffffffffffffffffffff166119018461085d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661194282610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f90613920565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fe906139b2565b60405180910390fd5b611a128383836120c6565b611a1d6000826115fb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6d91906139d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ac49190613555565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b83838383612212565b505050565b611b906115f3565b73ffffffffffffffffffffffffffffffffffffffff16611bae6110da565b73ffffffffffffffffffffffffffffffffffffffff1614611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb90613a52565b60405180910390fd5b565b80471015611c49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4090613abe565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611c6f90613b0f565b60006040518083038185875af1925050503d8060008114611cac576040519150601f19603f3d011682016040523d82523d6000602084013e611cb1565b606091505b5050905080611cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cec90613b96565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613c02565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f1f9190612994565b60405180910390a3505050565b611f37848484611922565b611f4384848484612217565b611f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7990613c94565b60405180910390fd5b50505050565b6060611f93826115a8565b6000611f9d61239e565b90506000815111611fbd5760405180602001604052806000815250611fe8565b80611fc784612430565b604051602001611fd8929190613cb4565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600060028111156120da576120d9613040565b5b600d60009054906101000a900460ff1660028111156120fc576120fb613040565b5b0361213c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213390613d24565b60405180910390fd5b600160028111156121505761214f613040565b5b600d60009054906101000a900460ff16600281111561217257612171613040565b5b0361218757612182838383612590565b61220d565b60028081111561219a57612199613040565b5b600d60009054906101000a900460ff1660028111156121bc576121bb613040565b5b036121d1576121cc838383612815565b61220c565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220390613d90565b60405180910390fd5b5b505050565b505050565b60006122388473ffffffffffffffffffffffffffffffffffffffff1661281a565b15612391578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122616115f3565b8786866040518563ffffffff1660e01b81526004016122839493929190613e05565b6020604051808303816000875af19250505080156122bf57506040513d601f19601f820116820180604052508101906122bc9190613e66565b60015b612341573d80600081146122ef576040519150601f19603f3d011682016040523d82523d6000602084013e6122f4565b606091505b506000815103612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233090613c94565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612396565b600190505b949350505050565b6060600a80546123ad90613141565b80601f01602080910402602001604051908101604052809291908181526020018280546123d990613141565b80156124265780601f106123fb57610100808354040283529160200191612426565b820191906000526020600020905b81548152906001019060200180831161240957829003601f168201915b5050505050905090565b606060008203612477576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061258b565b600082905060005b600082146124a9578080612492906135ab565b915050600a826124a291906134b8565b915061247f565b60008167ffffffffffffffff8111156124c5576124c4612cea565b5b6040519080825280601f01601f1916602001820160405280156124f75781602001600182028036833780820191505090505b5090505b600085146125845760018261251091906139d2565b9150600a8561251f9190613e93565b603061252b9190613555565b60f81b81838151811061254157612540613ec4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561257d91906134b8565b94506124fb565b8093505050505b919050565b61259b838383612815565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156126045750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561281057600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361269a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269190613f3f565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016126f79190612b0e565b602060405180830381865afa158015612714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127389190613f74565b9050600181101561277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590613fed565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b81526004016127dc929190614052565b600060405180830381600087803b1580156127f657600080fd5b505af115801561280a573d6000803e3d6000fd5b50505050505b505050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461284990613141565b90600052602060002090601f01602090048101928261286b57600085556128b2565b82601f1061288457805160ff19168380011785556128b2565b828001600101855582156128b2579182015b828111156128b1578251825591602001919060010190612896565b5b5090506128bf91906128c3565b5090565b5b808211156128dc5760008160009055506001016128c4565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612929816128f4565b811461293457600080fd5b50565b60008135905061294681612920565b92915050565b600060208284031215612962576129616128ea565b5b600061297084828501612937565b91505092915050565b60008115159050919050565b61298e81612979565b82525050565b60006020820190506129a96000830184612985565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156129e95780820151818401526020810190506129ce565b838111156129f8576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a1a826129af565b612a2481856129ba565b9350612a348185602086016129cb565b612a3d816129fe565b840191505092915050565b60006020820190508181036000830152612a628184612a0f565b905092915050565b6000819050919050565b612a7d81612a6a565b8114612a8857600080fd5b50565b600081359050612a9a81612a74565b92915050565b600060208284031215612ab657612ab56128ea565b5b6000612ac484828501612a8b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612af882612acd565b9050919050565b612b0881612aed565b82525050565b6000602082019050612b236000830184612aff565b92915050565b612b3281612aed565b8114612b3d57600080fd5b50565b600081359050612b4f81612b29565b92915050565b60008060408385031215612b6c57612b6b6128ea565b5b6000612b7a85828601612b40565b9250506020612b8b85828601612a8b565b9150509250929050565b612b9e81612a6a565b82525050565b6000602082019050612bb96000830184612b95565b92915050565b600080600060608486031215612bd857612bd76128ea565b5b6000612be686828701612b40565b9350506020612bf786828701612b40565b9250506040612c0886828701612a8b565b9150509250925092565b60008060408385031215612c2957612c286128ea565b5b6000612c3785828601612a8b565b9250506020612c4885828601612a8b565b9150509250929050565b6000604082019050612c676000830185612aff565b612c746020830184612b95565b9392505050565b600061ffff82169050919050565b612c9281612c7b565b82525050565b6000602082019050612cad6000830184612c89565b92915050565b600060208284031215612cc957612cc86128ea565b5b6000612cd784828501612b40565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d22826129fe565b810181811067ffffffffffffffff82111715612d4157612d40612cea565b5b80604052505050565b6000612d546128e0565b9050612d608282612d19565b919050565b600067ffffffffffffffff821115612d8057612d7f612cea565b5b612d89826129fe565b9050602081019050919050565b82818337600083830152505050565b6000612db8612db384612d65565b612d4a565b905082815260208101848484011115612dd457612dd3612ce5565b5b612ddf848285612d96565b509392505050565b600082601f830112612dfc57612dfb612ce0565b5b8135612e0c848260208601612da5565b91505092915050565b600060208284031215612e2b57612e2a6128ea565b5b600082013567ffffffffffffffff811115612e4957612e486128ef565b5b612e5584828501612de7565b91505092915050565b612e6781612979565b8114612e7257600080fd5b50565b600081359050612e8481612e5e565b92915050565b60008060408385031215612ea157612ea06128ea565b5b6000612eaf85828601612b40565b9250506020612ec085828601612e75565b9150509250929050565b600067ffffffffffffffff821115612ee557612ee4612cea565b5b612eee826129fe565b9050602081019050919050565b6000612f0e612f0984612eca565b612d4a565b905082815260208101848484011115612f2a57612f29612ce5565b5b612f35848285612d96565b509392505050565b600082601f830112612f5257612f51612ce0565b5b8135612f62848260208601612efb565b91505092915050565b60008060008060808587031215612f8557612f846128ea565b5b6000612f9387828801612b40565b9450506020612fa487828801612b40565b9350506040612fb587828801612a8b565b925050606085013567ffffffffffffffff811115612fd657612fd56128ef565b5b612fe287828801612f3d565b91505092959194509250565b60038110612ffb57600080fd5b50565b60008135905061300d81612fee565b92915050565b600060208284031215613029576130286128ea565b5b600061303784828501612ffe565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600381106130805761307f613040565b5b50565b60008190506130918261306f565b919050565b60006130a182613083565b9050919050565b6130b181613096565b82525050565b60006020820190506130cc60008301846130a8565b92915050565b600080604083850312156130e9576130e86128ea565b5b60006130f785828601612b40565b925050602061310885828601612b40565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061315957607f821691505b60208210810361316c5761316b613112565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006131ce6021836129ba565b91506131d982613172565b604082019050919050565b600060208201905081810360008301526131fd816131c1565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613260603e836129ba565b915061326b82613204565b604082019050919050565b6000602082019050818103600083015261328f81613253565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006132cc601f836129ba565b91506132d782613296565b602082019050919050565b600060208201905081810360008301526132fb816132bf565b9050919050565b7f466a6f72642064726f70206973206e6f74206163746976650000000000000000600082015250565b60006133386018836129ba565b915061334382613302565b602082019050919050565b600060208201905081810360008301526133678161332b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006133ca602e836129ba565b91506133d58261336e565b604082019050919050565b600060208201905081810360008301526133f9816133bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061343a82612a6a565b915061344583612a6a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561347e5761347d613400565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006134c382612a6a565b91506134ce83612a6a565b9250826134de576134dd613489565b5b828204905092915050565b7f5075626c6963204d696e742069732064697361626c6564000000000000000000600082015250565b600061351f6017836129ba565b915061352a826134e9565b602082019050919050565b6000602082019050818103600083015261354e81613512565b9050919050565b600061356082612a6a565b915061356b83612a6a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156135a05761359f613400565b5b828201905092915050565b60006135b682612a6a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135e8576135e7613400565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006136296018836129ba565b9150613634826135f3565b602082019050919050565b600060208201905081810360008301526136588161361c565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006136bb6029836129ba565b91506136c68261365f565b604082019050919050565b600060208201905081810360008301526136ea816136ae565b9050919050565b600081905092915050565b6000613707826129af565b61371181856136f1565b93506137218185602086016129cb565b80840191505092915050565b600061373982846136fc565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006137a06026836129ba565b91506137ab82613744565b604082019050919050565b600060208201905081810360008301526137cf81613793565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061380c6020836129ba565b9150613817826137d6565b602082019050919050565b6000602082019050818103600083015261383b816137ff565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613878601c836129ba565b915061388382613842565b602082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061390a6025836129ba565b9150613915826138ae565b604082019050919050565b60006020820190508181036000830152613939816138fd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061399c6024836129ba565b91506139a782613940565b604082019050919050565b600060208201905081810360008301526139cb8161398f565b9050919050565b60006139dd82612a6a565b91506139e883612a6a565b9250828210156139fb576139fa613400565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a3c6020836129ba565b9150613a4782613a06565b602082019050919050565b60006020820190508181036000830152613a6b81613a2f565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613aa8601d836129ba565b9150613ab382613a72565b602082019050919050565b60006020820190508181036000830152613ad781613a9b565b9050919050565b600081905092915050565b50565b6000613af9600083613ade565b9150613b0482613ae9565b600082019050919050565b6000613b1a82613aec565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613b80603a836129ba565b9150613b8b82613b24565b604082019050919050565b60006020820190508181036000830152613baf81613b73565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613bec6019836129ba565b9150613bf782613bb6565b602082019050919050565b60006020820190508181036000830152613c1b81613bdf565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613c7e6032836129ba565b9150613c8982613c22565b604082019050919050565b60006020820190508181036000830152613cad81613c71565b9050919050565b6000613cc082856136fc565b9150613ccc82846136fc565b91508190509392505050565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b6000613d0e6015836129ba565b9150613d1982613cd8565b602082019050919050565b60006020820190508181036000830152613d3d81613d01565b9050919050565b7f4d696e74696e67206572726f7200000000000000000000000000000000000000600082015250565b6000613d7a600d836129ba565b9150613d8582613d44565b602082019050919050565b60006020820190508181036000830152613da981613d6d565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613dd782613db0565b613de18185613dbb565b9350613df18185602086016129cb565b613dfa816129fe565b840191505092915050565b6000608082019050613e1a6000830187612aff565b613e276020830186612aff565b613e346040830185612b95565b8181036060830152613e468184613dcc565b905095945050505050565b600081519050613e6081612920565b92915050565b600060208284031215613e7c57613e7b6128ea565b5b6000613e8a84828501613e51565b91505092915050565b6000613e9e82612a6a565b9150613ea983612a6a565b925082613eb957613eb8613489565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000613f29601b836129ba565b9150613f3482613ef3565b602082019050919050565b60006020820190508181036000830152613f5881613f1c565b9050919050565b600081519050613f6e81612a74565b92915050565b600060208284031215613f8a57613f896128ea565b5b6000613f9884828501613f5f565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b6000613fd7601a836129ba565b9150613fe282613fa1565b602082019050919050565b6000602082019050818103600083015261400681613fca565b9050919050565b6000819050919050565b6000819050919050565b600061403c6140376140328461400d565b614017565b612a6a565b9050919050565b61404c81614021565b82525050565b60006040820190506140676000830185612aff565b6140746020830184614043565b939250505056fea2646970667358221220ee928f0e27e8f5ae20702f1bb83a2e146c23d3fd63a1375438ed45b2afb9092e64736f6c634300080e0033697066733a2f2f516d5a7666315a53326e6e466836736a38473631546d7a4c6574764238323435385358553154434e714c5a4436750000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d556b6e363834363758334d4a76474c53356a57313567644d6a45796a7845676975517241447a45447a67684e2f00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c8063715018a611610102578063bb0ba35d11610095578063e985e9c511610064578063e985e9c514610697578063eb107e20146106d4578063f2fde38b146106fd578063f835cd3c14610726576101e3565b8063bb0ba35d146105db578063c040e6b814610604578063c87b56dd1461062f578063e8a3d4851461066c576101e3565b8063918b5be1116100d1578063918b5be11461053557806395d89b411461055e578063a22cb46514610589578063b88d4fde146105b2576101e3565b8063715018a61461049d578063889a3f19146104b45780638da5cb5b146104df578063902d55a51461050a576101e3565b80632a55205a1161017a57806346aa52ce1161014957806346aa52ce146103cf5780635d82cf6e146103fa5780636352211e1461042357806370a0823114610460576101e3565b80632a55205a146103355780632db11544146103735780633ccfd60b1461038f57806342842e0e146103a6576101e3565b8063095ea7b3116101b6578063095ea7b31461028d5780631249c58b146102b657806318160ddd146102e157806323b872dd1461030c576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250576101e3565b366101e357005b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a919061294c565b610751565b60405161021c9190612994565b60405180910390f35b34801561023157600080fd5b5061023a6107cb565b6040516102479190612a48565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190612aa0565b61085d565b6040516102849190612b0e565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190612b55565b6108a3565b005b3480156102c257600080fd5b506102cb6109ba565b6040516102d89190612ba4565b60405180910390f35b3480156102ed57600080fd5b506102f6610b39565b6040516103039190612ba4565b60405180910390f35b34801561031857600080fd5b50610333600480360381019061032e9190612bbf565b610b55565b005b34801561034157600080fd5b5061035c60048036038101906103579190612c12565b610bb5565b60405161036a929190612c52565b60405180910390f35b61038d60048036038101906103889190612aa0565b610bdd565b005b34801561039b57600080fd5b506103a4610db6565b005b3480156103b257600080fd5b506103cd60048036038101906103c89190612bbf565b610e8a565b005b3480156103db57600080fd5b506103e4610eaa565b6040516103f19190612c98565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190612aa0565b610ebe565b005b34801561042f57600080fd5b5061044a60048036038101906104459190612aa0565b610ed0565b6040516104579190612b0e565b60405180910390f35b34801561046c57600080fd5b5061048760048036038101906104829190612cb3565b610f81565b6040516104949190612ba4565b60405180910390f35b3480156104a957600080fd5b506104b2611038565b005b3480156104c057600080fd5b506104c961104c565b6040516104d69190612a48565b60405180910390f35b3480156104eb57600080fd5b506104f46110da565b6040516105019190612b0e565b60405180910390f35b34801561051657600080fd5b5061051f611104565b60405161052c9190612c98565b60405180910390f35b34801561054157600080fd5b5061055c60048036038101906105579190612e15565b61110a565b005b34801561056a57600080fd5b5061057361112c565b6040516105809190612a48565b60405180910390f35b34801561059557600080fd5b506105b060048036038101906105ab9190612e8a565b6111be565b005b3480156105be57600080fd5b506105d960048036038101906105d49190612f6b565b6111d4565b005b3480156105e757600080fd5b5061060260048036038101906105fd9190613013565b611236565b005b34801561061057600080fd5b5061061961126b565b60405161062691906130b7565b60405180910390f35b34801561063b57600080fd5b5061065660048036038101906106519190612aa0565b61127e565b6040516106639190612a48565b60405180910390f35b34801561067857600080fd5b506106816112af565b60405161068e9190612a48565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b991906130d2565b61133d565b6040516106cb9190612994565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190612cb3565b6113d1565b005b34801561070957600080fd5b50610724600480360381019061071f9190612cb3565b61141d565b005b34801561073257600080fd5b5061073b6114a0565b6040516107489190612b0e565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c457506107c3826114c6565b5b9050919050565b6060600080546107da90613141565b80601f016020809104026020016040519081016040528092919081815260200182805461080690613141565b80156108535780601f1061082857610100808354040283529160200191610853565b820191906000526020600020905b81548152906001019060200180831161083657829003601f168201915b5050505050905090565b6000610868826115a8565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108ae82610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361091e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610915906131e4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661093d6115f3565b73ffffffffffffffffffffffffffffffffffffffff16148061096c575061096b816109666115f3565b61133d565b5b6109ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a290613276565b60405180910390fd5b6109b583836115fb565b505050565b6000600260085403610a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f8906132e2565b60405180910390fd5b600260088190555060016002811115610a1d57610a1c613040565b5b600d60009054906101000a900460ff166002811115610a3f57610a3e613040565b5b14610a7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a769061334e565b60405180910390fd5b61030961ffff16600960009054906101000a900461ffff1661ffff1610610ad2576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610b2a33826116b4565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610b66610b606115f3565b8261188d565b610ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9c906133e0565b60405180910390fd5b610bb0838383611922565b505050565b600080306064600a85610bc8919061342f565b610bd291906134b8565b915091509250929050565b600280811115610bf057610bef613040565b5b600d60009054906101000a900460ff166002811115610c1257610c11613040565b5b14610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990613535565b60405180910390fd5b80600c54610c60919061342f565b3414610c98576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61030961ffff1681600960009054906101000a900461ffff1661ffff16610cbf9190613555565b1115610cf7576040517fdec0507f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610db2576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610d5a33826116b4565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610daa906135ab565b915050610cfa565b5050565b600260085403610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df2906132e2565b60405180910390fd5b6002600881905550610e0b611b88565b6000479050610e48735e080d8b14c1da5936509c2c9ef0168a193042026103e86102ee84610e39919061342f565b610e4391906134b8565b611c06565b610e7f7352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610e70919061342f565b610e7a91906134b8565b611c06565b506001600881905550565b610ea5838383604051806020016040528060008152506111d4565b505050565b600960009054906101000a900461ffff1681565b610ec6611b88565b80600c8190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f9061363f565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe8906136d1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611040611b88565b61104a6000611cfa565b565b600a805461105990613141565b80601f016020809104026020016040519081016040528092919081815260200182805461108590613141565b80156110d25780601f106110a7576101008083540402835291602001916110d2565b820191906000526020600020905b8154815290600101906020018083116110b557829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61030981565b611112611b88565b80600a908051906020019061112892919061283d565b5050565b60606001805461113b90613141565b80601f016020809104026020016040519081016040528092919081815260200182805461116790613141565b80156111b45780601f10611189576101008083540402835291602001916111b4565b820191906000526020600020905b81548152906001019060200180831161119757829003601f168201915b5050505050905090565b6111d06111c96115f3565b8383611dc0565b5050565b6111e56111df6115f3565b8361188d565b611224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121b906133e0565b60405180910390fd5b61123084848484611f2c565b50505050565b61123e611b88565b80600d60006101000a81548160ff0219169083600281111561126357611262613040565b5b021790555050565b600d60009054906101000a900460ff1681565b606061128982611f88565b604051602001611299919061372d565b6040516020818303038152906040529050919050565b600b80546112bc90613141565b80601f01602080910402602001604051908101604052809291908181526020018280546112e890613141565b80156113355780601f1061130a57610100808354040283529160200191611335565b820191906000526020600020905b81548152906001019060200180831161131857829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6113d9611b88565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611425611b88565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611494576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148b906137b6565b60405180910390fd5b61149d81611cfa565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061159157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806115a157506115a082611ff0565b5b9050919050565b6115b18161205a565b6115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e79061363f565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661166e83610ed0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171a90613822565b60405180910390fd5b61172c8161205a565b1561176c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117639061388e565b60405180910390fd5b611778600083836120c6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117c89190613555565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461188960008383612212565b5050565b60008061189983610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118db57506118da818561133d565b5b8061191957508373ffffffffffffffffffffffffffffffffffffffff166119018461085d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661194282610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f90613920565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fe906139b2565b60405180910390fd5b611a128383836120c6565b611a1d6000826115fb565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a6d91906139d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ac49190613555565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b83838383612212565b505050565b611b906115f3565b73ffffffffffffffffffffffffffffffffffffffff16611bae6110da565b73ffffffffffffffffffffffffffffffffffffffff1614611c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfb90613a52565b60405180910390fd5b565b80471015611c49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4090613abe565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611c6f90613b0f565b60006040518083038185875af1925050503d8060008114611cac576040519150601f19603f3d011682016040523d82523d6000602084013e611cb1565b606091505b5050905080611cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cec90613b96565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613c02565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f1f9190612994565b60405180910390a3505050565b611f37848484611922565b611f4384848484612217565b611f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7990613c94565b60405180910390fd5b50505050565b6060611f93826115a8565b6000611f9d61239e565b90506000815111611fbd5760405180602001604052806000815250611fe8565b80611fc784612430565b604051602001611fd8929190613cb4565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600060028111156120da576120d9613040565b5b600d60009054906101000a900460ff1660028111156120fc576120fb613040565b5b0361213c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213390613d24565b60405180910390fd5b600160028111156121505761214f613040565b5b600d60009054906101000a900460ff16600281111561217257612171613040565b5b0361218757612182838383612590565b61220d565b60028081111561219a57612199613040565b5b600d60009054906101000a900460ff1660028111156121bc576121bb613040565b5b036121d1576121cc838383612815565b61220c565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220390613d90565b60405180910390fd5b5b505050565b505050565b60006122388473ffffffffffffffffffffffffffffffffffffffff1661281a565b15612391578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122616115f3565b8786866040518563ffffffff1660e01b81526004016122839493929190613e05565b6020604051808303816000875af19250505080156122bf57506040513d601f19601f820116820180604052508101906122bc9190613e66565b60015b612341573d80600081146122ef576040519150601f19603f3d011682016040523d82523d6000602084013e6122f4565b606091505b506000815103612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233090613c94565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612396565b600190505b949350505050565b6060600a80546123ad90613141565b80601f01602080910402602001604051908101604052809291908181526020018280546123d990613141565b80156124265780601f106123fb57610100808354040283529160200191612426565b820191906000526020600020905b81548152906001019060200180831161240957829003601f168201915b5050505050905090565b606060008203612477576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061258b565b600082905060005b600082146124a9578080612492906135ab565b915050600a826124a291906134b8565b915061247f565b60008167ffffffffffffffff8111156124c5576124c4612cea565b5b6040519080825280601f01601f1916602001820160405280156124f75781602001600182028036833780820191505090505b5090505b600085146125845760018261251091906139d2565b9150600a8561251f9190613e93565b603061252b9190613555565b60f81b81838151811061254157612540613ec4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561257d91906134b8565b94506124fb565b8093505050505b919050565b61259b838383612815565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156126045750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561281057600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361269a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269190613f3f565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016126f79190612b0e565b602060405180830381865afa158015612714573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127389190613f74565b9050600181101561277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590613fed565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b81526004016127dc929190614052565b600060405180830381600087803b1580156127f657600080fd5b505af115801561280a573d6000803e3d6000fd5b50505050505b505050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461284990613141565b90600052602060002090601f01602090048101928261286b57600085556128b2565b82601f1061288457805160ff19168380011785556128b2565b828001600101855582156128b2579182015b828111156128b1578251825591602001919060010190612896565b5b5090506128bf91906128c3565b5090565b5b808211156128dc5760008160009055506001016128c4565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612929816128f4565b811461293457600080fd5b50565b60008135905061294681612920565b92915050565b600060208284031215612962576129616128ea565b5b600061297084828501612937565b91505092915050565b60008115159050919050565b61298e81612979565b82525050565b60006020820190506129a96000830184612985565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156129e95780820151818401526020810190506129ce565b838111156129f8576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a1a826129af565b612a2481856129ba565b9350612a348185602086016129cb565b612a3d816129fe565b840191505092915050565b60006020820190508181036000830152612a628184612a0f565b905092915050565b6000819050919050565b612a7d81612a6a565b8114612a8857600080fd5b50565b600081359050612a9a81612a74565b92915050565b600060208284031215612ab657612ab56128ea565b5b6000612ac484828501612a8b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612af882612acd565b9050919050565b612b0881612aed565b82525050565b6000602082019050612b236000830184612aff565b92915050565b612b3281612aed565b8114612b3d57600080fd5b50565b600081359050612b4f81612b29565b92915050565b60008060408385031215612b6c57612b6b6128ea565b5b6000612b7a85828601612b40565b9250506020612b8b85828601612a8b565b9150509250929050565b612b9e81612a6a565b82525050565b6000602082019050612bb96000830184612b95565b92915050565b600080600060608486031215612bd857612bd76128ea565b5b6000612be686828701612b40565b9350506020612bf786828701612b40565b9250506040612c0886828701612a8b565b9150509250925092565b60008060408385031215612c2957612c286128ea565b5b6000612c3785828601612a8b565b9250506020612c4885828601612a8b565b9150509250929050565b6000604082019050612c676000830185612aff565b612c746020830184612b95565b9392505050565b600061ffff82169050919050565b612c9281612c7b565b82525050565b6000602082019050612cad6000830184612c89565b92915050565b600060208284031215612cc957612cc86128ea565b5b6000612cd784828501612b40565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d22826129fe565b810181811067ffffffffffffffff82111715612d4157612d40612cea565b5b80604052505050565b6000612d546128e0565b9050612d608282612d19565b919050565b600067ffffffffffffffff821115612d8057612d7f612cea565b5b612d89826129fe565b9050602081019050919050565b82818337600083830152505050565b6000612db8612db384612d65565b612d4a565b905082815260208101848484011115612dd457612dd3612ce5565b5b612ddf848285612d96565b509392505050565b600082601f830112612dfc57612dfb612ce0565b5b8135612e0c848260208601612da5565b91505092915050565b600060208284031215612e2b57612e2a6128ea565b5b600082013567ffffffffffffffff811115612e4957612e486128ef565b5b612e5584828501612de7565b91505092915050565b612e6781612979565b8114612e7257600080fd5b50565b600081359050612e8481612e5e565b92915050565b60008060408385031215612ea157612ea06128ea565b5b6000612eaf85828601612b40565b9250506020612ec085828601612e75565b9150509250929050565b600067ffffffffffffffff821115612ee557612ee4612cea565b5b612eee826129fe565b9050602081019050919050565b6000612f0e612f0984612eca565b612d4a565b905082815260208101848484011115612f2a57612f29612ce5565b5b612f35848285612d96565b509392505050565b600082601f830112612f5257612f51612ce0565b5b8135612f62848260208601612efb565b91505092915050565b60008060008060808587031215612f8557612f846128ea565b5b6000612f9387828801612b40565b9450506020612fa487828801612b40565b9350506040612fb587828801612a8b565b925050606085013567ffffffffffffffff811115612fd657612fd56128ef565b5b612fe287828801612f3d565b91505092959194509250565b60038110612ffb57600080fd5b50565b60008135905061300d81612fee565b92915050565b600060208284031215613029576130286128ea565b5b600061303784828501612ffe565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600381106130805761307f613040565b5b50565b60008190506130918261306f565b919050565b60006130a182613083565b9050919050565b6130b181613096565b82525050565b60006020820190506130cc60008301846130a8565b92915050565b600080604083850312156130e9576130e86128ea565b5b60006130f785828601612b40565b925050602061310885828601612b40565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061315957607f821691505b60208210810361316c5761316b613112565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006131ce6021836129ba565b91506131d982613172565b604082019050919050565b600060208201905081810360008301526131fd816131c1565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613260603e836129ba565b915061326b82613204565b604082019050919050565b6000602082019050818103600083015261328f81613253565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006132cc601f836129ba565b91506132d782613296565b602082019050919050565b600060208201905081810360008301526132fb816132bf565b9050919050565b7f466a6f72642064726f70206973206e6f74206163746976650000000000000000600082015250565b60006133386018836129ba565b915061334382613302565b602082019050919050565b600060208201905081810360008301526133678161332b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006133ca602e836129ba565b91506133d58261336e565b604082019050919050565b600060208201905081810360008301526133f9816133bd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061343a82612a6a565b915061344583612a6a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561347e5761347d613400565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006134c382612a6a565b91506134ce83612a6a565b9250826134de576134dd613489565b5b828204905092915050565b7f5075626c6963204d696e742069732064697361626c6564000000000000000000600082015250565b600061351f6017836129ba565b915061352a826134e9565b602082019050919050565b6000602082019050818103600083015261354e81613512565b9050919050565b600061356082612a6a565b915061356b83612a6a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156135a05761359f613400565b5b828201905092915050565b60006135b682612a6a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135e8576135e7613400565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006136296018836129ba565b9150613634826135f3565b602082019050919050565b600060208201905081810360008301526136588161361c565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006136bb6029836129ba565b91506136c68261365f565b604082019050919050565b600060208201905081810360008301526136ea816136ae565b9050919050565b600081905092915050565b6000613707826129af565b61371181856136f1565b93506137218185602086016129cb565b80840191505092915050565b600061373982846136fc565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006137a06026836129ba565b91506137ab82613744565b604082019050919050565b600060208201905081810360008301526137cf81613793565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061380c6020836129ba565b9150613817826137d6565b602082019050919050565b6000602082019050818103600083015261383b816137ff565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613878601c836129ba565b915061388382613842565b602082019050919050565b600060208201905081810360008301526138a78161386b565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061390a6025836129ba565b9150613915826138ae565b604082019050919050565b60006020820190508181036000830152613939816138fd565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061399c6024836129ba565b91506139a782613940565b604082019050919050565b600060208201905081810360008301526139cb8161398f565b9050919050565b60006139dd82612a6a565b91506139e883612a6a565b9250828210156139fb576139fa613400565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a3c6020836129ba565b9150613a4782613a06565b602082019050919050565b60006020820190508181036000830152613a6b81613a2f565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613aa8601d836129ba565b9150613ab382613a72565b602082019050919050565b60006020820190508181036000830152613ad781613a9b565b9050919050565b600081905092915050565b50565b6000613af9600083613ade565b9150613b0482613ae9565b600082019050919050565b6000613b1a82613aec565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613b80603a836129ba565b9150613b8b82613b24565b604082019050919050565b60006020820190508181036000830152613baf81613b73565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000613bec6019836129ba565b9150613bf782613bb6565b602082019050919050565b60006020820190508181036000830152613c1b81613bdf565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000613c7e6032836129ba565b9150613c8982613c22565b604082019050919050565b60006020820190508181036000830152613cad81613c71565b9050919050565b6000613cc082856136fc565b9150613ccc82846136fc565b91508190509392505050565b7f4d696e74696e67206973206e6f74206163746976650000000000000000000000600082015250565b6000613d0e6015836129ba565b9150613d1982613cd8565b602082019050919050565b60006020820190508181036000830152613d3d81613d01565b9050919050565b7f4d696e74696e67206572726f7200000000000000000000000000000000000000600082015250565b6000613d7a600d836129ba565b9150613d8582613d44565b602082019050919050565b60006020820190508181036000830152613da981613d6d565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613dd782613db0565b613de18185613dbb565b9350613df18185602086016129cb565b613dfa816129fe565b840191505092915050565b6000608082019050613e1a6000830187612aff565b613e276020830186612aff565b613e346040830185612b95565b8181036060830152613e468184613dcc565b905095945050505050565b600081519050613e6081612920565b92915050565b600060208284031215613e7c57613e7b6128ea565b5b6000613e8a84828501613e51565b91505092915050565b6000613e9e82612a6a565b9150613ea983612a6a565b925082613eb957613eb8613489565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000613f29601b836129ba565b9150613f3482613ef3565b602082019050919050565b60006020820190508181036000830152613f5881613f1c565b9050919050565b600081519050613f6e81612a74565b92915050565b600060208284031215613f8a57613f896128ea565b5b6000613f9884828501613f5f565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b6000613fd7601a836129ba565b9150613fe282613fa1565b602082019050919050565b6000602082019050818103600083015261400681613fca565b9050919050565b6000819050919050565b6000819050919050565b600061403c6140376140328461400d565b614017565b612a6a565b9050919050565b61404c81614021565b82525050565b60006040820190506140676000830185612aff565b6140746020830184614043565b939250505056fea2646970667358221220ee928f0e27e8f5ae20702f1bb83a2e146c23d3fd63a1375438ed45b2afb9092e64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d556b6e363834363758334d4a76474c53356a57313567644d6a45796a7845676975517241447a45447a67684e2f00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : customBaseURI_ (string): https://ipfs.io/ipfs/QmUkn68467X3MJvGLS5jW15gdMjEyjxEgiuQrADzEDzghN/
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [2] : 68747470733a2f2f697066732e696f2f697066732f516d556b6e363834363758
Arg [3] : 334d4a76474c53356a57313567644d6a45796a7845676975517241447a45447a
Arg [4] : 67684e2f00000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,401.37 | 0.14 | $336.19 |
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.