ERC-721
Overview
Max Total Supply
525 FJORD
Holders
442
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 FJORDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FjordDrop
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"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; //AlchemistCoin import "@alchemist.wtf/token-extensions/contracts/Erc721BurningErc20OnMint.sol"; // _____ _ _ ______ _____ _ _ // | ___|__| | |_|__ (_)_ __ ___ __ __ | ___(_) ___ _ __ __| | // | |_ / _ \ | __| / /| | '_ \ / _ \ \ \/ / | |_ | |/ _ \| '__/ _` | // | _| __/ | |_ / /_| | | | | __/ > < | _| | | (_) | | | (_| | // |_| \___|_|\__/____|_|_| |_|\___| /_/\_\ |_| _/ |\___/|_| \__,_| // |__/ /* @title Lost Echoes | FELT Zine x Fjord Drop 1 @notice FELT Zine & Fjord present a series of experimental NFT collections @artist Ina Vare with executive production by Mark Sabb of Felt Zine @dev javvvs.eth */ contract FjordDrop is Erc721BurningErc20OnMint, ReentrancyGuard, IERC2981 { /*////////////////////////////////////////////////////////////// ERRORS //////////////////////////////////////////////////////////////*/ error FJORD_TotalMinted(); error FJORD_InexactPayment(); error FJORD_MaxMintExceeded(); error FJORD_WhitelistMaxSupplyExceeded(); error FJORD_WhitelistMintEnded(); error FJORD_PublicMintisNotActive(); /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event MintedAnNFT(address indexed to, uint256 indexed tokenId); /*////////////////////////////////////////////////////////////// STATE VARIABLES //////////////////////////////////////////////////////////////*/ uint16 public mintCounter; uint16 public constant TOTAL_SUPPLY = 525; string public customBaseURI; string public contractURI = "ipfs://QmdyYCtUsVsC5ymr7b4txQ6hXHpLXtJU7JXCDuHEJdXnRe"; address private mainnetFjordAddress = 0x6f435948d9ad4cA0a73a3257743528469899ceec; uint256 public whitelistEndDate; uint256 private constant PRICE_PER_WHITELIST_NFT = 0.02 ether; bytes32 public whiteListSaleMerkleRoot; uint32 private constant MAX_MINT_PER_WHITELIST_WALLET = 2; mapping(address => uint32) public mintPerWhitelistedWallet; uint256 private PRICE_PER_PUBLIC_MINT; bool public isPublicMintActive; /*////////////////////////////////////////////////////////////// INIT/CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory customBaseURI_, bytes32 whiteListSaleMerkleRoot_, uint256 mintQtyToOwner ) ERC721("Fjord Collection #1", "FJORD") { customBaseURI = customBaseURI_; whiteListSaleMerkleRoot = whiteListSaleMerkleRoot_; for (uint i = 0; i < mintQtyToOwner; i++) { unchecked { mintCounter++; } uint256 tokenId = mintCounter; _mint(msg.sender, tokenId); } } /*////////////////////////////////////////////////////////////// MODIFIERS //////////////////////////////////////////////////////////////*/ modifier isValidMerkleProof(bytes32[] calldata _proof, bytes32 root) { require( MerkleProof.verify( _proof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address is not whitelisted" ); _; } /*////////////////////////////////////////////////////////////// ONLY OWNER //////////////////////////////////////////////////////////////*/ /// @notice set _time in Unix Time Stamp to end the whitelist sale function setEndDateWhitelist(uint256 time_) public { whitelistEndDate = block.timestamp + time_; } function setBaseURI(string memory customBaseURI_) external onlyOwner { customBaseURI = customBaseURI_; } function setFjordContractAddress(address mainnetFjordAddress_) external onlyOwner { mainnetFjordAddress = mainnetFjordAddress_; } function setIsPublicMintActive(bool isPublicMintActive_) external onlyOwner { isPublicMintActive = isPublicMintActive_; } function setPublicMintPrice(uint256 price) external onlyOwner { PRICE_PER_PUBLIC_MINT = price; } /*////////////////////////////////////////////////////////////// MINT //////////////////////////////////////////////////////////////*/ /// @notice mint implementation interfacing w Erc721BurningErc20OnMint contract function mint() public override nonReentrant returns (uint256) { if (mintCounter == TOTAL_SUPPLY) { revert FJORD_TotalMinted(); } else { unchecked { mintCounter++; } uint256 tokenId = mintCounter; _mint(msg.sender, tokenId); return tokenId; } } /// @notice mint implementation for the whitelisted wallets function whitelistMint(uint256 amount, bytes32[] calldata merkleProof) public payable isValidMerkleProof(merkleProof, whiteListSaleMerkleRoot) { //cache the current minted amount by the wallet address uint256 totalMinted = mintPerWhitelistedWallet[msg.sender]; if (msg.value != PRICE_PER_WHITELIST_NFT * amount) { revert FJORD_InexactPayment(); } else if (block.timestamp >= whitelistEndDate) { revert FJORD_WhitelistMintEnded(); } else { require( totalMinted + amount <= MAX_MINT_PER_WHITELIST_WALLET, "Max mint exceeded" ); uint256 i; for (i = 0; i < amount; i++) { unchecked { mintCounter++; mintPerWhitelistedWallet[msg.sender]++; } // cache the minteCounter as the tokenId to mint uint256 tokenId = mintCounter; _mint(msg.sender, tokenId); emit MintedAnNFT(msg.sender, tokenId); } } } /// @notice public mint implementation. /// @dev max mint per wallet is 4 function publicMint(uint256 _amount) public payable { if (!isPublicMintActive) { revert FJORD_PublicMintisNotActive(); } else if (mintCounter == TOTAL_SUPPLY) { revert FJORD_TotalMinted(); } else if (msg.value != PRICE_PER_PUBLIC_MINT * _amount) { revert FJORD_InexactPayment(); } 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) { // check if it's a mint through the Copper's contract if (to == mainnetFjordAddress) { Erc721BurningErc20OnMint._beforeTokenTransfer(from, to, amount); } else { ERC721._beforeTokenTransfer(from, to, amount); } } /*////////////////////////////////////////////////////////////// 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 artist = 0xb012A1bDCA34E1d0c2267bb50e6c53C8042eB4b6; 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 * 375) / 1000); Address.sendValue(payable(artist), (balance * 375) / 1000); Address.sendValue(payable(dev), (balance * 250) / 1000); } //Fallback receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
//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 { super._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 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 // 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/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.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 (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 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 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) (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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"},{"internalType":"bytes32","name":"whiteListSaleMerkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"mintQtyToOwner","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FJORD_InexactPayment","type":"error"},{"inputs":[],"name":"FJORD_MaxMintExceeded","type":"error"},{"inputs":[],"name":"FJORD_PublicMintisNotActive","type":"error"},{"inputs":[],"name":"FJORD_TotalMinted","type":"error"},{"inputs":[],"name":"FJORD_WhitelistMaxSupplyExceeded","type":"error"},{"inputs":[],"name":"FJORD_WhitelistMintEnded","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":"isPublicMintActive","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":[{"internalType":"address","name":"","type":"address"}],"name":"mintPerWhitelistedWallet","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"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":"string","name":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time_","type":"uint256"}],"name":"setEndDateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20TokenAddress_","type":"address"}],"name":"setErc20TokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mainnetFjordAddress_","type":"address"}],"name":"setFjordContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPublicMintActive_","type":"bool"}],"name":"setIsPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whiteListSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526040518060600160405280603581526020016200551460359139600b908051906020019062000035929190620008a5565b50736f435948d9ad4ca0a73a3257743528469899ceec600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200009857600080fd5b5060405162005549380380620055498339818101604052810190620000be919062000b68565b6040518060400160405280601381526020017f466a6f726420436f6c6c656374696f6e202331000000000000000000000000008152506040518060400160405280600581526020017f464a4f5244000000000000000000000000000000000000000000000000000000815250816000908051906020019062000142929190620008a5565b5080600190805190602001906200015b929190620008a5565b5050506200017e620001726200023360201b60201c565b6200023b60201b60201c565b600160088190555082600a90805190602001906200019e929190620008a5565b5081600e8190555060005b8181101562000229576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff1690506200021233826200030160201b60201c565b508080620002209062000c12565b915050620001a9565b5050505062001007565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000373576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036a9062000cc0565b60405180910390fd5b6200038481620004fa60201b60201c565b15620003c7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003be9062000d32565b60405180910390fd5b620003db600083836200056660201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546200042d919062000d54565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4620004f660008383620005f860201b60201c565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620005da57620005d4838383620005fd60201b620019371760201c565b620005f3565b620005f2838383620008a060201b62001bbc1760201c565b5b505050565b505050565b62000615838383620008a060201b62001bbc1760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156200067f5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156200089b57600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160362000719576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007109062000e01565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040162000778919062000e68565b602060405180830381865afa15801562000796573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007bc919062000e85565b9050600181101562000805576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007fc9062000f07565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b81526004016200086592919062000f76565b600060405180830381600087803b1580156200088057600080fd5b505af115801562000895573d6000803e3d6000fd5b50505050505b505050565b505050565b828054620008b39062000fd2565b90600052602060002090601f016020900481019282620008d7576000855562000923565b82601f10620008f257805160ff191683800117855562000923565b8280016001018555821562000923579182015b828111156200092257825182559160200191906001019062000905565b5b50905062000932919062000936565b5090565b5b808211156200095157600081600090555060010162000937565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620009be8262000973565b810181811067ffffffffffffffff82111715620009e057620009df62000984565b5b80604052505050565b6000620009f562000955565b905062000a038282620009b3565b919050565b600067ffffffffffffffff82111562000a265762000a2562000984565b5b62000a318262000973565b9050602081019050919050565b60005b8381101562000a5e57808201518184015260208101905062000a41565b8381111562000a6e576000848401525b50505050565b600062000a8b62000a858462000a08565b620009e9565b90508281526020810184848401111562000aaa5762000aa96200096e565b5b62000ab784828562000a3e565b509392505050565b600082601f83011262000ad75762000ad662000969565b5b815162000ae984826020860162000a74565b91505092915050565b6000819050919050565b62000b078162000af2565b811462000b1357600080fd5b50565b60008151905062000b278162000afc565b92915050565b6000819050919050565b62000b428162000b2d565b811462000b4e57600080fd5b50565b60008151905062000b628162000b37565b92915050565b60008060006060848603121562000b845762000b836200095f565b5b600084015167ffffffffffffffff81111562000ba55762000ba462000964565b5b62000bb38682870162000abf565b935050602062000bc68682870162000b16565b925050604062000bd98682870162000b51565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000c1f8262000b2d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000c545762000c5362000be3565b5b600182019050919050565b600082825260208201905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600062000ca860208362000c5f565b915062000cb58262000c70565b602082019050919050565b6000602082019050818103600083015262000cdb8162000c99565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600062000d1a601c8362000c5f565b915062000d278262000ce2565b602082019050919050565b6000602082019050818103600083015262000d4d8162000d0b565b9050919050565b600062000d618262000b2d565b915062000d6e8362000b2d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000da65762000da562000be3565b5b828201905092915050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b600062000de9601b8362000c5f565b915062000df68262000db1565b602082019050919050565b6000602082019050818103600083015262000e1c8162000dda565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000e508262000e23565b9050919050565b62000e628162000e43565b82525050565b600060208201905062000e7f600083018462000e57565b92915050565b60006020828403121562000e9e5762000e9d6200095f565b5b600062000eae8482850162000b51565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b600062000eef601a8362000c5f565b915062000efc8262000eb7565b602082019050919050565b6000602082019050818103600083015262000f228162000ee0565b9050919050565b6000819050919050565b6000819050919050565b600062000f5e62000f5862000f528462000f29565b62000f33565b62000b2d565b9050919050565b62000f708162000f3d565b82525050565b600060408201905062000f8d600083018562000e57565b62000f9c602083018462000f65565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000feb57607f821691505b60208210810362001001576200100062000fa3565b5b50919050565b6144fd80620010176000396000f3fe60806040526004361061021e5760003560e01c8063889a3f1911610123578063d1946a7d116100ab578063e8a3d4851161006f578063e8a3d485146107af578063e985e9c5146107da578063eb107e2014610817578063f2fde38b14610840578063f835cd3c1461086957610225565b8063d1946a7d146106ed578063d2cab05614610716578063df1ca2e814610732578063dfb25a7d1461075b578063e4ad18381461078657610225565b8063a22cb465116100f2578063a22cb465146105f6578063a86add1f1461061f578063b88d4fde1461065c578063beeee0f714610685578063c87b56dd146106b057610225565b8063889a3f191461054a5780638da5cb5b14610575578063902d55a5146105a057806395d89b41146105cb57610225565b80632db11544116101a657806355f804b31161017557806355f804b3146104675780635d82cf6e146104905780636352211e146104b957806370a08231146104f6578063715018a61461053357610225565b80632db11544146103e05780633ccfd60b146103fc57806342842e0e1461041357806346aa52ce1461043c57610225565b80631249c58b116101ed5780631249c58b146102f857806318160ddd1461032357806323b872dd1461034e5780632a55205a146103775780632d6b6224146103b557610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf57610225565b3661022557005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190612d96565b610894565b60405161025e9190612dde565b60405180910390f35b34801561027357600080fd5b5061027c61090e565b6040516102899190612e92565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190612eea565b6109a0565b6040516102c69190612f58565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190612f9f565b6109e6565b005b34801561030457600080fd5b5061030d610afd565b60405161031a9190612fee565b60405180910390f35b34801561032f57600080fd5b50610338610c06565b6040516103459190612fee565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613009565b610c22565b005b34801561038357600080fd5b5061039e6004803603810190610399919061305c565b610c82565b6040516103ac92919061309c565b60405180910390f35b3480156103c157600080fd5b506103ca610caa565b6040516103d79190612dde565b60405180910390f35b6103fa60048036038101906103f59190612eea565b610cbd565b005b34801561040857600080fd5b50610411610e5b565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613009565b610f67565b005b34801561044857600080fd5b50610451610f87565b60405161045e91906130e2565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190613232565b610f9b565b005b34801561049c57600080fd5b506104b760048036038101906104b29190612eea565b610fbd565b005b3480156104c557600080fd5b506104e060048036038101906104db9190612eea565b610fcf565b6040516104ed9190612f58565b60405180910390f35b34801561050257600080fd5b5061051d6004803603810190610518919061327b565b611080565b60405161052a9190612fee565b60405180910390f35b34801561053f57600080fd5b50610548611137565b005b34801561055657600080fd5b5061055f61114b565b60405161056c9190612e92565b60405180910390f35b34801561058157600080fd5b5061058a6111d9565b6040516105979190612f58565b60405180910390f35b3480156105ac57600080fd5b506105b5611203565b6040516105c291906130e2565b60405180910390f35b3480156105d757600080fd5b506105e0611209565b6040516105ed9190612e92565b60405180910390f35b34801561060257600080fd5b5061061d600480360381019061061891906132d4565b61129b565b005b34801561062b57600080fd5b506106466004803603810190610641919061327b565b6112b1565b6040516106539190613333565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e91906133ef565b6112d4565b005b34801561069157600080fd5b5061069a611336565b6040516106a7919061348b565b60405180910390f35b3480156106bc57600080fd5b506106d760048036038101906106d29190612eea565b61133c565b6040516106e49190612e92565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f919061327b565b61136d565b005b610730600480360381019061072b9190613506565b6113b9565b005b34801561073e57600080fd5b5061075960048036038101906107549190612eea565b6116e0565b005b34801561076757600080fd5b506107706116f5565b60405161077d9190612fee565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190613566565b6116fb565b005b3480156107bb57600080fd5b506107c4611720565b6040516107d19190612e92565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613593565b6117ae565b60405161080e9190612dde565b60405180910390f35b34801561082357600080fd5b5061083e6004803603810190610839919061327b565b611842565b005b34801561084c57600080fd5b506108676004803603810190610862919061327b565b61188e565b005b34801561087557600080fd5b5061087e611911565b60405161088b9190612f58565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610907575061090682611bc1565b5b9050919050565b60606000805461091d90613602565b80601f016020809104026020016040519081016040528092919081815260200182805461094990613602565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b5050505050905090565b60006109ab82611ca3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f182610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a58906136a5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a80611cee565b73ffffffffffffffffffffffffffffffffffffffff161480610aaf5750610aae81610aa9611cee565b6117ae565b5b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590613737565b60405180910390fd5b610af88383611cf6565b505050565b6000600260085403610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906137a3565b60405180910390fd5b600260088190555061020d61ffff16600960009054906101000a900461ffff1661ffff1603610b9f576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610bf73382611daf565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610c33610c2d611cee565b82611f88565b610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6990613835565b60405180910390fd5b610c7d83838361201d565b505050565b600080306064600a85610c959190613884565b610c9f919061390d565b915091509250929050565b601160009054906101000a900460ff1681565b601160009054906101000a900460ff16610d03576040517fba20aec600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020d61ffff16600960009054906101000a900461ffff1661ffff1603610d56576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601054610d649190613884565b3414610d9c576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610e57576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610dff3382611daf565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610e4f9061393e565b915050610d9f565b5050565b600260085403610ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e97906137a3565b60405180910390fd5b6002600881905550610eb0612283565b6000479050610eed735e080d8b14c1da5936509c2c9ef0168a193042026103e861017784610ede9190613884565b610ee8919061390d565b612301565b610f2573b012a1bdca34e1d0c2267bb50e6c53c8042eb4b66103e861017784610f169190613884565b610f20919061390d565b612301565b610f5c7352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610f4d9190613884565b610f57919061390d565b612301565b506001600881905550565b610f82838383604051806020016040528060008152506112d4565b505050565b600960009054906101000a900461ffff1681565b610fa3612283565b80600a9080519060200190610fb9929190612c87565b5050565b610fc5612283565b8060108190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106e906139d2565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e790613a64565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61113f612283565b61114960006123f5565b565b600a805461115890613602565b80601f016020809104026020016040519081016040528092919081815260200182805461118490613602565b80156111d15780601f106111a6576101008083540402835291602001916111d1565b820191906000526020600020905b8154815290600101906020018083116111b457829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020d81565b60606001805461121890613602565b80601f016020809104026020016040519081016040528092919081815260200182805461124490613602565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050905090565b6112ad6112a6611cee565b83836124bb565b5050565b600f6020528060005260406000206000915054906101000a900463ffffffff1681565b6112e56112df611cee565b83611f88565b611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b90613835565b60405180910390fd5b61133084848484612627565b50505050565b600e5481565b606061134782612683565b6040516020016113579190613ac0565b6040516020818303038152906040529050919050565b611375612283565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8181600e54611430838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016114159190613b1f565b604051602081830303815290604052805190602001206126eb565b61146f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146690613b86565b60405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508666470de4df8200006114dc9190613884565b3414611514576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d54421061154e576040517e98b41c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600263ffffffff1687826115629190613ba6565b11156115a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159a90613c48565b60405180910390fd5b60005b878110156116d6576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff16021790555050600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550506000600960009054906101000a900461ffff1661ffff16905061167e3382611daf565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a35080806116ce9061393e565b9150506115a6565b5050505050505050565b80426116ec9190613ba6565b600d8190555050565b600d5481565b611703612283565b80601160006101000a81548160ff02191690831515021790555050565b600b805461172d90613602565b80601f016020809104026020016040519081016040528092919081815260200182805461175990613602565b80156117a65780601f1061177b576101008083540402835291602001916117a6565b820191906000526020600020905b81548152906001019060200180831161178957829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61184a612283565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611896612283565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fc90613cda565b60405180910390fd5b61190e816123f5565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611942838383611bbc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156119ab5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611bb757600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890613d46565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611a9e9190612f58565b602060405180830381865afa158015611abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adf9190613d7b565b90506001811015611b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1c90613df4565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b8152600401611b83929190613e59565b600060405180830381600087803b158015611b9d57600080fd5b505af1158015611bb1573d6000803e3d6000fd5b50505050505b505050565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c8c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c9c5750611c9b82612702565b5b9050919050565b611cac8161276c565b611ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce2906139d2565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d6983610fcf565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1590613ece565b60405180910390fd5b611e278161276c565b15611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e90613f3a565b60405180910390fd5b611e73600083836127d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec39190613ba6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f846000838361284e565b5050565b600080611f9483610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fd65750611fd581856117ae565b5b8061201457508373ffffffffffffffffffffffffffffffffffffffff16611ffc846109a0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661203d82610fcf565b73ffffffffffffffffffffffffffffffffffffffff1614612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90613fcc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f99061405e565b60405180910390fd5b61210d8383836127d8565b612118600082611cf6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612168919061407e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121bf9190613ba6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461227e83838361284e565b505050565b61228b611cee565b73ffffffffffffffffffffffffffffffffffffffff166122a96111d9565b73ffffffffffffffffffffffffffffffffffffffff16146122ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f6906140fe565b60405180910390fd5b565b80471015612344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233b9061416a565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161236a906141bb565b60006040518083038185875af1925050503d80600081146123a7576040519150601f19603f3d011682016040523d82523d6000602084013e6123ac565b606091505b50509050806123f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e790614242565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612529576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612520906142ae565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161261a9190612dde565b60405180910390a3505050565b61263284848461201d565b61263e84848484612853565b61267d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267490614340565b60405180910390fd5b50505050565b606061268e82611ca3565b60006126986129da565b905060008151116126b857604051806020016040528060008152506126e3565b806126c284612a6c565b6040516020016126d3929190614360565b6040516020818303038152906040525b915050919050565b6000826126f88584612bcc565b1490509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361283d57612838838383611937565b612849565b612848838383611bbc565b5b505050565b505050565b60006128748473ffffffffffffffffffffffffffffffffffffffff16612c22565b156129cd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261289d611cee565b8786866040518563ffffffff1660e01b81526004016128bf94939291906143d9565b6020604051808303816000875af19250505080156128fb57506040513d601f19601f820116820180604052508101906128f8919061443a565b60015b61297d573d806000811461292b576040519150601f19603f3d011682016040523d82523d6000602084013e612930565b606091505b506000815103612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c90614340565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506129d2565b600190505b949350505050565b6060600a80546129e990613602565b80601f0160208091040260200160405190810160405280929190818152602001828054612a1590613602565b8015612a625780601f10612a3757610100808354040283529160200191612a62565b820191906000526020600020905b815481529060010190602001808311612a4557829003601f168201915b5050505050905090565b606060008203612ab3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc7565b600082905060005b60008214612ae5578080612ace9061393e565b915050600a82612ade919061390d565b9150612abb565b60008167ffffffffffffffff811115612b0157612b00613107565b5b6040519080825280601f01601f191660200182016040528015612b335781602001600182028036833780820191505090505b5090505b60008514612bc057600182612b4c919061407e565b9150600a85612b5b9190614467565b6030612b679190613ba6565b60f81b818381518110612b7d57612b7c614498565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb9919061390d565b9450612b37565b8093505050505b919050565b60008082905060005b8451811015612c1757612c0282868381518110612bf557612bf4614498565b5b6020026020010151612c45565b91508080612c0f9061393e565b915050612bd5565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612c5d57612c588284612c70565b612c68565b612c678383612c70565b5b905092915050565b600082600052816020526040600020905092915050565b828054612c9390613602565b90600052602060002090601f016020900481019282612cb55760008555612cfc565b82601f10612cce57805160ff1916838001178555612cfc565b82800160010185558215612cfc579182015b82811115612cfb578251825591602001919060010190612ce0565b5b509050612d099190612d0d565b5090565b5b80821115612d26576000816000905550600101612d0e565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d7381612d3e565b8114612d7e57600080fd5b50565b600081359050612d9081612d6a565b92915050565b600060208284031215612dac57612dab612d34565b5b6000612dba84828501612d81565b91505092915050565b60008115159050919050565b612dd881612dc3565b82525050565b6000602082019050612df36000830184612dcf565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e33578082015181840152602081019050612e18565b83811115612e42576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e6482612df9565b612e6e8185612e04565b9350612e7e818560208601612e15565b612e8781612e48565b840191505092915050565b60006020820190508181036000830152612eac8184612e59565b905092915050565b6000819050919050565b612ec781612eb4565b8114612ed257600080fd5b50565b600081359050612ee481612ebe565b92915050565b600060208284031215612f0057612eff612d34565b5b6000612f0e84828501612ed5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f4282612f17565b9050919050565b612f5281612f37565b82525050565b6000602082019050612f6d6000830184612f49565b92915050565b612f7c81612f37565b8114612f8757600080fd5b50565b600081359050612f9981612f73565b92915050565b60008060408385031215612fb657612fb5612d34565b5b6000612fc485828601612f8a565b9250506020612fd585828601612ed5565b9150509250929050565b612fe881612eb4565b82525050565b60006020820190506130036000830184612fdf565b92915050565b60008060006060848603121561302257613021612d34565b5b600061303086828701612f8a565b935050602061304186828701612f8a565b925050604061305286828701612ed5565b9150509250925092565b6000806040838503121561307357613072612d34565b5b600061308185828601612ed5565b925050602061309285828601612ed5565b9150509250929050565b60006040820190506130b16000830185612f49565b6130be6020830184612fdf565b9392505050565b600061ffff82169050919050565b6130dc816130c5565b82525050565b60006020820190506130f760008301846130d3565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61313f82612e48565b810181811067ffffffffffffffff8211171561315e5761315d613107565b5b80604052505050565b6000613171612d2a565b905061317d8282613136565b919050565b600067ffffffffffffffff82111561319d5761319c613107565b5b6131a682612e48565b9050602081019050919050565b82818337600083830152505050565b60006131d56131d084613182565b613167565b9050828152602081018484840111156131f1576131f0613102565b5b6131fc8482856131b3565b509392505050565b600082601f830112613219576132186130fd565b5b81356132298482602086016131c2565b91505092915050565b60006020828403121561324857613247612d34565b5b600082013567ffffffffffffffff81111561326657613265612d39565b5b61327284828501613204565b91505092915050565b60006020828403121561329157613290612d34565b5b600061329f84828501612f8a565b91505092915050565b6132b181612dc3565b81146132bc57600080fd5b50565b6000813590506132ce816132a8565b92915050565b600080604083850312156132eb576132ea612d34565b5b60006132f985828601612f8a565b925050602061330a858286016132bf565b9150509250929050565b600063ffffffff82169050919050565b61332d81613314565b82525050565b60006020820190506133486000830184613324565b92915050565b600067ffffffffffffffff82111561336957613368613107565b5b61337282612e48565b9050602081019050919050565b600061339261338d8461334e565b613167565b9050828152602081018484840111156133ae576133ad613102565b5b6133b98482856131b3565b509392505050565b600082601f8301126133d6576133d56130fd565b5b81356133e684826020860161337f565b91505092915050565b6000806000806080858703121561340957613408612d34565b5b600061341787828801612f8a565b945050602061342887828801612f8a565b935050604061343987828801612ed5565b925050606085013567ffffffffffffffff81111561345a57613459612d39565b5b613466878288016133c1565b91505092959194509250565b6000819050919050565b61348581613472565b82525050565b60006020820190506134a0600083018461347c565b92915050565b600080fd5b600080fd5b60008083601f8401126134c6576134c56130fd565b5b8235905067ffffffffffffffff8111156134e3576134e26134a6565b5b6020830191508360208202830111156134ff576134fe6134ab565b5b9250929050565b60008060006040848603121561351f5761351e612d34565b5b600061352d86828701612ed5565b935050602084013567ffffffffffffffff81111561354e5761354d612d39565b5b61355a868287016134b0565b92509250509250925092565b60006020828403121561357c5761357b612d34565b5b600061358a848285016132bf565b91505092915050565b600080604083850312156135aa576135a9612d34565b5b60006135b885828601612f8a565b92505060206135c985828601612f8a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061361a57607f821691505b60208210810361362d5761362c6135d3565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061368f602183612e04565b915061369a82613633565b604082019050919050565b600060208201905081810360008301526136be81613682565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613721603e83612e04565b915061372c826136c5565b604082019050919050565b6000602082019050818103600083015261375081613714565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061378d601f83612e04565b915061379882613757565b602082019050919050565b600060208201905081810360008301526137bc81613780565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b600061381f602e83612e04565b915061382a826137c3565b604082019050919050565b6000602082019050818103600083015261384e81613812565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061388f82612eb4565b915061389a83612eb4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138d3576138d2613855565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061391882612eb4565b915061392383612eb4565b925082613933576139326138de565b5b828204905092915050565b600061394982612eb4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361397b5761397a613855565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006139bc601883612e04565b91506139c782613986565b602082019050919050565b600060208201905081810360008301526139eb816139af565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613a4e602983612e04565b9150613a59826139f2565b604082019050919050565b60006020820190508181036000830152613a7d81613a41565b9050919050565b600081905092915050565b6000613a9a82612df9565b613aa48185613a84565b9350613ab4818560208601612e15565b80840191505092915050565b6000613acc8284613a8f565b915081905092915050565b60008160601b9050919050565b6000613aef82613ad7565b9050919050565b6000613b0182613ae4565b9050919050565b613b19613b1482612f37565b613af6565b82525050565b6000613b2b8284613b08565b60148201915081905092915050565b7f41646472657373206973206e6f742077686974656c6973746564000000000000600082015250565b6000613b70601a83612e04565b9150613b7b82613b3a565b602082019050919050565b60006020820190508181036000830152613b9f81613b63565b9050919050565b6000613bb182612eb4565b9150613bbc83612eb4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613bf157613bf0613855565b5b828201905092915050565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b6000613c32601183612e04565b9150613c3d82613bfc565b602082019050919050565b60006020820190508181036000830152613c6181613c25565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613cc4602683612e04565b9150613ccf82613c68565b604082019050919050565b60006020820190508181036000830152613cf381613cb7565b9050919050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000613d30601b83612e04565b9150613d3b82613cfa565b602082019050919050565b60006020820190508181036000830152613d5f81613d23565b9050919050565b600081519050613d7581612ebe565b92915050565b600060208284031215613d9157613d90612d34565b5b6000613d9f84828501613d66565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b6000613dde601a83612e04565b9150613de982613da8565b602082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b6000819050919050565b6000819050919050565b6000613e43613e3e613e3984613e14565b613e1e565b612eb4565b9050919050565b613e5381613e28565b82525050565b6000604082019050613e6e6000830185612f49565b613e7b6020830184613e4a565b9392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613eb8602083612e04565b9150613ec382613e82565b602082019050919050565b60006020820190508181036000830152613ee781613eab565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613f24601c83612e04565b9150613f2f82613eee565b602082019050919050565b60006020820190508181036000830152613f5381613f17565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613fb6602583612e04565b9150613fc182613f5a565b604082019050919050565b60006020820190508181036000830152613fe581613fa9565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614048602483612e04565b915061405382613fec565b604082019050919050565b600060208201905081810360008301526140778161403b565b9050919050565b600061408982612eb4565b915061409483612eb4565b9250828210156140a7576140a6613855565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140e8602083612e04565b91506140f3826140b2565b602082019050919050565b60006020820190508181036000830152614117816140db565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614154601d83612e04565b915061415f8261411e565b602082019050919050565b6000602082019050818103600083015261418381614147565b9050919050565b600081905092915050565b50565b60006141a560008361418a565b91506141b082614195565b600082019050919050565b60006141c682614198565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061422c603a83612e04565b9150614237826141d0565b604082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614298601983612e04565b91506142a382614262565b602082019050919050565b600060208201905081810360008301526142c78161428b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061432a603283612e04565b9150614335826142ce565b604082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b600061436c8285613a8f565b91506143788284613a8f565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006143ab82614384565b6143b5818561438f565b93506143c5818560208601612e15565b6143ce81612e48565b840191505092915050565b60006080820190506143ee6000830187612f49565b6143fb6020830186612f49565b6144086040830185612fdf565b818103606083015261441a81846143a0565b905095945050505050565b60008151905061443481612d6a565b92915050565b6000602082840312156144505761444f612d34565b5b600061445e84828501614425565b91505092915050565b600061447282612eb4565b915061447d83612eb4565b92508261448d5761448c6138de565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212200878c156711a6b8fa49e3fb5de7c9eab7e4b921d39971015736bc781b4821dd864736f6c634300080e0033697066733a2f2f516d6479594374557356734335796d7237623474785136685848704c58744a55374a5843447548454a64586e52650000000000000000000000000000000000000000000000000000000000000060c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a600000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d616737486768334332696759616a645946744c6745313332796a4567776a4164613478344842586a38744e762f00000000000000000000
Deployed Bytecode
0x60806040526004361061021e5760003560e01c8063889a3f1911610123578063d1946a7d116100ab578063e8a3d4851161006f578063e8a3d485146107af578063e985e9c5146107da578063eb107e2014610817578063f2fde38b14610840578063f835cd3c1461086957610225565b8063d1946a7d146106ed578063d2cab05614610716578063df1ca2e814610732578063dfb25a7d1461075b578063e4ad18381461078657610225565b8063a22cb465116100f2578063a22cb465146105f6578063a86add1f1461061f578063b88d4fde1461065c578063beeee0f714610685578063c87b56dd146106b057610225565b8063889a3f191461054a5780638da5cb5b14610575578063902d55a5146105a057806395d89b41146105cb57610225565b80632db11544116101a657806355f804b31161017557806355f804b3146104675780635d82cf6e146104905780636352211e146104b957806370a08231146104f6578063715018a61461053357610225565b80632db11544146103e05780633ccfd60b146103fc57806342842e0e1461041357806346aa52ce1461043c57610225565b80631249c58b116101ed5780631249c58b146102f857806318160ddd1461032357806323b872dd1461034e5780632a55205a146103775780632d6b6224146103b557610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf57610225565b3661022557005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190612d96565b610894565b60405161025e9190612dde565b60405180910390f35b34801561027357600080fd5b5061027c61090e565b6040516102899190612e92565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190612eea565b6109a0565b6040516102c69190612f58565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190612f9f565b6109e6565b005b34801561030457600080fd5b5061030d610afd565b60405161031a9190612fee565b60405180910390f35b34801561032f57600080fd5b50610338610c06565b6040516103459190612fee565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613009565b610c22565b005b34801561038357600080fd5b5061039e6004803603810190610399919061305c565b610c82565b6040516103ac92919061309c565b60405180910390f35b3480156103c157600080fd5b506103ca610caa565b6040516103d79190612dde565b60405180910390f35b6103fa60048036038101906103f59190612eea565b610cbd565b005b34801561040857600080fd5b50610411610e5b565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613009565b610f67565b005b34801561044857600080fd5b50610451610f87565b60405161045e91906130e2565b60405180910390f35b34801561047357600080fd5b5061048e60048036038101906104899190613232565b610f9b565b005b34801561049c57600080fd5b506104b760048036038101906104b29190612eea565b610fbd565b005b3480156104c557600080fd5b506104e060048036038101906104db9190612eea565b610fcf565b6040516104ed9190612f58565b60405180910390f35b34801561050257600080fd5b5061051d6004803603810190610518919061327b565b611080565b60405161052a9190612fee565b60405180910390f35b34801561053f57600080fd5b50610548611137565b005b34801561055657600080fd5b5061055f61114b565b60405161056c9190612e92565b60405180910390f35b34801561058157600080fd5b5061058a6111d9565b6040516105979190612f58565b60405180910390f35b3480156105ac57600080fd5b506105b5611203565b6040516105c291906130e2565b60405180910390f35b3480156105d757600080fd5b506105e0611209565b6040516105ed9190612e92565b60405180910390f35b34801561060257600080fd5b5061061d600480360381019061061891906132d4565b61129b565b005b34801561062b57600080fd5b506106466004803603810190610641919061327b565b6112b1565b6040516106539190613333565b60405180910390f35b34801561066857600080fd5b50610683600480360381019061067e91906133ef565b6112d4565b005b34801561069157600080fd5b5061069a611336565b6040516106a7919061348b565b60405180910390f35b3480156106bc57600080fd5b506106d760048036038101906106d29190612eea565b61133c565b6040516106e49190612e92565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f919061327b565b61136d565b005b610730600480360381019061072b9190613506565b6113b9565b005b34801561073e57600080fd5b5061075960048036038101906107549190612eea565b6116e0565b005b34801561076757600080fd5b506107706116f5565b60405161077d9190612fee565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190613566565b6116fb565b005b3480156107bb57600080fd5b506107c4611720565b6040516107d19190612e92565b60405180910390f35b3480156107e657600080fd5b5061080160048036038101906107fc9190613593565b6117ae565b60405161080e9190612dde565b60405180910390f35b34801561082357600080fd5b5061083e6004803603810190610839919061327b565b611842565b005b34801561084c57600080fd5b506108676004803603810190610862919061327b565b61188e565b005b34801561087557600080fd5b5061087e611911565b60405161088b9190612f58565b60405180910390f35b60007ff959bbab000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610907575061090682611bc1565b5b9050919050565b60606000805461091d90613602565b80601f016020809104026020016040519081016040528092919081815260200182805461094990613602565b80156109965780601f1061096b57610100808354040283529160200191610996565b820191906000526020600020905b81548152906001019060200180831161097957829003601f168201915b5050505050905090565b60006109ab82611ca3565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f182610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a58906136a5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a80611cee565b73ffffffffffffffffffffffffffffffffffffffff161480610aaf5750610aae81610aa9611cee565b6117ae565b5b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590613737565b60405180910390fd5b610af88383611cf6565b505050565b6000600260085403610b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3b906137a3565b60405180910390fd5b600260088190555061020d61ffff16600960009054906101000a900461ffff1661ffff1603610b9f576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610bf73382611daf565b80915050600160088190555090565b6000600960009054906101000a900461ffff1661ffff16905090565b610c33610c2d611cee565b82611f88565b610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6990613835565b60405180910390fd5b610c7d83838361201d565b505050565b600080306064600a85610c959190613884565b610c9f919061390d565b915091509250929050565b601160009054906101000a900460ff1681565b601160009054906101000a900460ff16610d03576040517fba20aec600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61020d61ffff16600960009054906101000a900461ffff1661ffff1603610d56576040517fec3664a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601054610d649190613884565b3414610d9c576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610e57576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550506000600960009054906101000a900461ffff1661ffff169050610dff3382611daf565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a3508080610e4f9061393e565b915050610d9f565b5050565b600260085403610ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e97906137a3565b60405180910390fd5b6002600881905550610eb0612283565b6000479050610eed735e080d8b14c1da5936509c2c9ef0168a193042026103e861017784610ede9190613884565b610ee8919061390d565b612301565b610f2573b012a1bdca34e1d0c2267bb50e6c53c8042eb4b66103e861017784610f169190613884565b610f20919061390d565b612301565b610f5c7352aa63a67b15e3c2f201c9422cac1e81bd6ea8476103e860fa84610f4d9190613884565b610f57919061390d565b612301565b506001600881905550565b610f82838383604051806020016040528060008152506112d4565b505050565b600960009054906101000a900461ffff1681565b610fa3612283565b80600a9080519060200190610fb9929190612c87565b5050565b610fc5612283565b8060108190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106e906139d2565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e790613a64565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61113f612283565b61114960006123f5565b565b600a805461115890613602565b80601f016020809104026020016040519081016040528092919081815260200182805461118490613602565b80156111d15780601f106111a6576101008083540402835291602001916111d1565b820191906000526020600020905b8154815290600101906020018083116111b457829003601f168201915b505050505081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61020d81565b60606001805461121890613602565b80601f016020809104026020016040519081016040528092919081815260200182805461124490613602565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050905090565b6112ad6112a6611cee565b83836124bb565b5050565b600f6020528060005260406000206000915054906101000a900463ffffffff1681565b6112e56112df611cee565b83611f88565b611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b90613835565b60405180910390fd5b61133084848484612627565b50505050565b600e5481565b606061134782612683565b6040516020016113579190613ac0565b6040516020818303038152906040529050919050565b611375612283565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8181600e54611430838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016114159190613b1f565b604051602081830303815290604052805190602001206126eb565b61146f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146690613b86565b60405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1663ffffffff1690508666470de4df8200006114dc9190613884565b3414611514576040517f824251ea00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d54421061154e576040517e98b41c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600263ffffffff1687826115629190613ba6565b11156115a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159a90613c48565b60405180910390fd5b60005b878110156116d6576009600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff16021790555050600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550506000600960009054906101000a900461ffff1661ffff16905061167e3382611daf565b803373ffffffffffffffffffffffffffffffffffffffff167f24c6b97e79955b9de057c4c63cdf9b5fe58ce436fc0d15bc93ef39166cfcf07b60405160405180910390a35080806116ce9061393e565b9150506115a6565b5050505050505050565b80426116ec9190613ba6565b600d8190555050565b600d5481565b611703612283565b80601160006101000a81548160ff02191690831515021790555050565b600b805461172d90613602565b80601f016020809104026020016040519081016040528092919081815260200182805461175990613602565b80156117a65780601f1061177b576101008083540402835291602001916117a6565b820191906000526020600020905b81548152906001019060200180831161178957829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61184a612283565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611896612283565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fc90613cda565b60405180910390fd5b61190e816123f5565b50565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611942838383611bbc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480156119ab5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611bb757600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3890613d46565b60405180910390fd5b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611a9e9190612f58565b602060405180830381865afa158015611abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611adf9190613d7b565b90506001811015611b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1c90613df4565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379cc67908460016040518363ffffffff1660e01b8152600401611b83929190613e59565b600060405180830381600087803b158015611b9d57600080fd5b505af1158015611bb1573d6000803e3d6000fd5b50505050505b505050565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c8c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c9c5750611c9b82612702565b5b9050919050565b611cac8161276c565b611ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce2906139d2565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d6983610fcf565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1590613ece565b60405180910390fd5b611e278161276c565b15611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e90613f3a565b60405180910390fd5b611e73600083836127d8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec39190613ba6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611f846000838361284e565b5050565b600080611f9483610fcf565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611fd65750611fd581856117ae565b5b8061201457508373ffffffffffffffffffffffffffffffffffffffff16611ffc846109a0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661203d82610fcf565b73ffffffffffffffffffffffffffffffffffffffff1614612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90613fcc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f99061405e565b60405180910390fd5b61210d8383836127d8565b612118600082611cf6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612168919061407e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121bf9190613ba6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461227e83838361284e565b505050565b61228b611cee565b73ffffffffffffffffffffffffffffffffffffffff166122a96111d9565b73ffffffffffffffffffffffffffffffffffffffff16146122ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f6906140fe565b60405180910390fd5b565b80471015612344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233b9061416a565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161236a906141bb565b60006040518083038185875af1925050503d80600081146123a7576040519150601f19603f3d011682016040523d82523d6000602084013e6123ac565b606091505b50509050806123f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e790614242565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612529576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612520906142ae565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161261a9190612dde565b60405180910390a3505050565b61263284848461201d565b61263e84848484612853565b61267d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267490614340565b60405180910390fd5b50505050565b606061268e82611ca3565b60006126986129da565b905060008151116126b857604051806020016040528060008152506126e3565b806126c284612a6c565b6040516020016126d3929190614360565b6040516020818303038152906040525b915050919050565b6000826126f88584612bcc565b1490509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361283d57612838838383611937565b612849565b612848838383611bbc565b5b505050565b505050565b60006128748473ffffffffffffffffffffffffffffffffffffffff16612c22565b156129cd578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261289d611cee565b8786866040518563ffffffff1660e01b81526004016128bf94939291906143d9565b6020604051808303816000875af19250505080156128fb57506040513d601f19601f820116820180604052508101906128f8919061443a565b60015b61297d573d806000811461292b576040519150601f19603f3d011682016040523d82523d6000602084013e612930565b606091505b506000815103612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c90614340565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506129d2565b600190505b949350505050565b6060600a80546129e990613602565b80601f0160208091040260200160405190810160405280929190818152602001828054612a1590613602565b8015612a625780601f10612a3757610100808354040283529160200191612a62565b820191906000526020600020905b815481529060010190602001808311612a4557829003601f168201915b5050505050905090565b606060008203612ab3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc7565b600082905060005b60008214612ae5578080612ace9061393e565b915050600a82612ade919061390d565b9150612abb565b60008167ffffffffffffffff811115612b0157612b00613107565b5b6040519080825280601f01601f191660200182016040528015612b335781602001600182028036833780820191505090505b5090505b60008514612bc057600182612b4c919061407e565b9150600a85612b5b9190614467565b6030612b679190613ba6565b60f81b818381518110612b7d57612b7c614498565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb9919061390d565b9450612b37565b8093505050505b919050565b60008082905060005b8451811015612c1757612c0282868381518110612bf557612bf4614498565b5b6020026020010151612c45565b91508080612c0f9061393e565b915050612bd5565b508091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000818310612c5d57612c588284612c70565b612c68565b612c678383612c70565b5b905092915050565b600082600052816020526040600020905092915050565b828054612c9390613602565b90600052602060002090601f016020900481019282612cb55760008555612cfc565b82601f10612cce57805160ff1916838001178555612cfc565b82800160010185558215612cfc579182015b82811115612cfb578251825591602001919060010190612ce0565b5b509050612d099190612d0d565b5090565b5b80821115612d26576000816000905550600101612d0e565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612d7381612d3e565b8114612d7e57600080fd5b50565b600081359050612d9081612d6a565b92915050565b600060208284031215612dac57612dab612d34565b5b6000612dba84828501612d81565b91505092915050565b60008115159050919050565b612dd881612dc3565b82525050565b6000602082019050612df36000830184612dcf565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e33578082015181840152602081019050612e18565b83811115612e42576000848401525b50505050565b6000601f19601f8301169050919050565b6000612e6482612df9565b612e6e8185612e04565b9350612e7e818560208601612e15565b612e8781612e48565b840191505092915050565b60006020820190508181036000830152612eac8184612e59565b905092915050565b6000819050919050565b612ec781612eb4565b8114612ed257600080fd5b50565b600081359050612ee481612ebe565b92915050565b600060208284031215612f0057612eff612d34565b5b6000612f0e84828501612ed5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f4282612f17565b9050919050565b612f5281612f37565b82525050565b6000602082019050612f6d6000830184612f49565b92915050565b612f7c81612f37565b8114612f8757600080fd5b50565b600081359050612f9981612f73565b92915050565b60008060408385031215612fb657612fb5612d34565b5b6000612fc485828601612f8a565b9250506020612fd585828601612ed5565b9150509250929050565b612fe881612eb4565b82525050565b60006020820190506130036000830184612fdf565b92915050565b60008060006060848603121561302257613021612d34565b5b600061303086828701612f8a565b935050602061304186828701612f8a565b925050604061305286828701612ed5565b9150509250925092565b6000806040838503121561307357613072612d34565b5b600061308185828601612ed5565b925050602061309285828601612ed5565b9150509250929050565b60006040820190506130b16000830185612f49565b6130be6020830184612fdf565b9392505050565b600061ffff82169050919050565b6130dc816130c5565b82525050565b60006020820190506130f760008301846130d3565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61313f82612e48565b810181811067ffffffffffffffff8211171561315e5761315d613107565b5b80604052505050565b6000613171612d2a565b905061317d8282613136565b919050565b600067ffffffffffffffff82111561319d5761319c613107565b5b6131a682612e48565b9050602081019050919050565b82818337600083830152505050565b60006131d56131d084613182565b613167565b9050828152602081018484840111156131f1576131f0613102565b5b6131fc8482856131b3565b509392505050565b600082601f830112613219576132186130fd565b5b81356132298482602086016131c2565b91505092915050565b60006020828403121561324857613247612d34565b5b600082013567ffffffffffffffff81111561326657613265612d39565b5b61327284828501613204565b91505092915050565b60006020828403121561329157613290612d34565b5b600061329f84828501612f8a565b91505092915050565b6132b181612dc3565b81146132bc57600080fd5b50565b6000813590506132ce816132a8565b92915050565b600080604083850312156132eb576132ea612d34565b5b60006132f985828601612f8a565b925050602061330a858286016132bf565b9150509250929050565b600063ffffffff82169050919050565b61332d81613314565b82525050565b60006020820190506133486000830184613324565b92915050565b600067ffffffffffffffff82111561336957613368613107565b5b61337282612e48565b9050602081019050919050565b600061339261338d8461334e565b613167565b9050828152602081018484840111156133ae576133ad613102565b5b6133b98482856131b3565b509392505050565b600082601f8301126133d6576133d56130fd565b5b81356133e684826020860161337f565b91505092915050565b6000806000806080858703121561340957613408612d34565b5b600061341787828801612f8a565b945050602061342887828801612f8a565b935050604061343987828801612ed5565b925050606085013567ffffffffffffffff81111561345a57613459612d39565b5b613466878288016133c1565b91505092959194509250565b6000819050919050565b61348581613472565b82525050565b60006020820190506134a0600083018461347c565b92915050565b600080fd5b600080fd5b60008083601f8401126134c6576134c56130fd565b5b8235905067ffffffffffffffff8111156134e3576134e26134a6565b5b6020830191508360208202830111156134ff576134fe6134ab565b5b9250929050565b60008060006040848603121561351f5761351e612d34565b5b600061352d86828701612ed5565b935050602084013567ffffffffffffffff81111561354e5761354d612d39565b5b61355a868287016134b0565b92509250509250925092565b60006020828403121561357c5761357b612d34565b5b600061358a848285016132bf565b91505092915050565b600080604083850312156135aa576135a9612d34565b5b60006135b885828601612f8a565b92505060206135c985828601612f8a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061361a57607f821691505b60208210810361362d5761362c6135d3565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061368f602183612e04565b915061369a82613633565b604082019050919050565b600060208201905081810360008301526136be81613682565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613721603e83612e04565b915061372c826136c5565b604082019050919050565b6000602082019050818103600083015261375081613714565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061378d601f83612e04565b915061379882613757565b602082019050919050565b600060208201905081810360008301526137bc81613780565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b600061381f602e83612e04565b915061382a826137c3565b604082019050919050565b6000602082019050818103600083015261384e81613812565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061388f82612eb4565b915061389a83612eb4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156138d3576138d2613855565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061391882612eb4565b915061392383612eb4565b925082613933576139326138de565b5b828204905092915050565b600061394982612eb4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361397b5761397a613855565b5b600182019050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006139bc601883612e04565b91506139c782613986565b602082019050919050565b600060208201905081810360008301526139eb816139af565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613a4e602983612e04565b9150613a59826139f2565b604082019050919050565b60006020820190508181036000830152613a7d81613a41565b9050919050565b600081905092915050565b6000613a9a82612df9565b613aa48185613a84565b9350613ab4818560208601612e15565b80840191505092915050565b6000613acc8284613a8f565b915081905092915050565b60008160601b9050919050565b6000613aef82613ad7565b9050919050565b6000613b0182613ae4565b9050919050565b613b19613b1482612f37565b613af6565b82525050565b6000613b2b8284613b08565b60148201915081905092915050565b7f41646472657373206973206e6f742077686974656c6973746564000000000000600082015250565b6000613b70601a83612e04565b9150613b7b82613b3a565b602082019050919050565b60006020820190508181036000830152613b9f81613b63565b9050919050565b6000613bb182612eb4565b9150613bbc83612eb4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613bf157613bf0613855565b5b828201905092915050565b7f4d6178206d696e74206578636565646564000000000000000000000000000000600082015250565b6000613c32601183612e04565b9150613c3d82613bfc565b602082019050919050565b60006020820190508181036000830152613c6181613c25565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613cc4602683612e04565b9150613ccf82613c68565b604082019050919050565b60006020820190508181036000830152613cf381613cb7565b9050919050565b7f6572633230546f6b656e4164647265737320756e646566696e65640000000000600082015250565b6000613d30601b83612e04565b9150613d3b82613cfa565b602082019050919050565b60006020820190508181036000830152613d5f81613d23565b9050919050565b600081519050613d7581612ebe565b92915050565b600060208284031215613d9157613d90612d34565b5b6000613d9f84828501613d66565b91505092915050565b7f7573657220646f6573206e6f7420686f6c64206120746f6b656e000000000000600082015250565b6000613dde601a83612e04565b9150613de982613da8565b602082019050919050565b60006020820190508181036000830152613e0d81613dd1565b9050919050565b6000819050919050565b6000819050919050565b6000613e43613e3e613e3984613e14565b613e1e565b612eb4565b9050919050565b613e5381613e28565b82525050565b6000604082019050613e6e6000830185612f49565b613e7b6020830184613e4a565b9392505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613eb8602083612e04565b9150613ec382613e82565b602082019050919050565b60006020820190508181036000830152613ee781613eab565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613f24601c83612e04565b9150613f2f82613eee565b602082019050919050565b60006020820190508181036000830152613f5381613f17565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000613fb6602583612e04565b9150613fc182613f5a565b604082019050919050565b60006020820190508181036000830152613fe581613fa9565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614048602483612e04565b915061405382613fec565b604082019050919050565b600060208201905081810360008301526140778161403b565b9050919050565b600061408982612eb4565b915061409483612eb4565b9250828210156140a7576140a6613855565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006140e8602083612e04565b91506140f3826140b2565b602082019050919050565b60006020820190508181036000830152614117816140db565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614154601d83612e04565b915061415f8261411e565b602082019050919050565b6000602082019050818103600083015261418381614147565b9050919050565b600081905092915050565b50565b60006141a560008361418a565b91506141b082614195565b600082019050919050565b60006141c682614198565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061422c603a83612e04565b9150614237826141d0565b604082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614298601983612e04565b91506142a382614262565b602082019050919050565b600060208201905081810360008301526142c78161428b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061432a603283612e04565b9150614335826142ce565b604082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b600061436c8285613a8f565b91506143788284613a8f565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006143ab82614384565b6143b5818561438f565b93506143c5818560208601612e15565b6143ce81612e48565b840191505092915050565b60006080820190506143ee6000830187612f49565b6143fb6020830186612f49565b6144086040830185612fdf565b818103606083015261441a81846143a0565b905095945050505050565b60008151905061443481612d6a565b92915050565b6000602082840312156144505761444f612d34565b5b600061445e84828501614425565b91505092915050565b600061447282612eb4565b915061447d83612eb4565b92508261448d5761448c6138de565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212200878c156711a6b8fa49e3fb5de7c9eab7e4b921d39971015736bc781b4821dd864736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a600000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d616737486768334332696759616a645946744c6745313332796a4567776a4164613478344842586a38744e762f00000000000000000000
-----Decoded View---------------
Arg [0] : customBaseURI_ (string): ipfs://Qmag7Hgh3C2igYajdYFtLgE132yjEgwjAda4x4HBXj8tNv/
Arg [1] : whiteListSaleMerkleRoot_ (bytes32): 0xc076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a6
Arg [2] : mintQtyToOwner (uint256): 25
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : c076b4518f2c28f03337c4d74af5263fffdc040a32c9080717a45ffde87033a6
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d616737486768334332696759616a645946744c67453133
Arg [5] : 32796a4567776a4164613478344842586a38744e762f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.