ERC-721
Overview
Max Total Supply
313 GINU
Holders
82
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 GINULoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OfficialGinuNFCT
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.16; // @cryptoconner simple but effective. /* This contract gives holders an eth reward deposited by the owner of the contract it does not reward holders on a set token level or APR instead rewards are added which updates the amount of claimable rewards based on how many where added / total holders. this contract accepts ETH deposits through the AddRewards function to add rewards do not deposit by transferring Eth into the contract, it will just be locked or seen as a team donation if you do send it there is a OnlyOwner function you can use to pull out the extra Eth A User must buy before new rewards are added to qualify to claim its managed through a Period Id not time of purcahse Notes for the owner: PUB_PRICE is denominated in gwei, set reveal, and toggle pub mint must be called after deployment Shoutout to VB if you like the nfts, made with love in the dark forest that is our home. */ import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; contract OfficialGinuNFCT is ERC721, Ownable { //libraries using SafeMath for uint256; using Strings for uint256; using Counters for Counters.Counter; using SafeERC20 for IERC20; Counters.Counter private _supply; // Structs struct TokenCycle { uint256 rewardsamount; uint256 time; uint256 currentsupply; } //Mappings mapping(IERC20 => uint256) public TokenID; mapping(uint256 => TokenCycle) public rewardCycle; mapping(uint256 => uint256) public NFTSPeriodId; //Variables public uint256 public RewardsForHolders; uint256 public currentRewardPeriodId; uint256 public CompanyFunds; uint256 public NewRewards; uint256 public UnclaimedRewards; bool public pubMintActive = false; uint256 public PUB_MINT_PRICE; address public managerAddress; //Variables Private string private baseURI; string private baseExt = ".json"; bool public revealed = false; string private notRevealedUri; bool private _locked = false; // for re-entrancy guard //Constants uint256 private constant PUB_MAX_PER_WALLET = 10; // 3/wallet (uses < to save gas) // Total supply uint256 public constant MAX_SUPPLY = 2000; //events event ClaimedRewards(uint256 tokenid, address to); event minted(address to, uint256 quantity); event Rewardsadded(uint256 amount); constructor(string memory _initBaseURI, string memory _initNotRevealedUri, uint256 PUB_PRICE, address manageraddress) ERC721("OfficialGinuNFT", "GINU") { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); setPrice(PUB_PRICE); UpdateManagerAddress(manageraddress); _supply.increment(); } /// @dev Throws if not called by pool manager address provided in constructor. modifier onlyManager() { require(msg.sender == managerAddress, "Message sender must be the contract's Manager."); _; } ///Functions For RewardCycle information function UpdateManagerAddress(address newmanager) public onlyOwner { managerAddress = newmanager; } ///Functions For RewardCycle information function FetchAmountById(uint256 id) public view returns (uint256) { return rewardCycle[id].rewardsamount; } function FetchTimeById(uint256 id) public view returns (uint256) { return rewardCycle[id].time; } function FetchSupplyById(uint256 id) public view returns (uint256) { return rewardCycle[id].currentsupply; } // Function used to add new Eth Rewards to the contract function AddRewards() public payable onlyManager { if(currentRewardPeriodId > 0) { UnclaimedRewards = address(this).balance.sub(msg.value).sub(CompanyFunds); require(msg.value > 0, "Failed to deposit Ether."); //address(this).balance NewRewards = address(this).balance.sub(CompanyFunds).sub(UnclaimedRewards); updateRewardCycle(currentRewardPeriodId.add(1), NewRewards); currentRewardPeriodId = currentRewardPeriodId.add(1); } else { require(msg.value > 0, "Failed to deposit Ether."); NewRewards = address(this).balance.sub(CompanyFunds); updateRewardCycle(currentRewardPeriodId.add(1), NewRewards ); currentRewardPeriodId = currentRewardPeriodId.add(1); } emit Rewardsadded((address(this).balance)); } //Reward cycle update functions function updateNftsRewardCycle(uint256 tokenid) private { NFTSPeriodId[tokenid] = currentRewardPeriodId.add(1); } //update a users id for emergencies only function Updatenftid(uint256 tokenid, uint256 periodid) external onlyOwner { NFTSPeriodId[tokenid] = periodid; } // updates a new reward round once rewards are depositted function updateRewardCycle(uint index, uint256 amount) private { rewardCycle[index].time = block.timestamp; rewardCycle[index].rewardsamount = amount; rewardCycle[index].currentsupply = _supply.current().sub(1); } //Can User Claim - for frontend dapp function CanClaim(uint256 tokenid) public view returns (bool) { if(NFTSPeriodId[tokenid] <= currentRewardPeriodId) { return true; } else { return false; } } //Function to Claim tokens for one specific tokenid it claims all function ClaimTokens(uint256 tokenid) public nonReentrant { require(ownerOf(tokenid) == msg.sender , "You are not the current owner of this tokenid"); require(balanceOf(msg.sender) > 0, "Go buy an nft sir or madam"); require(NFTSPeriodId[tokenid] > 0 && NFTSPeriodId[tokenid] <= currentRewardPeriodId, "not the correct period id to claim"); for(uint i= NFTSPeriodId[tokenid]; i < currentRewardPeriodId.add(1); i++) { updateNftsRewardCycle(tokenid); (bool sent, ) = payable(msg.sender).call{ value: rewardCycle[i].rewardsamount.div(rewardCycle[i].currentsupply) }(""); require(sent, "Failed to withdraw Ether."); } emit ClaimedRewards(tokenid, msg.sender); } //Function to claim for multiple tokenids for multiple rounds function ClaimForMultiple(uint256[] memory tokenIds) public nonReentrant { for (uint256 j = 0; j < tokenIds.length; j++) { uint256 tokenId = tokenIds[j]; require(ownerOf(tokenId) == msg.sender, "You are not the current owner of this token ID"); require(balanceOf(msg.sender) > 0, "Go buy an NFT sir or madam"); require(NFTSPeriodId[tokenId] > 0 && NFTSPeriodId[tokenId] <= currentRewardPeriodId, "not the correct period id to claim"); for(uint i = NFTSPeriodId[tokenId]; i < currentRewardPeriodId.add(1); i++) { updateNftsRewardCycle(tokenId); (bool sent, ) = payable(msg.sender).call{ value: rewardCycle[i].rewardsamount.div(rewardCycle[i].currentsupply) }(""); require(sent, "Failed to withdraw Ether."); } emit ClaimedRewards(tokenId, msg.sender); } } // Public mint - only publicly available mint function function publicMint(uint256 _quantity) external payable nonReentrant { require(pubMintActive, "Public sale is closed at the moment."); address _to = msg.sender; require(_quantity > 0, "Invalid mint quantity."); require( balanceOf(msg.sender).add(_quantity) <= PUB_MAX_PER_WALLET, "invalid mint quantity, cant mint that many"); require(msg.value == (PUB_MINT_PRICE .mul(_quantity)), "Must send exact amount to mint, either increase or decrease eth amount"); CompanyFunds = CompanyFunds + (PUB_MINT_PRICE.mul(_quantity)); mint(_to, _quantity); emit minted(msg.sender, _quantity); } //Airdrop for promotions & collaborations //You can remove this block if you don't need it //to not mess up rewards just set the period id to the next one up from the current period function airDropMint(address _to, uint256 periodid, uint256 tokenid) external onlyOwner { NFTSPeriodId[tokenid] = periodid; Promomint(_to, 1); } // Mint an NFT internal function function mint(address _to, uint256 _quantity) private { // To save gas, since we know _quantity won't underflow / overflow //Checks are performed in caller functions / methods // unchecked { require((_quantity + _supply.current()) <= MAX_SUPPLY, "Max supply exceeded."); for (uint256 i = 0; i < _quantity; i++) { _safeMint(_to, _supply.current()); updateNftsRewardCycle(_supply.current()); _supply.increment(); } } emit minted(_to, _quantity); } // Mint an nft for airdrop - internal function function Promomint(address _to, uint256 _quantity) private { /** * To save gas, since we know _quantity won't underflow / overflow * Checks are performed in caller functions / methods */ unchecked { require((_quantity + _supply.current()) <= MAX_SUPPLY, "Max supply exceeded."); for (uint256 i = 0; i < _quantity; i++) { _safeMint(_to, _supply.current()); _supply.increment(); } } emit minted(_to, _quantity); } function safeTransferFrom( 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"); if(NFTSPeriodId[tokenId] > 0 && NFTSPeriodId[tokenId] <= currentRewardPeriodId) { ClaimTokens(tokenId); NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _transfer(from, to, tokenId); }else { NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _transfer(from, to, tokenId); } } 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"); if(NFTSPeriodId[tokenId] > 0 && NFTSPeriodId[tokenId] <= currentRewardPeriodId) { ClaimTokens(tokenId); NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _transfer(from, to, tokenId); }else { NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _transfer(from, to, tokenId); } } 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"); if(NFTSPeriodId[tokenId]> 0 && NFTSPeriodId[tokenId] <= currentRewardPeriodId) { ClaimTokens(tokenId); NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _safeTransfer(from, to, tokenId, data); }else { NFTSPeriodId[tokenId] = currentRewardPeriodId.add(1); _safeTransfer(from, to, tokenId, data); } } // Get total supply function totalSupply() public view returns (uint256) { return _supply.current().sub(1); } // Set Mint price function setPrice(uint256 PUB_PRICE) public onlyOwner { PUB_MINT_PRICE = PUB_PRICE * 1e9; } // Toggle public sales activity function togglePubMintActive() public onlyOwner { pubMintActive = !pubMintActive; } // Base URI function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // Set base URI function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } // Get metadata URI function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token."); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExt)) : ""; } // Activate reveal function setReveal() public onlyOwner { revealed = true; } // Set not revealed URI function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } // Withdraw balance function withdraw() external onlyOwner { // Transfer the balance minus user rewards to the owner // Do not remove this line, else you won't be able to withdraw the funds (bool sent, ) = payable(owner()).call{ value: CompanyFunds }(""); require(sent, "Failed to withdraw Ether."); CompanyFunds = 0; } function Emergencywithdraw() external onlyOwner { // Transfer the full balance to the owner // Do not remove this line, else you won't be able to withdraw the funds (bool sent, ) = payable(owner()).call{ value: address(this).balance }(""); require(sent, "Failed to withdraw Ether."); } function EmergencywithdrawExactAmount(uint256 value) external onlyOwner { // Transfer a exact amount of balance to the owner // Do not remove this line, else you won't be able to withdraw the funds (bool sent, ) = payable(owner()).call{ value: value }(""); require(sent, "Failed to withdraw Ether."); } function approveERC20(address spender, uint256 amount, IERC20 token) private returns (bool) { token.approve(spender, amount); return true; } function Rescuetokens(IERC20 token, uint256 amount) external onlyOwner { approveERC20(msg.sender, amount, token); token.transfer(msg.sender, amount); } // Receive any funds sent to the contract receive() external payable {} // Reentrancy guard modifier modifier nonReentrant() { require(!_locked, "No re-entrant call."); _locked = true; _; _locked = false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 = _ownerOf(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 or 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 or 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 or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @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. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// 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.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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/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.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"uint256","name":"PUB_PRICE","type":"uint256"},{"internalType":"address","name":"manageraddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenid","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"ClaimedRewards","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":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Rewardsadded","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"minted","type":"event"},{"inputs":[],"name":"AddRewards","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenid","type":"uint256"}],"name":"CanClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ClaimForMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenid","type":"uint256"}],"name":"ClaimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"CompanyFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Emergencywithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"EmergencywithdrawExactAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchAmountById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchSupplyById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"FetchTimeById","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"NFTSPeriodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NewRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUB_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Rescuetokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"RewardsForHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"TokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UnclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newmanager","type":"address"}],"name":"UpdateManagerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenid","type":"uint256"},{"internalType":"uint256","name":"periodid","type":"uint256"}],"name":"Updatenftid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"periodid","type":"uint256"},{"internalType":"uint256","name":"tokenid","type":"uint256"}],"name":"airDropMint","outputs":[],"stateMutability":"nonpayable","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":"currentRewardPeriodId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"managerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardCycle","outputs":[{"internalType":"uint256","name":"rewardsamount","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"currentsupply","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"PUB_PRICE","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePubMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526000601060006101000a81548160ff0219169083151502179055506040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060149081620000659190620006c8565b506000601560006101000a81548160ff0219169083151502179055506000601760006101000a81548160ff021916908315150217905550348015620000a957600080fd5b5060405162006575380380620065758339818101604052810190620000cf9190620009a9565b6040518060400160405280600f81526020017f4f6666696369616c47696e754e465400000000000000000000000000000000008152506040518060400160405280600481526020017f47494e550000000000000000000000000000000000000000000000000000000081525081600090816200014c9190620006c8565b5080600190816200015e9190620006c8565b5050506200018162000175620001e660201b60201c565b620001ee60201b60201c565b6200019284620002b460201b60201c565b620001a383620002d960201b60201c565b620001b482620002fe60201b60201c565b620001c5816200032960201b60201c565b620001dc60076200037d60201b620027021760201c565b5050505062000b6c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002c46200039360201b60201c565b8060139081620002d59190620006c8565b5050565b620002e96200039360201b60201c565b8060169081620002fa9190620006c8565b5050565b6200030e6200039360201b60201c565b633b9aca008162000320919062000a88565b60118190555050565b620003396200039360201b60201c565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6001816000016000828254019250508190555050565b620003a3620001e660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003c96200042460201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000422576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004199062000b4a565b60405180910390fd5b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004d057607f821691505b602082108103620004e657620004e562000488565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000511565b6200055c868362000511565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005a9620005a36200059d8462000574565b6200057e565b62000574565b9050919050565b6000819050919050565b620005c58362000588565b620005dd620005d482620005b0565b8484546200051e565b825550505050565b600090565b620005f4620005e5565b62000601818484620005ba565b505050565b5b8181101562000629576200061d600082620005ea565b60018101905062000607565b5050565b601f82111562000678576200064281620004ec565b6200064d8462000501565b810160208510156200065d578190505b620006756200066c8562000501565b83018262000606565b50505b505050565b600082821c905092915050565b60006200069d600019846008026200067d565b1980831691505092915050565b6000620006b883836200068a565b9150826002028217905092915050565b620006d3826200044e565b67ffffffffffffffff811115620006ef57620006ee62000459565b5b620006fb8254620004b7565b620007088282856200062d565b600060209050601f8311600181146200074057600084156200072b578287015190505b620007378582620006aa565b865550620007a7565b601f1984166200075086620004ec565b60005b828110156200077a5784890151825560018201915060208501945060208101905062000753565b868310156200079a578489015162000796601f8916826200068a565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620007e982620007cd565b810181811067ffffffffffffffff821117156200080b576200080a62000459565b5b80604052505050565b600062000820620007af565b90506200082e8282620007de565b919050565b600067ffffffffffffffff82111562000851576200085062000459565b5b6200085c82620007cd565b9050602081019050919050565b60005b83811015620008895780820151818401526020810190506200086c565b60008484015250505050565b6000620008ac620008a68462000833565b62000814565b905082815260208101848484011115620008cb57620008ca620007c8565b5b620008d884828562000869565b509392505050565b600082601f830112620008f857620008f7620007c3565b5b81516200090a84826020860162000895565b91505092915050565b6200091e8162000574565b81146200092a57600080fd5b50565b6000815190506200093e8162000913565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009718262000944565b9050919050565b620009838162000964565b81146200098f57600080fd5b50565b600081519050620009a38162000978565b92915050565b60008060008060808587031215620009c657620009c5620007b9565b5b600085015167ffffffffffffffff811115620009e757620009e6620007be565b5b620009f587828801620008e0565b945050602085015167ffffffffffffffff81111562000a195762000a18620007be565b5b62000a2787828801620008e0565b935050604062000a3a878288016200092d565b925050606062000a4d8782880162000992565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000a958262000574565b915062000aa28362000574565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000ade5762000add62000a59565b5b828202905092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000b3260208362000ae9565b915062000b3f8262000afa565b602082019050919050565b6000602082019050818103600083015262000b658162000b23565b9050919050565b6159f98062000b7c6000396000f3fe6080604052600436106102cd5760003560e01c8063715018a611610175578063b88d4fde116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610abf578063eb19fdbe14610afc578063f2c4ce1e14610b25578063f2fde38b14610b4e576102d4565b8063c87b56dd14610a2c578063cf73a1bc14610a69578063cf96b05014610a94576102d4565b8063b88d4fde1461093f578063b949a39314610968578063b94d5bad1461097f578063bb418594146109bc578063c0500cfc146109f9578063c06ed0c214610a03576102d4565b806391b7f5ed1161012e57806391b7f5ed1461084557806395d89b411461086e578063983602311461089957806398d62709146108b0578063a17b7517146108ed578063a22cb46514610916576102d4565b8063715018a61461075957806376645315146107705780637a9ee829146107875780637c5ea971146107c45780638783cc0e146107ef5780638da5cb5b1461081a576102d4565b806332cb6b0c1161023457806348775c7f116101ed57806355f804b3116101c757806355f804b31461068b5780636352211e146106b45780636eb48bcb146106f157806370a082311461071c576102d4565b806348775c7f146105f85780635183022714610637578063533e772714610662576102d4565b806332cb6b0c1461050e5780633ccfd60b146105395780633e26f5c5146105505780633f6f4d181461057957806342842e0e146105a45780634753d5a3146105cd576102d4565b80631662d564116102865780631662d5641461040f57806318160ddd1461043857806323736f521461046357806323b872dd1461048c578063293849db146104b55780632db11544146104f2576102d4565b806301ffc9a7146102d957806306fdde031461031657806307b575d014610341578063081812fc1461036c578063095ea7b3146103a95780630d5a2f25146103d2576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b5061030060048036038101906102fb9190613b5c565b610b77565b60405161030d9190613ba4565b60405180910390f35b34801561032257600080fd5b5061032b610c59565b6040516103389190613c4f565b60405180910390f35b34801561034d57600080fd5b50610356610ceb565b6040516103639190613c8a565b60405180910390f35b34801561037857600080fd5b50610393600480360381019061038e9190613cd1565b610cf1565b6040516103a09190613d3f565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb9190613d86565b610d37565b005b3480156103de57600080fd5b506103f960048036038101906103f49190613cd1565b610e4e565b6040516104069190613ba4565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190613dc6565b610e7f565b005b34801561044457600080fd5b5061044d610ecb565b60405161045a9190613c8a565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190613cd1565b610eef565b005b34801561049857600080fd5b506104b360048036038101906104ae9190613df3565b610fae565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190613e84565b6110bf565b6040516104e99190613c8a565b60405180910390f35b61050c60048036038101906105079190613cd1565b6110d7565b005b34801561051a57600080fd5b50610523611317565b6040516105309190613c8a565b60405180910390f35b34801561054557600080fd5b5061054e61131d565b005b34801561055c57600080fd5b5061057760048036038101906105729190613eb1565b6113e5565b005b34801561058557600080fd5b5061058e61147c565b60405161059b9190613c8a565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613df3565b611482565b005b3480156105d957600080fd5b506105e2611593565b6040516105ef9190613c8a565b60405180910390f35b34801561060457600080fd5b5061061f600480360381019061061a9190613cd1565b611599565b60405161062e93929190613ef1565b60405180910390f35b34801561064357600080fd5b5061064c6115c3565b6040516106599190613ba4565b60405180910390f35b34801561066e57600080fd5b5061068960048036038101906106849190614070565b6115d6565b005b34801561069757600080fd5b506106b260048036038101906106ad919061416e565b61194e565b005b3480156106c057600080fd5b506106db60048036038101906106d69190613cd1565b611969565b6040516106e89190613d3f565b60405180910390f35b3480156106fd57600080fd5b506107066119ef565b6040516107139190613ba4565b60405180910390f35b34801561072857600080fd5b50610743600480360381019061073e9190613dc6565b611a02565b6040516107509190613c8a565b60405180910390f35b34801561076557600080fd5b5061076e611ab9565b005b34801561077c57600080fd5b50610785611acd565b005b34801561079357600080fd5b506107ae60048036038101906107a99190613cd1565b611af2565b6040516107bb9190613c8a565b60405180910390f35b3480156107d057600080fd5b506107d9611b12565b6040516107e69190613c8a565b60405180910390f35b3480156107fb57600080fd5b50610804611b18565b6040516108119190613c8a565b60405180910390f35b34801561082657600080fd5b5061082f611b1e565b60405161083c9190613d3f565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190613cd1565b611b48565b005b34801561087a57600080fd5b50610883611b69565b6040516108909190613c4f565b60405180910390f35b3480156108a557600080fd5b506108ae611bfb565b005b3480156108bc57600080fd5b506108d760048036038101906108d29190613cd1565b611c2f565b6040516108e49190613c8a565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f91906141b7565b611c4f565b005b34801561092257600080fd5b5061093d60048036038101906109389190614223565b611c73565b005b34801561094b57600080fd5b5061096660048036038101906109619190614304565b611c89565b005b34801561097457600080fd5b5061097d611d9d565b005b34801561098b57600080fd5b506109a660048036038101906109a19190613cd1565b611e5b565b6040516109b39190613c8a565b60405180910390f35b3480156109c857600080fd5b506109e360048036038101906109de9190613cd1565b611e7b565b6040516109f09190613c8a565b60405180910390f35b610a01611e93565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a259190613cd1565b6120e4565b005b348015610a3857600080fd5b50610a536004803603810190610a4e9190613cd1565b61241c565b604051610a609190613c4f565b60405180910390f35b348015610a7557600080fd5b50610a7e612574565b604051610a8b9190613d3f565b60405180910390f35b348015610aa057600080fd5b50610aa961259a565b604051610ab69190613c8a565b60405180910390f35b348015610acb57600080fd5b50610ae66004803603810190610ae19190614387565b6125a0565b604051610af39190613ba4565b60405180910390f35b348015610b0857600080fd5b50610b236004803603810190610b1e91906143c7565b612634565b005b348015610b3157600080fd5b50610b4c6004803603810190610b47919061416e565b612664565b005b348015610b5a57600080fd5b50610b756004803603810190610b709190613dc6565b61267f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c4257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c525750610c5182612718565b5b9050919050565b606060008054610c6890614449565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9490614449565b8015610ce15780601f10610cb657610100808354040283529160200191610ce1565b820191906000526020600020905b815481529060010190602001808311610cc457829003601f168201915b5050505050905090565b60115481565b6000610cfc82612782565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4282611969565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da9906144ec565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dd16127cd565b73ffffffffffffffffffffffffffffffffffffffff161480610e005750610dff81610dfa6127cd565b6125a0565b5b610e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e369061457e565b60405180910390fd5b610e4983836127d5565b505050565b6000600c54600a60008481526020019081526020016000205411610e755760019050610e7a565b600090505b919050565b610e8761288e565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610eea6001610edc600761290c565b61291a90919063ffffffff16565b905090565b610ef761288e565b6000610f01611b1e565b73ffffffffffffffffffffffffffffffffffffffff1682604051610f24906145cf565b60006040518083038185875af1925050503d8060008114610f61576040519150601f19603f3d011682016040523d82523d6000602084013e610f66565b606091505b5050905080610faa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa190614630565b60405180910390fd5b5050565b610fbf610fb96127cd565b82612930565b610ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff5906146c2565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156110365750600c54600a60008381526020019081526020016000205411155b1561108157611044816120e4565b61105a6001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555061107c8383836129db565b6110ba565b6110976001600c546129c590919063ffffffff16565b600a6000838152602001908152602001600020819055506110b98383836129db565b5b505050565b60086020528060005260406000206000915090505481565b601760009054906101000a900460ff1615611127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111e9061472e565b60405180910390fd5b6001601760006101000a81548160ff021916908315150217905550601060009054906101000a900460ff16611191576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611188906147c0565b60405180910390fd5b6000339050600082116111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d09061482c565b60405180910390fd5b600a6111f6836111e833611a02565b6129c590919063ffffffff16565b1115611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e906148be565b60405180910390fd5b61124c82601154612cd490919063ffffffff16565b341461128d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128490614976565b60405180910390fd5b6112a282601154612cd490919063ffffffff16565b600d546112af91906149c5565b600d819055506112bf8183612cea565b7fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c933836040516112f09291906149f9565b60405180910390a1506000601760006101000a81548160ff02191690831515021790555050565b6107d081565b61132561288e565b600061132f611b1e565b73ffffffffffffffffffffffffffffffffffffffff16600d54604051611354906145cf565b60006040518083038185875af1925050503d8060008114611391576040519150601f19603f3d011682016040523d82523d6000602084013e611396565b606091505b50509050806113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614630565b60405180910390fd5b6000600d8190555050565b6113ed61288e565b6113f8338284612dbf565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114349291906149f9565b6020604051808303816000875af1158015611453573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114779190614a37565b505050565b600f5481565b61149361148d6127cd565b82612930565b6114d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c9906146c2565b60405180910390fd5b6000600a60008381526020019081526020016000205411801561150a5750600c54600a60008381526020019081526020016000205411155b1561155557611518816120e4565b61152e6001600c546129c590919063ffffffff16565b600a6000838152602001908152602001600020819055506115508383836129db565b61158e565b61156b6001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555061158d8383836129db565b5b505050565b600b5481565b60096020528060005260406000206000915090508060000154908060010154908060020154905083565b601560009054906101000a900460ff1681565b601760009054906101000a900460ff1615611626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161d9061472e565b60405180910390fd5b6001601760006101000a81548160ff02191690831515021790555060005b815181101561192f57600082828151811061166257611661614a64565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff1661168c82611969565b73ffffffffffffffffffffffffffffffffffffffff16146116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614b05565b60405180910390fd5b60006116ed33611a02565b1161172d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172490614b71565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156117655750600c54600a60008381526020019081526020016000205411155b6117a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179b90614c03565b60405180910390fd5b6000600a60008381526020019081526020016000205490505b6117d36001600c546129c590919063ffffffff16565b8110156118e1576117e382612e4b565b60003373ffffffffffffffffffffffffffffffffffffffff1661183b60096000858152602001908152602001600020600201546009600086815260200190815260200160002060000154612e7b90919063ffffffff16565b604051611847906145cf565b60006040518083038185875af1925050503d8060008114611884576040519150601f19603f3d011682016040523d82523d6000602084013e611889565b606091505b50509050806118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490614630565b60405180910390fd5b5080806118d990614c23565b9150506117bd565b507f156728898f2eff146f9e45e7cb882df5313df336315946b8fbbbda7bad6869c88133604051611913929190614c6b565b60405180910390a150808061192790614c23565b915050611644565b506000601760006101000a81548160ff02191690831515021790555050565b61195661288e565b80601390816119659190614e40565b5050565b60008061197583612e91565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dd90614f5e565b60405180910390fd5b80915050919050565b601060009054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6990614ff0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611ac161288e565b611acb6000612ece565b565b611ad561288e565b6001601560006101000a81548160ff021916908315150217905550565b600060096000838152602001908152602001600020600001549050919050565b600e5481565b600c5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b5061288e565b633b9aca0081611b609190615010565b60118190555050565b606060018054611b7890614449565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba490614449565b8015611bf15780601f10611bc657610100808354040283529160200191611bf1565b820191906000526020600020905b815481529060010190602001808311611bd457829003601f168201915b5050505050905090565b611c0361288e565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b600060096000838152602001908152602001600020600201549050919050565b611c5761288e565b80600a6000848152602001908152602001600020819055505050565b611c85611c7e6127cd565b8383612f94565b5050565b611c9a611c946127cd565b83612930565b611cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd0906146c2565b60405180910390fd5b6000600a600084815260200190815260200160002054118015611d115750600c54600a60008481526020019081526020016000205411155b15611d5d57611d1f826120e4565b611d356001600c546129c590919063ffffffff16565b600a600084815260200190815260200160002081905550611d5884848484613100565b611d97565b611d736001600c546129c590919063ffffffff16565b600a600084815260200190815260200160002081905550611d9684848484613100565b5b50505050565b611da561288e565b6000611daf611b1e565b73ffffffffffffffffffffffffffffffffffffffff1647604051611dd2906145cf565b60006040518083038185875af1925050503d8060008114611e0f576040519150601f19603f3d011682016040523d82523d6000602084013e611e14565b606091505b5050905080611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614630565b60405180910390fd5b50565b600060096000838152602001908152602001600020600101549050919050565b600a6020528060005260406000206000915090505481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1a906150dc565b60405180910390fd5b6000600c54111561200f57611f55600d54611f47344761291a90919063ffffffff16565b61291a90919063ffffffff16565b600f8190555060003411611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590615148565b60405180910390fd5b611fc7600f54611fb9600d544761291a90919063ffffffff16565b61291a90919063ffffffff16565b600e81905550611fee611fe66001600c546129c590919063ffffffff16565b600e5461315c565b6120046001600c546129c590919063ffffffff16565b600c819055506120ab565b60003411612052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204990615148565b60405180910390fd5b612067600d544761291a90919063ffffffff16565b600e8190555061208e6120866001600c546129c590919063ffffffff16565b600e5461315c565b6120a46001600c546129c590919063ffffffff16565b600c819055505b7f30b16c802b81cf5b36fccbc3b25cc2690d148d8184e3342ee42293dc09438642476040516120da9190613c8a565b60405180910390a1565b601760009054906101000a900460ff1615612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b9061472e565b60405180910390fd5b6001601760006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff1661216f82611969565b73ffffffffffffffffffffffffffffffffffffffff16146121c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121bc906151da565b60405180910390fd5b60006121d033611a02565b11612210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220790615246565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156122485750600c54600a60008381526020019081526020016000205411155b612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90614c03565b60405180910390fd5b6000600a60008381526020019081526020016000205490505b6122b66001600c546129c590919063ffffffff16565b8110156123c4576122c682612e4b565b60003373ffffffffffffffffffffffffffffffffffffffff1661231e60096000858152602001908152602001600020600201546009600086815260200190815260200160002060000154612e7b90919063ffffffff16565b60405161232a906145cf565b60006040518083038185875af1925050503d8060008114612367576040519150601f19603f3d011682016040523d82523d6000602084013e61236c565b606091505b50509050806123b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a790614630565b60405180910390fd5b5080806123bc90614c23565b9150506122a0565b507f156728898f2eff146f9e45e7cb882df5313df336315946b8fbbbda7bad6869c881336040516123f6929190614c6b565b60405180910390a16000601760006101000a81548160ff02191690831515021790555050565b6060612427826131cd565b612466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245d906152d8565b60405180910390fd5b60001515601560009054906101000a900460ff16151503612513576016805461248e90614449565b80601f01602080910402602001604051908101604052809291908181526020018280546124ba90614449565b80156125075780601f106124dc57610100808354040283529160200191612507565b820191906000526020600020905b8154815290600101906020018083116124ea57829003601f168201915b5050505050905061256f565b600061251d61320e565b9050600081511161253d576040518060200160405280600081525061256b565b80612547846132a0565b601460405160200161255b939291906153b7565b6040516020818303038152906040525b9150505b919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61263c61288e565b81600a60008381526020019081526020016000208190555061265f83600161336e565b505050565b61266c61288e565b806016908161267b9190614e40565b5050565b61268761288e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ed9061545a565b60405180910390fd5b6126ff81612ece565b50565b6001816000016000828254019250508190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61278b816131cd565b6127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c190614f5e565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661284883611969565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6128966127cd565b73ffffffffffffffffffffffffffffffffffffffff166128b4611b1e565b73ffffffffffffffffffffffffffffffffffffffff161461290a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612901906154c6565b60405180910390fd5b565b600081600001549050919050565b6000818361292891906154e6565b905092915050565b60008061293c83611969565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061297e575061297d81856125a0565b5b806129bc57508373ffffffffffffffffffffffffffffffffffffffff166129a484610cf1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600081836129d391906149c5565b905092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129fb82611969565b73ffffffffffffffffffffffffffffffffffffffff1614612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a489061558c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab79061561e565b60405180910390fd5b612acd8383836001613431565b8273ffffffffffffffffffffffffffffffffffffffff16612aed82611969565b73ffffffffffffffffffffffffffffffffffffffff1614612b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3a9061558c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ccf8383836001613557565b505050565b60008183612ce29190615010565b905092915050565b6107d0612cf7600761290c565b82011115612d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d319061568a565b60405180910390fd5b60005b81811015612d8157612d5883612d53600761290c565b61355d565b612d6a612d65600761290c565b612e4b565b612d746007612702565b8080600101915050612d3d565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c98282604051612db39291906149f9565b60405180910390a15050565b60008173ffffffffffffffffffffffffffffffffffffffff1663095ea7b385856040518363ffffffff1660e01b8152600401612dfc9291906149f9565b6020604051808303816000875af1158015612e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3f9190614a37565b50600190509392505050565b612e616001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555050565b60008183612e8991906156d9565b905092915050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990615756565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130f39190613ba4565b60405180910390a3505050565b61310b8484846129db565b6131178484848461357b565b613156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314d906157e8565b60405180910390fd5b50505050565b4260096000848152602001908152602001600020600101819055508060096000848152602001908152602001600020600001819055506131af60016131a1600761290c565b61291a90919063ffffffff16565b60096000848152602001908152602001600020600201819055505050565b60008073ffffffffffffffffffffffffffffffffffffffff166131ef83612e91565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606013805461321d90614449565b80601f016020809104026020016040519081016040528092919081815260200182805461324990614449565b80156132965780601f1061326b57610100808354040283529160200191613296565b820191906000526020600020905b81548152906001019060200180831161327957829003601f168201915b5050505050905090565b6060600060016132af84613702565b01905060008167ffffffffffffffff8111156132ce576132cd613f2d565b5b6040519080825280601f01601f1916602001820160405280156133005781602001600182028036833780820191505090505b509050600082602001820190505b600115613363578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613357576133566156aa565b5b0494506000850361330e575b819350505050919050565b6107d061337b600761290c565b820111156133be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b59061568a565b60405180910390fd5b60005b818110156133f3576133dc836133d7600761290c565b61355d565b6133e66007612702565b80806001019150506133c1565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c982826040516134259291906149f9565b60405180910390a15050565b600181111561355157600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146134c55780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134bd91906154e6565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135505780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461354891906149c5565b925050819055505b5b50505050565b50505050565b613577828260405180602001604052806000815250613855565b5050565b600061359c8473ffffffffffffffffffffffffffffffffffffffff166138b0565b156136f5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135c56127cd565b8786866040518563ffffffff1660e01b81526004016135e7949392919061585d565b6020604051808303816000875af192505050801561362357506040513d601f19601f8201168201806040525081019061362091906158be565b60015b6136a5573d8060008114613653576040519150601f19603f3d011682016040523d82523d6000602084013e613658565b606091505b50600081510361369d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613694906157e8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506136fa565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613760577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613756576137556156aa565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061379d576d04ee2d6d415b85acef81000000008381613793576137926156aa565b5b0492506020810190505b662386f26fc1000083106137cc57662386f26fc1000083816137c2576137c16156aa565b5b0492506010810190505b6305f5e10083106137f5576305f5e10083816137eb576137ea6156aa565b5b0492506008810190505b612710831061381a5761271083816138105761380f6156aa565b5b0492506004810190505b6064831061383d5760648381613833576138326156aa565b5b0492506002810190505b600a831061384c576001810190505b80915050919050565b61385f83836138d3565b61386c600084848461357b565b6138ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a2906157e8565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393990615937565b60405180910390fd5b61394b816131cd565b1561398b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613982906159a3565b60405180910390fd5b613999600083836001613431565b6139a2816131cd565b156139e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139d9906159a3565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613aec600083836001613557565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b3981613b04565b8114613b4457600080fd5b50565b600081359050613b5681613b30565b92915050565b600060208284031215613b7257613b71613afa565b5b6000613b8084828501613b47565b91505092915050565b60008115159050919050565b613b9e81613b89565b82525050565b6000602082019050613bb96000830184613b95565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bf9578082015181840152602081019050613bde565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c2182613bbf565b613c2b8185613bca565b9350613c3b818560208601613bdb565b613c4481613c05565b840191505092915050565b60006020820190508181036000830152613c698184613c16565b905092915050565b6000819050919050565b613c8481613c71565b82525050565b6000602082019050613c9f6000830184613c7b565b92915050565b613cae81613c71565b8114613cb957600080fd5b50565b600081359050613ccb81613ca5565b92915050565b600060208284031215613ce757613ce6613afa565b5b6000613cf584828501613cbc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d2982613cfe565b9050919050565b613d3981613d1e565b82525050565b6000602082019050613d546000830184613d30565b92915050565b613d6381613d1e565b8114613d6e57600080fd5b50565b600081359050613d8081613d5a565b92915050565b60008060408385031215613d9d57613d9c613afa565b5b6000613dab85828601613d71565b9250506020613dbc85828601613cbc565b9150509250929050565b600060208284031215613ddc57613ddb613afa565b5b6000613dea84828501613d71565b91505092915050565b600080600060608486031215613e0c57613e0b613afa565b5b6000613e1a86828701613d71565b9350506020613e2b86828701613d71565b9250506040613e3c86828701613cbc565b9150509250925092565b6000613e5182613d1e565b9050919050565b613e6181613e46565b8114613e6c57600080fd5b50565b600081359050613e7e81613e58565b92915050565b600060208284031215613e9a57613e99613afa565b5b6000613ea884828501613e6f565b91505092915050565b60008060408385031215613ec857613ec7613afa565b5b6000613ed685828601613e6f565b9250506020613ee785828601613cbc565b9150509250929050565b6000606082019050613f066000830186613c7b565b613f136020830185613c7b565b613f206040830184613c7b565b949350505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f6582613c05565b810181811067ffffffffffffffff82111715613f8457613f83613f2d565b5b80604052505050565b6000613f97613af0565b9050613fa38282613f5c565b919050565b600067ffffffffffffffff821115613fc357613fc2613f2d565b5b602082029050602081019050919050565b600080fd5b6000613fec613fe784613fa8565b613f8d565b9050808382526020820190506020840283018581111561400f5761400e613fd4565b5b835b8181101561403857806140248882613cbc565b845260208401935050602081019050614011565b5050509392505050565b600082601f83011261405757614056613f28565b5b8135614067848260208601613fd9565b91505092915050565b60006020828403121561408657614085613afa565b5b600082013567ffffffffffffffff8111156140a4576140a3613aff565b5b6140b084828501614042565b91505092915050565b600080fd5b600067ffffffffffffffff8211156140d9576140d8613f2d565b5b6140e282613c05565b9050602081019050919050565b82818337600083830152505050565b600061411161410c846140be565b613f8d565b90508281526020810184848401111561412d5761412c6140b9565b5b6141388482856140ef565b509392505050565b600082601f83011261415557614154613f28565b5b81356141658482602086016140fe565b91505092915050565b60006020828403121561418457614183613afa565b5b600082013567ffffffffffffffff8111156141a2576141a1613aff565b5b6141ae84828501614140565b91505092915050565b600080604083850312156141ce576141cd613afa565b5b60006141dc85828601613cbc565b92505060206141ed85828601613cbc565b9150509250929050565b61420081613b89565b811461420b57600080fd5b50565b60008135905061421d816141f7565b92915050565b6000806040838503121561423a57614239613afa565b5b600061424885828601613d71565b92505060206142598582860161420e565b9150509250929050565b600067ffffffffffffffff82111561427e5761427d613f2d565b5b61428782613c05565b9050602081019050919050565b60006142a76142a284614263565b613f8d565b9050828152602081018484840111156142c3576142c26140b9565b5b6142ce8482856140ef565b509392505050565b600082601f8301126142eb576142ea613f28565b5b81356142fb848260208601614294565b91505092915050565b6000806000806080858703121561431e5761431d613afa565b5b600061432c87828801613d71565b945050602061433d87828801613d71565b935050604061434e87828801613cbc565b925050606085013567ffffffffffffffff81111561436f5761436e613aff565b5b61437b878288016142d6565b91505092959194509250565b6000806040838503121561439e5761439d613afa565b5b60006143ac85828601613d71565b92505060206143bd85828601613d71565b9150509250929050565b6000806000606084860312156143e0576143df613afa565b5b60006143ee86828701613d71565b93505060206143ff86828701613cbc565b925050604061441086828701613cbc565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061446157607f821691505b6020821081036144745761447361441a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006144d6602183613bca565b91506144e18261447a565b604082019050919050565b60006020820190508181036000830152614505816144c9565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614568603d83613bca565b91506145738261450c565b604082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b600081905092915050565b50565b60006145b960008361459e565b91506145c4826145a9565b600082019050919050565b60006145da826145ac565b9150819050919050565b7f4661696c656420746f2077697468647261772045746865722e00000000000000600082015250565b600061461a601983613bca565b9150614625826145e4565b602082019050919050565b600060208201905081810360008301526146498161460d565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006146ac602e83613bca565b91506146b782614650565b604082019050919050565b600060208201905081810360008301526146db8161469f565b9050919050565b7f4e6f2072652d656e7472616e742063616c6c2e00000000000000000000000000600082015250565b6000614718601383613bca565b9150614723826146e2565b602082019050919050565b600060208201905081810360008301526147478161470b565b9050919050565b7f5075626c69632073616c6520697320636c6f73656420617420746865206d6f6d60008201527f656e742e00000000000000000000000000000000000000000000000000000000602082015250565b60006147aa602483613bca565b91506147b58261474e565b604082019050919050565b600060208201905081810360008301526147d98161479d565b9050919050565b7f496e76616c6964206d696e74207175616e746974792e00000000000000000000600082015250565b6000614816601683613bca565b9150614821826147e0565b602082019050919050565b6000602082019050818103600083015261484581614809565b9050919050565b7f696e76616c6964206d696e74207175616e746974792c2063616e74206d696e7460008201527f2074686174206d616e7900000000000000000000000000000000000000000000602082015250565b60006148a8602a83613bca565b91506148b38261484c565b604082019050919050565b600060208201905081810360008301526148d78161489b565b9050919050565b7f4d7573742073656e6420657861637420616d6f756e7420746f206d696e742c2060008201527f65697468657220696e637265617365206f72206465637265617365206574682060208201527f616d6f756e740000000000000000000000000000000000000000000000000000604082015250565b6000614960604683613bca565b915061496b826148de565b606082019050919050565b6000602082019050818103600083015261498f81614953565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149d082613c71565b91506149db83613c71565b92508282019050808211156149f3576149f2614996565b5b92915050565b6000604082019050614a0e6000830185613d30565b614a1b6020830184613c7b565b9392505050565b600081519050614a31816141f7565b92915050565b600060208284031215614a4d57614a4c613afa565b5b6000614a5b84828501614a22565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f596f7520617265206e6f74207468652063757272656e74206f776e6572206f6660008201527f207468697320746f6b656e204944000000000000000000000000000000000000602082015250565b6000614aef602e83613bca565b9150614afa82614a93565b604082019050919050565b60006020820190508181036000830152614b1e81614ae2565b9050919050565b7f476f2062757920616e204e465420736972206f72206d6164616d000000000000600082015250565b6000614b5b601a83613bca565b9150614b6682614b25565b602082019050919050565b60006020820190508181036000830152614b8a81614b4e565b9050919050565b7f6e6f742074686520636f727265637420706572696f6420696420746f20636c6160008201527f696d000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bed602283613bca565b9150614bf882614b91565b604082019050919050565b60006020820190508181036000830152614c1c81614be0565b9050919050565b6000614c2e82613c71565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614c6057614c5f614996565b5b600182019050919050565b6000604082019050614c806000830185613c7b565b614c8d6020830184613d30565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614cf67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614cb9565b614d008683614cb9565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614d3d614d38614d3384613c71565b614d18565b613c71565b9050919050565b6000819050919050565b614d5783614d22565b614d6b614d6382614d44565b848454614cc6565b825550505050565b600090565b614d80614d73565b614d8b818484614d4e565b505050565b5b81811015614daf57614da4600082614d78565b600181019050614d91565b5050565b601f821115614df457614dc581614c94565b614dce84614ca9565b81016020851015614ddd578190505b614df1614de985614ca9565b830182614d90565b50505b505050565b600082821c905092915050565b6000614e1760001984600802614df9565b1980831691505092915050565b6000614e308383614e06565b9150826002028217905092915050565b614e4982613bbf565b67ffffffffffffffff811115614e6257614e61613f2d565b5b614e6c8254614449565b614e77828285614db3565b600060209050601f831160018114614eaa5760008415614e98578287015190505b614ea28582614e24565b865550614f0a565b601f198416614eb886614c94565b60005b82811015614ee057848901518255600182019150602085019450602081019050614ebb565b86831015614efd5784890151614ef9601f891682614e06565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614f48601883613bca565b9150614f5382614f12565b602082019050919050565b60006020820190508181036000830152614f7781614f3b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614fda602983613bca565b9150614fe582614f7e565b604082019050919050565b6000602082019050818103600083015261500981614fcd565b9050919050565b600061501b82613c71565b915061502683613c71565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561505f5761505e614996565b5b828202905092915050565b7f4d6573736167652073656e646572206d7573742062652074686520636f6e747260008201527f6163742773204d616e616765722e000000000000000000000000000000000000602082015250565b60006150c6602e83613bca565b91506150d18261506a565b604082019050919050565b600060208201905081810360008301526150f5816150b9565b9050919050565b7f4661696c656420746f206465706f7369742045746865722e0000000000000000600082015250565b6000615132601883613bca565b915061513d826150fc565b602082019050919050565b6000602082019050818103600083015261516181615125565b9050919050565b7f596f7520617265206e6f74207468652063757272656e74206f776e6572206f6660008201527f207468697320746f6b656e696400000000000000000000000000000000000000602082015250565b60006151c4602d83613bca565b91506151cf82615168565b604082019050919050565b600060208201905081810360008301526151f3816151b7565b9050919050565b7f476f2062757920616e206e667420736972206f72206d6164616d000000000000600082015250565b6000615230601a83613bca565b915061523b826151fa565b602082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000602082015250565b60006152c2603083613bca565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b600081905092915050565b600061530e82613bbf565b61531881856152f8565b9350615328818560208601613bdb565b80840191505092915050565b6000815461534181614449565b61534b81866152f8565b94506001821660008114615366576001811461537b576153ae565b60ff19831686528115158202860193506153ae565b61538485614c94565b60005b838110156153a657815481890152600182019150602081019050615387565b838801955050505b50505092915050565b60006153c38286615303565b91506153cf8285615303565b91506153db8284615334565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615444602683613bca565b915061544f826153e8565b604082019050919050565b6000602082019050818103600083015261547381615437565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154b0602083613bca565b91506154bb8261547a565b602082019050919050565b600060208201905081810360008301526154df816154a3565b9050919050565b60006154f182613c71565b91506154fc83613c71565b925082820390508181111561551457615513614996565b5b92915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615576602583613bca565b91506155818261551a565b604082019050919050565b600060208201905081810360008301526155a581615569565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615608602483613bca565b9150615613826155ac565b604082019050919050565b60006020820190508181036000830152615637816155fb565b9050919050565b7f4d617820737570706c792065786365656465642e000000000000000000000000600082015250565b6000615674601483613bca565b915061567f8261563e565b602082019050919050565b600060208201905081810360008301526156a381615667565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006156e482613c71565b91506156ef83613c71565b9250826156ff576156fe6156aa565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615740601983613bca565b915061574b8261570a565b602082019050919050565b6000602082019050818103600083015261576f81615733565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006157d2603283613bca565b91506157dd82615776565b604082019050919050565b60006020820190508181036000830152615801816157c5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061582f82615808565b6158398185615813565b9350615849818560208601613bdb565b61585281613c05565b840191505092915050565b60006080820190506158726000830187613d30565b61587f6020830186613d30565b61588c6040830185613c7b565b818103606083015261589e8184615824565b905095945050505050565b6000815190506158b881613b30565b92915050565b6000602082840312156158d4576158d3613afa565b5b60006158e2848285016158a9565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615921602083613bca565b915061592c826158eb565b602082019050919050565b6000602082019050818103600083015261595081615914565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061598d601c83613bca565b915061599882615957565b602082019050919050565b600060208201905081810360008301526159bc81615980565b905091905056fea2646970667358221220a6dc6f08277f4613ecbde8473bd54eab8d2e2e3f4aafe2a782c664d56783cdfa64736f6c63430008100033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000002faf080000000000000000000000000ddf8b540d5071aa362731301ecc9f163aa5116be000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554d6a5075397534424b4479573473387372586175376459346154783258364c314a744661555a36545175672f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554d6a5075397534424b4479573473387372586175376459346154783258364c314a744661555a36545175672f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102cd5760003560e01c8063715018a611610175578063b88d4fde116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610abf578063eb19fdbe14610afc578063f2c4ce1e14610b25578063f2fde38b14610b4e576102d4565b8063c87b56dd14610a2c578063cf73a1bc14610a69578063cf96b05014610a94576102d4565b8063b88d4fde1461093f578063b949a39314610968578063b94d5bad1461097f578063bb418594146109bc578063c0500cfc146109f9578063c06ed0c214610a03576102d4565b806391b7f5ed1161012e57806391b7f5ed1461084557806395d89b411461086e578063983602311461089957806398d62709146108b0578063a17b7517146108ed578063a22cb46514610916576102d4565b8063715018a61461075957806376645315146107705780637a9ee829146107875780637c5ea971146107c45780638783cc0e146107ef5780638da5cb5b1461081a576102d4565b806332cb6b0c1161023457806348775c7f116101ed57806355f804b3116101c757806355f804b31461068b5780636352211e146106b45780636eb48bcb146106f157806370a082311461071c576102d4565b806348775c7f146105f85780635183022714610637578063533e772714610662576102d4565b806332cb6b0c1461050e5780633ccfd60b146105395780633e26f5c5146105505780633f6f4d181461057957806342842e0e146105a45780634753d5a3146105cd576102d4565b80631662d564116102865780631662d5641461040f57806318160ddd1461043857806323736f521461046357806323b872dd1461048c578063293849db146104b55780632db11544146104f2576102d4565b806301ffc9a7146102d957806306fdde031461031657806307b575d014610341578063081812fc1461036c578063095ea7b3146103a95780630d5a2f25146103d2576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b5061030060048036038101906102fb9190613b5c565b610b77565b60405161030d9190613ba4565b60405180910390f35b34801561032257600080fd5b5061032b610c59565b6040516103389190613c4f565b60405180910390f35b34801561034d57600080fd5b50610356610ceb565b6040516103639190613c8a565b60405180910390f35b34801561037857600080fd5b50610393600480360381019061038e9190613cd1565b610cf1565b6040516103a09190613d3f565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb9190613d86565b610d37565b005b3480156103de57600080fd5b506103f960048036038101906103f49190613cd1565b610e4e565b6040516104069190613ba4565b60405180910390f35b34801561041b57600080fd5b5061043660048036038101906104319190613dc6565b610e7f565b005b34801561044457600080fd5b5061044d610ecb565b60405161045a9190613c8a565b60405180910390f35b34801561046f57600080fd5b5061048a60048036038101906104859190613cd1565b610eef565b005b34801561049857600080fd5b506104b360048036038101906104ae9190613df3565b610fae565b005b3480156104c157600080fd5b506104dc60048036038101906104d79190613e84565b6110bf565b6040516104e99190613c8a565b60405180910390f35b61050c60048036038101906105079190613cd1565b6110d7565b005b34801561051a57600080fd5b50610523611317565b6040516105309190613c8a565b60405180910390f35b34801561054557600080fd5b5061054e61131d565b005b34801561055c57600080fd5b5061057760048036038101906105729190613eb1565b6113e5565b005b34801561058557600080fd5b5061058e61147c565b60405161059b9190613c8a565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613df3565b611482565b005b3480156105d957600080fd5b506105e2611593565b6040516105ef9190613c8a565b60405180910390f35b34801561060457600080fd5b5061061f600480360381019061061a9190613cd1565b611599565b60405161062e93929190613ef1565b60405180910390f35b34801561064357600080fd5b5061064c6115c3565b6040516106599190613ba4565b60405180910390f35b34801561066e57600080fd5b5061068960048036038101906106849190614070565b6115d6565b005b34801561069757600080fd5b506106b260048036038101906106ad919061416e565b61194e565b005b3480156106c057600080fd5b506106db60048036038101906106d69190613cd1565b611969565b6040516106e89190613d3f565b60405180910390f35b3480156106fd57600080fd5b506107066119ef565b6040516107139190613ba4565b60405180910390f35b34801561072857600080fd5b50610743600480360381019061073e9190613dc6565b611a02565b6040516107509190613c8a565b60405180910390f35b34801561076557600080fd5b5061076e611ab9565b005b34801561077c57600080fd5b50610785611acd565b005b34801561079357600080fd5b506107ae60048036038101906107a99190613cd1565b611af2565b6040516107bb9190613c8a565b60405180910390f35b3480156107d057600080fd5b506107d9611b12565b6040516107e69190613c8a565b60405180910390f35b3480156107fb57600080fd5b50610804611b18565b6040516108119190613c8a565b60405180910390f35b34801561082657600080fd5b5061082f611b1e565b60405161083c9190613d3f565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190613cd1565b611b48565b005b34801561087a57600080fd5b50610883611b69565b6040516108909190613c4f565b60405180910390f35b3480156108a557600080fd5b506108ae611bfb565b005b3480156108bc57600080fd5b506108d760048036038101906108d29190613cd1565b611c2f565b6040516108e49190613c8a565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f91906141b7565b611c4f565b005b34801561092257600080fd5b5061093d60048036038101906109389190614223565b611c73565b005b34801561094b57600080fd5b5061096660048036038101906109619190614304565b611c89565b005b34801561097457600080fd5b5061097d611d9d565b005b34801561098b57600080fd5b506109a660048036038101906109a19190613cd1565b611e5b565b6040516109b39190613c8a565b60405180910390f35b3480156109c857600080fd5b506109e360048036038101906109de9190613cd1565b611e7b565b6040516109f09190613c8a565b60405180910390f35b610a01611e93565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a259190613cd1565b6120e4565b005b348015610a3857600080fd5b50610a536004803603810190610a4e9190613cd1565b61241c565b604051610a609190613c4f565b60405180910390f35b348015610a7557600080fd5b50610a7e612574565b604051610a8b9190613d3f565b60405180910390f35b348015610aa057600080fd5b50610aa961259a565b604051610ab69190613c8a565b60405180910390f35b348015610acb57600080fd5b50610ae66004803603810190610ae19190614387565b6125a0565b604051610af39190613ba4565b60405180910390f35b348015610b0857600080fd5b50610b236004803603810190610b1e91906143c7565b612634565b005b348015610b3157600080fd5b50610b4c6004803603810190610b47919061416e565b612664565b005b348015610b5a57600080fd5b50610b756004803603810190610b709190613dc6565b61267f565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c4257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c525750610c5182612718565b5b9050919050565b606060008054610c6890614449565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9490614449565b8015610ce15780601f10610cb657610100808354040283529160200191610ce1565b820191906000526020600020905b815481529060010190602001808311610cc457829003601f168201915b5050505050905090565b60115481565b6000610cfc82612782565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d4282611969565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da9906144ec565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dd16127cd565b73ffffffffffffffffffffffffffffffffffffffff161480610e005750610dff81610dfa6127cd565b6125a0565b5b610e3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e369061457e565b60405180910390fd5b610e4983836127d5565b505050565b6000600c54600a60008481526020019081526020016000205411610e755760019050610e7a565b600090505b919050565b610e8761288e565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610eea6001610edc600761290c565b61291a90919063ffffffff16565b905090565b610ef761288e565b6000610f01611b1e565b73ffffffffffffffffffffffffffffffffffffffff1682604051610f24906145cf565b60006040518083038185875af1925050503d8060008114610f61576040519150601f19603f3d011682016040523d82523d6000602084013e610f66565b606091505b5050905080610faa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa190614630565b60405180910390fd5b5050565b610fbf610fb96127cd565b82612930565b610ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff5906146c2565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156110365750600c54600a60008381526020019081526020016000205411155b1561108157611044816120e4565b61105a6001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555061107c8383836129db565b6110ba565b6110976001600c546129c590919063ffffffff16565b600a6000838152602001908152602001600020819055506110b98383836129db565b5b505050565b60086020528060005260406000206000915090505481565b601760009054906101000a900460ff1615611127576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111e9061472e565b60405180910390fd5b6001601760006101000a81548160ff021916908315150217905550601060009054906101000a900460ff16611191576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611188906147c0565b60405180910390fd5b6000339050600082116111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d09061482c565b60405180910390fd5b600a6111f6836111e833611a02565b6129c590919063ffffffff16565b1115611237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122e906148be565b60405180910390fd5b61124c82601154612cd490919063ffffffff16565b341461128d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128490614976565b60405180910390fd5b6112a282601154612cd490919063ffffffff16565b600d546112af91906149c5565b600d819055506112bf8183612cea565b7fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c933836040516112f09291906149f9565b60405180910390a1506000601760006101000a81548160ff02191690831515021790555050565b6107d081565b61132561288e565b600061132f611b1e565b73ffffffffffffffffffffffffffffffffffffffff16600d54604051611354906145cf565b60006040518083038185875af1925050503d8060008114611391576040519150601f19603f3d011682016040523d82523d6000602084013e611396565b606091505b50509050806113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614630565b60405180910390fd5b6000600d8190555050565b6113ed61288e565b6113f8338284612dbf565b508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114349291906149f9565b6020604051808303816000875af1158015611453573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114779190614a37565b505050565b600f5481565b61149361148d6127cd565b82612930565b6114d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c9906146c2565b60405180910390fd5b6000600a60008381526020019081526020016000205411801561150a5750600c54600a60008381526020019081526020016000205411155b1561155557611518816120e4565b61152e6001600c546129c590919063ffffffff16565b600a6000838152602001908152602001600020819055506115508383836129db565b61158e565b61156b6001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555061158d8383836129db565b5b505050565b600b5481565b60096020528060005260406000206000915090508060000154908060010154908060020154905083565b601560009054906101000a900460ff1681565b601760009054906101000a900460ff1615611626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161d9061472e565b60405180910390fd5b6001601760006101000a81548160ff02191690831515021790555060005b815181101561192f57600082828151811061166257611661614a64565b5b602002602001015190503373ffffffffffffffffffffffffffffffffffffffff1661168c82611969565b73ffffffffffffffffffffffffffffffffffffffff16146116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614b05565b60405180910390fd5b60006116ed33611a02565b1161172d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172490614b71565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156117655750600c54600a60008381526020019081526020016000205411155b6117a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179b90614c03565b60405180910390fd5b6000600a60008381526020019081526020016000205490505b6117d36001600c546129c590919063ffffffff16565b8110156118e1576117e382612e4b565b60003373ffffffffffffffffffffffffffffffffffffffff1661183b60096000858152602001908152602001600020600201546009600086815260200190815260200160002060000154612e7b90919063ffffffff16565b604051611847906145cf565b60006040518083038185875af1925050503d8060008114611884576040519150601f19603f3d011682016040523d82523d6000602084013e611889565b606091505b50509050806118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c490614630565b60405180910390fd5b5080806118d990614c23565b9150506117bd565b507f156728898f2eff146f9e45e7cb882df5313df336315946b8fbbbda7bad6869c88133604051611913929190614c6b565b60405180910390a150808061192790614c23565b915050611644565b506000601760006101000a81548160ff02191690831515021790555050565b61195661288e565b80601390816119659190614e40565b5050565b60008061197583612e91565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dd90614f5e565b60405180910390fd5b80915050919050565b601060009054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6990614ff0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611ac161288e565b611acb6000612ece565b565b611ad561288e565b6001601560006101000a81548160ff021916908315150217905550565b600060096000838152602001908152602001600020600001549050919050565b600e5481565b600c5481565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b5061288e565b633b9aca0081611b609190615010565b60118190555050565b606060018054611b7890614449565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba490614449565b8015611bf15780601f10611bc657610100808354040283529160200191611bf1565b820191906000526020600020905b815481529060010190602001808311611bd457829003601f168201915b5050505050905090565b611c0361288e565b601060009054906101000a900460ff1615601060006101000a81548160ff021916908315150217905550565b600060096000838152602001908152602001600020600201549050919050565b611c5761288e565b80600a6000848152602001908152602001600020819055505050565b611c85611c7e6127cd565b8383612f94565b5050565b611c9a611c946127cd565b83612930565b611cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd0906146c2565b60405180910390fd5b6000600a600084815260200190815260200160002054118015611d115750600c54600a60008481526020019081526020016000205411155b15611d5d57611d1f826120e4565b611d356001600c546129c590919063ffffffff16565b600a600084815260200190815260200160002081905550611d5884848484613100565b611d97565b611d736001600c546129c590919063ffffffff16565b600a600084815260200190815260200160002081905550611d9684848484613100565b5b50505050565b611da561288e565b6000611daf611b1e565b73ffffffffffffffffffffffffffffffffffffffff1647604051611dd2906145cf565b60006040518083038185875af1925050503d8060008114611e0f576040519150601f19603f3d011682016040523d82523d6000602084013e611e14565b606091505b5050905080611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614630565b60405180910390fd5b50565b600060096000838152602001908152602001600020600101549050919050565b600a6020528060005260406000206000915090505481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1a906150dc565b60405180910390fd5b6000600c54111561200f57611f55600d54611f47344761291a90919063ffffffff16565b61291a90919063ffffffff16565b600f8190555060003411611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590615148565b60405180910390fd5b611fc7600f54611fb9600d544761291a90919063ffffffff16565b61291a90919063ffffffff16565b600e81905550611fee611fe66001600c546129c590919063ffffffff16565b600e5461315c565b6120046001600c546129c590919063ffffffff16565b600c819055506120ab565b60003411612052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204990615148565b60405180910390fd5b612067600d544761291a90919063ffffffff16565b600e8190555061208e6120866001600c546129c590919063ffffffff16565b600e5461315c565b6120a46001600c546129c590919063ffffffff16565b600c819055505b7f30b16c802b81cf5b36fccbc3b25cc2690d148d8184e3342ee42293dc09438642476040516120da9190613c8a565b60405180910390a1565b601760009054906101000a900460ff1615612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b9061472e565b60405180910390fd5b6001601760006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff1661216f82611969565b73ffffffffffffffffffffffffffffffffffffffff16146121c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121bc906151da565b60405180910390fd5b60006121d033611a02565b11612210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220790615246565b60405180910390fd5b6000600a6000838152602001908152602001600020541180156122485750600c54600a60008381526020019081526020016000205411155b612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90614c03565b60405180910390fd5b6000600a60008381526020019081526020016000205490505b6122b66001600c546129c590919063ffffffff16565b8110156123c4576122c682612e4b565b60003373ffffffffffffffffffffffffffffffffffffffff1661231e60096000858152602001908152602001600020600201546009600086815260200190815260200160002060000154612e7b90919063ffffffff16565b60405161232a906145cf565b60006040518083038185875af1925050503d8060008114612367576040519150601f19603f3d011682016040523d82523d6000602084013e61236c565b606091505b50509050806123b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a790614630565b60405180910390fd5b5080806123bc90614c23565b9150506122a0565b507f156728898f2eff146f9e45e7cb882df5313df336315946b8fbbbda7bad6869c881336040516123f6929190614c6b565b60405180910390a16000601760006101000a81548160ff02191690831515021790555050565b6060612427826131cd565b612466576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245d906152d8565b60405180910390fd5b60001515601560009054906101000a900460ff16151503612513576016805461248e90614449565b80601f01602080910402602001604051908101604052809291908181526020018280546124ba90614449565b80156125075780601f106124dc57610100808354040283529160200191612507565b820191906000526020600020905b8154815290600101906020018083116124ea57829003601f168201915b5050505050905061256f565b600061251d61320e565b9050600081511161253d576040518060200160405280600081525061256b565b80612547846132a0565b601460405160200161255b939291906153b7565b6040516020818303038152906040525b9150505b919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61263c61288e565b81600a60008381526020019081526020016000208190555061265f83600161336e565b505050565b61266c61288e565b806016908161267b9190614e40565b5050565b61268761288e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ed9061545a565b60405180910390fd5b6126ff81612ece565b50565b6001816000016000828254019250508190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61278b816131cd565b6127ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c190614f5e565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661284883611969565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6128966127cd565b73ffffffffffffffffffffffffffffffffffffffff166128b4611b1e565b73ffffffffffffffffffffffffffffffffffffffff161461290a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612901906154c6565b60405180910390fd5b565b600081600001549050919050565b6000818361292891906154e6565b905092915050565b60008061293c83611969565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061297e575061297d81856125a0565b5b806129bc57508373ffffffffffffffffffffffffffffffffffffffff166129a484610cf1565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600081836129d391906149c5565b905092915050565b8273ffffffffffffffffffffffffffffffffffffffff166129fb82611969565b73ffffffffffffffffffffffffffffffffffffffff1614612a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a489061558c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab79061561e565b60405180910390fd5b612acd8383836001613431565b8273ffffffffffffffffffffffffffffffffffffffff16612aed82611969565b73ffffffffffffffffffffffffffffffffffffffff1614612b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3a9061558c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ccf8383836001613557565b505050565b60008183612ce29190615010565b905092915050565b6107d0612cf7600761290c565b82011115612d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d319061568a565b60405180910390fd5b60005b81811015612d8157612d5883612d53600761290c565b61355d565b612d6a612d65600761290c565b612e4b565b612d746007612702565b8080600101915050612d3d565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c98282604051612db39291906149f9565b60405180910390a15050565b60008173ffffffffffffffffffffffffffffffffffffffff1663095ea7b385856040518363ffffffff1660e01b8152600401612dfc9291906149f9565b6020604051808303816000875af1158015612e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e3f9190614a37565b50600190509392505050565b612e616001600c546129c590919063ffffffff16565b600a60008381526020019081526020016000208190555050565b60008183612e8991906156d9565b905092915050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613002576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff990615756565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130f39190613ba4565b60405180910390a3505050565b61310b8484846129db565b6131178484848461357b565b613156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314d906157e8565b60405180910390fd5b50505050565b4260096000848152602001908152602001600020600101819055508060096000848152602001908152602001600020600001819055506131af60016131a1600761290c565b61291a90919063ffffffff16565b60096000848152602001908152602001600020600201819055505050565b60008073ffffffffffffffffffffffffffffffffffffffff166131ef83612e91565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606013805461321d90614449565b80601f016020809104026020016040519081016040528092919081815260200182805461324990614449565b80156132965780601f1061326b57610100808354040283529160200191613296565b820191906000526020600020905b81548152906001019060200180831161327957829003601f168201915b5050505050905090565b6060600060016132af84613702565b01905060008167ffffffffffffffff8111156132ce576132cd613f2d565b5b6040519080825280601f01601f1916602001820160405280156133005781602001600182028036833780820191505090505b509050600082602001820190505b600115613363578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613357576133566156aa565b5b0494506000850361330e575b819350505050919050565b6107d061337b600761290c565b820111156133be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b59061568a565b60405180910390fd5b60005b818110156133f3576133dc836133d7600761290c565b61355d565b6133e66007612702565b80806001019150506133c1565b507fb7656808f0e04b4af7a20f7ef1caa7669f0d781f1ca4cba31a3ba467880766c982826040516134259291906149f9565b60405180910390a15050565b600181111561355157600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146134c55780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134bd91906154e6565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135505780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461354891906149c5565b925050819055505b5b50505050565b50505050565b613577828260405180602001604052806000815250613855565b5050565b600061359c8473ffffffffffffffffffffffffffffffffffffffff166138b0565b156136f5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135c56127cd565b8786866040518563ffffffff1660e01b81526004016135e7949392919061585d565b6020604051808303816000875af192505050801561362357506040513d601f19601f8201168201806040525081019061362091906158be565b60015b6136a5573d8060008114613653576040519150601f19603f3d011682016040523d82523d6000602084013e613658565b606091505b50600081510361369d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613694906157e8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506136fa565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613760577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613756576137556156aa565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061379d576d04ee2d6d415b85acef81000000008381613793576137926156aa565b5b0492506020810190505b662386f26fc1000083106137cc57662386f26fc1000083816137c2576137c16156aa565b5b0492506010810190505b6305f5e10083106137f5576305f5e10083816137eb576137ea6156aa565b5b0492506008810190505b612710831061381a5761271083816138105761380f6156aa565b5b0492506004810190505b6064831061383d5760648381613833576138326156aa565b5b0492506002810190505b600a831061384c576001810190505b80915050919050565b61385f83836138d3565b61386c600084848461357b565b6138ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a2906157e8565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393990615937565b60405180910390fd5b61394b816131cd565b1561398b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613982906159a3565b60405180910390fd5b613999600083836001613431565b6139a2816131cd565b156139e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139d9906159a3565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613aec600083836001613557565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b3981613b04565b8114613b4457600080fd5b50565b600081359050613b5681613b30565b92915050565b600060208284031215613b7257613b71613afa565b5b6000613b8084828501613b47565b91505092915050565b60008115159050919050565b613b9e81613b89565b82525050565b6000602082019050613bb96000830184613b95565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613bf9578082015181840152602081019050613bde565b60008484015250505050565b6000601f19601f8301169050919050565b6000613c2182613bbf565b613c2b8185613bca565b9350613c3b818560208601613bdb565b613c4481613c05565b840191505092915050565b60006020820190508181036000830152613c698184613c16565b905092915050565b6000819050919050565b613c8481613c71565b82525050565b6000602082019050613c9f6000830184613c7b565b92915050565b613cae81613c71565b8114613cb957600080fd5b50565b600081359050613ccb81613ca5565b92915050565b600060208284031215613ce757613ce6613afa565b5b6000613cf584828501613cbc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d2982613cfe565b9050919050565b613d3981613d1e565b82525050565b6000602082019050613d546000830184613d30565b92915050565b613d6381613d1e565b8114613d6e57600080fd5b50565b600081359050613d8081613d5a565b92915050565b60008060408385031215613d9d57613d9c613afa565b5b6000613dab85828601613d71565b9250506020613dbc85828601613cbc565b9150509250929050565b600060208284031215613ddc57613ddb613afa565b5b6000613dea84828501613d71565b91505092915050565b600080600060608486031215613e0c57613e0b613afa565b5b6000613e1a86828701613d71565b9350506020613e2b86828701613d71565b9250506040613e3c86828701613cbc565b9150509250925092565b6000613e5182613d1e565b9050919050565b613e6181613e46565b8114613e6c57600080fd5b50565b600081359050613e7e81613e58565b92915050565b600060208284031215613e9a57613e99613afa565b5b6000613ea884828501613e6f565b91505092915050565b60008060408385031215613ec857613ec7613afa565b5b6000613ed685828601613e6f565b9250506020613ee785828601613cbc565b9150509250929050565b6000606082019050613f066000830186613c7b565b613f136020830185613c7b565b613f206040830184613c7b565b949350505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613f6582613c05565b810181811067ffffffffffffffff82111715613f8457613f83613f2d565b5b80604052505050565b6000613f97613af0565b9050613fa38282613f5c565b919050565b600067ffffffffffffffff821115613fc357613fc2613f2d565b5b602082029050602081019050919050565b600080fd5b6000613fec613fe784613fa8565b613f8d565b9050808382526020820190506020840283018581111561400f5761400e613fd4565b5b835b8181101561403857806140248882613cbc565b845260208401935050602081019050614011565b5050509392505050565b600082601f83011261405757614056613f28565b5b8135614067848260208601613fd9565b91505092915050565b60006020828403121561408657614085613afa565b5b600082013567ffffffffffffffff8111156140a4576140a3613aff565b5b6140b084828501614042565b91505092915050565b600080fd5b600067ffffffffffffffff8211156140d9576140d8613f2d565b5b6140e282613c05565b9050602081019050919050565b82818337600083830152505050565b600061411161410c846140be565b613f8d565b90508281526020810184848401111561412d5761412c6140b9565b5b6141388482856140ef565b509392505050565b600082601f83011261415557614154613f28565b5b81356141658482602086016140fe565b91505092915050565b60006020828403121561418457614183613afa565b5b600082013567ffffffffffffffff8111156141a2576141a1613aff565b5b6141ae84828501614140565b91505092915050565b600080604083850312156141ce576141cd613afa565b5b60006141dc85828601613cbc565b92505060206141ed85828601613cbc565b9150509250929050565b61420081613b89565b811461420b57600080fd5b50565b60008135905061421d816141f7565b92915050565b6000806040838503121561423a57614239613afa565b5b600061424885828601613d71565b92505060206142598582860161420e565b9150509250929050565b600067ffffffffffffffff82111561427e5761427d613f2d565b5b61428782613c05565b9050602081019050919050565b60006142a76142a284614263565b613f8d565b9050828152602081018484840111156142c3576142c26140b9565b5b6142ce8482856140ef565b509392505050565b600082601f8301126142eb576142ea613f28565b5b81356142fb848260208601614294565b91505092915050565b6000806000806080858703121561431e5761431d613afa565b5b600061432c87828801613d71565b945050602061433d87828801613d71565b935050604061434e87828801613cbc565b925050606085013567ffffffffffffffff81111561436f5761436e613aff565b5b61437b878288016142d6565b91505092959194509250565b6000806040838503121561439e5761439d613afa565b5b60006143ac85828601613d71565b92505060206143bd85828601613d71565b9150509250929050565b6000806000606084860312156143e0576143df613afa565b5b60006143ee86828701613d71565b93505060206143ff86828701613cbc565b925050604061441086828701613cbc565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061446157607f821691505b6020821081036144745761447361441a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006144d6602183613bca565b91506144e18261447a565b604082019050919050565b60006020820190508181036000830152614505816144c9565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614568603d83613bca565b91506145738261450c565b604082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b600081905092915050565b50565b60006145b960008361459e565b91506145c4826145a9565b600082019050919050565b60006145da826145ac565b9150819050919050565b7f4661696c656420746f2077697468647261772045746865722e00000000000000600082015250565b600061461a601983613bca565b9150614625826145e4565b602082019050919050565b600060208201905081810360008301526146498161460d565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006146ac602e83613bca565b91506146b782614650565b604082019050919050565b600060208201905081810360008301526146db8161469f565b9050919050565b7f4e6f2072652d656e7472616e742063616c6c2e00000000000000000000000000600082015250565b6000614718601383613bca565b9150614723826146e2565b602082019050919050565b600060208201905081810360008301526147478161470b565b9050919050565b7f5075626c69632073616c6520697320636c6f73656420617420746865206d6f6d60008201527f656e742e00000000000000000000000000000000000000000000000000000000602082015250565b60006147aa602483613bca565b91506147b58261474e565b604082019050919050565b600060208201905081810360008301526147d98161479d565b9050919050565b7f496e76616c6964206d696e74207175616e746974792e00000000000000000000600082015250565b6000614816601683613bca565b9150614821826147e0565b602082019050919050565b6000602082019050818103600083015261484581614809565b9050919050565b7f696e76616c6964206d696e74207175616e746974792c2063616e74206d696e7460008201527f2074686174206d616e7900000000000000000000000000000000000000000000602082015250565b60006148a8602a83613bca565b91506148b38261484c565b604082019050919050565b600060208201905081810360008301526148d78161489b565b9050919050565b7f4d7573742073656e6420657861637420616d6f756e7420746f206d696e742c2060008201527f65697468657220696e637265617365206f72206465637265617365206574682060208201527f616d6f756e740000000000000000000000000000000000000000000000000000604082015250565b6000614960604683613bca565b915061496b826148de565b606082019050919050565b6000602082019050818103600083015261498f81614953565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149d082613c71565b91506149db83613c71565b92508282019050808211156149f3576149f2614996565b5b92915050565b6000604082019050614a0e6000830185613d30565b614a1b6020830184613c7b565b9392505050565b600081519050614a31816141f7565b92915050565b600060208284031215614a4d57614a4c613afa565b5b6000614a5b84828501614a22565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f596f7520617265206e6f74207468652063757272656e74206f776e6572206f6660008201527f207468697320746f6b656e204944000000000000000000000000000000000000602082015250565b6000614aef602e83613bca565b9150614afa82614a93565b604082019050919050565b60006020820190508181036000830152614b1e81614ae2565b9050919050565b7f476f2062757920616e204e465420736972206f72206d6164616d000000000000600082015250565b6000614b5b601a83613bca565b9150614b6682614b25565b602082019050919050565b60006020820190508181036000830152614b8a81614b4e565b9050919050565b7f6e6f742074686520636f727265637420706572696f6420696420746f20636c6160008201527f696d000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bed602283613bca565b9150614bf882614b91565b604082019050919050565b60006020820190508181036000830152614c1c81614be0565b9050919050565b6000614c2e82613c71565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614c6057614c5f614996565b5b600182019050919050565b6000604082019050614c806000830185613c7b565b614c8d6020830184613d30565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614cf67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614cb9565b614d008683614cb9565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614d3d614d38614d3384613c71565b614d18565b613c71565b9050919050565b6000819050919050565b614d5783614d22565b614d6b614d6382614d44565b848454614cc6565b825550505050565b600090565b614d80614d73565b614d8b818484614d4e565b505050565b5b81811015614daf57614da4600082614d78565b600181019050614d91565b5050565b601f821115614df457614dc581614c94565b614dce84614ca9565b81016020851015614ddd578190505b614df1614de985614ca9565b830182614d90565b50505b505050565b600082821c905092915050565b6000614e1760001984600802614df9565b1980831691505092915050565b6000614e308383614e06565b9150826002028217905092915050565b614e4982613bbf565b67ffffffffffffffff811115614e6257614e61613f2d565b5b614e6c8254614449565b614e77828285614db3565b600060209050601f831160018114614eaa5760008415614e98578287015190505b614ea28582614e24565b865550614f0a565b601f198416614eb886614c94565b60005b82811015614ee057848901518255600182019150602085019450602081019050614ebb565b86831015614efd5784890151614ef9601f891682614e06565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614f48601883613bca565b9150614f5382614f12565b602082019050919050565b60006020820190508181036000830152614f7781614f3b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614fda602983613bca565b9150614fe582614f7e565b604082019050919050565b6000602082019050818103600083015261500981614fcd565b9050919050565b600061501b82613c71565b915061502683613c71565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561505f5761505e614996565b5b828202905092915050565b7f4d6573736167652073656e646572206d7573742062652074686520636f6e747260008201527f6163742773204d616e616765722e000000000000000000000000000000000000602082015250565b60006150c6602e83613bca565b91506150d18261506a565b604082019050919050565b600060208201905081810360008301526150f5816150b9565b9050919050565b7f4661696c656420746f206465706f7369742045746865722e0000000000000000600082015250565b6000615132601883613bca565b915061513d826150fc565b602082019050919050565b6000602082019050818103600083015261516181615125565b9050919050565b7f596f7520617265206e6f74207468652063757272656e74206f776e6572206f6660008201527f207468697320746f6b656e696400000000000000000000000000000000000000602082015250565b60006151c4602d83613bca565b91506151cf82615168565b604082019050919050565b600060208201905081810360008301526151f3816151b7565b9050919050565b7f476f2062757920616e206e667420736972206f72206d6164616d000000000000600082015250565b6000615230601a83613bca565b915061523b826151fa565b602082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e2e00000000000000000000000000000000602082015250565b60006152c2603083613bca565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b600081905092915050565b600061530e82613bbf565b61531881856152f8565b9350615328818560208601613bdb565b80840191505092915050565b6000815461534181614449565b61534b81866152f8565b94506001821660008114615366576001811461537b576153ae565b60ff19831686528115158202860193506153ae565b61538485614c94565b60005b838110156153a657815481890152600182019150602081019050615387565b838801955050505b50505092915050565b60006153c38286615303565b91506153cf8285615303565b91506153db8284615334565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615444602683613bca565b915061544f826153e8565b604082019050919050565b6000602082019050818103600083015261547381615437565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154b0602083613bca565b91506154bb8261547a565b602082019050919050565b600060208201905081810360008301526154df816154a3565b9050919050565b60006154f182613c71565b91506154fc83613c71565b925082820390508181111561551457615513614996565b5b92915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615576602583613bca565b91506155818261551a565b604082019050919050565b600060208201905081810360008301526155a581615569565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615608602483613bca565b9150615613826155ac565b604082019050919050565b60006020820190508181036000830152615637816155fb565b9050919050565b7f4d617820737570706c792065786365656465642e000000000000000000000000600082015250565b6000615674601483613bca565b915061567f8261563e565b602082019050919050565b600060208201905081810360008301526156a381615667565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006156e482613c71565b91506156ef83613c71565b9250826156ff576156fe6156aa565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615740601983613bca565b915061574b8261570a565b602082019050919050565b6000602082019050818103600083015261576f81615733565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006157d2603283613bca565b91506157dd82615776565b604082019050919050565b60006020820190508181036000830152615801816157c5565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061582f82615808565b6158398185615813565b9350615849818560208601613bdb565b61585281613c05565b840191505092915050565b60006080820190506158726000830187613d30565b61587f6020830186613d30565b61588c6040830185613c7b565b818103606083015261589e8184615824565b905095945050505050565b6000815190506158b881613b30565b92915050565b6000602082840312156158d4576158d3613afa565b5b60006158e2848285016158a9565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615921602083613bca565b915061592c826158eb565b602082019050919050565b6000602082019050818103600083015261595081615914565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061598d601c83613bca565b915061599882615957565b602082019050919050565b600060208201905081810360008301526159bc81615980565b905091905056fea2646970667358221220a6dc6f08277f4613ecbde8473bd54eab8d2e2e3f4aafe2a782c664d56783cdfa64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000002faf080000000000000000000000000ddf8b540d5071aa362731301ecc9f163aa5116be000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554d6a5075397534424b4479573473387372586175376459346154783258364c314a744661555a36545175672f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554d6a5075397534424b4479573473387372586175376459346154783258364c314a744661555a36545175672f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://gateway.pinata.cloud/ipfs/QmUMjPu9u4BKDyW4s8srXau7dY4aTx2X6L1JtFaUZ6TQug/
Arg [1] : _initNotRevealedUri (string): https://gateway.pinata.cloud/ipfs/QmUMjPu9u4BKDyW4s8srXau7dY4aTx2X6L1JtFaUZ6TQug/
Arg [2] : PUB_PRICE (uint256): 50000000
Arg [3] : manageraddress (address): 0xDdF8B540D5071aa362731301ecc9f163Aa5116be
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000002faf080
Arg [3] : 000000000000000000000000ddf8b540d5071aa362731301ecc9f163aa5116be
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [5] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [6] : 732f516d554d6a5075397534424b447957347338737258617537645934615478
Arg [7] : 3258364c314a744661555a36545175672f000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [9] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [10] : 732f516d554d6a5075397534424b447957347338737258617537645934615478
Arg [11] : 3258364c314a744661555a36545175672f000000000000000000000000000000
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.