More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 40 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 17402861 | 580 days ago | IN | 0.03 ETH | 0.00327582 | ||||
Transfer | 16219340 | 746 days ago | IN | 0.03 ETH | 0.00456778 | ||||
Transfer | 15535284 | 842 days ago | IN | 0.00555 ETH | 0.00030414 | ||||
Transfer | 15535266 | 842 days ago | IN | 0.00707653 ETH | 0.00027501 | ||||
Transfer | 15174467 | 899 days ago | IN | 0.03 ETH | 0.00310412 | ||||
Transfer From | 14859345 | 951 days ago | IN | 0.03 ETH | 0.00259232 | ||||
Transfer | 14832096 | 956 days ago | IN | 0.03 ETH | 0.00424905 | ||||
Transfer | 14816751 | 958 days ago | IN | 0.03 ETH | 0.00233122 | ||||
Transfer | 14813761 | 959 days ago | IN | 0.03 ETH | 0.0042216 | ||||
Transfer | 14812982 | 959 days ago | IN | 0.03 ETH | 0.00752589 | ||||
Transfer | 14805269 | 960 days ago | IN | 0.03 ETH | 0.00451721 | ||||
Transfer | 14799838 | 961 days ago | IN | 0.00022728 ETH | 0.00069533 | ||||
Transfer | 14795118 | 962 days ago | IN | 0.03 ETH | 0.00530935 | ||||
Transfer | 14794860 | 962 days ago | IN | 0.03 ETH | 0.00557761 | ||||
Transfer | 14794833 | 962 days ago | IN | 0.03 ETH | 0.00349773 | ||||
Transfer | 14794799 | 962 days ago | IN | 0.03 ETH | 0.00419484 | ||||
Transfer | 14794489 | 962 days ago | IN | 0.03 ETH | 0.00555434 | ||||
Transfer | 14793731 | 962 days ago | IN | 0.001 ETH | 0.00105641 | ||||
Transfer | 14791503 | 962 days ago | IN | 0.03 ETH | 0.00337505 | ||||
Transfer From | 14790382 | 962 days ago | IN | 0.031 ETH | 0.00422277 | ||||
Transfer From | 14789885 | 962 days ago | IN | 0.03 ETH | 0.00395836 | ||||
Transfer | 14789154 | 963 days ago | IN | 0.006 ETH | 0.00039558 | ||||
Transfer | 14788096 | 963 days ago | IN | 0.03 ETH | 0.00302994 | ||||
Transfer | 14788065 | 963 days ago | IN | 0.003 ETH | 0.00065201 | ||||
Transfer | 14784637 | 963 days ago | IN | 0.001 ETH | 0.0005959 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17402861 | 580 days ago | 0.003 ETH | ||||
16219340 | 746 days ago | 0.003 ETH | ||||
15174467 | 899 days ago | 0.003 ETH | ||||
14859345 | 951 days ago | 0.003 ETH | ||||
14832096 | 956 days ago | 0.003 ETH | ||||
14817860 | 958 days ago | 0.03 ETH | ||||
14816751 | 958 days ago | 0.003 ETH | ||||
14813761 | 959 days ago | 0.003 ETH | ||||
14812986 | 959 days ago | 0.033 ETH | ||||
14812982 | 959 days ago | 0.003 ETH | ||||
14805269 | 960 days ago | 0.003 ETH | ||||
14795118 | 962 days ago | 0.003 ETH | ||||
14794860 | 962 days ago | 0.003 ETH | ||||
14794837 | 962 days ago | 0.03 ETH | ||||
14794833 | 962 days ago | 0.003 ETH | ||||
14794799 | 962 days ago | 0.003 ETH | ||||
14794489 | 962 days ago | 0.003 ETH | ||||
14791503 | 962 days ago | 0.003 ETH | ||||
14790382 | 962 days ago | 0.0031 ETH | ||||
14789885 | 962 days ago | 0.003 ETH | ||||
14788100 | 963 days ago | 0.045 ETH | ||||
14788096 | 963 days ago | 0.003 ETH | ||||
14783825 | 963 days ago | 0.003 ETH | ||||
14780926 | 964 days ago | 0.003 ETH | ||||
14780637 | 964 days ago | 0.03 ETH |
Loading...
Loading
Contract Name:
Jackpot
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "./ERC721.sol"; contract Jackpot is ERC721, Ownable, VRFConsumerBaseV2 { VRFCoordinatorV2Interface COORDINATOR; LinkTokenInterface LINKTOKEN; uint64 subscriptionId; address vrfCoordinator; address link_token_contract = 0x514910771AF9Ca656af840dff83E8264EcF986CA; bytes32 keyHash; uint32 callbackGasLimit = 150000; uint16 requestConfirmations = 3; uint32 numWords = 1; uint256[] public s_randomWords; uint256 public s_requestId; bool public paused; uint256 public transferPrice = 30000000000000000; address payable rake = payable(0x6e4668EaBBa3095d64fe302d8d480D2Af39092F2); mapping(uint256 => address payable) reqIdToFromAddress; event Win(address, uint256, uint256); event JackpotBalance(uint256); receive() external payable { require(msg.value >= transferPrice, "Not enough ETH sent"); transferFrom( payable(ownerOf(0)), msg.sender, 0 ); } constructor( uint64 _subscriptionId, address _vrfCoordinator, bytes32 _keyHash, string memory _name, string memory _symbol ) ERC721(_name, _symbol, 1) VRFConsumerBaseV2(_vrfCoordinator) { COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); LINKTOKEN = LinkTokenInterface(link_token_contract); subscriptionId = _subscriptionId; vrfCoordinator = _vrfCoordinator; keyHash = _keyHash; _safeMint(msg.sender, 1); } function requestRandomWords() private { s_requestId = COORDINATOR.requestRandomWords( keyHash, subscriptionId, requestConfirmations, callbackGasLimit, numWords ); reqIdToFromAddress[s_requestId] = payable(ownerOf(0)); } function fulfillRandomWords( uint256 requestId, /* requestId */ uint256[] memory randomWords ) internal override { uint256 s_randomRange = (randomWords[0] % 10000) + 1; uint winAmount = 0; if (1 <= s_randomRange && s_randomRange <= 2000) { winAmount = transferPrice; } else if (2001 <= s_randomRange && s_randomRange <= 3001) { winAmount = transferPrice * 11 / 10; } else if (3002 <= s_randomRange && s_randomRange <= 3502) { winAmount = transferPrice * 12 / 10; } else if (3503 <= s_randomRange && s_randomRange <= 3703) { winAmount = transferPrice * 15 / 10; } else if (3704 <= s_randomRange && s_randomRange <= 3804) { winAmount = transferPrice * 2; } else if (3805 <= s_randomRange && s_randomRange <= 3825) { winAmount = transferPrice * 5; } else if (3826 <= s_randomRange && s_randomRange <= 3836) { winAmount = transferPrice * 10; } else if (s_randomRange == 6666) { winAmount = address(this).balance / 2; } // need to make sure there is sufficient balance in the contract or this will fail if (winAmount > 0) { if (winAmount > address(this).balance) { winAmount = address(this).balance; } reqIdToFromAddress[requestId].transfer(winAmount); emit Win( reqIdToFromAddress[requestId], winAmount, address(this).balance / 2 ); } else { emit JackpotBalance(address(this).balance / 2); } } function transferFrom( address payable from, address to, uint256 tokenId ) public payable { require(msg.value >= transferPrice, "Not enough ETH sent"); rake.transfer(msg.value * 1 / 10); requestRandomWords(); _transfer(from, to, tokenId); } function changetransferPrice(uint256 amount) external onlyOwner { transferPrice = amount; } function changeRake(address payable _rake) external onlyOwner { rake = _rake; } function flipPaused() external onlyOwner { paused = !paused; } function setBaseURI(string memory baseURI) public onlyOwner { _setBaseURI(baseURI); } function withdraw() external onlyOwner() { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawTokens(address tokenAddress) external onlyOwner() { IERC20(tokenAddress).transfer(msg.sender, IERC20(tokenAddress).balanceOf(address(this))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Base URI string private _baseURI; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "b"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "g"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "b"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("u"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "0"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "0"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "t"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("o"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { require(_exists(tokenId), "z"); 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 overriden in child contracts. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "o"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "a" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "a"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "a"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "0"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "a"); require(quantity <= maxBatchSize, "m"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "z" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); require(to != address(0), "0"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "q"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "n"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("z"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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 Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint64","name":"_subscriptionId","type":"uint64"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"JackpotBalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Win","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_rake","type":"address"}],"name":"changeRake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"changetransferPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPaused","outputs":[],"stateMutability":"nonpayable","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_randomWords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_requestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405260008055600060085573514910771af9ca656af840dff83e8264ecf986ca600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620249f0600f60006101000a81548163ffffffff021916908363ffffffff1602179055506003600f60046101000a81548161ffff021916908361ffff1602179055506001600f60066101000a81548163ffffffff021916908363ffffffff160217905550666a94d74f430000601355736e4668eabba3095d64fe302d8d480d2af39092f2601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200013357600080fd5b50604051620050c0380380620050c0833981810160405281019062000159919062000e6c565b838282600160008111620001a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019b9062000f93565b60405180910390fd5b8260019080519060200190620001bc92919062000b3a565b508160029080519060200190620001d592919062000b3a565b50806080818152505050505062000201620001f56200036960201b60201c565b6200037160201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505083600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600b60146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600e819055506200035e3360016200043760201b60201c565b505050505062001434565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004598282604051806020016040528060008152506200045d60201b60201c565b5050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415620004d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004cd9062001005565b60405180910390fd5b620004e7816200095460201b60201c565b156200052a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005219062001077565b60405180910390fd5b60805183111562000572576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200056990620010e9565b60405180910390fd5b6200058760008583866200096160201b60201c565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015162000686919062001156565b6fffffffffffffffffffffffffffffffff168152602001858360200151620006af919062001156565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156200092f57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4620008c760008884886200096760201b60201c565b62000909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200090090620011f3565b60405180910390fd5b818062000916906200121f565b925050808062000926906200121f565b9150506200084d565b50806000819055506200094c600087858862000b1160201b60201c565b505050505050565b6000805482109050919050565b50505050565b6000620009958473ffffffffffffffffffffffffffffffffffffffff1662000b1760201b62001a851760201c565b1562000b04578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620009c76200036960201b60201c565b8786866040518563ffffffff1660e01b8152600401620009eb9493929190620012ec565b6020604051808303816000875af192505050801562000a2a57506040513d601f19601f8201168201806040525081019062000a2791906200139d565b60015b62000ab3573d806000811462000a5d576040519150601f19603f3d011682016040523d82523d6000602084013e62000a62565b606091505b5060008151141562000aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000aa290620011f3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000b09565b600190505b949350505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805462000b4890620013fe565b90600052602060002090601f01602090048101928262000b6c576000855562000bb8565b82601f1062000b8757805160ff191683800117855562000bb8565b8280016001018555821562000bb8579182015b8281111562000bb757825182559160200191906001019062000b9a565b5b50905062000bc7919062000bcb565b5090565b5b8082111562000be657600081600090555060010162000bcc565b5090565b6000604051905090565b600080fd5b600080fd5b600067ffffffffffffffff82169050919050565b62000c1d8162000bfe565b811462000c2957600080fd5b50565b60008151905062000c3d8162000c12565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000c708262000c43565b9050919050565b62000c828162000c63565b811462000c8e57600080fd5b50565b60008151905062000ca28162000c77565b92915050565b6000819050919050565b62000cbd8162000ca8565b811462000cc957600080fd5b50565b60008151905062000cdd8162000cb2565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000d388262000ced565b810181811067ffffffffffffffff8211171562000d5a5762000d5962000cfe565b5b80604052505050565b600062000d6f62000bea565b905062000d7d828262000d2d565b919050565b600067ffffffffffffffff82111562000da05762000d9f62000cfe565b5b62000dab8262000ced565b9050602081019050919050565b60005b8381101562000dd857808201518184015260208101905062000dbb565b8381111562000de8576000848401525b50505050565b600062000e0562000dff8462000d82565b62000d63565b90508281526020810184848401111562000e245762000e2362000ce8565b5b62000e3184828562000db8565b509392505050565b600082601f83011262000e515762000e5062000ce3565b5b815162000e6384826020860162000dee565b91505092915050565b600080600080600060a0868803121562000e8b5762000e8a62000bf4565b5b600062000e9b8882890162000c2c565b955050602062000eae8882890162000c91565b945050604062000ec18882890162000ccc565b935050606086015167ffffffffffffffff81111562000ee55762000ee462000bf9565b5b62000ef38882890162000e39565b925050608086015167ffffffffffffffff81111562000f175762000f1662000bf9565b5b62000f258882890162000e39565b9150509295509295909350565b600082825260208201905092915050565b7f6200000000000000000000000000000000000000000000000000000000000000600082015250565b600062000f7b60018362000f32565b915062000f888262000f43565b602082019050919050565b6000602082019050818103600083015262000fae8162000f6c565b9050919050565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b600062000fed60018362000f32565b915062000ffa8262000fb5565b602082019050919050565b60006020820190508181036000830152620010208162000fde565b9050919050565b7f6100000000000000000000000000000000000000000000000000000000000000600082015250565b60006200105f60018362000f32565b91506200106c8262001027565b602082019050919050565b60006020820190508181036000830152620010928162001050565b9050919050565b7f6d00000000000000000000000000000000000000000000000000000000000000600082015250565b6000620010d160018362000f32565b9150620010de8262001099565b602082019050919050565b600060208201905081810360008301526200110481620010c2565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062001163826200110b565b915062001170836200110b565b9250826fffffffffffffffffffffffffffffffff0382111562001198576200119762001127565b5b828201905092915050565b7f7a00000000000000000000000000000000000000000000000000000000000000600082015250565b6000620011db60018362000f32565b9150620011e882620011a3565b602082019050919050565b600060208201905081810360008301526200120e81620011cc565b9050919050565b6000819050919050565b60006200122c8262001215565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562001262576200126162001127565b5b600182019050919050565b620012788162000c63565b82525050565b620012898162001215565b82525050565b600081519050919050565b600082825260208201905092915050565b6000620012b8826200128f565b620012c481856200129a565b9350620012d681856020860162000db8565b620012e18162000ced565b840191505092915050565b60006080820190506200130360008301876200126d565b6200131260208301866200126d565b6200132160408301856200127e565b8181036060830152620013358184620012ab565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620013778162001340565b81146200138357600080fd5b50565b60008151905062001397816200136c565b92915050565b600060208284031215620013b657620013b562000bf4565b5b6000620013c68482850162001386565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200141757607f821691505b602082108114156200142e576200142d620013cf565b5b50919050565b60805160a051613c586200146860003960008181610c010152610c55015260008181611afc0152611b250152613c586000f3fe6080604052600436106101d15760003560e01c80635c975abb116100f757806395d89b4111610095578063e89e106a11610064578063e89e106a146106ba578063e985e9c5146106e5578063f2fde38b14610722578063f6eaffc81461074b57610232565b806395d89b41146105fe578063a22cb46514610629578063c87b56dd14610652578063d7224ba01461068f57610232565b806370a08231116100d157806370a0823114610554578063715018a61461059157806381cd8194146105a85780638da5cb5b146105d357610232565b80635c975abb146104c15780636352211e146104ec5780636c0360eb1461052957610232565b806323b872dd1161016f57806349df728c1161013e57806349df728c146104095780634f6ccce71461043257806355f804b31461046f5780635979b86f1461049857610232565b806323b872dd146103825780632f745c591461039e578063333171bb146103db5780633ccfd60b146103f257610232565b8063095ea7b3116101ab578063095ea7b3146102dc57806318160ddd146103055780631fe543e31461033057806320e2a9f01461035957610232565b806301ffc9a71461023757806306fdde0314610274578063081812fc1461029f57610232565b366102325760135434101561021b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021290612a35565b60405180910390fd5b6102306102286000610788565b33600061079e565b005b600080fd5b34801561024357600080fd5b5061025e60048036038101906102599190612ac1565b61087c565b60405161026b9190612b09565b60405180910390f35b34801561028057600080fd5b506102896109c6565b6040516102969190612bac565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190612c04565b610a58565b6040516102d39190612c72565b60405180910390f35b3480156102e857600080fd5b5061030360048036038101906102fe9190612cb9565b610add565b005b34801561031157600080fd5b5061031a610bf6565b6040516103279190612d08565b60405180910390f35b34801561033c57600080fd5b5061035760048036038101906103529190612e6b565b610bff565b005b34801561036557600080fd5b50610380600480360381019061037b9190612f05565b610cbf565b005b61039c60048036038101906103979190612f32565b61079e565b005b3480156103aa57600080fd5b506103c560048036038101906103c09190612cb9565b610d7f565b6040516103d29190612d08565b60405180910390f35b3480156103e757600080fd5b506103f0610f7d565b005b3480156103fe57600080fd5b50610407611025565b005b34801561041557600080fd5b50610430600480360381019061042b9190612f85565b6110f0565b005b34801561043e57600080fd5b5061045960048036038101906104549190612c04565b611267565b6040516104669190612d08565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613067565b6112ba565b005b3480156104a457600080fd5b506104bf60048036038101906104ba9190612c04565b611342565b005b3480156104cd57600080fd5b506104d66113c8565b6040516104e39190612b09565b60405180910390f35b3480156104f857600080fd5b50610513600480360381019061050e9190612c04565b610788565b6040516105209190612c72565b60405180910390f35b34801561053557600080fd5b5061053e6113db565b60405161054b9190612bac565b60405180910390f35b34801561056057600080fd5b5061057b60048036038101906105769190612f85565b61146d565b6040516105889190612d08565b60405180910390f35b34801561059d57600080fd5b506105a6611556565b005b3480156105b457600080fd5b506105bd6115de565b6040516105ca9190612d08565b60405180910390f35b3480156105df57600080fd5b506105e86115e4565b6040516105f59190612c72565b60405180910390f35b34801561060a57600080fd5b5061061361160e565b6040516106209190612bac565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b91906130dc565b6116a0565b005b34801561065e57600080fd5b5061067960048036038101906106749190612c04565b611821565b6040516106869190612bac565b60405180910390f35b34801561069b57600080fd5b506106a46118c9565b6040516106b19190612d08565b60405180910390f35b3480156106c657600080fd5b506106cf6118cf565b6040516106dc9190612d08565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061311c565b6118d5565b6040516107199190612b09565b60405180910390f35b34801561072e57600080fd5b5061074960048036038101906107449190612f85565b611969565b005b34801561075757600080fd5b50610772600480360381019061076d9190612c04565b611a61565b60405161077f9190612d08565b60405180910390f35b600061079382611aa8565b600001519050919050565b6013543410156107e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107da90612a35565b60405180910390fd5b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc600a60013461082e919061318b565b6108389190613214565b9081150290604051600060405180830381858888f19350505050158015610863573d6000803e3d6000fd5b5061086c611cab565b610877838383611e02565b505050565b60007f591d4bc0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109af57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109bf57506109be82612269565b5b9050919050565b6060600180546109d590613274565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0190613274565b8015610a4e5780601f10610a2357610100808354040283529160200191610a4e565b820191906000526020600020905b815481529060010190602001808311610a3157829003601f168201915b5050505050905090565b6000610a63826122d3565b610aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a99906132f2565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882610788565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b509061335e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b786122e0565b73ffffffffffffffffffffffffffffffffffffffff161480610ba75750610ba681610ba16122e0565b6118d5565b5b610be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdd906132f2565b60405180910390fd5b610bf18383836122e8565b505050565b60008054905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cb157337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ca892919061337e565b60405180910390fd5b610cbb828261239a565b5050565b610cc76122e0565b73ffffffffffffffffffffffffffffffffffffffff16610ce56115e4565b73ffffffffffffffffffffffffffffffffffffffff1614610d3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d32906133f3565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610d8a8361146d565b8210610dcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc29061345f565b60405180910390fd5b6000610dd5610bf6565b905060008060005b83811015610f3b576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610ecf57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f275786841415610f18578195505050505050610f77565b8380610f239061347f565b9450505b508080610f339061347f565b915050610ddd565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90613514565b60405180910390fd5b92915050565b610f856122e0565b73ffffffffffffffffffffffffffffffffffffffff16610fa36115e4565b73ffffffffffffffffffffffffffffffffffffffff1614610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906133f3565b60405180910390fd5b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b61102d6122e0565b73ffffffffffffffffffffffffffffffffffffffff1661104b6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146110a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611098906133f3565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110ec573d6000803e3d6000fd5b5050565b6110f86122e0565b73ffffffffffffffffffffffffffffffffffffffff166111166115e4565b73ffffffffffffffffffffffffffffffffffffffff161461116c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611163906133f3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111c29190612c72565b602060405180830381865afa1580156111df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112039190613549565b6040518363ffffffff1660e01b8152600401611220929190613576565b6020604051808303816000875af115801561123f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126391906135b4565b5050565b6000611271610bf6565b82106112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a99061362d565b60405180910390fd5b819050919050565b6112c26122e0565b73ffffffffffffffffffffffffffffffffffffffff166112e06115e4565b73ffffffffffffffffffffffffffffffffffffffff1614611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d906133f3565b60405180910390fd5b61133f816126ae565b50565b61134a6122e0565b73ffffffffffffffffffffffffffffffffffffffff166113686115e4565b73ffffffffffffffffffffffffffffffffffffffff16146113be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b5906133f3565b60405180910390fd5b8060138190555050565b601260009054906101000a900460ff1681565b6060600380546113ea90613274565b80601f016020809104026020016040519081016040528092919081815260200182805461141690613274565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590613699565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61155e6122e0565b73ffffffffffffffffffffffffffffffffffffffff1661157c6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146115d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c9906133f3565b60405180910390fd5b6115dc60006126c8565b565b60135481565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461161d90613274565b80601f016020809104026020016040519081016040528092919081815260200182805461164990613274565b80156116965780601f1061166b57610100808354040283529160200191611696565b820191906000526020600020905b81548152906001019060200180831161167957829003601f168201915b5050505050905090565b6116a86122e0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d906132f2565b60405180910390fd5b80600760006117236122e0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117d06122e0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118159190612b09565b60405180910390a35050565b606061182c826122d3565b61186b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186290613705565b60405180910390fd5b60006003805461187a90613274565b90501161189657604051806020016040528060008152506118c2565b60036118a18361278e565b6040516020016118b29291906137f5565b6040516020818303038152906040525b9050919050565b60085481565b60115481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119716122e0565b73ffffffffffffffffffffffffffffffffffffffff1661198f6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc906133f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c9061388b565b60405180910390fd5b611a5e816126c8565b50565b60108181548110611a7157600080fd5b906000526020600020016000915090505481565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611ab06128fb565b611ab9826122d3565b611af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aef906138f7565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310611b5c5760017f000000000000000000000000000000000000000000000000000000000000000084611b4f9190613917565b611b59919061394b565b90505b60008390505b818110611c6a576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611c5657809350505050611ca6565b508080611c62906139a1565b915050611b62565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9d9061335e565b60405180910390fd5b919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600e54600b60149054906101000a900467ffffffffffffffff16600f60049054906101000a900461ffff16600f60009054906101000a900463ffffffff16600f60069054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401611d5a959493929190613a43565b6020604051808303816000875af1158015611d79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9d9190613549565b601181905550611dad6000610788565b60156000601154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000611e0d82611aa8565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613699565b60405180910390fd5b611e8c84848460016128ef565b611e9c60008383600001516122e8565b6001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611f0a9190613ab2565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611fae9190613ae6565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001836120b4919061394b565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121fa5761212a816122d3565b156121f9576040518060400160405280836000015173ffffffffffffffffffffffffffffffffffffffff168152602001836020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461226285858560016128f5565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001612710836000815181106123b5576123b4613b2c565b5b60200260200101516123c79190613b5b565b6123d1919061394b565b90506000816001111580156123e857506107d08211155b156123f7576013549050612556565b816107d11115801561240b5750610bb98211155b1561243257600a600b601354612421919061318b565b61242b9190613214565b9050612555565b81610bba111580156124465750610dae8211155b1561246d57600a600c60135461245c919061318b565b6124669190613214565b9050612554565b81610daf111580156124815750610e778211155b156124a857600a600f601354612497919061318b565b6124a19190613214565b9050612553565b81610e78111580156124bc5750610edc8211155b156124d75760026013546124d0919061318b565b9050612552565b81610edd111580156124eb5750610ef18211155b156125065760056013546124ff919061318b565b9050612551565b81610ef21115801561251a5750610efc8211155b1561253557600a60135461252e919061318b565b9050612550565b611a0a82141561254f5760024761254c9190613214565b90505b5b5b5b5b5b5b5b6000811115612664574781111561256b574790505b6015600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156125e4573d6000803e3d6000fd5b507f1547adaaf63fc61e99e29577a820d1c7626e8de63d1cb5830d0edbf3951aeb5c6015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826002476126489190613214565b60405161265793929190613beb565b60405180910390a16126a8565b7f2f822a02ec21e1055c1b11389577cbbf84b23bf5e21cbc4bce35cd8dd7fd73126002476126929190613214565b60405161269f9190612d08565b60405180910390a15b50505050565b80600390805190602001906126c4929190612935565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008214156127d6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506128ea565b600082905060005b600082146128085780806127f19061347f565b915050600a826128019190613214565b91506127de565b60008167ffffffffffffffff81111561282457612823612d28565b5b6040519080825280601f01601f1916602001820160405280156128565781602001600182028036833780820191505090505b5090505b600085146128e35760018261286f9190613917565b9150600a8561287e9190613b5b565b603061288a919061394b565b60f81b8183815181106128a05761289f613b2c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128dc9190613214565b945061285a565b8093505050505b919050565b50505050565b50505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b82805461294190613274565b90600052602060002090601f01602090048101928261296357600085556129aa565b82601f1061297c57805160ff19168380011785556129aa565b828001600101855582156129aa579182015b828111156129a957825182559160200191906001019061298e565b5b5090506129b791906129bb565b5090565b5b808211156129d45760008160009055506001016129bc565b5090565b600082825260208201905092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b6000612a1f6013836129d8565b9150612a2a826129e9565b602082019050919050565b60006020820190508181036000830152612a4e81612a12565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a9e81612a69565b8114612aa957600080fd5b50565b600081359050612abb81612a95565b92915050565b600060208284031215612ad757612ad6612a5f565b5b6000612ae584828501612aac565b91505092915050565b60008115159050919050565b612b0381612aee565b82525050565b6000602082019050612b1e6000830184612afa565b92915050565b600081519050919050565b60005b83811015612b4d578082015181840152602081019050612b32565b83811115612b5c576000848401525b50505050565b6000601f19601f8301169050919050565b6000612b7e82612b24565b612b8881856129d8565b9350612b98818560208601612b2f565b612ba181612b62565b840191505092915050565b60006020820190508181036000830152612bc68184612b73565b905092915050565b6000819050919050565b612be181612bce565b8114612bec57600080fd5b50565b600081359050612bfe81612bd8565b92915050565b600060208284031215612c1a57612c19612a5f565b5b6000612c2884828501612bef565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c5c82612c31565b9050919050565b612c6c81612c51565b82525050565b6000602082019050612c876000830184612c63565b92915050565b612c9681612c51565b8114612ca157600080fd5b50565b600081359050612cb381612c8d565b92915050565b60008060408385031215612cd057612ccf612a5f565b5b6000612cde85828601612ca4565b9250506020612cef85828601612bef565b9150509250929050565b612d0281612bce565b82525050565b6000602082019050612d1d6000830184612cf9565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d6082612b62565b810181811067ffffffffffffffff82111715612d7f57612d7e612d28565b5b80604052505050565b6000612d92612a55565b9050612d9e8282612d57565b919050565b600067ffffffffffffffff821115612dbe57612dbd612d28565b5b602082029050602081019050919050565b600080fd5b6000612de7612de284612da3565b612d88565b90508083825260208201905060208402830185811115612e0a57612e09612dcf565b5b835b81811015612e335780612e1f8882612bef565b845260208401935050602081019050612e0c565b5050509392505050565b600082601f830112612e5257612e51612d23565b5b8135612e62848260208601612dd4565b91505092915050565b60008060408385031215612e8257612e81612a5f565b5b6000612e9085828601612bef565b925050602083013567ffffffffffffffff811115612eb157612eb0612a64565b5b612ebd85828601612e3d565b9150509250929050565b6000612ed282612c31565b9050919050565b612ee281612ec7565b8114612eed57600080fd5b50565b600081359050612eff81612ed9565b92915050565b600060208284031215612f1b57612f1a612a5f565b5b6000612f2984828501612ef0565b91505092915050565b600080600060608486031215612f4b57612f4a612a5f565b5b6000612f5986828701612ef0565b9350506020612f6a86828701612ca4565b9250506040612f7b86828701612bef565b9150509250925092565b600060208284031215612f9b57612f9a612a5f565b5b6000612fa984828501612ca4565b91505092915050565b600080fd5b600067ffffffffffffffff821115612fd257612fd1612d28565b5b612fdb82612b62565b9050602081019050919050565b82818337600083830152505050565b600061300a61300584612fb7565b612d88565b90508281526020810184848401111561302657613025612fb2565b5b613031848285612fe8565b509392505050565b600082601f83011261304e5761304d612d23565b5b813561305e848260208601612ff7565b91505092915050565b60006020828403121561307d5761307c612a5f565b5b600082013567ffffffffffffffff81111561309b5761309a612a64565b5b6130a784828501613039565b91505092915050565b6130b981612aee565b81146130c457600080fd5b50565b6000813590506130d6816130b0565b92915050565b600080604083850312156130f3576130f2612a5f565b5b600061310185828601612ca4565b9250506020613112858286016130c7565b9150509250929050565b6000806040838503121561313357613132612a5f565b5b600061314185828601612ca4565b925050602061315285828601612ca4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061319682612bce565b91506131a183612bce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131da576131d961315c565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061321f82612bce565b915061322a83612bce565b92508261323a576132396131e5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061328c57607f821691505b602082108114156132a05761329f613245565b5b50919050565b7f6100000000000000000000000000000000000000000000000000000000000000600082015250565b60006132dc6001836129d8565b91506132e7826132a6565b602082019050919050565b6000602082019050818103600083015261330b816132cf565b9050919050565b7f6f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006133486001836129d8565b915061335382613312565b602082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b60006040820190506133936000830185612c63565b6133a06020830184612c63565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133dd6020836129d8565b91506133e8826133a7565b602082019050919050565b6000602082019050818103600083015261340c816133d0565b9050919050565b7f6200000000000000000000000000000000000000000000000000000000000000600082015250565b60006134496001836129d8565b915061345482613413565b602082019050919050565b600060208201905081810360008301526134788161343c565b9050919050565b600061348a82612bce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134bd576134bc61315c565b5b600182019050919050565b7f7500000000000000000000000000000000000000000000000000000000000000600082015250565b60006134fe6001836129d8565b9150613509826134c8565b602082019050919050565b6000602082019050818103600083015261352d816134f1565b9050919050565b60008151905061354381612bd8565b92915050565b60006020828403121561355f5761355e612a5f565b5b600061356d84828501613534565b91505092915050565b600060408201905061358b6000830185612c63565b6135986020830184612cf9565b9392505050565b6000815190506135ae816130b0565b92915050565b6000602082840312156135ca576135c9612a5f565b5b60006135d88482850161359f565b91505092915050565b7f6700000000000000000000000000000000000000000000000000000000000000600082015250565b60006136176001836129d8565b9150613622826135e1565b602082019050919050565b600060208201905081810360008301526136468161360a565b9050919050565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b60006136836001836129d8565b915061368e8261364d565b602082019050919050565b600060208201905081810360008301526136b281613676565b9050919050565b7f7a00000000000000000000000000000000000000000000000000000000000000600082015250565b60006136ef6001836129d8565b91506136fa826136b9565b602082019050919050565b6000602082019050818103600083015261371e816136e2565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461375281613274565b61375c8186613725565b945060018216600081146137775760018114613788576137bb565b60ff198316865281860193506137bb565b61379185613730565b60005b838110156137b357815481890152600182019150602081019050613794565b838801955050505b50505092915050565b60006137cf82612b24565b6137d98185613725565b93506137e9818560208601612b2f565b80840191505092915050565b60006138018285613745565b915061380d82846137c4565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006138756026836129d8565b915061388082613819565b604082019050919050565b600060208201905081810360008301526138a481613868565b9050919050565b7f7400000000000000000000000000000000000000000000000000000000000000600082015250565b60006138e16001836129d8565b91506138ec826138ab565b602082019050919050565b60006020820190508181036000830152613910816138d4565b9050919050565b600061392282612bce565b915061392d83612bce565b9250828210156139405761393f61315c565b5b828203905092915050565b600061395682612bce565b915061396183612bce565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156139965761399561315c565b5b828201905092915050565b60006139ac82612bce565b915060008214156139c0576139bf61315c565b5b600182039050919050565b6000819050919050565b6139de816139cb565b82525050565b600067ffffffffffffffff82169050919050565b613a01816139e4565b82525050565b600061ffff82169050919050565b613a1e81613a07565b82525050565b600063ffffffff82169050919050565b613a3d81613a24565b82525050565b600060a082019050613a5860008301886139d5565b613a6560208301876139f8565b613a726040830186613a15565b613a7f6060830185613a34565b613a8c6080830184613a34565b9695505050505050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6000613abd82613a96565b9150613ac883613a96565b925082821015613adb57613ada61315c565b5b828203905092915050565b6000613af182613a96565b9150613afc83613a96565b9250826fffffffffffffffffffffffffffffffff03821115613b2157613b2061315c565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613b6682612bce565b9150613b7183612bce565b925082613b8157613b806131e5565b5b828206905092915050565b6000819050919050565b6000613bb1613bac613ba784612c31565b613b8c565b612c31565b9050919050565b6000613bc382613b96565b9050919050565b6000613bd582613bb8565b9050919050565b613be581613bca565b82525050565b6000606082019050613c006000830186613bdc565b613c0d6020830185612cf9565b613c1a6040830184612cf9565b94935050505056fea26469706673582212206bd38b4f9509d2528d035bfd08cf40b2994588ee766907c3fb31d891b32cfe7364736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b546865204a61636b706f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8b39e0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101d15760003560e01c80635c975abb116100f757806395d89b4111610095578063e89e106a11610064578063e89e106a146106ba578063e985e9c5146106e5578063f2fde38b14610722578063f6eaffc81461074b57610232565b806395d89b41146105fe578063a22cb46514610629578063c87b56dd14610652578063d7224ba01461068f57610232565b806370a08231116100d157806370a0823114610554578063715018a61461059157806381cd8194146105a85780638da5cb5b146105d357610232565b80635c975abb146104c15780636352211e146104ec5780636c0360eb1461052957610232565b806323b872dd1161016f57806349df728c1161013e57806349df728c146104095780634f6ccce71461043257806355f804b31461046f5780635979b86f1461049857610232565b806323b872dd146103825780632f745c591461039e578063333171bb146103db5780633ccfd60b146103f257610232565b8063095ea7b3116101ab578063095ea7b3146102dc57806318160ddd146103055780631fe543e31461033057806320e2a9f01461035957610232565b806301ffc9a71461023757806306fdde0314610274578063081812fc1461029f57610232565b366102325760135434101561021b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021290612a35565b60405180910390fd5b6102306102286000610788565b33600061079e565b005b600080fd5b34801561024357600080fd5b5061025e60048036038101906102599190612ac1565b61087c565b60405161026b9190612b09565b60405180910390f35b34801561028057600080fd5b506102896109c6565b6040516102969190612bac565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190612c04565b610a58565b6040516102d39190612c72565b60405180910390f35b3480156102e857600080fd5b5061030360048036038101906102fe9190612cb9565b610add565b005b34801561031157600080fd5b5061031a610bf6565b6040516103279190612d08565b60405180910390f35b34801561033c57600080fd5b5061035760048036038101906103529190612e6b565b610bff565b005b34801561036557600080fd5b50610380600480360381019061037b9190612f05565b610cbf565b005b61039c60048036038101906103979190612f32565b61079e565b005b3480156103aa57600080fd5b506103c560048036038101906103c09190612cb9565b610d7f565b6040516103d29190612d08565b60405180910390f35b3480156103e757600080fd5b506103f0610f7d565b005b3480156103fe57600080fd5b50610407611025565b005b34801561041557600080fd5b50610430600480360381019061042b9190612f85565b6110f0565b005b34801561043e57600080fd5b5061045960048036038101906104549190612c04565b611267565b6040516104669190612d08565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613067565b6112ba565b005b3480156104a457600080fd5b506104bf60048036038101906104ba9190612c04565b611342565b005b3480156104cd57600080fd5b506104d66113c8565b6040516104e39190612b09565b60405180910390f35b3480156104f857600080fd5b50610513600480360381019061050e9190612c04565b610788565b6040516105209190612c72565b60405180910390f35b34801561053557600080fd5b5061053e6113db565b60405161054b9190612bac565b60405180910390f35b34801561056057600080fd5b5061057b60048036038101906105769190612f85565b61146d565b6040516105889190612d08565b60405180910390f35b34801561059d57600080fd5b506105a6611556565b005b3480156105b457600080fd5b506105bd6115de565b6040516105ca9190612d08565b60405180910390f35b3480156105df57600080fd5b506105e86115e4565b6040516105f59190612c72565b60405180910390f35b34801561060a57600080fd5b5061061361160e565b6040516106209190612bac565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b91906130dc565b6116a0565b005b34801561065e57600080fd5b5061067960048036038101906106749190612c04565b611821565b6040516106869190612bac565b60405180910390f35b34801561069b57600080fd5b506106a46118c9565b6040516106b19190612d08565b60405180910390f35b3480156106c657600080fd5b506106cf6118cf565b6040516106dc9190612d08565b60405180910390f35b3480156106f157600080fd5b5061070c6004803603810190610707919061311c565b6118d5565b6040516107199190612b09565b60405180910390f35b34801561072e57600080fd5b5061074960048036038101906107449190612f85565b611969565b005b34801561075757600080fd5b50610772600480360381019061076d9190612c04565b611a61565b60405161077f9190612d08565b60405180910390f35b600061079382611aa8565b600001519050919050565b6013543410156107e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107da90612a35565b60405180910390fd5b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc600a60013461082e919061318b565b6108389190613214565b9081150290604051600060405180830381858888f19350505050158015610863573d6000803e3d6000fd5b5061086c611cab565b610877838383611e02565b505050565b60007f591d4bc0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109af57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109bf57506109be82612269565b5b9050919050565b6060600180546109d590613274565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0190613274565b8015610a4e5780601f10610a2357610100808354040283529160200191610a4e565b820191906000526020600020905b815481529060010190602001808311610a3157829003601f168201915b5050505050905090565b6000610a63826122d3565b610aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a99906132f2565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882610788565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b509061335e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b786122e0565b73ffffffffffffffffffffffffffffffffffffffff161480610ba75750610ba681610ba16122e0565b6118d5565b5b610be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdd906132f2565b60405180910390fd5b610bf18383836122e8565b505050565b60008054905090565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cb157337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ca892919061337e565b60405180910390fd5b610cbb828261239a565b5050565b610cc76122e0565b73ffffffffffffffffffffffffffffffffffffffff16610ce56115e4565b73ffffffffffffffffffffffffffffffffffffffff1614610d3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d32906133f3565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610d8a8361146d565b8210610dcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc29061345f565b60405180910390fd5b6000610dd5610bf6565b905060008060005b83811015610f3b576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610ecf57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f275786841415610f18578195505050505050610f77565b8380610f239061347f565b9450505b508080610f339061347f565b915050610ddd565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90613514565b60405180910390fd5b92915050565b610f856122e0565b73ffffffffffffffffffffffffffffffffffffffff16610fa36115e4565b73ffffffffffffffffffffffffffffffffffffffff1614610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906133f3565b60405180910390fd5b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b61102d6122e0565b73ffffffffffffffffffffffffffffffffffffffff1661104b6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146110a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611098906133f3565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156110ec573d6000803e3d6000fd5b5050565b6110f86122e0565b73ffffffffffffffffffffffffffffffffffffffff166111166115e4565b73ffffffffffffffffffffffffffffffffffffffff161461116c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611163906133f3565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111c29190612c72565b602060405180830381865afa1580156111df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112039190613549565b6040518363ffffffff1660e01b8152600401611220929190613576565b6020604051808303816000875af115801561123f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126391906135b4565b5050565b6000611271610bf6565b82106112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a99061362d565b60405180910390fd5b819050919050565b6112c26122e0565b73ffffffffffffffffffffffffffffffffffffffff166112e06115e4565b73ffffffffffffffffffffffffffffffffffffffff1614611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d906133f3565b60405180910390fd5b61133f816126ae565b50565b61134a6122e0565b73ffffffffffffffffffffffffffffffffffffffff166113686115e4565b73ffffffffffffffffffffffffffffffffffffffff16146113be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b5906133f3565b60405180910390fd5b8060138190555050565b601260009054906101000a900460ff1681565b6060600380546113ea90613274565b80601f016020809104026020016040519081016040528092919081815260200182805461141690613274565b80156114635780601f1061143857610100808354040283529160200191611463565b820191906000526020600020905b81548152906001019060200180831161144657829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590613699565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61155e6122e0565b73ffffffffffffffffffffffffffffffffffffffff1661157c6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146115d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c9906133f3565b60405180910390fd5b6115dc60006126c8565b565b60135481565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461161d90613274565b80601f016020809104026020016040519081016040528092919081815260200182805461164990613274565b80156116965780601f1061166b57610100808354040283529160200191611696565b820191906000526020600020905b81548152906001019060200180831161167957829003601f168201915b5050505050905090565b6116a86122e0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d906132f2565b60405180910390fd5b80600760006117236122e0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117d06122e0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118159190612b09565b60405180910390a35050565b606061182c826122d3565b61186b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186290613705565b60405180910390fd5b60006003805461187a90613274565b90501161189657604051806020016040528060008152506118c2565b60036118a18361278e565b6040516020016118b29291906137f5565b6040516020818303038152906040525b9050919050565b60085481565b60115481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119716122e0565b73ffffffffffffffffffffffffffffffffffffffff1661198f6115e4565b73ffffffffffffffffffffffffffffffffffffffff16146119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc906133f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c9061388b565b60405180910390fd5b611a5e816126c8565b50565b60108181548110611a7157600080fd5b906000526020600020016000915090505481565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611ab06128fb565b611ab9826122d3565b611af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aef906138f7565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000018310611b5c5760017f000000000000000000000000000000000000000000000000000000000000000184611b4f9190613917565b611b59919061394b565b90505b60008390505b818110611c6a576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614611c5657809350505050611ca6565b508080611c62906139a1565b915050611b62565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9d9061335e565b60405180910390fd5b919050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600e54600b60149054906101000a900467ffffffffffffffff16600f60049054906101000a900461ffff16600f60009054906101000a900463ffffffff16600f60069054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401611d5a959493929190613a43565b6020604051808303816000875af1158015611d79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9d9190613549565b601181905550611dad6000610788565b60156000601154815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000611e0d82611aa8565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613699565b60405180910390fd5b611e8c84848460016128ef565b611e9c60008383600001516122e8565b6001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611f0a9190613ab2565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16611fae9190613ae6565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001836120b4919061394b565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121fa5761212a816122d3565b156121f9576040518060400160405280836000015173ffffffffffffffffffffffffffffffffffffffff168152602001836020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461226285858560016128f5565b5050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001612710836000815181106123b5576123b4613b2c565b5b60200260200101516123c79190613b5b565b6123d1919061394b565b90506000816001111580156123e857506107d08211155b156123f7576013549050612556565b816107d11115801561240b5750610bb98211155b1561243257600a600b601354612421919061318b565b61242b9190613214565b9050612555565b81610bba111580156124465750610dae8211155b1561246d57600a600c60135461245c919061318b565b6124669190613214565b9050612554565b81610daf111580156124815750610e778211155b156124a857600a600f601354612497919061318b565b6124a19190613214565b9050612553565b81610e78111580156124bc5750610edc8211155b156124d75760026013546124d0919061318b565b9050612552565b81610edd111580156124eb5750610ef18211155b156125065760056013546124ff919061318b565b9050612551565b81610ef21115801561251a5750610efc8211155b1561253557600a60135461252e919061318b565b9050612550565b611a0a82141561254f5760024761254c9190613214565b90505b5b5b5b5b5b5b5b6000811115612664574781111561256b574790505b6015600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156125e4573d6000803e3d6000fd5b507f1547adaaf63fc61e99e29577a820d1c7626e8de63d1cb5830d0edbf3951aeb5c6015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826002476126489190613214565b60405161265793929190613beb565b60405180910390a16126a8565b7f2f822a02ec21e1055c1b11389577cbbf84b23bf5e21cbc4bce35cd8dd7fd73126002476126929190613214565b60405161269f9190612d08565b60405180910390a15b50505050565b80600390805190602001906126c4929190612935565b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008214156127d6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506128ea565b600082905060005b600082146128085780806127f19061347f565b915050600a826128019190613214565b91506127de565b60008167ffffffffffffffff81111561282457612823612d28565b5b6040519080825280601f01601f1916602001820160405280156128565781602001600182028036833780820191505090505b5090505b600085146128e35760018261286f9190613917565b9150600a8561287e9190613b5b565b603061288a919061394b565b60f81b8183815181106128a05761289f613b2c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128dc9190613214565b945061285a565b8093505050505b919050565b50505050565b50505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b82805461294190613274565b90600052602060002090601f01602090048101928261296357600085556129aa565b82601f1061297c57805160ff19168380011785556129aa565b828001600101855582156129aa579182015b828111156129a957825182559160200191906001019061298e565b5b5090506129b791906129bb565b5090565b5b808211156129d45760008160009055506001016129bc565b5090565b600082825260208201905092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b6000612a1f6013836129d8565b9150612a2a826129e9565b602082019050919050565b60006020820190508181036000830152612a4e81612a12565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a9e81612a69565b8114612aa957600080fd5b50565b600081359050612abb81612a95565b92915050565b600060208284031215612ad757612ad6612a5f565b5b6000612ae584828501612aac565b91505092915050565b60008115159050919050565b612b0381612aee565b82525050565b6000602082019050612b1e6000830184612afa565b92915050565b600081519050919050565b60005b83811015612b4d578082015181840152602081019050612b32565b83811115612b5c576000848401525b50505050565b6000601f19601f8301169050919050565b6000612b7e82612b24565b612b8881856129d8565b9350612b98818560208601612b2f565b612ba181612b62565b840191505092915050565b60006020820190508181036000830152612bc68184612b73565b905092915050565b6000819050919050565b612be181612bce565b8114612bec57600080fd5b50565b600081359050612bfe81612bd8565b92915050565b600060208284031215612c1a57612c19612a5f565b5b6000612c2884828501612bef565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612c5c82612c31565b9050919050565b612c6c81612c51565b82525050565b6000602082019050612c876000830184612c63565b92915050565b612c9681612c51565b8114612ca157600080fd5b50565b600081359050612cb381612c8d565b92915050565b60008060408385031215612cd057612ccf612a5f565b5b6000612cde85828601612ca4565b9250506020612cef85828601612bef565b9150509250929050565b612d0281612bce565b82525050565b6000602082019050612d1d6000830184612cf9565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d6082612b62565b810181811067ffffffffffffffff82111715612d7f57612d7e612d28565b5b80604052505050565b6000612d92612a55565b9050612d9e8282612d57565b919050565b600067ffffffffffffffff821115612dbe57612dbd612d28565b5b602082029050602081019050919050565b600080fd5b6000612de7612de284612da3565b612d88565b90508083825260208201905060208402830185811115612e0a57612e09612dcf565b5b835b81811015612e335780612e1f8882612bef565b845260208401935050602081019050612e0c565b5050509392505050565b600082601f830112612e5257612e51612d23565b5b8135612e62848260208601612dd4565b91505092915050565b60008060408385031215612e8257612e81612a5f565b5b6000612e9085828601612bef565b925050602083013567ffffffffffffffff811115612eb157612eb0612a64565b5b612ebd85828601612e3d565b9150509250929050565b6000612ed282612c31565b9050919050565b612ee281612ec7565b8114612eed57600080fd5b50565b600081359050612eff81612ed9565b92915050565b600060208284031215612f1b57612f1a612a5f565b5b6000612f2984828501612ef0565b91505092915050565b600080600060608486031215612f4b57612f4a612a5f565b5b6000612f5986828701612ef0565b9350506020612f6a86828701612ca4565b9250506040612f7b86828701612bef565b9150509250925092565b600060208284031215612f9b57612f9a612a5f565b5b6000612fa984828501612ca4565b91505092915050565b600080fd5b600067ffffffffffffffff821115612fd257612fd1612d28565b5b612fdb82612b62565b9050602081019050919050565b82818337600083830152505050565b600061300a61300584612fb7565b612d88565b90508281526020810184848401111561302657613025612fb2565b5b613031848285612fe8565b509392505050565b600082601f83011261304e5761304d612d23565b5b813561305e848260208601612ff7565b91505092915050565b60006020828403121561307d5761307c612a5f565b5b600082013567ffffffffffffffff81111561309b5761309a612a64565b5b6130a784828501613039565b91505092915050565b6130b981612aee565b81146130c457600080fd5b50565b6000813590506130d6816130b0565b92915050565b600080604083850312156130f3576130f2612a5f565b5b600061310185828601612ca4565b9250506020613112858286016130c7565b9150509250929050565b6000806040838503121561313357613132612a5f565b5b600061314185828601612ca4565b925050602061315285828601612ca4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061319682612bce565b91506131a183612bce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131da576131d961315c565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061321f82612bce565b915061322a83612bce565b92508261323a576132396131e5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061328c57607f821691505b602082108114156132a05761329f613245565b5b50919050565b7f6100000000000000000000000000000000000000000000000000000000000000600082015250565b60006132dc6001836129d8565b91506132e7826132a6565b602082019050919050565b6000602082019050818103600083015261330b816132cf565b9050919050565b7f6f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006133486001836129d8565b915061335382613312565b602082019050919050565b600060208201905081810360008301526133778161333b565b9050919050565b60006040820190506133936000830185612c63565b6133a06020830184612c63565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133dd6020836129d8565b91506133e8826133a7565b602082019050919050565b6000602082019050818103600083015261340c816133d0565b9050919050565b7f6200000000000000000000000000000000000000000000000000000000000000600082015250565b60006134496001836129d8565b915061345482613413565b602082019050919050565b600060208201905081810360008301526134788161343c565b9050919050565b600061348a82612bce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156134bd576134bc61315c565b5b600182019050919050565b7f7500000000000000000000000000000000000000000000000000000000000000600082015250565b60006134fe6001836129d8565b9150613509826134c8565b602082019050919050565b6000602082019050818103600083015261352d816134f1565b9050919050565b60008151905061354381612bd8565b92915050565b60006020828403121561355f5761355e612a5f565b5b600061356d84828501613534565b91505092915050565b600060408201905061358b6000830185612c63565b6135986020830184612cf9565b9392505050565b6000815190506135ae816130b0565b92915050565b6000602082840312156135ca576135c9612a5f565b5b60006135d88482850161359f565b91505092915050565b7f6700000000000000000000000000000000000000000000000000000000000000600082015250565b60006136176001836129d8565b9150613622826135e1565b602082019050919050565b600060208201905081810360008301526136468161360a565b9050919050565b7f3000000000000000000000000000000000000000000000000000000000000000600082015250565b60006136836001836129d8565b915061368e8261364d565b602082019050919050565b600060208201905081810360008301526136b281613676565b9050919050565b7f7a00000000000000000000000000000000000000000000000000000000000000600082015250565b60006136ef6001836129d8565b91506136fa826136b9565b602082019050919050565b6000602082019050818103600083015261371e816136e2565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461375281613274565b61375c8186613725565b945060018216600081146137775760018114613788576137bb565b60ff198316865281860193506137bb565b61379185613730565b60005b838110156137b357815481890152600182019150602081019050613794565b838801955050505b50505092915050565b60006137cf82612b24565b6137d98185613725565b93506137e9818560208601612b2f565b80840191505092915050565b60006138018285613745565b915061380d82846137c4565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006138756026836129d8565b915061388082613819565b604082019050919050565b600060208201905081810360008301526138a481613868565b9050919050565b7f7400000000000000000000000000000000000000000000000000000000000000600082015250565b60006138e16001836129d8565b91506138ec826138ab565b602082019050919050565b60006020820190508181036000830152613910816138d4565b9050919050565b600061392282612bce565b915061392d83612bce565b9250828210156139405761393f61315c565b5b828203905092915050565b600061395682612bce565b915061396183612bce565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156139965761399561315c565b5b828201905092915050565b60006139ac82612bce565b915060008214156139c0576139bf61315c565b5b600182039050919050565b6000819050919050565b6139de816139cb565b82525050565b600067ffffffffffffffff82169050919050565b613a01816139e4565b82525050565b600061ffff82169050919050565b613a1e81613a07565b82525050565b600063ffffffff82169050919050565b613a3d81613a24565b82525050565b600060a082019050613a5860008301886139d5565b613a6560208301876139f8565b613a726040830186613a15565b613a7f6060830185613a34565b613a8c6080830184613a34565b9695505050505050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6000613abd82613a96565b9150613ac883613a96565b925082821015613adb57613ada61315c565b5b828203905092915050565b6000613af182613a96565b9150613afc83613a96565b9250826fffffffffffffffffffffffffffffffff03821115613b2157613b2061315c565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613b6682612bce565b9150613b7183612bce565b925082613b8157613b806131e5565b5b828206905092915050565b6000819050919050565b6000613bb1613bac613ba784612c31565b613b8c565b612c31565b9050919050565b6000613bc382613b96565b9050919050565b6000613bd582613bb8565b9050919050565b613be581613bca565b82525050565b6000606082019050613c006000830186613bdc565b613c0d6020830185612cf9565b613c1a6040830184612cf9565b94935050505056fea26469706673582212206bd38b4f9509d2528d035bfd08cf40b2994588ee766907c3fb31d891b32cfe7364736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000007a000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b546865204a61636b706f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8b39e0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _subscriptionId (uint64): 122
Arg [1] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [2] : _keyHash (bytes32): 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [3] : _name (string): The Jackpot
Arg [4] : _symbol (string): 賞
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000007a
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [2] : 8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 546865204a61636b706f74000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : e8b39e0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,603.48 | 0.7569 | $2,727.47 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.