ERC-721
NFT
Overview
Max Total Supply
20,000 TUBBY
Holders
7,479
Market
Volume (24H)
0.517 ETH
Min Price (24H)
$142.34 @ 0.041800 ETH
Max Price (24H)
$207.56 @ 0.060955 ETH
Other Info
Token Contract
Balance
2 TUBBYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Tubbies
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./MultisigOwnable.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./ERC721A.sol"; import "./BatchReveal.sol"; /* :::::::::::::::::::::::::::::ヽヽヽヽ::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::☆:::::::.:::::::::ヽヽヽヽヽ::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::,' ヽ.::::::::ヽヽヽ::::::::,.:::::::::::::::::::::::::::::::::::::::: :::::::::::::::::。::/ ヽ:::::::::ヽヽ ::: / ヽ:::::::☆:::::::::::::☆::::::::☆:::::: ::::::::::::::::::/ ヽ:::::::::☆::/ ヽ:::::::::::::::::::::::::::::::::::: ::::::::::::::::;' `--ーーーーー-く . ',::::::::::::::::::::::::::::::::: :::::::::☆:::::/ ',::::::::::::::::::::::::::::::::: ::::::::::::::/ ,:::::::::::::::::。::::::::::::: :::::::::::::/ ,::::::::::::::。:::::::::::::::: ::::::::::::;' ::::::。::::::::::::::::::::::::: :::。:::::: / , ______ j::::::::::::::。:::::::::::::::: :::::::::: j ' ´ ` ヽ. ,:::::::::::。:::::::::::::::::: ::::::::::! ´ ヽ ,:::::::::☆::::::::::::::::::: ::::::::: ! ´ _ _ ヽ !:::::::::::::::::::::::::::::: ::::::::: ! | γ =( ヽ : ' =::( ヽ| !::::::::::::::::::::::::::::: ::::::::: ! | 〈 ん:::☆:j j ! ん:☆:::ハ :::::::::::::::::::::::::::::: ::::::::: ! | 弋:::::.ノ ノ ヾ:::::ノ ノ | :::::::::::::::::::::::::::::: :::::::::::' | ゝ - ' 人 - ' ノ j:::::::::::::::::::::::::::::: :::::::::::, ヽ , j::::☆:::::::::::::::::::::::::: ::::::::::::, ' 、 , / ノ:::::::::::::::::::::::::::::::: ::::::::::::::\ ー--------------- ' ,'::::::::::::::::::::::::::::::::: ::::☆:::::::::::ヽ /::::::::::::::::::::::::::::::::::: :::::::::::::::::::7 :::::::::::::::<:::::::::::::::::::::::::::::::::::::: :::::::::::::::::::r´ :::::::::::::ヽ:::::::::::::::::::::::::::::::::::: ::::::::::::::::::/ :::::ヽ:::::::::::::::::::::::::::::::::: */ // IMPORTANT: _burn() must never be called contract Tubbies is ERC721A, MultisigOwnable, VRFConsumerBase, BatchReveal { using Strings for uint256; bytes32 immutable public merkleRoot; uint immutable public startSaleTimestamp; string public baseURI; string public unrevealedURI; bool public finalized = false; bool public useFancyMath = true; bool public airdropped = false; // Constants from https://docs.chain.link/docs/vrf-contracts/ bytes32 immutable private s_keyHash; address immutable private linkToken; address immutable private linkCoordinator; constructor(bytes32 _merkleRoot, string memory _baseURI, string memory _unrevealedURI, bytes32 _s_keyHash, address _linkToken, address _linkCoordinator) ERC721A("Tubby Cats", "TUBBY") VRFConsumerBase(_linkCoordinator, _linkToken) { linkToken = _linkToken; linkCoordinator = _linkCoordinator; s_keyHash = _s_keyHash; merkleRoot = _merkleRoot; startSaleTimestamp = block.timestamp + 2 days; unrevealedURI = _unrevealedURI; baseURI = _baseURI; } function airdrop(address[] memory airdrops) external onlyRealOwner{ require(airdropped == false, "already airdropped"); for(uint i=0; i<airdrops.length; i++){ _mint(airdrops[i], 1, '', false); } airdropped = true; } function setParams(string memory newBaseURI, string memory newUnrevealedURI, bool newFinal, bool newUseFancyMath) external onlyRealOwner { require(finalized == false, "final"); baseURI = newBaseURI; unrevealedURI = newUnrevealedURI; finalized = newFinal; useFancyMath = newUseFancyMath; } function retrieveFunds(address payable to) external onlyRealOwner { to.transfer(address(this).balance); } // SALE function toBytes32(address addr) pure internal returns (bytes32){ return bytes32(uint256(uint160(addr))); } // CAUTION: Never introduce any kind of batch processing for mint() or mintFromSale() since then people can // execute the same bug that appeared on sushi's bitDAO auction // There are some issues with merkle trees such as pre-image attacks or possibly duplicated leaves on // unbalanced trees, but here we protect against them by checking against msg.sender and only allowing each account to claim once // See https://github.com/miguelmota/merkletreejs#notes for more info mapping(address=>bool) public claimed; function mint(bytes32[] calldata _merkleProof) public payable { require(MerkleProof.verify(_merkleProof, merkleRoot, toBytes32(msg.sender)) == true, "wrong merkle proof"); require(claimed[msg.sender] == false, "already claimed"); claimed[msg.sender] = true; require(msg.value == 0.1 ether, "wrong payment"); _mint(msg.sender, 1, '', false); require(totalSupply() <= TOKEN_LIMIT, "limit reached"); } function mintFromSale(uint tubbiesToMint) public payable { require(block.timestamp > startSaleTimestamp, "Public sale hasn't started yet"); require(tubbiesToMint <= 5, "Only up to 5 tubbies can be minted at once"); uint cost; unchecked { cost = tubbiesToMint * 0.1 ether; } require(msg.value == cost, "wrong payment"); _mint(msg.sender, tubbiesToMint, '', false); require(totalSupply() <= TOKEN_LIMIT, "limit reached"); } // RANDOMIZATION uint public lastTokenRevealed = 0; // Can be made callable by everyone but restricting to onlyRealOwner for extra security // batchNumber belongs to [0, TOKEN_LIMIT/REVEAL_BATCH_SIZE] // if fee is incorrect chainlink's coordinator will just revert the tx so it's good function requestRandomSeed(uint s_fee) public onlyRealOwner returns (bytes32 requestId) { require(totalSupply() >= (lastTokenRevealed + REVEAL_BATCH_SIZE), "totalSupply too low"); // checking LINK balance require(IERC20(linkToken).balanceOf(address(this)) >= s_fee, "Not enough LINK to pay fee"); // requesting randomness requestId = requestRandomness(s_keyHash, s_fee); } function fulfillRandomness(bytes32, uint256 randomness) internal override { require(totalSupply() >= (lastTokenRevealed + REVEAL_BATCH_SIZE), "totalSupply too low"); uint batchNumber = lastTokenRevealed/REVEAL_BATCH_SIZE; // not perfectly random since the folding doesn't match bounds perfectly, but difference is small batchToSeed[batchNumber] = randomness % (TOKEN_LIMIT - (batchNumber*REVEAL_BATCH_SIZE)); unchecked { lastTokenRevealed += REVEAL_BATCH_SIZE; } } // OPTIMIZATION: No need for numbers to be readable, so this could be optimized // but gas cost here doesn't matter so we go for the standard approach function tokenURI(uint256 id) public view override returns (string memory) { if(!useFancyMath){ return string(abi.encodePacked(baseURI, id.toString())); } if(id >= lastTokenRevealed){ return unrevealedURI; } else { uint batch = id/REVEAL_BATCH_SIZE; return string(abi.encodePacked(baseURI, getShuffledTokenId(id, batch).toString(), ".json")); } } }
// 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 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; /* Opensea only allows EOAs to make changes to collections, which makes it impossible to use multisigs to secure these NFT contracts since when you want to make changes you need to transfer ownership to an EOA, who can rug. This contract establishes a second owner that can change the EOA owner, this way a multisig can give ownership to an EOA and later claim it back. */ abstract contract MultisigOwnable is Ownable { address public realOwner; constructor() { realOwner = msg.sender; } modifier onlyRealOwner() { require(realOwner == msg.sender, "MultisigOwnable: caller is not the real owner"); _; } function transferRealOwnership(address newRealOwner) public onlyRealOwner { realOwner = newRealOwner; } function transferLowerOwnership(address newOwner) public onlyRealOwner { _transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @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. * ***************************************************************************** * @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 constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) 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), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (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. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @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 ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @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. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @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 VRFConsumerBase 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 randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs // Fork of ERC721A.sol (it's not the same one as on npm package erc721a because this one has extension methods removed) pragma solidity ^0.8.4; 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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @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..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // 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) internal _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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _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 See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @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); } /** * @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 TransferToNonERC721ReceiverImplementer(); } 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. * And also called before burning one token. * * 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`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ 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. * And also called after one token has been burned. * * 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` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* See ../../randomness.md */ abstract contract BatchReveal { uint constant public TOKEN_LIMIT = 20e3; uint constant public REVEAL_BATCH_SIZE = 1e3; mapping(uint => uint) public batchToSeed; struct Range{ int128 start; int128 end; } // Forked from openzeppelin /** * @dev Returns the smallest of two numbers. */ function min(int128 a, int128 b) internal pure returns (int128) { return a < b ? a : b; } uint constant RANGE_LENGTH = (TOKEN_LIMIT/REVEAL_BATCH_SIZE)*2; int128 constant intTOKEN_LIMIT = int128(int(TOKEN_LIMIT)); // ranges include the start but not the end [start, end) function addRange(Range[RANGE_LENGTH] memory ranges, int128 start, int128 end, uint lastIndex) pure private returns (uint) { uint positionToAssume = lastIndex; for(uint j=0; j<lastIndex; j++){ int128 rangeStart = ranges[j].start; int128 rangeEnd = ranges[j].end; if(start < rangeStart && positionToAssume == lastIndex){ positionToAssume = j; } if( (start < rangeStart && end > rangeStart) || (rangeStart <= start && end <= rangeEnd) || (start < rangeEnd && end > rangeEnd) ){ int128 length = end-start; start = min(start, rangeStart); end = start + length + (rangeEnd-rangeStart); ranges[j] = Range(-1,-1); // Delete } } for(uint pos = lastIndex; pos > positionToAssume; pos--){ ranges[pos] = ranges[pos-1]; } ranges[positionToAssume] = Range(start, min(end, intTOKEN_LIMIT)); lastIndex++; if(end > intTOKEN_LIMIT){ addRange(ranges, 0, end - intTOKEN_LIMIT, lastIndex); lastIndex++; } return lastIndex; } function buildJumps(uint lastBatch) view private returns (Range[RANGE_LENGTH] memory) { Range[RANGE_LENGTH] memory ranges; uint lastIndex = 0; for(uint i=0; i<lastBatch; i++){ int128 start = int128(int(getFreeTokenId(batchToSeed[i], ranges))); int128 end = start + int128(int(REVEAL_BATCH_SIZE)); lastIndex = addRange(ranges, start, end, lastIndex); } return ranges; } function getShuffledTokenId(uint startId, uint batch) view internal returns (uint) { Range[RANGE_LENGTH] memory ranges = buildJumps(batch); uint positionsToMove = (startId % REVEAL_BATCH_SIZE) + batchToSeed[batch]; return getFreeTokenId(positionsToMove, ranges); } function getFreeTokenId(uint positionsToMoveStart, Range[RANGE_LENGTH] memory ranges) pure private returns (uint) { int128 positionsToMove = int128(int(positionsToMoveStart)); int128 id = 0; for(uint round = 0; round<2; round++){ for(uint i=0; i<RANGE_LENGTH; i++){ int128 start = ranges[i].start; int128 end = ranges[i].end; if(id < start){ int128 finalId = id + positionsToMove; if(finalId < start){ return uint(uint128(finalId)); } else { positionsToMove -= start - id; id = end; } } else if(id < end){ id = end; } } if((id + positionsToMove) >= intTOKEN_LIMIT){ positionsToMove -= intTOKEN_LIMIT - id; id = 0; } } return uint(uint128(id + positionsToMove)); } }
// 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 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 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.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 `IERC721.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 v4.4.1 (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 tokenId); /** * @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 v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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/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":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_unrevealedURI","type":"string"},{"internalType":"bytes32","name":"_s_keyHash","type":"bytes32"},{"internalType":"address","name":"_linkToken","type":"address"},{"internalType":"address","name":"_linkCoordinator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"REVEAL_BATCH_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"airdrops","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"batchToSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenRevealed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tubbiesToMint","type":"uint256"}],"name":"mintFromSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"realOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"s_fee","type":"uint256"}],"name":"requestRandomSeed","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"retrieveFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newUnrevealedURI","type":"string"},{"internalType":"bool","name":"newFinal","type":"bool"},{"internalType":"bool","name":"newUseFancyMath","type":"bool"}],"name":"setParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSaleTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferLowerOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRealOwner","type":"address"}],"name":"transferRealOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useFancyMath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101606040526000600e60006101000a81548160ff0219169083151502179055506001600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff02191690831515021790555060006010553480156200006857600080fd5b5060405162005be438038062005be483398181016040528101906200008e9190620004f6565b80826040518060400160405280600a81526020017f54756262792043617473000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f5455424259000000000000000000000000000000000000000000000000000000815250816002908051906020019062000114929190620003a6565b5080600390805190602001906200012d929190620003a6565b5050506200015062000144620002d860201b60201c565b620002e060201b60201c565b33600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050508173ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff166101408173ffffffffffffffffffffffffffffffffffffffff1660601b815250508261010081815250508560c081815250506202a300426200029391906200061d565b60e0818152505083600d9080519060200190620002b2929190620003a6565b5084600c9080519060200190620002cb929190620003a6565b5050505050505062000836565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003b490620006f8565b90600052602060002090601f016020900481019282620003d8576000855562000424565b82601f10620003f357805160ff191683800117855562000424565b8280016001018555821562000424579182015b828111156200042357825182559160200191906001019062000406565b5b50905062000433919062000437565b5090565b5b808211156200045257600081600090555060010162000438565b5090565b60006200046d6200046784620005e7565b620005be565b9050828152602081018484840111156200048657600080fd5b62000493848285620006c2565b509392505050565b600081519050620004ac8162000802565b92915050565b600081519050620004c3816200081c565b92915050565b600082601f830112620004db57600080fd5b8151620004ed84826020860162000456565b91505092915050565b60008060008060008060c087890312156200051057600080fd5b60006200052089828a01620004b2565b965050602087015167ffffffffffffffff8111156200053e57600080fd5b6200054c89828a01620004c9565b955050604087015167ffffffffffffffff8111156200056a57600080fd5b6200057889828a01620004c9565b94505060606200058b89828a01620004b2565b93505060806200059e89828a016200049b565b92505060a0620005b189828a016200049b565b9150509295509295509295565b6000620005ca620005dd565b9050620005d882826200072e565b919050565b6000604051905090565b600067ffffffffffffffff821115620006055762000604620007c2565b5b6200061082620007f1565b9050602081019050919050565b60006200062a82620006b8565b91506200063783620006b8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200066f576200066e62000764565b5b828201905092915050565b6000620006878262000698565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620006e2578082015181840152602081019050620006c5565b83811115620006f2576000848401525b50505050565b600060028204905060018216806200071157607f821691505b6020821081141562000728576200072762000793565b5b50919050565b6200073982620007f1565b810181811067ffffffffffffffff821117156200075b576200075a620007c2565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200080d816200067a565b81146200081957600080fd5b50565b62000827816200068e565b81146200083357600080fd5b50565b60805160601c60a05160601c60c05160e051610100516101205160601c6101405160601c615335620008af600039600050506000610da501526000610e92015260008181611e0b0152611f2d0152600081816110c5015261187101526000818161156901526122f2015260006122b601526153356000f3fe6080604052600436106102305760003560e01c806370a082311161012e578063b77a147b116100ab578063e9d1dd691161006f578063e9d1dd6914610856578063ed3d161d1461087f578063f2fde38b146108aa578063f4319195146108d3578063f8b4d981146108fe57610230565b8063b77a147b1461075a578063b88d4fde14610776578063c87b56dd1461079f578063c884ef83146107dc578063e985e9c51461081957610230565b806394985ddd116100f257806394985ddd1461068757806395d89b41146106b05780639f2063da146106db578063a22cb46514610706578063b3f05b971461072f57610230565b806370a08231146105a2578063715018a6146105df578063729ad39e146105f6578063777c90911461061f5780638da5cb5b1461065c57610230565b80631df270f3116101bc57806342842e0e1161018057806342842e0e146104bb57806359cc5f24146104e45780636352211e1461050f5780636c0360eb1461054c5780637035bf181461057757610230565b80631df270f3146103ea57806323b872dd146104155780632ad220521461043e5780632cff6770146104675780632eb4a7ab1461049057610230565b8063095ea7b311610203578063095ea7b31461030557806309af3f9a1461032e57806309f8f9341461035757806318160ddd1461039457806319cc02aa146103bf57610230565b806301ffc9a714610235578063031bd4c41461027257806306fdde031461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906140ec565b61091a565b604051610269919061470c565b60405180910390f35b34801561027e57600080fd5b506102876109fc565b6040516102949190614992565b60405180910390f35b3480156102a957600080fd5b506102b2610a02565b6040516102bf91906147b0565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea91906141d1565b610a94565b6040516102fc9190614667565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613fc5565b610b10565b005b34801561033a57600080fd5b5061035560048036038101906103509190613e31565b610c1b565b005b34801561036357600080fd5b5061037e600480360381019061037991906141d1565b610cb7565b60405161038b9190614727565b60405180910390f35b3480156103a057600080fd5b506103a9610ebe565b6040516103b69190614992565b60405180910390f35b3480156103cb57600080fd5b506103d4610ecc565b6040516103e1919061470c565b60405180910390f35b3480156103f657600080fd5b506103ff610edf565b60405161040c9190614667565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190613ebf565b610f05565b005b34801561044a57600080fd5b5061046560048036038101906104609190613e5a565b610f15565b005b34801561047357600080fd5b5061048e60048036038101906104899190613e31565b610fef565b005b34801561049c57600080fd5b506104a56110c3565b6040516104b29190614727565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190613ebf565b6110e7565b005b3480156104f057600080fd5b506104f9611107565b604051610506919061470c565b60405180910390f35b34801561051b57600080fd5b50610536600480360381019061053191906141d1565b61111a565b6040516105439190614667565b60405180910390f35b34801561055857600080fd5b50610561611130565b60405161056e91906147b0565b60405180910390f35b34801561058357600080fd5b5061058c6111be565b60405161059991906147b0565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c49190613e31565b61124c565b6040516105d69190614992565b60405180910390f35b3480156105eb57600080fd5b506105f461131c565b005b34801561060257600080fd5b5061061d60048036038101906106189190614001565b6113a4565b005b34801561062b57600080fd5b50610646600480360381019061064191906141d1565b611525565b6040516106539190614992565b60405180910390f35b34801561066857600080fd5b5061067161153d565b60405161067e9190614667565b60405180910390f35b34801561069357600080fd5b506106ae60048036038101906106a991906140b0565b611567565b005b3480156106bc57600080fd5b506106c5611603565b6040516106d291906147b0565b60405180910390f35b3480156106e757600080fd5b506106f0611695565b6040516106fd9190614992565b60405180910390f35b34801561071257600080fd5b5061072d60048036038101906107289190613f89565b61169b565b005b34801561073b57600080fd5b50610744611813565b604051610751919061470c565b60405180910390f35b610774600480360381019061076f9190614042565b611826565b005b34801561078257600080fd5b5061079d60048036038101906107989190613f0e565b611a82565b005b3480156107ab57600080fd5b506107c660048036038101906107c191906141d1565b611ad5565b6040516107d391906147b0565b60405180910390f35b3480156107e857600080fd5b5061080360048036038101906107fe9190613e31565b611c07565b604051610810919061470c565b60405180910390f35b34801561082557600080fd5b50610840600480360381019061083b9190613e83565b611c27565b60405161084d919061470c565b60405180910390f35b34801561086257600080fd5b5061087d6004803603810190610878919061413e565b611cbb565b005b34801561088b57600080fd5b50610894611e09565b6040516108a19190614992565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190613e31565b611e2d565b005b3480156108df57600080fd5b506108e8611f25565b6040516108f59190614992565b60405180910390f35b610918600480360381019061091391906141d1565b611f2b565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f557506109f48261208e565b5b9050919050565b614e2081565b606060028054610a1190614dde565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3d90614dde565b8015610a8a5780601f10610a5f57610100808354040283529160200191610a8a565b820191906000526020600020905b815481529060010190602001808311610a6d57829003601f168201915b5050505050905090565b6000610a9f826120f8565b610ad5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1b8261111a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b83576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ba2612132565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bd45750610bd281610bcd612132565b611c27565b155b15610c0b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c1683838361213a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca290614832565b60405180910390fd5b610cb4816121ec565b50565b60003373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090614832565b60405180910390fd5b6103e8601054610d599190614b3c565b610d61610ebe565b1015610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614872565b60405180910390fd5b817f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dfc9190614667565b60206040518083038186803b158015610e1457600080fd5b505afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c91906141fa565b1015610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8490614952565b60405180910390fd5b610eb77f0000000000000000000000000000000000000000000000000000000000000000836122b2565b9050919050565b600060015460005403905090565b600e60029054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f10838383612414565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90614832565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610feb573d6000803e3d6000fd5b5050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461107f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107690614832565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61110283838360405180602001604052806000815250611a82565b505050565b600e60019054906101000a900460ff1681565b600061112582612905565b600001519050919050565b600c805461113d90614dde565b80601f016020809104026020016040519081016040528092919081815260200182805461116990614dde565b80156111b65780601f1061118b576101008083540402835291602001916111b6565b820191906000526020600020905b81548152906001019060200180831161119957829003601f168201915b505050505081565b600d80546111cb90614dde565b80601f01602080910402602001604051908101604052809291908181526020018280546111f790614dde565b80156112445780601f1061121957610100808354040283529160200191611244565b820191906000526020600020905b81548152906001019060200180831161122757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112b4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611324612132565b73ffffffffffffffffffffffffffffffffffffffff1661134261153d565b73ffffffffffffffffffffffffffffffffffffffff1614611398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138f90614912565b60405180910390fd5b6113a260006121ec565b565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142b90614832565b60405180910390fd5b60001515600e60029054906101000a900460ff1615151461148a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611481906148f2565b60405180910390fd5b60005b8151811015611506576114f38282815181106114d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516001604051806020016040528060008152506000612b81565b80806114fe90614e41565b91505061148d565b506001600e60026101000a81548160ff02191690831515021790555050565b600b6020528060005260406000206000915090505481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec90614932565b60405180910390fd5b6115ff8282612eb8565b5050565b60606003805461161290614dde565b80601f016020809104026020016040519081016040528092919081815260200182805461163e90614dde565b801561168b5780601f106116605761010080835404028352916020019161168b565b820191906000526020600020905b81548152906001019060200180831161166e57829003601f168201915b5050505050905090565b6103e881565b6116a3612132565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611708576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611715612132565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117c2612132565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611807919061470c565b60405180910390a35050565b600e60009054906101000a900460ff1681565b6001151561189e838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f000000000000000000000000000000000000000000000000000000000000000061189933612f79565b612f9c565b1515146118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d790614892565b60405180910390fd5b60001515600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196a90614852565b60405180910390fd5b6001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555067016345785d8a00003414611a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0c906148b2565b60405180910390fd5b611a32336001604051806020016040528060008152506000612b81565b614e20611a3d610ebe565b1115611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a75906148d2565b60405180910390fd5b5050565b611a8d848484612414565b611a9984848484612fb3565b611acf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060600e60019054906101000a900460ff16611b1d57600c611af683613141565b604051602001611b07929190614614565b6040516020818303038152906040529050611c02565b6010548210611bb857600d8054611b3390614dde565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5f90614dde565b8015611bac5780601f10611b8157610100808354040283529160200191611bac565b820191906000526020600020905b815481529060010190602001808311611b8f57829003601f168201915b50505050509050611c02565b60006103e883611bc89190614b92565b9050600c611bde611bd985846132ee565b613141565b604051602001611bef929190614638565b6040516020818303038152906040529150505b919050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4290614832565b60405180910390fd5b60001515600e60009054906101000a900460ff16151514611da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d98906147d2565b60405180910390fd5b83600c9080519060200190611db7929190613a90565b5082600d9080519060200190611dce929190613a90565b5081600e60006101000a81548160ff02191690831515021790555080600e60016101000a81548160ff02191690831515021790555050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611e35612132565b73ffffffffffffffffffffffffffffffffffffffff16611e5361153d565b73ffffffffffffffffffffffffffffffffffffffff1614611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090614912565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1090614812565b60405180910390fd5b611f22816121ec565b50565b60105481565b7f00000000000000000000000000000000000000000000000000000000000000004211611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8490614972565b60405180910390fd5b6005811115611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc8906147f2565b60405180910390fd5b600067016345785d8a000082029050803414612022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612019906148b2565b60405180910390fd5b61203e3383604051806020016040528060008152506000612b81565b614e20612049610ebe565b111561208a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612081906148d2565b60405180910390fd5b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080548210801561212b575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001612326929190614742565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612353939291906146ce565b602060405180830381600087803b15801561236d57600080fd5b505af1158015612381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a59190614087565b5060006123c884600030600a600089815260200190815260200160002054613340565b90506001600a6000868152602001908152602001600020546123ea9190614b3c565b600a60008681526020019081526020016000208190555061240b848261337c565b91505092915050565b600061241f82612905565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612446612132565b73ffffffffffffffffffffffffffffffffffffffff16148061247957506124788260000151612473612132565b611c27565b5b806124be5750612487612132565b73ffffffffffffffffffffffffffffffffffffffff166124a684610a94565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806124f7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612560576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125c7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125d485858560016133af565b6125e4600084846000015161213a565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612895576000548110156128945782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128fe85858560016133b5565b5050505050565b61290d613b16565b6000829050600054811015612b4a576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b4857600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a2c578092505050612b7c565b5b600115612b4757818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b42578092505050612b7c565b612a2d565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612bee576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612c29576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c3660008683876133af565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612e9b57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612e4f5750612e4d6000888488612fb3565b155b15612e86576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612dd4565b508060008190555050612eb160008683876133b5565b5050505050565b6103e8601054612ec89190614b3c565b612ed0610ebe565b1015612f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0890614872565b60405180910390fd5b60006103e8601054612f239190614b92565b90506103e881612f339190614bc3565b614e20612f409190614ca1565b82612f4b9190614e9e565b600b6000838152602001908152602001600020819055506103e8601060008282540192505081905550505050565b60008173ffffffffffffffffffffffffffffffffffffffff1660001b9050919050565b600082612fa985846133bb565b1490509392505050565b6000612fd48473ffffffffffffffffffffffffffffffffffffffff16613494565b15613134578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ffd612132565b8786866040518563ffffffff1660e01b815260040161301f9493929190614682565b602060405180830381600087803b15801561303957600080fd5b505af192505050801561306a57506040513d601f19601f820116820180604052508101906130679190614115565b60015b6130e4573d806000811461309a576040519150601f19603f3d011682016040523d82523d6000602084013e61309f565b606091505b506000815114156130dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613139565b600190505b949350505050565b60606000821415613189576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132e9565b600082905060005b600082146131bb5780806131a490614e41565b915050600a826131b49190614b92565b9150613191565b60008167ffffffffffffffff8111156131fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561322f5781602001600182028036833780820191505090505b5090505b600085146132e2576001826132489190614ca1565b9150600a856132579190614e9e565b60306132639190614b3c565b60f81b81838151811061329f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132db9190614b92565b9450613233565b8093505050505b919050565b6000806132fa836134a7565b90506000600b6000858152602001908152602001600020546103e8866133209190614e9e565b61332a9190614b3c565b90506133368183613524565b9250505092915050565b600084848484604051602001613359949392919061476b565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016133919291906145e8565b60405160208183030381529060405280519060200120905092915050565b50505050565b50505050565b60008082905060005b8451811015613489576000858281518110613408577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161344957828160405160200161342c9291906145bc565b604051602081830303815290604052805190602001209250613475565b808360405160200161345c9291906145bc565b6040516020818303038152906040528051906020012092505b50808061348190614e41565b9150506133c4565b508091505092915050565b600080823b905060008111915050919050565b6134af613b59565b6134b7613b59565b6000805b848110156135195760006134e2600b60008481526020019081526020016000205485613524565b905060006103e8826134f49190614ab8565b9050613502858383876136f8565b93505050808061351190614e41565b9150506134bb565b508192505050919050565b6000808390506000805b60028110156136ce5760005b60026103e8614e2061354c9190614b92565b6135569190614bc3565b811015613680576000868260288110613598577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160000151905060008783602881106135de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b121561365857600086866136059190614ab8565b905082600f0b81600f0b121561363657806fffffffffffffffffffffffffffffffff169750505050505050506136f2565b85836136429190614c1d565b8761364d9190614c1d565b96508195505061366b565b80600f0b85600f0b121561366a578094505b5b5050808061367890614e41565b91505061353a565b50614e20600f0b83836136939190614ab8565b600f0b126136bb5781614e206136a99190614c1d565b836136b49190614c1d565b9250600091505b80806136c690614e41565b91505061352e565b5081816136db9190614ab8565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b60008082905060005b83811015613908576000878260288110613744577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151600001519050600088836028811061378a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b1280156137a957508584145b156137b2578293505b81600f0b88600f0b1280156137cc575081600f0b87600f0b135b806137ef575087600f0b82600f0b131580156137ee575080600f0b87600f0b13155b5b80613810575080600f0b88600f0b12801561380f575080600f0b87600f0b135b5b156138f357600088886138239190614c1d565b905061382f8984613a71565b9850828261383d9190614c1d565b818a6138499190614ab8565b6138539190614ab8565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a85602881106138e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b5050808061390090614e41565b915050613701565b5060008390505b818111156139b557866001826139259190614ca1565b6028811061395c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015187826028811061399a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002018190525080806139ad90614db4565b91505061390f565b50604051806040016040528086600f0b81526020016139d686614e20613a71565b600f0b815250868260288110613a15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052508280613a2890614e41565b935050614e20600f0b84600f0b1315613a6557613a55866000614e2087613a4f9190614c1d565b866136f8565b508280613a6190614e41565b9350505b82915050949350505050565b600081600f0b83600f0b12613a865781613a88565b825b905092915050565b828054613a9c90614dde565b90600052602060002090601f016020900481019282613abe5760008555613b05565b82601f10613ad757805160ff1916838001178555613b05565b82800160010185558215613b05579182015b82811115613b04578251825591602001919060010190613ae9565b5b509050613b129190613b87565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b6040518061050001604052806028905b613b71613ba4565b815260200190600190039081613b695790505090565b5b80821115613ba0576000816000905550600101613b88565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000613bd7613bd2846149d2565b6149ad565b90508083825260208201905082856020860282011115613bf657600080fd5b60005b85811015613c265781613c0c8882613cac565b845260208401935060208301925050600181019050613bf9565b5050509392505050565b6000613c43613c3e846149fe565b6149ad565b905082815260208101848484011115613c5b57600080fd5b613c66848285614d72565b509392505050565b6000613c81613c7c84614a2f565b6149ad565b905082815260208101848484011115613c9957600080fd5b613ca4848285614d72565b509392505050565b600081359050613cbb81615275565b92915050565b600081359050613cd08161528c565b92915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613bc4565b91505092915050565b60008083601f840112613d1257600080fd5b8235905067ffffffffffffffff811115613d2b57600080fd5b602083019150836020820283011115613d4357600080fd5b9250929050565b600081359050613d59816152a3565b92915050565b600081519050613d6e816152a3565b92915050565b600081359050613d83816152ba565b92915050565b600081359050613d98816152d1565b92915050565b600081519050613dad816152d1565b92915050565b600082601f830112613dc457600080fd5b8135613dd4848260208601613c30565b91505092915050565b600082601f830112613dee57600080fd5b8135613dfe848260208601613c6e565b91505092915050565b600081359050613e16816152e8565b92915050565b600081519050613e2b816152e8565b92915050565b600060208284031215613e4357600080fd5b6000613e5184828501613cac565b91505092915050565b600060208284031215613e6c57600080fd5b6000613e7a84828501613cc1565b91505092915050565b60008060408385031215613e9657600080fd5b6000613ea485828601613cac565b9250506020613eb585828601613cac565b9150509250929050565b600080600060608486031215613ed457600080fd5b6000613ee286828701613cac565b9350506020613ef386828701613cac565b9250506040613f0486828701613e07565b9150509250925092565b60008060008060808587031215613f2457600080fd5b6000613f3287828801613cac565b9450506020613f4387828801613cac565b9350506040613f5487828801613e07565b925050606085013567ffffffffffffffff811115613f7157600080fd5b613f7d87828801613db3565b91505092959194509250565b60008060408385031215613f9c57600080fd5b6000613faa85828601613cac565b9250506020613fbb85828601613d4a565b9150509250929050565b60008060408385031215613fd857600080fd5b6000613fe685828601613cac565b9250506020613ff785828601613e07565b9150509250929050565b60006020828403121561401357600080fd5b600082013567ffffffffffffffff81111561402d57600080fd5b61403984828501613cd6565b91505092915050565b6000806020838503121561405557600080fd5b600083013567ffffffffffffffff81111561406f57600080fd5b61407b85828601613d00565b92509250509250929050565b60006020828403121561409957600080fd5b60006140a784828501613d5f565b91505092915050565b600080604083850312156140c357600080fd5b60006140d185828601613d74565b92505060206140e285828601613e07565b9150509250929050565b6000602082840312156140fe57600080fd5b600061410c84828501613d89565b91505092915050565b60006020828403121561412757600080fd5b600061413584828501613d9e565b91505092915050565b6000806000806080858703121561415457600080fd5b600085013567ffffffffffffffff81111561416e57600080fd5b61417a87828801613ddd565b945050602085013567ffffffffffffffff81111561419757600080fd5b6141a387828801613ddd565b93505060406141b487828801613d4a565b92505060606141c587828801613d4a565b91505092959194509250565b6000602082840312156141e357600080fd5b60006141f184828501613e07565b91505092915050565b60006020828403121561420c57600080fd5b600061421a84828501613e1c565b91505092915050565b61422c81614cd5565b82525050565b61423b81614cf9565b82525050565b61424a81614d05565b82525050565b61426161425c82614d05565b614e8a565b82525050565b600061427282614a75565b61427c8185614a8b565b935061428c818560208601614d81565b61429581614f8b565b840191505092915050565b60006142ab82614a80565b6142b58185614a9c565b93506142c5818560208601614d81565b6142ce81614f8b565b840191505092915050565b60006142e482614a80565b6142ee8185614aad565b93506142fe818560208601614d81565b80840191505092915050565b6000815461431781614dde565b6143218186614aad565b9450600182166000811461433c576001811461434d57614380565b60ff19831686528186019350614380565b61435685614a60565b60005b8381101561437857815481890152600182019150602081019050614359565b838801955050505b50505092915050565b6000614396600583614a9c565b91506143a182614f9c565b602082019050919050565b60006143b9602a83614a9c565b91506143c482614fc5565b604082019050919050565b60006143dc602683614a9c565b91506143e782615014565b604082019050919050565b60006143ff602d83614a9c565b915061440a82615063565b604082019050919050565b6000614422600f83614a9c565b915061442d826150b2565b602082019050919050565b6000614445601383614a9c565b9150614450826150db565b602082019050919050565b6000614468601283614a9c565b915061447382615104565b602082019050919050565b600061448b600d83614a9c565b91506144968261512d565b602082019050919050565b60006144ae600d83614a9c565b91506144b982615156565b602082019050919050565b60006144d1600583614aad565b91506144dc8261517f565b600582019050919050565b60006144f4601283614a9c565b91506144ff826151a8565b602082019050919050565b6000614517602083614a9c565b9150614522826151d1565b602082019050919050565b600061453a601f83614a9c565b9150614545826151fa565b602082019050919050565b600061455d601a83614a9c565b915061456882615223565b602082019050919050565b6000614580601e83614a9c565b915061458b8261524c565b602082019050919050565b61459f81614d68565b82525050565b6145b66145b182614d68565b614e94565b82525050565b60006145c88285614250565b6020820191506145d88284614250565b6020820191508190509392505050565b60006145f48285614250565b60208201915061460482846145a5565b6020820191508190509392505050565b6000614620828561430a565b915061462c82846142d9565b91508190509392505050565b6000614644828561430a565b915061465082846142d9565b915061465b826144c4565b91508190509392505050565b600060208201905061467c6000830184614223565b92915050565b60006080820190506146976000830187614223565b6146a46020830186614223565b6146b16040830185614596565b81810360608301526146c38184614267565b905095945050505050565b60006060820190506146e36000830186614223565b6146f06020830185614596565b81810360408301526147028184614267565b9050949350505050565b60006020820190506147216000830184614232565b92915050565b600060208201905061473c6000830184614241565b92915050565b60006040820190506147576000830185614241565b6147646020830184614596565b9392505050565b60006080820190506147806000830187614241565b61478d6020830186614596565b61479a6040830185614223565b6147a76060830184614596565b95945050505050565b600060208201905081810360008301526147ca81846142a0565b905092915050565b600060208201905081810360008301526147eb81614389565b9050919050565b6000602082019050818103600083015261480b816143ac565b9050919050565b6000602082019050818103600083015261482b816143cf565b9050919050565b6000602082019050818103600083015261484b816143f2565b9050919050565b6000602082019050818103600083015261486b81614415565b9050919050565b6000602082019050818103600083015261488b81614438565b9050919050565b600060208201905081810360008301526148ab8161445b565b9050919050565b600060208201905081810360008301526148cb8161447e565b9050919050565b600060208201905081810360008301526148eb816144a1565b9050919050565b6000602082019050818103600083015261490b816144e7565b9050919050565b6000602082019050818103600083015261492b8161450a565b9050919050565b6000602082019050818103600083015261494b8161452d565b9050919050565b6000602082019050818103600083015261496b81614550565b9050919050565b6000602082019050818103600083015261498b81614573565b9050919050565b60006020820190506149a76000830184614596565b92915050565b60006149b76149c8565b90506149c38282614e10565b919050565b6000604051905090565b600067ffffffffffffffff8211156149ed576149ec614f5c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a1957614a18614f5c565b5b614a2282614f8b565b9050602081019050919050565b600067ffffffffffffffff821115614a4a57614a49614f5c565b5b614a5382614f8b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614ac382614d3b565b9150614ace83614d3b565b9250816f7fffffffffffffffffffffffffffffff03831360008312151615614af957614af8614ecf565b5b817fffffffffffffffffffffffffffffffff80000000000000000000000000000000038312600083121615614b3157614b30614ecf565b5b828201905092915050565b6000614b4782614d68565b9150614b5283614d68565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b8757614b86614ecf565b5b828201905092915050565b6000614b9d82614d68565b9150614ba883614d68565b925082614bb857614bb7614efe565b5b828204905092915050565b6000614bce82614d68565b9150614bd983614d68565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c1257614c11614ecf565b5b828202905092915050565b6000614c2882614d3b565b9150614c3383614d3b565b9250827fffffffffffffffffffffffffffffffff8000000000000000000000000000000001821260008412151615614c6e57614c6d614ecf565b5b826f7fffffffffffffffffffffffffffffff018213600084121615614c9657614c95614ecf565b5b828203905092915050565b6000614cac82614d68565b9150614cb783614d68565b925082821015614cca57614cc9614ecf565b5b828203905092915050565b6000614ce082614d48565b9050919050565b6000614cf282614d48565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d9f578082015181840152602081019050614d84565b83811115614dae576000848401525b50505050565b6000614dbf82614d68565b91506000821415614dd357614dd2614ecf565b5b600182039050919050565b60006002820490506001821680614df657607f821691505b60208210811415614e0a57614e09614f2d565b5b50919050565b614e1982614f8b565b810181811067ffffffffffffffff82111715614e3857614e37614f5c565b5b80604052505050565b6000614e4c82614d68565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7f57614e7e614ecf565b5b600182019050919050565b6000819050919050565b6000819050919050565b6000614ea982614d68565b9150614eb483614d68565b925082614ec457614ec3614efe565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f66696e616c000000000000000000000000000000000000000000000000000000600082015250565b7f4f6e6c7920757020746f203520747562626965732063616e206265206d696e7460008201527f6564206174206f6e636500000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460008201527f6865207265616c206f776e657200000000000000000000000000000000000000602082015250565b7f616c726561647920636c61696d65640000000000000000000000000000000000600082015250565b7f746f74616c537570706c7920746f6f206c6f7700000000000000000000000000600082015250565b7f77726f6e67206d65726b6c652070726f6f660000000000000000000000000000600082015250565b7f77726f6e67207061796d656e7400000000000000000000000000000000000000600082015250565b7f6c696d6974207265616368656400000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f616c72656164792061697264726f707065640000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204c494e4b20746f2070617920666565000000000000600082015250565b7f5075626c69632073616c65206861736e27742073746172746564207965740000600082015250565b61527e81614cd5565b811461528957600080fd5b50565b61529581614ce7565b81146152a057600080fd5b50565b6152ac81614cf9565b81146152b757600080fd5b50565b6152c381614d05565b81146152ce57600080fd5b50565b6152da81614d0f565b81146152e557600080fd5b50565b6152f181614d68565b81146152fc57600080fd5b5056fea264697066735822122083a4c4b25cb941b1068fd75be22cb732f66e4b4662ee15faf366d73a55b3dff764736f6c63430008040033432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79520000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5562544e4a33746e4d795331344a56614c415a6a33755043784b44414b6e58444a5853317046747055484c392f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5745734632337a4d3243316166613647395877674268714a73504839437951544470546f6170314d4434556e0000000000000000000000
Deployed Bytecode
0x6080604052600436106102305760003560e01c806370a082311161012e578063b77a147b116100ab578063e9d1dd691161006f578063e9d1dd6914610856578063ed3d161d1461087f578063f2fde38b146108aa578063f4319195146108d3578063f8b4d981146108fe57610230565b8063b77a147b1461075a578063b88d4fde14610776578063c87b56dd1461079f578063c884ef83146107dc578063e985e9c51461081957610230565b806394985ddd116100f257806394985ddd1461068757806395d89b41146106b05780639f2063da146106db578063a22cb46514610706578063b3f05b971461072f57610230565b806370a08231146105a2578063715018a6146105df578063729ad39e146105f6578063777c90911461061f5780638da5cb5b1461065c57610230565b80631df270f3116101bc57806342842e0e1161018057806342842e0e146104bb57806359cc5f24146104e45780636352211e1461050f5780636c0360eb1461054c5780637035bf181461057757610230565b80631df270f3146103ea57806323b872dd146104155780632ad220521461043e5780632cff6770146104675780632eb4a7ab1461049057610230565b8063095ea7b311610203578063095ea7b31461030557806309af3f9a1461032e57806309f8f9341461035757806318160ddd1461039457806319cc02aa146103bf57610230565b806301ffc9a714610235578063031bd4c41461027257806306fdde031461029d578063081812fc146102c8575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906140ec565b61091a565b604051610269919061470c565b60405180910390f35b34801561027e57600080fd5b506102876109fc565b6040516102949190614992565b60405180910390f35b3480156102a957600080fd5b506102b2610a02565b6040516102bf91906147b0565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea91906141d1565b610a94565b6040516102fc9190614667565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190613fc5565b610b10565b005b34801561033a57600080fd5b5061035560048036038101906103509190613e31565b610c1b565b005b34801561036357600080fd5b5061037e600480360381019061037991906141d1565b610cb7565b60405161038b9190614727565b60405180910390f35b3480156103a057600080fd5b506103a9610ebe565b6040516103b69190614992565b60405180910390f35b3480156103cb57600080fd5b506103d4610ecc565b6040516103e1919061470c565b60405180910390f35b3480156103f657600080fd5b506103ff610edf565b60405161040c9190614667565b60405180910390f35b34801561042157600080fd5b5061043c60048036038101906104379190613ebf565b610f05565b005b34801561044a57600080fd5b5061046560048036038101906104609190613e5a565b610f15565b005b34801561047357600080fd5b5061048e60048036038101906104899190613e31565b610fef565b005b34801561049c57600080fd5b506104a56110c3565b6040516104b29190614727565b60405180910390f35b3480156104c757600080fd5b506104e260048036038101906104dd9190613ebf565b6110e7565b005b3480156104f057600080fd5b506104f9611107565b604051610506919061470c565b60405180910390f35b34801561051b57600080fd5b50610536600480360381019061053191906141d1565b61111a565b6040516105439190614667565b60405180910390f35b34801561055857600080fd5b50610561611130565b60405161056e91906147b0565b60405180910390f35b34801561058357600080fd5b5061058c6111be565b60405161059991906147b0565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c49190613e31565b61124c565b6040516105d69190614992565b60405180910390f35b3480156105eb57600080fd5b506105f461131c565b005b34801561060257600080fd5b5061061d60048036038101906106189190614001565b6113a4565b005b34801561062b57600080fd5b50610646600480360381019061064191906141d1565b611525565b6040516106539190614992565b60405180910390f35b34801561066857600080fd5b5061067161153d565b60405161067e9190614667565b60405180910390f35b34801561069357600080fd5b506106ae60048036038101906106a991906140b0565b611567565b005b3480156106bc57600080fd5b506106c5611603565b6040516106d291906147b0565b60405180910390f35b3480156106e757600080fd5b506106f0611695565b6040516106fd9190614992565b60405180910390f35b34801561071257600080fd5b5061072d60048036038101906107289190613f89565b61169b565b005b34801561073b57600080fd5b50610744611813565b604051610751919061470c565b60405180910390f35b610774600480360381019061076f9190614042565b611826565b005b34801561078257600080fd5b5061079d60048036038101906107989190613f0e565b611a82565b005b3480156107ab57600080fd5b506107c660048036038101906107c191906141d1565b611ad5565b6040516107d391906147b0565b60405180910390f35b3480156107e857600080fd5b5061080360048036038101906107fe9190613e31565b611c07565b604051610810919061470c565b60405180910390f35b34801561082557600080fd5b50610840600480360381019061083b9190613e83565b611c27565b60405161084d919061470c565b60405180910390f35b34801561086257600080fd5b5061087d6004803603810190610878919061413e565b611cbb565b005b34801561088b57600080fd5b50610894611e09565b6040516108a19190614992565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190613e31565b611e2d565b005b3480156108df57600080fd5b506108e8611f25565b6040516108f59190614992565b60405180910390f35b610918600480360381019061091391906141d1565b611f2b565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f557506109f48261208e565b5b9050919050565b614e2081565b606060028054610a1190614dde565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3d90614dde565b8015610a8a5780601f10610a5f57610100808354040283529160200191610a8a565b820191906000526020600020905b815481529060010190602001808311610a6d57829003601f168201915b5050505050905090565b6000610a9f826120f8565b610ad5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1b8261111a565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b83576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ba2612132565b73ffffffffffffffffffffffffffffffffffffffff1614158015610bd45750610bd281610bcd612132565b611c27565b155b15610c0b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c1683838361213a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca290614832565b60405180910390fd5b610cb4816121ec565b50565b60003373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090614832565b60405180910390fd5b6103e8601054610d599190614b3c565b610d61610ebe565b1015610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614872565b60405180910390fd5b817f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dfc9190614667565b60206040518083038186803b158015610e1457600080fd5b505afa158015610e28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4c91906141fa565b1015610e8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8490614952565b60405180910390fd5b610eb77faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445836122b2565b9050919050565b600060015460005403905090565b600e60029054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f10838383612414565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90614832565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610feb573d6000803e3d6000fd5b5050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461107f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107690614832565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d81565b61110283838360405180602001604052806000815250611a82565b505050565b600e60019054906101000a900460ff1681565b600061112582612905565b600001519050919050565b600c805461113d90614dde565b80601f016020809104026020016040519081016040528092919081815260200182805461116990614dde565b80156111b65780601f1061118b576101008083540402835291602001916111b6565b820191906000526020600020905b81548152906001019060200180831161119957829003601f168201915b505050505081565b600d80546111cb90614dde565b80601f01602080910402602001604051908101604052809291908181526020018280546111f790614dde565b80156112445780601f1061121957610100808354040283529160200191611244565b820191906000526020600020905b81548152906001019060200180831161122757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112b4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611324612132565b73ffffffffffffffffffffffffffffffffffffffff1661134261153d565b73ffffffffffffffffffffffffffffffffffffffff1614611398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138f90614912565b60405180910390fd5b6113a260006121ec565b565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142b90614832565b60405180910390fd5b60001515600e60029054906101000a900460ff1615151461148a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611481906148f2565b60405180910390fd5b60005b8151811015611506576114f38282815181106114d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516001604051806020016040528060008152506000612b81565b80806114fe90614e41565b91505061148d565b506001600e60026101000a81548160ff02191690831515021790555050565b600b6020528060005260406000206000915090505481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec90614932565b60405180910390fd5b6115ff8282612eb8565b5050565b60606003805461161290614dde565b80601f016020809104026020016040519081016040528092919081815260200182805461163e90614dde565b801561168b5780601f106116605761010080835404028352916020019161168b565b820191906000526020600020905b81548152906001019060200180831161166e57829003601f168201915b5050505050905090565b6103e881565b6116a3612132565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611708576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611715612132565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117c2612132565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611807919061470c565b60405180910390a35050565b600e60009054906101000a900460ff1681565b6001151561189e838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d61189933612f79565b612f9c565b1515146118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d790614892565b60405180910390fd5b60001515600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196a90614852565b60405180910390fd5b6001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555067016345785d8a00003414611a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0c906148b2565b60405180910390fd5b611a32336001604051806020016040528060008152506000612b81565b614e20611a3d610ebe565b1115611a7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a75906148d2565b60405180910390fd5b5050565b611a8d848484612414565b611a9984848484612fb3565b611acf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6060600e60019054906101000a900460ff16611b1d57600c611af683613141565b604051602001611b07929190614614565b6040516020818303038152906040529050611c02565b6010548210611bb857600d8054611b3390614dde565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5f90614dde565b8015611bac5780601f10611b8157610100808354040283529160200191611bac565b820191906000526020600020905b815481529060010190602001808311611b8f57829003601f168201915b50505050509050611c02565b60006103e883611bc89190614b92565b9050600c611bde611bd985846132ee565b613141565b604051602001611bef929190614638565b6040516020818303038152906040529150505b919050565b600f6020528060005260406000206000915054906101000a900460ff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4290614832565b60405180910390fd5b60001515600e60009054906101000a900460ff16151514611da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d98906147d2565b60405180910390fd5b83600c9080519060200190611db7929190613a90565b5082600d9080519060200190611dce929190613a90565b5081600e60006101000a81548160ff02191690831515021790555080600e60016101000a81548160ff02191690831515021790555050505050565b7f00000000000000000000000000000000000000000000000000000000621664c181565b611e35612132565b73ffffffffffffffffffffffffffffffffffffffff16611e5361153d565b73ffffffffffffffffffffffffffffffffffffffff1614611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090614912565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1090614812565b60405180910390fd5b611f22816121ec565b50565b60105481565b7f00000000000000000000000000000000000000000000000000000000621664c14211611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8490614972565b60405180910390fd5b6005811115611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc8906147f2565b60405180910390fd5b600067016345785d8a000082029050803414612022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612019906148b2565b60405180910390fd5b61203e3383604051806020016040528060008152506000612b81565b614e20612049610ebe565b111561208a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612081906148d2565b60405180910390fd5b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080548210801561212b575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001612326929190614742565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401612353939291906146ce565b602060405180830381600087803b15801561236d57600080fd5b505af1158015612381573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a59190614087565b5060006123c884600030600a600089815260200190815260200160002054613340565b90506001600a6000868152602001908152602001600020546123ea9190614b3c565b600a60008681526020019081526020016000208190555061240b848261337c565b91505092915050565b600061241f82612905565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612446612132565b73ffffffffffffffffffffffffffffffffffffffff16148061247957506124788260000151612473612132565b611c27565b5b806124be5750612487612132565b73ffffffffffffffffffffffffffffffffffffffff166124a684610a94565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806124f7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612560576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156125c7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125d485858560016133af565b6125e4600084846000015161213a565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612895576000548110156128945782600001516004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128fe85858560016133b5565b5050505050565b61290d613b16565b6000829050600054811015612b4a576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b4857600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a2c578092505050612b7c565b5b600115612b4757818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b42578092505050612b7c565b612a2d565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612bee576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415612c29576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c3660008683876133af565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015612e9b57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4838015612e4f5750612e4d6000888488612fb3565b155b15612e86576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050612dd4565b508060008190555050612eb160008683876133b5565b5050505050565b6103e8601054612ec89190614b3c565b612ed0610ebe565b1015612f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0890614872565b60405180910390fd5b60006103e8601054612f239190614b92565b90506103e881612f339190614bc3565b614e20612f409190614ca1565b82612f4b9190614e9e565b600b6000838152602001908152602001600020819055506103e8601060008282540192505081905550505050565b60008173ffffffffffffffffffffffffffffffffffffffff1660001b9050919050565b600082612fa985846133bb565b1490509392505050565b6000612fd48473ffffffffffffffffffffffffffffffffffffffff16613494565b15613134578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ffd612132565b8786866040518563ffffffff1660e01b815260040161301f9493929190614682565b602060405180830381600087803b15801561303957600080fd5b505af192505050801561306a57506040513d601f19601f820116820180604052508101906130679190614115565b60015b6130e4573d806000811461309a576040519150601f19603f3d011682016040523d82523d6000602084013e61309f565b606091505b506000815114156130dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613139565b600190505b949350505050565b60606000821415613189576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132e9565b600082905060005b600082146131bb5780806131a490614e41565b915050600a826131b49190614b92565b9150613191565b60008167ffffffffffffffff8111156131fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561322f5781602001600182028036833780820191505090505b5090505b600085146132e2576001826132489190614ca1565b9150600a856132579190614e9e565b60306132639190614b3c565b60f81b81838151811061329f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132db9190614b92565b9450613233565b8093505050505b919050565b6000806132fa836134a7565b90506000600b6000858152602001908152602001600020546103e8866133209190614e9e565b61332a9190614b3c565b90506133368183613524565b9250505092915050565b600084848484604051602001613359949392919061476b565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016133919291906145e8565b60405160208183030381529060405280519060200120905092915050565b50505050565b50505050565b60008082905060005b8451811015613489576000858281518110613408577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161344957828160405160200161342c9291906145bc565b604051602081830303815290604052805190602001209250613475565b808360405160200161345c9291906145bc565b6040516020818303038152906040528051906020012092505b50808061348190614e41565b9150506133c4565b508091505092915050565b600080823b905060008111915050919050565b6134af613b59565b6134b7613b59565b6000805b848110156135195760006134e2600b60008481526020019081526020016000205485613524565b905060006103e8826134f49190614ab8565b9050613502858383876136f8565b93505050808061351190614e41565b9150506134bb565b508192505050919050565b6000808390506000805b60028110156136ce5760005b60026103e8614e2061354c9190614b92565b6135569190614bc3565b811015613680576000868260288110613598577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160000151905060008783602881106135de577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b121561365857600086866136059190614ab8565b905082600f0b81600f0b121561363657806fffffffffffffffffffffffffffffffff169750505050505050506136f2565b85836136429190614c1d565b8761364d9190614c1d565b96508195505061366b565b80600f0b85600f0b121561366a578094505b5b5050808061367890614e41565b91505061353a565b50614e20600f0b83836136939190614ab8565b600f0b126136bb5781614e206136a99190614c1d565b836136b49190614c1d565b9250600091505b80806136c690614e41565b91505061352e565b5081816136db9190614ab8565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b60008082905060005b83811015613908576000878260288110613744577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151600001519050600088836028811061378a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b1280156137a957508584145b156137b2578293505b81600f0b88600f0b1280156137cc575081600f0b87600f0b135b806137ef575087600f0b82600f0b131580156137ee575080600f0b87600f0b13155b5b80613810575080600f0b88600f0b12801561380f575080600f0b87600f0b135b5b156138f357600088886138239190614c1d565b905061382f8984613a71565b9850828261383d9190614c1d565b818a6138499190614ab8565b6138539190614ab8565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a85602881106138e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b5050808061390090614e41565b915050613701565b5060008390505b818111156139b557866001826139259190614ca1565b6028811061395c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015187826028811061399a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002018190525080806139ad90614db4565b91505061390f565b50604051806040016040528086600f0b81526020016139d686614e20613a71565b600f0b815250868260288110613a15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052508280613a2890614e41565b935050614e20600f0b84600f0b1315613a6557613a55866000614e2087613a4f9190614c1d565b866136f8565b508280613a6190614e41565b9350505b82915050949350505050565b600081600f0b83600f0b12613a865781613a88565b825b905092915050565b828054613a9c90614dde565b90600052602060002090601f016020900481019282613abe5760008555613b05565b82601f10613ad757805160ff1916838001178555613b05565b82800160010185558215613b05579182015b82811115613b04578251825591602001919060010190613ae9565b5b509050613b129190613b87565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b6040518061050001604052806028905b613b71613ba4565b815260200190600190039081613b695790505090565b5b80821115613ba0576000816000905550600101613b88565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000613bd7613bd2846149d2565b6149ad565b90508083825260208201905082856020860282011115613bf657600080fd5b60005b85811015613c265781613c0c8882613cac565b845260208401935060208301925050600181019050613bf9565b5050509392505050565b6000613c43613c3e846149fe565b6149ad565b905082815260208101848484011115613c5b57600080fd5b613c66848285614d72565b509392505050565b6000613c81613c7c84614a2f565b6149ad565b905082815260208101848484011115613c9957600080fd5b613ca4848285614d72565b509392505050565b600081359050613cbb81615275565b92915050565b600081359050613cd08161528c565b92915050565b600082601f830112613ce757600080fd5b8135613cf7848260208601613bc4565b91505092915050565b60008083601f840112613d1257600080fd5b8235905067ffffffffffffffff811115613d2b57600080fd5b602083019150836020820283011115613d4357600080fd5b9250929050565b600081359050613d59816152a3565b92915050565b600081519050613d6e816152a3565b92915050565b600081359050613d83816152ba565b92915050565b600081359050613d98816152d1565b92915050565b600081519050613dad816152d1565b92915050565b600082601f830112613dc457600080fd5b8135613dd4848260208601613c30565b91505092915050565b600082601f830112613dee57600080fd5b8135613dfe848260208601613c6e565b91505092915050565b600081359050613e16816152e8565b92915050565b600081519050613e2b816152e8565b92915050565b600060208284031215613e4357600080fd5b6000613e5184828501613cac565b91505092915050565b600060208284031215613e6c57600080fd5b6000613e7a84828501613cc1565b91505092915050565b60008060408385031215613e9657600080fd5b6000613ea485828601613cac565b9250506020613eb585828601613cac565b9150509250929050565b600080600060608486031215613ed457600080fd5b6000613ee286828701613cac565b9350506020613ef386828701613cac565b9250506040613f0486828701613e07565b9150509250925092565b60008060008060808587031215613f2457600080fd5b6000613f3287828801613cac565b9450506020613f4387828801613cac565b9350506040613f5487828801613e07565b925050606085013567ffffffffffffffff811115613f7157600080fd5b613f7d87828801613db3565b91505092959194509250565b60008060408385031215613f9c57600080fd5b6000613faa85828601613cac565b9250506020613fbb85828601613d4a565b9150509250929050565b60008060408385031215613fd857600080fd5b6000613fe685828601613cac565b9250506020613ff785828601613e07565b9150509250929050565b60006020828403121561401357600080fd5b600082013567ffffffffffffffff81111561402d57600080fd5b61403984828501613cd6565b91505092915050565b6000806020838503121561405557600080fd5b600083013567ffffffffffffffff81111561406f57600080fd5b61407b85828601613d00565b92509250509250929050565b60006020828403121561409957600080fd5b60006140a784828501613d5f565b91505092915050565b600080604083850312156140c357600080fd5b60006140d185828601613d74565b92505060206140e285828601613e07565b9150509250929050565b6000602082840312156140fe57600080fd5b600061410c84828501613d89565b91505092915050565b60006020828403121561412757600080fd5b600061413584828501613d9e565b91505092915050565b6000806000806080858703121561415457600080fd5b600085013567ffffffffffffffff81111561416e57600080fd5b61417a87828801613ddd565b945050602085013567ffffffffffffffff81111561419757600080fd5b6141a387828801613ddd565b93505060406141b487828801613d4a565b92505060606141c587828801613d4a565b91505092959194509250565b6000602082840312156141e357600080fd5b60006141f184828501613e07565b91505092915050565b60006020828403121561420c57600080fd5b600061421a84828501613e1c565b91505092915050565b61422c81614cd5565b82525050565b61423b81614cf9565b82525050565b61424a81614d05565b82525050565b61426161425c82614d05565b614e8a565b82525050565b600061427282614a75565b61427c8185614a8b565b935061428c818560208601614d81565b61429581614f8b565b840191505092915050565b60006142ab82614a80565b6142b58185614a9c565b93506142c5818560208601614d81565b6142ce81614f8b565b840191505092915050565b60006142e482614a80565b6142ee8185614aad565b93506142fe818560208601614d81565b80840191505092915050565b6000815461431781614dde565b6143218186614aad565b9450600182166000811461433c576001811461434d57614380565b60ff19831686528186019350614380565b61435685614a60565b60005b8381101561437857815481890152600182019150602081019050614359565b838801955050505b50505092915050565b6000614396600583614a9c565b91506143a182614f9c565b602082019050919050565b60006143b9602a83614a9c565b91506143c482614fc5565b604082019050919050565b60006143dc602683614a9c565b91506143e782615014565b604082019050919050565b60006143ff602d83614a9c565b915061440a82615063565b604082019050919050565b6000614422600f83614a9c565b915061442d826150b2565b602082019050919050565b6000614445601383614a9c565b9150614450826150db565b602082019050919050565b6000614468601283614a9c565b915061447382615104565b602082019050919050565b600061448b600d83614a9c565b91506144968261512d565b602082019050919050565b60006144ae600d83614a9c565b91506144b982615156565b602082019050919050565b60006144d1600583614aad565b91506144dc8261517f565b600582019050919050565b60006144f4601283614a9c565b91506144ff826151a8565b602082019050919050565b6000614517602083614a9c565b9150614522826151d1565b602082019050919050565b600061453a601f83614a9c565b9150614545826151fa565b602082019050919050565b600061455d601a83614a9c565b915061456882615223565b602082019050919050565b6000614580601e83614a9c565b915061458b8261524c565b602082019050919050565b61459f81614d68565b82525050565b6145b66145b182614d68565b614e94565b82525050565b60006145c88285614250565b6020820191506145d88284614250565b6020820191508190509392505050565b60006145f48285614250565b60208201915061460482846145a5565b6020820191508190509392505050565b6000614620828561430a565b915061462c82846142d9565b91508190509392505050565b6000614644828561430a565b915061465082846142d9565b915061465b826144c4565b91508190509392505050565b600060208201905061467c6000830184614223565b92915050565b60006080820190506146976000830187614223565b6146a46020830186614223565b6146b16040830185614596565b81810360608301526146c38184614267565b905095945050505050565b60006060820190506146e36000830186614223565b6146f06020830185614596565b81810360408301526147028184614267565b9050949350505050565b60006020820190506147216000830184614232565b92915050565b600060208201905061473c6000830184614241565b92915050565b60006040820190506147576000830185614241565b6147646020830184614596565b9392505050565b60006080820190506147806000830187614241565b61478d6020830186614596565b61479a6040830185614223565b6147a76060830184614596565b95945050505050565b600060208201905081810360008301526147ca81846142a0565b905092915050565b600060208201905081810360008301526147eb81614389565b9050919050565b6000602082019050818103600083015261480b816143ac565b9050919050565b6000602082019050818103600083015261482b816143cf565b9050919050565b6000602082019050818103600083015261484b816143f2565b9050919050565b6000602082019050818103600083015261486b81614415565b9050919050565b6000602082019050818103600083015261488b81614438565b9050919050565b600060208201905081810360008301526148ab8161445b565b9050919050565b600060208201905081810360008301526148cb8161447e565b9050919050565b600060208201905081810360008301526148eb816144a1565b9050919050565b6000602082019050818103600083015261490b816144e7565b9050919050565b6000602082019050818103600083015261492b8161450a565b9050919050565b6000602082019050818103600083015261494b8161452d565b9050919050565b6000602082019050818103600083015261496b81614550565b9050919050565b6000602082019050818103600083015261498b81614573565b9050919050565b60006020820190506149a76000830184614596565b92915050565b60006149b76149c8565b90506149c38282614e10565b919050565b6000604051905090565b600067ffffffffffffffff8211156149ed576149ec614f5c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a1957614a18614f5c565b5b614a2282614f8b565b9050602081019050919050565b600067ffffffffffffffff821115614a4a57614a49614f5c565b5b614a5382614f8b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614ac382614d3b565b9150614ace83614d3b565b9250816f7fffffffffffffffffffffffffffffff03831360008312151615614af957614af8614ecf565b5b817fffffffffffffffffffffffffffffffff80000000000000000000000000000000038312600083121615614b3157614b30614ecf565b5b828201905092915050565b6000614b4782614d68565b9150614b5283614d68565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b8757614b86614ecf565b5b828201905092915050565b6000614b9d82614d68565b9150614ba883614d68565b925082614bb857614bb7614efe565b5b828204905092915050565b6000614bce82614d68565b9150614bd983614d68565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c1257614c11614ecf565b5b828202905092915050565b6000614c2882614d3b565b9150614c3383614d3b565b9250827fffffffffffffffffffffffffffffffff8000000000000000000000000000000001821260008412151615614c6e57614c6d614ecf565b5b826f7fffffffffffffffffffffffffffffff018213600084121615614c9657614c95614ecf565b5b828203905092915050565b6000614cac82614d68565b9150614cb783614d68565b925082821015614cca57614cc9614ecf565b5b828203905092915050565b6000614ce082614d48565b9050919050565b6000614cf282614d48565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081600f0b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d9f578082015181840152602081019050614d84565b83811115614dae576000848401525b50505050565b6000614dbf82614d68565b91506000821415614dd357614dd2614ecf565b5b600182039050919050565b60006002820490506001821680614df657607f821691505b60208210811415614e0a57614e09614f2d565b5b50919050565b614e1982614f8b565b810181811067ffffffffffffffff82111715614e3857614e37614f5c565b5b80604052505050565b6000614e4c82614d68565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e7f57614e7e614ecf565b5b600182019050919050565b6000819050919050565b6000819050919050565b6000614ea982614d68565b9150614eb483614d68565b925082614ec457614ec3614efe565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f66696e616c000000000000000000000000000000000000000000000000000000600082015250565b7f4f6e6c7920757020746f203520747562626965732063616e206265206d696e7460008201527f6564206174206f6e636500000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460008201527f6865207265616c206f776e657200000000000000000000000000000000000000602082015250565b7f616c726561647920636c61696d65640000000000000000000000000000000000600082015250565b7f746f74616c537570706c7920746f6f206c6f7700000000000000000000000000600082015250565b7f77726f6e67206d65726b6c652070726f6f660000000000000000000000000000600082015250565b7f77726f6e67207061796d656e7400000000000000000000000000000000000000600082015250565b7f6c696d6974207265616368656400000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f616c72656164792061697264726f707065640000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204c494e4b20746f2070617920666565000000000000600082015250565b7f5075626c69632073616c65206861736e27742073746172746564207965740000600082015250565b61527e81614cd5565b811461528957600080fd5b50565b61529581614ce7565b81146152a057600080fd5b50565b6152ac81614cf9565b81146152b757600080fd5b50565b6152c381614d05565b81146152ce57600080fd5b50565b6152da81614d0f565b81146152e557600080fd5b50565b6152f181614d68565b81146152fc57600080fd5b5056fea264697066735822122083a4c4b25cb941b1068fd75be22cb732f66e4b4662ee15faf366d73a55b3dff764736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79520000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5562544e4a33746e4d795331344a56614c415a6a33755043784b44414b6e58444a5853317046747055484c392f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5745734632337a4d3243316166613647395877674268714a73504839437951544470546f6170314d4434556e0000000000000000000000
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d
Arg [1] : _baseURI (string): ipfs://QmUbTNJ3tnMyS14JVaLAZj3uPCxKDAKnXDJXS1pFtpUHL9/
Arg [2] : _unrevealedURI (string): ipfs://QmWEsF23zM2C1afa6G9XwgBhqJsPH9CyQTDpToap1MD4Un
Arg [3] : _s_keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : _linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [5] : _linkCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 432b7354b99a2b9c27e7b60d580c6ec20ba5949d2d7fc92c91ac69b4c4cfdd4d
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [5] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [7] : 697066733a2f2f516d5562544e4a33746e4d795331344a56614c415a6a337550
Arg [8] : 43784b44414b6e58444a5853317046747055484c392f00000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d5745734632337a4d324331616661364739587767426871
Arg [11] : 4a73504839437951544470546f6170314d4434556e0000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.