Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
7,777 BBFRENS
Holders
2,513
Market
Volume (24H)
0.221 ETH
Min Price (24H)
$49.40 @ 0.019700 ETH
Max Price (24H)
$75.23 @ 0.030000 ETH
Other Info
Token Contract
Balance
2 BBFRENSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BeanBagFrens
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract BeanBagFrens is ERC721, Ownable, ReentrancyGuard, VRFConsumerBase { using ECDSA for bytes32; bytes32 internal immutable LINK_KEY_HASH; uint256 internal immutable LINK_FEE; uint256 internal TOKEN_OFFSET; string internal PROVENANCE_HASH; string internal _baseTokenURI; uint256 public constant MAX_RESERVED = 123; uint256 public constant MAX_SUPPLY = 7777; uint256 public constant MINT_PRICE = 0.0777 ether; bool public revealed; address public signer; string public metadataURI; string public placeholderURI; uint256 public totalSupply; uint256 public reserved; uint256 public maxPerAddress = 2; mapping(address => uint256) public minted; mapping(bytes4 => bool) public locked; constructor( address vrfCoordinator, address linkToken, bytes32 keyHash, uint256 linkFee ) ERC721("BeanBagFrens", "BBFRENS") VRFConsumerBase(vrfCoordinator, linkToken) { LINK_KEY_HASH = keyHash; LINK_FEE = linkFee; } /** * @notice Modifier applied to functions that will be disabled when they're no longer needed */ modifier lockable() { require(!locked[msg.sig], "Function is locked"); _; } /** * @notice Lock individual functions that are no longer needed * @dev Only affects functions with the lockable modifier * @param id First 4 bytes of the calldata (i.e. function identifier) */ function lockFunction(bytes4 id) public onlyOwner { locked[id] = true; } /** * @notice Override ERC721 _baseURI function to use base URI pattern */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @notice Return token metadata * @param tokenId to return metadata for * @return token URI for the specified token */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return revealed ? ERC721.tokenURI(tokenId) : placeholderURI; } /** * @notice Token offset is added to the token ID (wrapped on overflow) to get metadata asset index */ function tokenOffset() public view returns (uint256) { require(TOKEN_OFFSET != 0, "Offset is not set"); return TOKEN_OFFSET; } /** * @notice Provenance hash is used as proof that token metadata has not been modified */ function provenanceHash() public view returns (string memory) { require(bytes(PROVENANCE_HASH).length != 0, "Provenance hash is not set"); return PROVENANCE_HASH; } /** * @notice Set token offset using Chainlink VRF * @dev https://docs.chain.link/docs/chainlink-vrf/ * @dev Can only be set once * @dev Provenance hash must already be set */ function setTokenOffset() public onlyOwner { require(TOKEN_OFFSET == 0, "Offset is already set"); provenanceHash(); requestRandomness(LINK_KEY_HASH, LINK_FEE); } /** * @notice Set provenance hash * @dev Can only be set once * @param _provenanceHash metadata proof string */ function setProvenanceHash(string memory _provenanceHash) public onlyOwner { require(bytes(PROVENANCE_HASH).length == 0, "Provenance hash is already set"); PROVENANCE_HASH = _provenanceHash; } /** * @notice Flip token metadata to revealed * @dev Can only be revealed after token offset has been set */ function flipRevealed() public lockable onlyOwner { tokenOffset(); revealed = !revealed; } /** * @notice Reserves to various addresses * @dev Can be locked * @param amount of tokens to be reserved * @param to address to receive reserved tokens */ function reserve(uint256 amount, address to) public lockable onlyOwner { require(reserved + amount <= MAX_RESERVED, "Exceeds maximum number of reserved tokens"); require(totalSupply + amount <= MAX_SUPPLY, "Insufficient supply"); for (uint256 i = 0; i < amount; i++) { _safeMint(to, totalSupply); totalSupply += 1; } reserved += amount; } /** * @notice Set signature signing address * @param _signer address of account used to create mint signatures */ function setSigner(address _signer) public lockable onlyOwner { signer = _signer; } /** * @notice Set base token URI * @param URI base metadata URI to be prepended to token ID */ function setBaseTokenURI(string memory URI) public lockable onlyOwner { _baseTokenURI = URI; } /** * @notice Set base token URI * @param URI base metadata URI to be prepended to token ID */ function setMetadataURI(string memory URI) public lockable onlyOwner { metadataURI = URI; } /** * @notice Set placeholder token URI * @param URI placeholder metadata returned before reveal */ function setPlaceholderURI(string memory URI) public onlyOwner { placeholderURI = URI; } /** * @notice Set max mints per address * @param amount of mints a single signature is valid for */ function setMaxPerAddress(uint256 amount) public onlyOwner { maxPerAddress = amount; } /** * @notice Callback function for Chainlink VRF request randomness call * @dev Maximum offset value is the maximum token supply - 1 */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { TOKEN_OFFSET = randomness % MAX_SUPPLY; } /** * @notice Mint a Fren using a signature * @param amount of Fren to mint * @param signature created by signer account */ function mint(uint256 amount, bytes memory signature) public payable nonReentrant { require(signer == ECDSA.recover( ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(_msgSender()))), signature ), "Invalid signature"); require(totalSupply + amount <= MAX_SUPPLY, "Insufficient supply"); require(msg.value == MINT_PRICE * amount, "Invalid Ether amount sent"); require(minted[_msgSender()] + amount <= maxPerAddress, "Insufficient mints available"); for (uint256 i = 0; i < amount; i++) { _safeMint(_msgSender(), totalSupply); totalSupply += 1; } minted[_msgSender()] += amount; } /** * @notice Withdraw all ETH transferred to the contract */ function withdraw() external onlyOwner { Address.sendValue(payable(_msgSender()), address(this).balance); } /** * @notice Reclaim any unused LINK * @param amount of LINK to withdraw */ function withdrawLINK(uint256 amount) external onlyOwner { LINK.transfer(_msgSender(), amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 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 constructor(<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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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/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 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 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 // 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" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"internalType":"uint256","name":"linkFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"MAX_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"flipRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"id","type":"bytes4"}],"name":"lockFunction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"placeholderURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setPlaceholderURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTokenOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"tokenOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawLINK","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61010060405260026011553480156200001757600080fd5b50604051620061db380380620061db83398181016040528101906200003d919062000354565b83836040518060400160405280600c81526020017f4265616e4261674672656e7300000000000000000000000000000000000000008152506040518060400160405280600781526020017f42424652454e53000000000000000000000000000000000000000000000000008152508160009080519060200190620000c39291906200025f565b508060019080519060200190620000dc9291906200025f565b505050620000ff620000f36200019160201b60201c565b6200019960201b60201c565b60016007819055508173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050508160c081815250508060e0818152505050505050620004c6565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200026d906200040e565b90600052602060002090601f016020900481019282620002915760008555620002dd565b82601f10620002ac57805160ff1916838001178555620002dd565b82800160010185558215620002dd579182015b82811115620002dc578251825591602001919060010190620002bf565b5b509050620002ec9190620002f0565b5090565b5b808211156200030b576000816000905550600101620002f1565b5090565b600081519050620003208162000478565b92915050565b600081519050620003378162000492565b92915050565b6000815190506200034e81620004ac565b92915050565b6000806000806080858703121562000371576200037062000473565b5b600062000381878288016200030f565b945050602062000394878288016200030f565b9350506040620003a78782880162000326565b9250506060620003ba878288016200033d565b91505092959194509250565b6000620003d382620003e4565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200042757607f821691505b602082108114156200043e576200043d62000444565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6200048381620003c6565b81146200048f57600080fd5b50565b6200049d81620003da565b8114620004a957600080fd5b50565b620004b78162000404565b8114620004c357600080fd5b50565b60805160601c60a05160601c60c05160e051615cc76200051460003960006110b301526000611092015260008181611dae0152612959015260008181611fd0015261291d0152615cc76000f3fe6080604052600436106102675760003560e01c80636ba90c6e11610144578063a22cb465116100b6578063c87b56dd1161007a578063c87b56dd146108cc578063db7fd40814610909578063dc8c57b414610925578063e985e9c514610950578063f2fde38b1461098d578063fe60d12c146109b657610267565b8063a22cb465146107fb578063b88d4fde14610824578063bb84e74f1461084d578063c002d23d14610876578063c6ab67a3146108a157610267565b8063750521f511610108578063750521f5146106ed5780637bddd65b146107165780637c560ec91461073f5780638da5cb5b1461077c57806394985ddd146107a757806395d89b41146107d057610267565b80636ba90c6e1461061a5780636c19e7831461064557806370a082311461066e578063715018a6146106ab5780637313cba9146106c257610267565b806323b872dd116101dd5780633b2c3fb6116101a15780633b2c3fb6146105305780633ccfd60b1461054757806342842e0e1461055e57806351830227146105875780636352211e146105b2578063639814e0146105ef57610267565b806323b872dd1461046157806330176e131461048a57806332cb6b0c146104b357806334531828146104de5780633574a2dd1461050757610267565b8063095ea7b31161022f578063095ea7b3146103655780630f1876a21461038e57806310969523146103a557806318160ddd146103ce5780631e7269c5146103f9578063238ac9331461043657610267565b806301ffc9a71461026c57806303339bcb146102a957806303ee438c146102d257806306fdde03146102fd578063081812fc14610328575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e91906140be565b6109e1565b6040516102a091906149bd565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb919061418e565b610ac3565b005b3480156102de57600080fd5b506102e7610d06565b6040516102f49190614a8b565b60405180910390f35b34801561030957600080fd5b50610312610d94565b60405161031f9190614a8b565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a9190614161565b610e26565b60405161035c91906148ef565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190614011565b610eab565b005b34801561039a57600080fd5b506103a3610fc3565b005b3480156103b157600080fd5b506103cc60048036038101906103c79190614118565b6110da565b005b3480156103da57600080fd5b506103e36111c1565b6040516103f09190614eed565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b9190613e8e565b6111c7565b60405161042d9190614eed565b60405180910390f35b34801561044257600080fd5b5061044b6111df565b60405161045891906148ef565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190613efb565b611205565b005b34801561049657600080fd5b506104b160048036038101906104ac9190614118565b611265565b005b3480156104bf57600080fd5b506104c86113bd565b6040516104d59190614eed565b60405180910390f35b3480156104ea57600080fd5b50610505600480360381019061050091906140be565b6113c3565b005b34801561051357600080fd5b5061052e60048036038101906105299190614118565b6114ac565b005b34801561053c57600080fd5b50610545611542565b005b34801561055357600080fd5b5061055c6116b5565b005b34801561056a57600080fd5b5061058560048036038101906105809190613efb565b611744565b005b34801561059357600080fd5b5061059c611764565b6040516105a991906149bd565b60405180910390f35b3480156105be57600080fd5b506105d960048036038101906105d49190614161565b611777565b6040516105e691906148ef565b60405180910390f35b3480156105fb57600080fd5b50610604611829565b6040516106119190614eed565b60405180910390f35b34801561062657600080fd5b5061062f61182f565b60405161063c9190614eed565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613e8e565b611834565b005b34801561067a57600080fd5b5061069560048036038101906106909190613e8e565b6119b6565b6040516106a29190614eed565b60405180910390f35b3480156106b757600080fd5b506106c0611a6e565b005b3480156106ce57600080fd5b506106d7611af6565b6040516106e49190614a8b565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190614118565b611b84565b005b34801561072257600080fd5b5061073d60048036038101906107389190614161565b611cdc565b005b34801561074b57600080fd5b50610766600480360381019061076191906140be565b611d62565b60405161077391906149bd565b60405180910390f35b34801561078857600080fd5b50610791611d82565b60405161079e91906148ef565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c9919061407e565b611dac565b005b3480156107dc57600080fd5b506107e5611e48565b6040516107f29190614a8b565b60405180910390f35b34801561080757600080fd5b50610822600480360381019061081d9190613fd1565b611eda565b005b34801561083057600080fd5b5061084b60048036038101906108469190613f4e565b611ef0565b005b34801561085957600080fd5b50610874600480360381019061086f9190614161565b611f52565b005b34801561088257600080fd5b5061088b612086565b6040516108989190614eed565b60405180910390f35b3480156108ad57600080fd5b506108b6612092565b6040516108c39190614a8b565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee9190614161565b612176565b6040516109009190614a8b565b60405180910390f35b610923600480360381019061091e91906141ce565b612275565b005b34801561093157600080fd5b5061093a612583565b6040516109479190614eed565b60405180910390f35b34801561095c57600080fd5b5061097760048036038101906109729190613ebb565b6125d2565b60405161098491906149bd565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af9190613e8e565b612666565b005b3480156109c257600080fd5b506109cb61275e565b6040516109d89190614eed565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610abc5750610abb82612764565b5b9050919050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7c90614e0d565b60405180910390fd5b610b8d6127ce565b73ffffffffffffffffffffffffffffffffffffffff16610bab611d82565b73ffffffffffffffffffffffffffffffffffffffff1614610c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf890614ded565b60405180910390fd5b607b82601054610c119190614fdd565b1115610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990614ccd565b60405180910390fd5b611e6182600f54610c639190614fdd565b1115610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90614dcd565b60405180910390fd5b60005b82811015610ce857610cbb82600f546127d6565b6001600f6000828254610cce9190614fdd565b925050819055508080610ce090615222565b915050610ca7565b508160106000828254610cfb9190614fdd565b925050819055505050565b600d8054610d13906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3f906151bf565b8015610d8c5780601f10610d6157610100808354040283529160200191610d8c565b820191906000526020600020905b815481529060010190602001808311610d6f57829003601f168201915b505050505081565b606060008054610da3906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcf906151bf565b8015610e1c5780601f10610df157610100808354040283529160200191610e1c565b820191906000526020600020905b815481529060010190602001808311610dff57829003601f168201915b5050505050905090565b6000610e31826127f4565b610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6790614d8d565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610eb682611777565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e90614e6d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f466127ce565b73ffffffffffffffffffffffffffffffffffffffff161480610f755750610f7481610f6f6127ce565b6125d2565b5b610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614ced565b60405180910390fd5b610fbe8383612860565b505050565b610fcb6127ce565b73ffffffffffffffffffffffffffffffffffffffff16610fe9611d82565b73ffffffffffffffffffffffffffffffffffffffff161461103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690614ded565b60405180910390fd5b600060095414611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b90614dad565b60405180910390fd5b61108c612092565b506110d77f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612919565b50565b6110e26127ce565b73ffffffffffffffffffffffffffffffffffffffff16611100611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90614ded565b60405180910390fd5b6000600a8054611165906151bf565b9050146111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614bed565b60405180910390fd5b80600a90805190602001906111bd929190613c78565b5050565b600f5481565b60126020528060005260406000206000915090505481565b600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112166112106127ce565b82612a7b565b611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90614e8d565b60405180910390fd5b611260838383612b59565b505050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e90614e0d565b60405180910390fd5b61132f6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661134d611d82565b73ffffffffffffffffffffffffffffffffffffffff16146113a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139a90614ded565b60405180910390fd5b80600b90805190602001906113b9929190613c78565b5050565b611e6181565b6113cb6127ce565b73ffffffffffffffffffffffffffffffffffffffff166113e9611d82565b73ffffffffffffffffffffffffffffffffffffffff161461143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690614ded565b60405180910390fd5b600160136000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6114b46127ce565b73ffffffffffffffffffffffffffffffffffffffff166114d2611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151f90614ded565b60405180910390fd5b80600e908051906020019061153e929190613c78565b5050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fb90614e0d565b60405180910390fd5b61160c6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661162a611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167790614ded565b60405180910390fd5b611688612583565b50600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6116bd6127ce565b73ffffffffffffffffffffffffffffffffffffffff166116db611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172890614ded565b60405180910390fd5b61174261173c6127ce565b47612dc0565b565b61175f83838360405180602001604052806000815250611ef0565b505050565b600c60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611820576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181790614d2d565b60405180910390fd5b80915050919050565b60115481565b607b81565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156118f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ed90614e0d565b60405180910390fd5b6118fe6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661191c611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614ded565b60405180910390fd5b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1e90614d0d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a766127ce565b73ffffffffffffffffffffffffffffffffffffffff16611a94611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae190614ded565b60405180910390fd5b611af46000612eb4565b565b600e8054611b03906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f906151bf565b8015611b7c5780601f10611b5157610100808354040283529160200191611b7c565b820191906000526020600020905b815481529060010190602001808311611b5f57829003601f168201915b505050505081565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d90614e0d565b60405180910390fd5b611c4e6127ce565b73ffffffffffffffffffffffffffffffffffffffff16611c6c611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb990614ded565b60405180910390fd5b80600d9080519060200190611cd8929190613c78565b5050565b611ce46127ce565b73ffffffffffffffffffffffffffffffffffffffff16611d02611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614ded565b60405180910390fd5b8060118190555050565b60136020528060005260406000206000915054906101000a900460ff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3190614e4d565b60405180910390fd5b611e448282612f7a565b5050565b606060018054611e57906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611e83906151bf565b8015611ed05780601f10611ea557610100808354040283529160200191611ed0565b820191906000526020600020905b815481529060010190602001808311611eb357829003601f168201915b5050505050905090565b611eec611ee56127ce565b8383612f92565b5050565b611f01611efb6127ce565b83612a7b565b611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3790614e8d565b60405180910390fd5b611f4c848484846130ff565b50505050565b611f5a6127ce565b73ffffffffffffffffffffffffffffffffffffffff16611f78611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc590614ded565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6120126127ce565b836040518363ffffffff1660e01b8152600401612030929190614956565b602060405180830381600087803b15801561204a57600080fd5b505af115801561205e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120829190614051565b5050565b6701140bbd030c400081565b60606000600a80546120a3906151bf565b905014156120e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dd90614ecd565b60405180910390fd5b600a80546120f3906151bf565b80601f016020809104026020016040519081016040528092919081815260200182805461211f906151bf565b801561216c5780601f106121415761010080835404028352916020019161216c565b820191906000526020600020905b81548152906001019060200180831161214f57829003601f168201915b5050505050905090565b6060612181826127f4565b6121c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b790614e2d565b60405180910390fd5b600c60009054906101000a900460ff1661226457600e80546121e1906151bf565b80601f016020809104026020016040519081016040528092919081815260200182805461220d906151bf565b801561225a5780601f1061222f5761010080835404028352916020019161225a565b820191906000526020600020905b81548152906001019060200180831161223d57829003601f168201915b505050505061226e565b61226d8261315b565b5b9050919050565b600260075414156122bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b290614ead565b60405180910390fd5b60026007819055506123026122fc6122d16127ce565b6040516020016122e19190614849565b60405160208183030381529060405280519060200120613202565b82613232565b73ffffffffffffffffffffffffffffffffffffffff16600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238890614c0d565b60405180910390fd5b611e6182600f546123a29190614fdd565b11156123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90614dcd565b60405180910390fd5b816701140bbd030c40006123f79190615064565b3414612438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242f90614b6d565b60405180910390fd5b60115482601260006124486127ce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461248d9190614fdd565b11156124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c590614c6d565b60405180910390fd5b60005b82811015612519576124ec6124e46127ce565b600f546127d6565b6001600f60008282546124ff9190614fdd565b92505081905550808061251190615222565b9150506124d1565b5081601260006125276127ce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125709190614fdd565b9250508190555060016007819055505050565b60008060095414156125ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c190614bcd565b60405180910390fd5b600954905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61266e6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661268c611d82565b73ffffffffffffffffffffffffffffffffffffffff16146126e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d990614ded565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274990614b0d565b60405180910390fd5b61275b81612eb4565b50565b60105481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6127f0828260405180602001604052806000815250613259565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128d383611777565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f00000000000000000000000000000000000000000000000000000000000000008486600060405160200161298d9291906149d8565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016129ba9392919061497f565b602060405180830381600087803b1580156129d457600080fd5b505af11580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190614051565b506000612a2f8460003060086000898152602001908152602001600020546132b4565b905060016008600086815260200190815260200160002054612a519190614fdd565b6008600086815260200190815260200160002081905550612a7284826132f0565b91505092915050565b6000612a86826127f4565b612ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abc90614cad565b60405180910390fd5b6000612ad083611777565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3f57508373ffffffffffffffffffffffffffffffffffffffff16612b2784610e26565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b505750612b4f81856125d2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b7982611777565b73ffffffffffffffffffffffffffffffffffffffff1614612bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc690614b2d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614b8d565b60405180910390fd5b612c4a838383613323565b612c55600082612860565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ca591906150be565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cfc9190614fdd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dbb838383613328565b505050565b80471015612e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfa90614c8d565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612e29906148da565b60006040518083038185875af1925050503d8060008114612e66576040519150601f19603f3d011682016040523d82523d6000602084013e612e6b565b606091505b5050905080612eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea690614c2d565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e6181612f8891906152a3565b6009819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614bad565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130f291906149bd565b60405180910390a3505050565b61310a848484612b59565b6131168484848461332d565b613155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314c90614aed565b60405180910390fd5b50505050565b6060613166826127f4565b6131a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319c90614e2d565b60405180910390fd5b60006131af6134c4565b905060008151116131cf57604051806020016040528060008152506131fa565b806131d984613556565b6040516020016131ea929190614890565b6040516020818303038152906040525b915050919050565b60008160405160200161321591906148b4565b604051602081830303815290604052805190602001209050919050565b600080600061324185856136b7565b9150915061324e8161373a565b819250505092915050565b613263838361390f565b613270600084848461332d565b6132af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a690614aed565b60405180910390fd5b505050565b6000848484846040516020016132cd9493929190614a01565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001613305929190614864565b60405160208183030381529060405280519060200120905092915050565b505050565b505050565b600061334e8473ffffffffffffffffffffffffffffffffffffffff16613ae9565b156134b7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133776127ce565b8786866040518563ffffffff1660e01b8152600401613399949392919061490a565b602060405180830381600087803b1580156133b357600080fd5b505af19250505080156133e457506040513d601f19601f820116820180604052508101906133e191906140eb565b60015b613467573d8060008114613414576040519150601f19603f3d011682016040523d82523d6000602084013e613419565b606091505b5060008151141561345f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345690614aed565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134bc565b600190505b949350505050565b6060600b80546134d3906151bf565b80601f01602080910402602001604051908101604052809291908181526020018280546134ff906151bf565b801561354c5780601f106135215761010080835404028352916020019161354c565b820191906000526020600020905b81548152906001019060200180831161352f57829003601f168201915b5050505050905090565b6060600082141561359e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136b2565b600082905060005b600082146135d05780806135b990615222565b915050600a826135c99190615033565b91506135a6565b60008167ffffffffffffffff8111156135ec576135eb6153bf565b5b6040519080825280601f01601f19166020018201604052801561361e5781602001600182028036833780820191505090505b5090505b600085146136ab5760018261363791906150be565b9150600a8561364691906152a3565b60306136529190614fdd565b60f81b81838151811061366857613667615390565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136a49190615033565b9450613622565b8093505050505b919050565b6000806041835114156136f95760008060006020860151925060408601519150606086015160001a90506136ed87828585613b0c565b94509450505050613733565b60408351141561372a57600080602085015191506040850151905061371f868383613c19565b935093505050613733565b60006002915091505b9250929050565b6000600481111561374e5761374d615332565b5b81600481111561376157613760615332565b5b141561376c5761390c565b600160048111156137805761377f615332565b5b81600481111561379357613792615332565b5b14156137d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137cb90614aad565b60405180910390fd5b600260048111156137e8576137e7615332565b5b8160048111156137fb576137fa615332565b5b141561383c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383390614acd565b60405180910390fd5b600360048111156138505761384f615332565b5b81600481111561386357613862615332565b5b14156138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90614c4d565b60405180910390fd5b6004808111156138b7576138b6615332565b5b8160048111156138ca576138c9615332565b5b141561390b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390290614d4d565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561397f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397690614d6d565b60405180910390fd5b613988816127f4565b156139c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139bf90614b4d565b60405180910390fd5b6139d460008383613323565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613a249190614fdd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ae560008383613328565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613b47576000600391509150613c10565b601b8560ff1614158015613b5f5750601c8560ff1614155b15613b71576000600491509150613c10565b600060018787878760405160008152602001604052604051613b969493929190614a46565b6020604051602081039080840390855afa158015613bb8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613c0757600060019250925050613c10565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613c5c9190614fdd565b9050613c6a87828885613b0c565b935093505050935093915050565b828054613c84906151bf565b90600052602060002090601f016020900481019282613ca65760008555613ced565b82601f10613cbf57805160ff1916838001178555613ced565b82800160010185558215613ced579182015b82811115613cec578251825591602001919060010190613cd1565b5b509050613cfa9190613cfe565b5090565b5b80821115613d17576000816000905550600101613cff565b5090565b6000613d2e613d2984614f2d565b614f08565b905082815260208101848484011115613d4a57613d496153f3565b5b613d5584828561517d565b509392505050565b6000613d70613d6b84614f5e565b614f08565b905082815260208101848484011115613d8c57613d8b6153f3565b5b613d9784828561517d565b509392505050565b600081359050613dae81615c1e565b92915050565b600081359050613dc381615c35565b92915050565b600081519050613dd881615c35565b92915050565b600081359050613ded81615c4c565b92915050565b600081359050613e0281615c63565b92915050565b600081519050613e1781615c63565b92915050565b600082601f830112613e3257613e316153ee565b5b8135613e42848260208601613d1b565b91505092915050565b600082601f830112613e6057613e5f6153ee565b5b8135613e70848260208601613d5d565b91505092915050565b600081359050613e8881615c7a565b92915050565b600060208284031215613ea457613ea36153fd565b5b6000613eb284828501613d9f565b91505092915050565b60008060408385031215613ed257613ed16153fd565b5b6000613ee085828601613d9f565b9250506020613ef185828601613d9f565b9150509250929050565b600080600060608486031215613f1457613f136153fd565b5b6000613f2286828701613d9f565b9350506020613f3386828701613d9f565b9250506040613f4486828701613e79565b9150509250925092565b60008060008060808587031215613f6857613f676153fd565b5b6000613f7687828801613d9f565b9450506020613f8787828801613d9f565b9350506040613f9887828801613e79565b925050606085013567ffffffffffffffff811115613fb957613fb86153f8565b5b613fc587828801613e1d565b91505092959194509250565b60008060408385031215613fe857613fe76153fd565b5b6000613ff685828601613d9f565b925050602061400785828601613db4565b9150509250929050565b60008060408385031215614028576140276153fd565b5b600061403685828601613d9f565b925050602061404785828601613e79565b9150509250929050565b600060208284031215614067576140666153fd565b5b600061407584828501613dc9565b91505092915050565b60008060408385031215614095576140946153fd565b5b60006140a385828601613dde565b92505060206140b485828601613e79565b9150509250929050565b6000602082840312156140d4576140d36153fd565b5b60006140e284828501613df3565b91505092915050565b600060208284031215614101576141006153fd565b5b600061410f84828501613e08565b91505092915050565b60006020828403121561412e5761412d6153fd565b5b600082013567ffffffffffffffff81111561414c5761414b6153f8565b5b61415884828501613e4b565b91505092915050565b600060208284031215614177576141766153fd565b5b600061418584828501613e79565b91505092915050565b600080604083850312156141a5576141a46153fd565b5b60006141b385828601613e79565b92505060206141c485828601613d9f565b9150509250929050565b600080604083850312156141e5576141e46153fd565b5b60006141f385828601613e79565b925050602083013567ffffffffffffffff811115614214576142136153f8565b5b61422085828601613e1d565b9150509250929050565b614233816150f2565b82525050565b61424a614245826150f2565b61526b565b82525050565b61425981615104565b82525050565b61426881615110565b82525050565b61427f61427a82615110565b61527d565b82525050565b600061429082614f8f565b61429a8185614fa5565b93506142aa81856020860161518c565b6142b381615402565b840191505092915050565b60006142c982614f9a565b6142d38185614fc1565b93506142e381856020860161518c565b6142ec81615402565b840191505092915050565b600061430282614f9a565b61430c8185614fd2565b935061431c81856020860161518c565b80840191505092915050565b6000614335601883614fc1565b915061434082615420565b602082019050919050565b6000614358601f83614fc1565b915061436382615449565b602082019050919050565b600061437b601c83614fd2565b915061438682615472565b601c82019050919050565b600061439e603283614fc1565b91506143a98261549b565b604082019050919050565b60006143c1602683614fc1565b91506143cc826154ea565b604082019050919050565b60006143e4602583614fc1565b91506143ef82615539565b604082019050919050565b6000614407601c83614fc1565b915061441282615588565b602082019050919050565b600061442a601983614fc1565b9150614435826155b1565b602082019050919050565b600061444d602483614fc1565b9150614458826155da565b604082019050919050565b6000614470601983614fc1565b915061447b82615629565b602082019050919050565b6000614493601183614fc1565b915061449e82615652565b602082019050919050565b60006144b6601e83614fc1565b91506144c18261567b565b602082019050919050565b60006144d9601183614fc1565b91506144e4826156a4565b602082019050919050565b60006144fc603a83614fc1565b9150614507826156cd565b604082019050919050565b600061451f602283614fc1565b915061452a8261571c565b604082019050919050565b6000614542601c83614fc1565b915061454d8261576b565b602082019050919050565b6000614565601d83614fc1565b915061457082615794565b602082019050919050565b6000614588602c83614fc1565b9150614593826157bd565b604082019050919050565b60006145ab602983614fc1565b91506145b68261580c565b604082019050919050565b60006145ce603883614fc1565b91506145d98261585b565b604082019050919050565b60006145f1602a83614fc1565b91506145fc826158aa565b604082019050919050565b6000614614602983614fc1565b915061461f826158f9565b604082019050919050565b6000614637602283614fc1565b915061464282615948565b604082019050919050565b600061465a602083614fc1565b915061466582615997565b602082019050919050565b600061467d602c83614fc1565b9150614688826159c0565b604082019050919050565b60006146a0601583614fc1565b91506146ab82615a0f565b602082019050919050565b60006146c3601383614fc1565b91506146ce82615a38565b602082019050919050565b60006146e6602083614fc1565b91506146f182615a61565b602082019050919050565b6000614709601283614fc1565b915061471482615a8a565b602082019050919050565b600061472c602f83614fc1565b915061473782615ab3565b604082019050919050565b600061474f601f83614fc1565b915061475a82615b02565b602082019050919050565b6000614772602183614fc1565b915061477d82615b2b565b604082019050919050565b6000614795600083614fb6565b91506147a082615b7a565b600082019050919050565b60006147b8603183614fc1565b91506147c382615b7d565b604082019050919050565b60006147db601f83614fc1565b91506147e682615bcc565b602082019050919050565b60006147fe601a83614fc1565b915061480982615bf5565b602082019050919050565b61481d81615166565b82525050565b61483461482f82615166565b615299565b82525050565b61484381615170565b82525050565b60006148558284614239565b60148201915081905092915050565b6000614870828561426e565b6020820191506148808284614823565b6020820191508190509392505050565b600061489c82856142f7565b91506148a882846142f7565b91508190509392505050565b60006148bf8261436e565b91506148cb828461426e565b60208201915081905092915050565b60006148e582614788565b9150819050919050565b6000602082019050614904600083018461422a565b92915050565b600060808201905061491f600083018761422a565b61492c602083018661422a565b6149396040830185614814565b818103606083015261494b8184614285565b905095945050505050565b600060408201905061496b600083018561422a565b6149786020830184614814565b9392505050565b6000606082019050614994600083018661422a565b6149a16020830185614814565b81810360408301526149b38184614285565b9050949350505050565b60006020820190506149d26000830184614250565b92915050565b60006040820190506149ed600083018561425f565b6149fa6020830184614814565b9392505050565b6000608082019050614a16600083018761425f565b614a236020830186614814565b614a30604083018561422a565b614a3d6060830184614814565b95945050505050565b6000608082019050614a5b600083018761425f565b614a68602083018661483a565b614a75604083018561425f565b614a82606083018461425f565b95945050505050565b60006020820190508181036000830152614aa581846142be565b905092915050565b60006020820190508181036000830152614ac681614328565b9050919050565b60006020820190508181036000830152614ae68161434b565b9050919050565b60006020820190508181036000830152614b0681614391565b9050919050565b60006020820190508181036000830152614b26816143b4565b9050919050565b60006020820190508181036000830152614b46816143d7565b9050919050565b60006020820190508181036000830152614b66816143fa565b9050919050565b60006020820190508181036000830152614b868161441d565b9050919050565b60006020820190508181036000830152614ba681614440565b9050919050565b60006020820190508181036000830152614bc681614463565b9050919050565b60006020820190508181036000830152614be681614486565b9050919050565b60006020820190508181036000830152614c06816144a9565b9050919050565b60006020820190508181036000830152614c26816144cc565b9050919050565b60006020820190508181036000830152614c46816144ef565b9050919050565b60006020820190508181036000830152614c6681614512565b9050919050565b60006020820190508181036000830152614c8681614535565b9050919050565b60006020820190508181036000830152614ca681614558565b9050919050565b60006020820190508181036000830152614cc68161457b565b9050919050565b60006020820190508181036000830152614ce68161459e565b9050919050565b60006020820190508181036000830152614d06816145c1565b9050919050565b60006020820190508181036000830152614d26816145e4565b9050919050565b60006020820190508181036000830152614d4681614607565b9050919050565b60006020820190508181036000830152614d668161462a565b9050919050565b60006020820190508181036000830152614d868161464d565b9050919050565b60006020820190508181036000830152614da681614670565b9050919050565b60006020820190508181036000830152614dc681614693565b9050919050565b60006020820190508181036000830152614de6816146b6565b9050919050565b60006020820190508181036000830152614e06816146d9565b9050919050565b60006020820190508181036000830152614e26816146fc565b9050919050565b60006020820190508181036000830152614e468161471f565b9050919050565b60006020820190508181036000830152614e6681614742565b9050919050565b60006020820190508181036000830152614e8681614765565b9050919050565b60006020820190508181036000830152614ea6816147ab565b9050919050565b60006020820190508181036000830152614ec6816147ce565b9050919050565b60006020820190508181036000830152614ee6816147f1565b9050919050565b6000602082019050614f026000830184614814565b92915050565b6000614f12614f23565b9050614f1e82826151f1565b919050565b6000604051905090565b600067ffffffffffffffff821115614f4857614f476153bf565b5b614f5182615402565b9050602081019050919050565b600067ffffffffffffffff821115614f7957614f786153bf565b5b614f8282615402565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fe882615166565b9150614ff383615166565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615028576150276152d4565b5b828201905092915050565b600061503e82615166565b915061504983615166565b92508261505957615058615303565b5b828204905092915050565b600061506f82615166565b915061507a83615166565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150b3576150b26152d4565b5b828202905092915050565b60006150c982615166565b91506150d483615166565b9250828210156150e7576150e66152d4565b5b828203905092915050565b60006150fd82615146565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156151aa57808201518184015260208101905061518f565b838111156151b9576000848401525b50505050565b600060028204905060018216806151d757607f821691505b602082108114156151eb576151ea615361565b5b50919050565b6151fa82615402565b810181811067ffffffffffffffff82111715615219576152186153bf565b5b80604052505050565b600061522d82615166565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152605761525f6152d4565b5b600182019050919050565b600061527682615287565b9050919050565b6000819050919050565b600061529282615413565b9050919050565b6000819050919050565b60006152ae82615166565b91506152b983615166565b9250826152c9576152c8615303565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c696420457468657220616d6f756e742073656e7400000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4f6666736574206973206e6f7420736574000000000000000000000000000000600082015250565b7f50726f76656e616e6365206861736820697320616c7265616479207365740000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f496e73756666696369656e74206d696e747320617661696c61626c6500000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f45786365656473206d6178696d756d206e756d626572206f662072657365727660008201527f656420746f6b656e730000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f666673657420697320616c7265616479207365740000000000000000000000600082015250565b7f496e73756666696369656e7420737570706c7900000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f46756e6374696f6e206973206c6f636b65640000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f50726f76656e616e63652068617368206973206e6f7420736574000000000000600082015250565b615c27816150f2565b8114615c3257600080fd5b50565b615c3e81615104565b8114615c4957600080fd5b50565b615c5581615110565b8114615c6057600080fd5b50565b615c6c8161511a565b8114615c7757600080fd5b50565b615c8381615166565b8114615c8e57600080fd5b5056fea2646970667358221220f095e53bb14df97ce72a7fac1e96c0821f0667234eaf4eccc411efb96aa9e08e64736f6c63430008070033000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed Bytecode
0x6080604052600436106102675760003560e01c80636ba90c6e11610144578063a22cb465116100b6578063c87b56dd1161007a578063c87b56dd146108cc578063db7fd40814610909578063dc8c57b414610925578063e985e9c514610950578063f2fde38b1461098d578063fe60d12c146109b657610267565b8063a22cb465146107fb578063b88d4fde14610824578063bb84e74f1461084d578063c002d23d14610876578063c6ab67a3146108a157610267565b8063750521f511610108578063750521f5146106ed5780637bddd65b146107165780637c560ec91461073f5780638da5cb5b1461077c57806394985ddd146107a757806395d89b41146107d057610267565b80636ba90c6e1461061a5780636c19e7831461064557806370a082311461066e578063715018a6146106ab5780637313cba9146106c257610267565b806323b872dd116101dd5780633b2c3fb6116101a15780633b2c3fb6146105305780633ccfd60b1461054757806342842e0e1461055e57806351830227146105875780636352211e146105b2578063639814e0146105ef57610267565b806323b872dd1461046157806330176e131461048a57806332cb6b0c146104b357806334531828146104de5780633574a2dd1461050757610267565b8063095ea7b31161022f578063095ea7b3146103655780630f1876a21461038e57806310969523146103a557806318160ddd146103ce5780631e7269c5146103f9578063238ac9331461043657610267565b806301ffc9a71461026c57806303339bcb146102a957806303ee438c146102d257806306fdde03146102fd578063081812fc14610328575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e91906140be565b6109e1565b6040516102a091906149bd565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb919061418e565b610ac3565b005b3480156102de57600080fd5b506102e7610d06565b6040516102f49190614a8b565b60405180910390f35b34801561030957600080fd5b50610312610d94565b60405161031f9190614a8b565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a9190614161565b610e26565b60405161035c91906148ef565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190614011565b610eab565b005b34801561039a57600080fd5b506103a3610fc3565b005b3480156103b157600080fd5b506103cc60048036038101906103c79190614118565b6110da565b005b3480156103da57600080fd5b506103e36111c1565b6040516103f09190614eed565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b9190613e8e565b6111c7565b60405161042d9190614eed565b60405180910390f35b34801561044257600080fd5b5061044b6111df565b60405161045891906148ef565b60405180910390f35b34801561046d57600080fd5b5061048860048036038101906104839190613efb565b611205565b005b34801561049657600080fd5b506104b160048036038101906104ac9190614118565b611265565b005b3480156104bf57600080fd5b506104c86113bd565b6040516104d59190614eed565b60405180910390f35b3480156104ea57600080fd5b50610505600480360381019061050091906140be565b6113c3565b005b34801561051357600080fd5b5061052e60048036038101906105299190614118565b6114ac565b005b34801561053c57600080fd5b50610545611542565b005b34801561055357600080fd5b5061055c6116b5565b005b34801561056a57600080fd5b5061058560048036038101906105809190613efb565b611744565b005b34801561059357600080fd5b5061059c611764565b6040516105a991906149bd565b60405180910390f35b3480156105be57600080fd5b506105d960048036038101906105d49190614161565b611777565b6040516105e691906148ef565b60405180910390f35b3480156105fb57600080fd5b50610604611829565b6040516106119190614eed565b60405180910390f35b34801561062657600080fd5b5061062f61182f565b60405161063c9190614eed565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613e8e565b611834565b005b34801561067a57600080fd5b5061069560048036038101906106909190613e8e565b6119b6565b6040516106a29190614eed565b60405180910390f35b3480156106b757600080fd5b506106c0611a6e565b005b3480156106ce57600080fd5b506106d7611af6565b6040516106e49190614a8b565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190614118565b611b84565b005b34801561072257600080fd5b5061073d60048036038101906107389190614161565b611cdc565b005b34801561074b57600080fd5b50610766600480360381019061076191906140be565b611d62565b60405161077391906149bd565b60405180910390f35b34801561078857600080fd5b50610791611d82565b60405161079e91906148ef565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c9919061407e565b611dac565b005b3480156107dc57600080fd5b506107e5611e48565b6040516107f29190614a8b565b60405180910390f35b34801561080757600080fd5b50610822600480360381019061081d9190613fd1565b611eda565b005b34801561083057600080fd5b5061084b60048036038101906108469190613f4e565b611ef0565b005b34801561085957600080fd5b50610874600480360381019061086f9190614161565b611f52565b005b34801561088257600080fd5b5061088b612086565b6040516108989190614eed565b60405180910390f35b3480156108ad57600080fd5b506108b6612092565b6040516108c39190614a8b565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee9190614161565b612176565b6040516109009190614a8b565b60405180910390f35b610923600480360381019061091e91906141ce565b612275565b005b34801561093157600080fd5b5061093a612583565b6040516109479190614eed565b60405180910390f35b34801561095c57600080fd5b5061097760048036038101906109729190613ebb565b6125d2565b60405161098491906149bd565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af9190613e8e565b612666565b005b3480156109c257600080fd5b506109cb61275e565b6040516109d89190614eed565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aac57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610abc5750610abb82612764565b5b9050919050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7c90614e0d565b60405180910390fd5b610b8d6127ce565b73ffffffffffffffffffffffffffffffffffffffff16610bab611d82565b73ffffffffffffffffffffffffffffffffffffffff1614610c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf890614ded565b60405180910390fd5b607b82601054610c119190614fdd565b1115610c52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4990614ccd565b60405180910390fd5b611e6182600f54610c639190614fdd565b1115610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90614dcd565b60405180910390fd5b60005b82811015610ce857610cbb82600f546127d6565b6001600f6000828254610cce9190614fdd565b925050819055508080610ce090615222565b915050610ca7565b508160106000828254610cfb9190614fdd565b925050819055505050565b600d8054610d13906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3f906151bf565b8015610d8c5780601f10610d6157610100808354040283529160200191610d8c565b820191906000526020600020905b815481529060010190602001808311610d6f57829003601f168201915b505050505081565b606060008054610da3906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcf906151bf565b8015610e1c5780601f10610df157610100808354040283529160200191610e1c565b820191906000526020600020905b815481529060010190602001808311610dff57829003601f168201915b5050505050905090565b6000610e31826127f4565b610e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6790614d8d565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610eb682611777565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e90614e6d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f466127ce565b73ffffffffffffffffffffffffffffffffffffffff161480610f755750610f7481610f6f6127ce565b6125d2565b5b610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614ced565b60405180910390fd5b610fbe8383612860565b505050565b610fcb6127ce565b73ffffffffffffffffffffffffffffffffffffffff16610fe9611d82565b73ffffffffffffffffffffffffffffffffffffffff161461103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690614ded565b60405180910390fd5b600060095414611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b90614dad565b60405180910390fd5b61108c612092565b506110d77faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000612919565b50565b6110e26127ce565b73ffffffffffffffffffffffffffffffffffffffff16611100611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d90614ded565b60405180910390fd5b6000600a8054611165906151bf565b9050146111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e90614bed565b60405180910390fd5b80600a90805190602001906111bd929190613c78565b5050565b600f5481565b60126020528060005260406000206000915090505481565b600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112166112106127ce565b82612a7b565b611255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124c90614e8d565b60405180910390fd5b611260838383612b59565b505050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131e90614e0d565b60405180910390fd5b61132f6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661134d611d82565b73ffffffffffffffffffffffffffffffffffffffff16146113a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139a90614ded565b60405180910390fd5b80600b90805190602001906113b9929190613c78565b5050565b611e6181565b6113cb6127ce565b73ffffffffffffffffffffffffffffffffffffffff166113e9611d82565b73ffffffffffffffffffffffffffffffffffffffff161461143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690614ded565b60405180910390fd5b600160136000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6114b46127ce565b73ffffffffffffffffffffffffffffffffffffffff166114d2611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611528576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151f90614ded565b60405180910390fd5b80600e908051906020019061153e929190613c78565b5050565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611604576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fb90614e0d565b60405180910390fd5b61160c6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661162a611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167790614ded565b60405180910390fd5b611688612583565b50600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6116bd6127ce565b73ffffffffffffffffffffffffffffffffffffffff166116db611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172890614ded565b60405180910390fd5b61174261173c6127ce565b47612dc0565b565b61175f83838360405180602001604052806000815250611ef0565b505050565b600c60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611820576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181790614d2d565b60405180910390fd5b80915050919050565b60115481565b607b81565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156118f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ed90614e0d565b60405180910390fd5b6118fe6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661191c611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614ded565b60405180910390fd5b80600c60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1e90614d0d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a766127ce565b73ffffffffffffffffffffffffffffffffffffffff16611a94611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae190614ded565b60405180910390fd5b611af46000612eb4565b565b600e8054611b03906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f906151bf565b8015611b7c5780601f10611b5157610100808354040283529160200191611b7c565b820191906000526020600020905b815481529060010190602001808311611b5f57829003601f168201915b505050505081565b6013600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d90614e0d565b60405180910390fd5b611c4e6127ce565b73ffffffffffffffffffffffffffffffffffffffff16611c6c611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb990614ded565b60405180910390fd5b80600d9080519060200190611cd8929190613c78565b5050565b611ce46127ce565b73ffffffffffffffffffffffffffffffffffffffff16611d02611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614ded565b60405180910390fd5b8060118190555050565b60136020528060005260406000206000915054906101000a900460ff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3190614e4d565b60405180910390fd5b611e448282612f7a565b5050565b606060018054611e57906151bf565b80601f0160208091040260200160405190810160405280929190818152602001828054611e83906151bf565b8015611ed05780601f10611ea557610100808354040283529160200191611ed0565b820191906000526020600020905b815481529060010190602001808311611eb357829003601f168201915b5050505050905090565b611eec611ee56127ce565b8383612f92565b5050565b611f01611efb6127ce565b83612a7b565b611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3790614e8d565b60405180910390fd5b611f4c848484846130ff565b50505050565b611f5a6127ce565b73ffffffffffffffffffffffffffffffffffffffff16611f78611d82565b73ffffffffffffffffffffffffffffffffffffffff1614611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc590614ded565b60405180910390fd5b7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6120126127ce565b836040518363ffffffff1660e01b8152600401612030929190614956565b602060405180830381600087803b15801561204a57600080fd5b505af115801561205e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120829190614051565b5050565b6701140bbd030c400081565b60606000600a80546120a3906151bf565b905014156120e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dd90614ecd565b60405180910390fd5b600a80546120f3906151bf565b80601f016020809104026020016040519081016040528092919081815260200182805461211f906151bf565b801561216c5780601f106121415761010080835404028352916020019161216c565b820191906000526020600020905b81548152906001019060200180831161214f57829003601f168201915b5050505050905090565b6060612181826127f4565b6121c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b790614e2d565b60405180910390fd5b600c60009054906101000a900460ff1661226457600e80546121e1906151bf565b80601f016020809104026020016040519081016040528092919081815260200182805461220d906151bf565b801561225a5780601f1061222f5761010080835404028352916020019161225a565b820191906000526020600020905b81548152906001019060200180831161223d57829003601f168201915b505050505061226e565b61226d8261315b565b5b9050919050565b600260075414156122bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b290614ead565b60405180910390fd5b60026007819055506123026122fc6122d16127ce565b6040516020016122e19190614849565b60405160208183030381529060405280519060200120613202565b82613232565b73ffffffffffffffffffffffffffffffffffffffff16600c60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238890614c0d565b60405180910390fd5b611e6182600f546123a29190614fdd565b11156123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90614dcd565b60405180910390fd5b816701140bbd030c40006123f79190615064565b3414612438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242f90614b6d565b60405180910390fd5b60115482601260006124486127ce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461248d9190614fdd565b11156124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c590614c6d565b60405180910390fd5b60005b82811015612519576124ec6124e46127ce565b600f546127d6565b6001600f60008282546124ff9190614fdd565b92505081905550808061251190615222565b9150506124d1565b5081601260006125276127ce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125709190614fdd565b9250508190555060016007819055505050565b60008060095414156125ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c190614bcd565b60405180910390fd5b600954905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61266e6127ce565b73ffffffffffffffffffffffffffffffffffffffff1661268c611d82565b73ffffffffffffffffffffffffffffffffffffffff16146126e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d990614ded565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612752576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274990614b0d565b60405180910390fd5b61275b81612eb4565b50565b60105481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6127f0828260405180602001604052806000815250613259565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166128d383611777565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528486600060405160200161298d9291906149d8565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016129ba9392919061497f565b602060405180830381600087803b1580156129d457600080fd5b505af11580156129e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0c9190614051565b506000612a2f8460003060086000898152602001908152602001600020546132b4565b905060016008600086815260200190815260200160002054612a519190614fdd565b6008600086815260200190815260200160002081905550612a7284826132f0565b91505092915050565b6000612a86826127f4565b612ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abc90614cad565b60405180910390fd5b6000612ad083611777565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3f57508373ffffffffffffffffffffffffffffffffffffffff16612b2784610e26565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b505750612b4f81856125d2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b7982611777565b73ffffffffffffffffffffffffffffffffffffffff1614612bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc690614b2d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614b8d565b60405180910390fd5b612c4a838383613323565b612c55600082612860565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ca591906150be565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cfc9190614fdd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dbb838383613328565b505050565b80471015612e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfa90614c8d565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612e29906148da565b60006040518083038185875af1925050503d8060008114612e66576040519150601f19603f3d011682016040523d82523d6000602084013e612e6b565b606091505b5050905080612eaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea690614c2d565b60405180910390fd5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e6181612f8891906152a3565b6009819055505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614bad565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130f291906149bd565b60405180910390a3505050565b61310a848484612b59565b6131168484848461332d565b613155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314c90614aed565b60405180910390fd5b50505050565b6060613166826127f4565b6131a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319c90614e2d565b60405180910390fd5b60006131af6134c4565b905060008151116131cf57604051806020016040528060008152506131fa565b806131d984613556565b6040516020016131ea929190614890565b6040516020818303038152906040525b915050919050565b60008160405160200161321591906148b4565b604051602081830303815290604052805190602001209050919050565b600080600061324185856136b7565b9150915061324e8161373a565b819250505092915050565b613263838361390f565b613270600084848461332d565b6132af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a690614aed565b60405180910390fd5b505050565b6000848484846040516020016132cd9493929190614a01565b6040516020818303038152906040528051906020012060001c9050949350505050565b60008282604051602001613305929190614864565b60405160208183030381529060405280519060200120905092915050565b505050565b505050565b600061334e8473ffffffffffffffffffffffffffffffffffffffff16613ae9565b156134b7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133776127ce565b8786866040518563ffffffff1660e01b8152600401613399949392919061490a565b602060405180830381600087803b1580156133b357600080fd5b505af19250505080156133e457506040513d601f19601f820116820180604052508101906133e191906140eb565b60015b613467573d8060008114613414576040519150601f19603f3d011682016040523d82523d6000602084013e613419565b606091505b5060008151141561345f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345690614aed565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134bc565b600190505b949350505050565b6060600b80546134d3906151bf565b80601f01602080910402602001604051908101604052809291908181526020018280546134ff906151bf565b801561354c5780601f106135215761010080835404028352916020019161354c565b820191906000526020600020905b81548152906001019060200180831161352f57829003601f168201915b5050505050905090565b6060600082141561359e576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136b2565b600082905060005b600082146135d05780806135b990615222565b915050600a826135c99190615033565b91506135a6565b60008167ffffffffffffffff8111156135ec576135eb6153bf565b5b6040519080825280601f01601f19166020018201604052801561361e5781602001600182028036833780820191505090505b5090505b600085146136ab5760018261363791906150be565b9150600a8561364691906152a3565b60306136529190614fdd565b60f81b81838151811061366857613667615390565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136a49190615033565b9450613622565b8093505050505b919050565b6000806041835114156136f95760008060006020860151925060408601519150606086015160001a90506136ed87828585613b0c565b94509450505050613733565b60408351141561372a57600080602085015191506040850151905061371f868383613c19565b935093505050613733565b60006002915091505b9250929050565b6000600481111561374e5761374d615332565b5b81600481111561376157613760615332565b5b141561376c5761390c565b600160048111156137805761377f615332565b5b81600481111561379357613792615332565b5b14156137d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137cb90614aad565b60405180910390fd5b600260048111156137e8576137e7615332565b5b8160048111156137fb576137fa615332565b5b141561383c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383390614acd565b60405180910390fd5b600360048111156138505761384f615332565b5b81600481111561386357613862615332565b5b14156138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90614c4d565b60405180910390fd5b6004808111156138b7576138b6615332565b5b8160048111156138ca576138c9615332565b5b141561390b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390290614d4d565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561397f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397690614d6d565b60405180910390fd5b613988816127f4565b156139c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139bf90614b4d565b60405180910390fd5b6139d460008383613323565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613a249190614fdd565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ae560008383613328565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613b47576000600391509150613c10565b601b8560ff1614158015613b5f5750601c8560ff1614155b15613b71576000600491509150613c10565b600060018787878760405160008152602001604052604051613b969493929190614a46565b6020604051602081039080840390855afa158015613bb8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613c0757600060019250925050613c10565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613c5c9190614fdd565b9050613c6a87828885613b0c565b935093505050935093915050565b828054613c84906151bf565b90600052602060002090601f016020900481019282613ca65760008555613ced565b82601f10613cbf57805160ff1916838001178555613ced565b82800160010185558215613ced579182015b82811115613cec578251825591602001919060010190613cd1565b5b509050613cfa9190613cfe565b5090565b5b80821115613d17576000816000905550600101613cff565b5090565b6000613d2e613d2984614f2d565b614f08565b905082815260208101848484011115613d4a57613d496153f3565b5b613d5584828561517d565b509392505050565b6000613d70613d6b84614f5e565b614f08565b905082815260208101848484011115613d8c57613d8b6153f3565b5b613d9784828561517d565b509392505050565b600081359050613dae81615c1e565b92915050565b600081359050613dc381615c35565b92915050565b600081519050613dd881615c35565b92915050565b600081359050613ded81615c4c565b92915050565b600081359050613e0281615c63565b92915050565b600081519050613e1781615c63565b92915050565b600082601f830112613e3257613e316153ee565b5b8135613e42848260208601613d1b565b91505092915050565b600082601f830112613e6057613e5f6153ee565b5b8135613e70848260208601613d5d565b91505092915050565b600081359050613e8881615c7a565b92915050565b600060208284031215613ea457613ea36153fd565b5b6000613eb284828501613d9f565b91505092915050565b60008060408385031215613ed257613ed16153fd565b5b6000613ee085828601613d9f565b9250506020613ef185828601613d9f565b9150509250929050565b600080600060608486031215613f1457613f136153fd565b5b6000613f2286828701613d9f565b9350506020613f3386828701613d9f565b9250506040613f4486828701613e79565b9150509250925092565b60008060008060808587031215613f6857613f676153fd565b5b6000613f7687828801613d9f565b9450506020613f8787828801613d9f565b9350506040613f9887828801613e79565b925050606085013567ffffffffffffffff811115613fb957613fb86153f8565b5b613fc587828801613e1d565b91505092959194509250565b60008060408385031215613fe857613fe76153fd565b5b6000613ff685828601613d9f565b925050602061400785828601613db4565b9150509250929050565b60008060408385031215614028576140276153fd565b5b600061403685828601613d9f565b925050602061404785828601613e79565b9150509250929050565b600060208284031215614067576140666153fd565b5b600061407584828501613dc9565b91505092915050565b60008060408385031215614095576140946153fd565b5b60006140a385828601613dde565b92505060206140b485828601613e79565b9150509250929050565b6000602082840312156140d4576140d36153fd565b5b60006140e284828501613df3565b91505092915050565b600060208284031215614101576141006153fd565b5b600061410f84828501613e08565b91505092915050565b60006020828403121561412e5761412d6153fd565b5b600082013567ffffffffffffffff81111561414c5761414b6153f8565b5b61415884828501613e4b565b91505092915050565b600060208284031215614177576141766153fd565b5b600061418584828501613e79565b91505092915050565b600080604083850312156141a5576141a46153fd565b5b60006141b385828601613e79565b92505060206141c485828601613d9f565b9150509250929050565b600080604083850312156141e5576141e46153fd565b5b60006141f385828601613e79565b925050602083013567ffffffffffffffff811115614214576142136153f8565b5b61422085828601613e1d565b9150509250929050565b614233816150f2565b82525050565b61424a614245826150f2565b61526b565b82525050565b61425981615104565b82525050565b61426881615110565b82525050565b61427f61427a82615110565b61527d565b82525050565b600061429082614f8f565b61429a8185614fa5565b93506142aa81856020860161518c565b6142b381615402565b840191505092915050565b60006142c982614f9a565b6142d38185614fc1565b93506142e381856020860161518c565b6142ec81615402565b840191505092915050565b600061430282614f9a565b61430c8185614fd2565b935061431c81856020860161518c565b80840191505092915050565b6000614335601883614fc1565b915061434082615420565b602082019050919050565b6000614358601f83614fc1565b915061436382615449565b602082019050919050565b600061437b601c83614fd2565b915061438682615472565b601c82019050919050565b600061439e603283614fc1565b91506143a98261549b565b604082019050919050565b60006143c1602683614fc1565b91506143cc826154ea565b604082019050919050565b60006143e4602583614fc1565b91506143ef82615539565b604082019050919050565b6000614407601c83614fc1565b915061441282615588565b602082019050919050565b600061442a601983614fc1565b9150614435826155b1565b602082019050919050565b600061444d602483614fc1565b9150614458826155da565b604082019050919050565b6000614470601983614fc1565b915061447b82615629565b602082019050919050565b6000614493601183614fc1565b915061449e82615652565b602082019050919050565b60006144b6601e83614fc1565b91506144c18261567b565b602082019050919050565b60006144d9601183614fc1565b91506144e4826156a4565b602082019050919050565b60006144fc603a83614fc1565b9150614507826156cd565b604082019050919050565b600061451f602283614fc1565b915061452a8261571c565b604082019050919050565b6000614542601c83614fc1565b915061454d8261576b565b602082019050919050565b6000614565601d83614fc1565b915061457082615794565b602082019050919050565b6000614588602c83614fc1565b9150614593826157bd565b604082019050919050565b60006145ab602983614fc1565b91506145b68261580c565b604082019050919050565b60006145ce603883614fc1565b91506145d98261585b565b604082019050919050565b60006145f1602a83614fc1565b91506145fc826158aa565b604082019050919050565b6000614614602983614fc1565b915061461f826158f9565b604082019050919050565b6000614637602283614fc1565b915061464282615948565b604082019050919050565b600061465a602083614fc1565b915061466582615997565b602082019050919050565b600061467d602c83614fc1565b9150614688826159c0565b604082019050919050565b60006146a0601583614fc1565b91506146ab82615a0f565b602082019050919050565b60006146c3601383614fc1565b91506146ce82615a38565b602082019050919050565b60006146e6602083614fc1565b91506146f182615a61565b602082019050919050565b6000614709601283614fc1565b915061471482615a8a565b602082019050919050565b600061472c602f83614fc1565b915061473782615ab3565b604082019050919050565b600061474f601f83614fc1565b915061475a82615b02565b602082019050919050565b6000614772602183614fc1565b915061477d82615b2b565b604082019050919050565b6000614795600083614fb6565b91506147a082615b7a565b600082019050919050565b60006147b8603183614fc1565b91506147c382615b7d565b604082019050919050565b60006147db601f83614fc1565b91506147e682615bcc565b602082019050919050565b60006147fe601a83614fc1565b915061480982615bf5565b602082019050919050565b61481d81615166565b82525050565b61483461482f82615166565b615299565b82525050565b61484381615170565b82525050565b60006148558284614239565b60148201915081905092915050565b6000614870828561426e565b6020820191506148808284614823565b6020820191508190509392505050565b600061489c82856142f7565b91506148a882846142f7565b91508190509392505050565b60006148bf8261436e565b91506148cb828461426e565b60208201915081905092915050565b60006148e582614788565b9150819050919050565b6000602082019050614904600083018461422a565b92915050565b600060808201905061491f600083018761422a565b61492c602083018661422a565b6149396040830185614814565b818103606083015261494b8184614285565b905095945050505050565b600060408201905061496b600083018561422a565b6149786020830184614814565b9392505050565b6000606082019050614994600083018661422a565b6149a16020830185614814565b81810360408301526149b38184614285565b9050949350505050565b60006020820190506149d26000830184614250565b92915050565b60006040820190506149ed600083018561425f565b6149fa6020830184614814565b9392505050565b6000608082019050614a16600083018761425f565b614a236020830186614814565b614a30604083018561422a565b614a3d6060830184614814565b95945050505050565b6000608082019050614a5b600083018761425f565b614a68602083018661483a565b614a75604083018561425f565b614a82606083018461425f565b95945050505050565b60006020820190508181036000830152614aa581846142be565b905092915050565b60006020820190508181036000830152614ac681614328565b9050919050565b60006020820190508181036000830152614ae68161434b565b9050919050565b60006020820190508181036000830152614b0681614391565b9050919050565b60006020820190508181036000830152614b26816143b4565b9050919050565b60006020820190508181036000830152614b46816143d7565b9050919050565b60006020820190508181036000830152614b66816143fa565b9050919050565b60006020820190508181036000830152614b868161441d565b9050919050565b60006020820190508181036000830152614ba681614440565b9050919050565b60006020820190508181036000830152614bc681614463565b9050919050565b60006020820190508181036000830152614be681614486565b9050919050565b60006020820190508181036000830152614c06816144a9565b9050919050565b60006020820190508181036000830152614c26816144cc565b9050919050565b60006020820190508181036000830152614c46816144ef565b9050919050565b60006020820190508181036000830152614c6681614512565b9050919050565b60006020820190508181036000830152614c8681614535565b9050919050565b60006020820190508181036000830152614ca681614558565b9050919050565b60006020820190508181036000830152614cc68161457b565b9050919050565b60006020820190508181036000830152614ce68161459e565b9050919050565b60006020820190508181036000830152614d06816145c1565b9050919050565b60006020820190508181036000830152614d26816145e4565b9050919050565b60006020820190508181036000830152614d4681614607565b9050919050565b60006020820190508181036000830152614d668161462a565b9050919050565b60006020820190508181036000830152614d868161464d565b9050919050565b60006020820190508181036000830152614da681614670565b9050919050565b60006020820190508181036000830152614dc681614693565b9050919050565b60006020820190508181036000830152614de6816146b6565b9050919050565b60006020820190508181036000830152614e06816146d9565b9050919050565b60006020820190508181036000830152614e26816146fc565b9050919050565b60006020820190508181036000830152614e468161471f565b9050919050565b60006020820190508181036000830152614e6681614742565b9050919050565b60006020820190508181036000830152614e8681614765565b9050919050565b60006020820190508181036000830152614ea6816147ab565b9050919050565b60006020820190508181036000830152614ec6816147ce565b9050919050565b60006020820190508181036000830152614ee6816147f1565b9050919050565b6000602082019050614f026000830184614814565b92915050565b6000614f12614f23565b9050614f1e82826151f1565b919050565b6000604051905090565b600067ffffffffffffffff821115614f4857614f476153bf565b5b614f5182615402565b9050602081019050919050565b600067ffffffffffffffff821115614f7957614f786153bf565b5b614f8282615402565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fe882615166565b9150614ff383615166565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615028576150276152d4565b5b828201905092915050565b600061503e82615166565b915061504983615166565b92508261505957615058615303565b5b828204905092915050565b600061506f82615166565b915061507a83615166565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150b3576150b26152d4565b5b828202905092915050565b60006150c982615166565b91506150d483615166565b9250828210156150e7576150e66152d4565b5b828203905092915050565b60006150fd82615146565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156151aa57808201518184015260208101905061518f565b838111156151b9576000848401525b50505050565b600060028204905060018216806151d757607f821691505b602082108114156151eb576151ea615361565b5b50919050565b6151fa82615402565b810181811067ffffffffffffffff82111715615219576152186153bf565b5b80604052505050565b600061522d82615166565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152605761525f6152d4565b5b600182019050919050565b600061527682615287565b9050919050565b6000819050919050565b600061529282615413565b9050919050565b6000819050919050565b60006152ae82615166565b91506152b983615166565b9250826152c9576152c8615303565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c696420457468657220616d6f756e742073656e7400000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4f6666736574206973206e6f7420736574000000000000000000000000000000600082015250565b7f50726f76656e616e6365206861736820697320616c7265616479207365740000600082015250565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f496e73756666696369656e74206d696e747320617661696c61626c6500000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f45786365656473206d6178696d756d206e756d626572206f662072657365727660008201527f656420746f6b656e730000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f666673657420697320616c7265616479207365740000000000000000000000600082015250565b7f496e73756666696369656e7420737570706c7900000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f46756e6374696f6e206973206c6f636b65640000000000000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f50726f76656e616e63652068617368206973206e6f7420736574000000000000600082015250565b615c27816150f2565b8114615c3257600080fd5b50565b615c3e81615104565b8114615c4957600080fd5b50565b615c5581615110565b8114615c6057600080fd5b50565b615c6c8161511a565b8114615c7757600080fd5b50565b615c8381615166565b8114615c8e57600080fd5b5056fea2646970667358221220f095e53bb14df97ce72a7fac1e96c0821f0667234eaf4eccc411efb96aa9e08e64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
-----Decoded View---------------
Arg [0] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [1] : linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : linkFee (uint256): 2000000000000000000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
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.