ERC-721
NFT
Overview
Max Total Supply
7,777 HAUS
Holders
2,560
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 HAUSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Modules
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/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Modules is ERC721URIStorage, ERC721Burnable, Ownable, VRFConsumerBase { enum ContractStatus { AllowListOnly, Public, Paused } // Contract control ContractStatus public contractStatus = ContractStatus.Paused; bytes32 public addressMerkleRoot; bytes32 public quantityMerkleRoot; // Tokenization uint256 public price; string public baseURI; uint256 public totalSupply; // Counters using Counters for Counters.Counter; Counters.Counter private _totalMinted; mapping(uint256 => uint256) public remainingSupplyCache; mapping(address => uint256) public quantityMinted; // Chainlink VRF bytes32 internal keyHash; // This is how we specify the oracle to use for VRF uint256 internal linkFee; // The fee we pay to chainlink to get the random number uint256 private randomResult; // storage location for the random number result // Events event RandomnessFulfilled(bytes32 requestID); event AssignedTokenID(address indexed _for, uint256 _tokenID); event MintTokenCalled(address indexed _who, uint256 _quantity); event RemainingSupply(uint256 supply); constructor(bytes32 _alMerkleRoot, bytes32 _quantityMerkleRoot, address vrfCoordinator, address linkTokenAddress, bytes32 kHash, string memory contractBaseURI) ERC721 ("hausphases", "HAUS") VRFConsumerBase(vrfCoordinator, linkTokenAddress) { addressMerkleRoot = _alMerkleRoot; quantityMerkleRoot = _quantityMerkleRoot; baseURI = contractBaseURI; totalSupply = 7777; price = 0.02 ether; keyHash = kHash; linkFee = 2 * 10 ** 18; } function _baseURI() internal view override(ERC721) returns (string memory) { return baseURI; } function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function getTokenIdFromRandomNumber(uint256 randomNumber) internal returns(uint256) { uint256 index = remainingSupplyCache[randomNumber] == 0 ? randomNumber : remainingSupplyCache[randomNumber]; // grab a number from the tail uint256 remainingSupply = totalSupply - _totalMinted.current(); remainingSupplyCache[randomNumber] = remainingSupplyCache[remainingSupply - 1] == 0 ? remainingSupply - 1 : remainingSupplyCache[remainingSupply - 1]; delete remainingSupply; return index; } function mint(uint256 quantity, bytes32[] calldata proof) public payable { emit MintTokenCalled(msg.sender, quantity); require(quantity <= 10, "Max 10 per txn"); require(_totalMinted.current() + quantity <= totalSupply, "Not enough supply"); require(contractStatus != ContractStatus.Paused, "Minting currently paused"); require(msg.value >= price * quantity, "Not enough ETH sent"); if(contractStatus == ContractStatus.AllowListOnly) { require(isWhitelist(msg.sender, proof), "Minting currently WL only"); } mintQuantity(quantity); } function devMint(uint256 quantity, uint256 allowedQuantity, bytes32[] calldata proof) public { emit MintTokenCalled(msg.sender, quantity); require(quantity <= 10, "Max 10 per txn"); require(_totalMinted.current() + quantity <= totalSupply, "Not enough supply"); require(contractStatus != ContractStatus.Paused, "Minting currently paused"); require(canMint(msg.sender, allowedQuantity, proof), "Requested quantity not approved"); require(quantityMinted[msg.sender] + quantity <= allowedQuantity, "Exceeds allowed mint quantity"); mintQuantity(quantity); quantityMinted[msg.sender] = quantityMinted[msg.sender] + quantity; } function mintQuantity(uint256 quantity) private { for (uint256 i = 0; i < quantity; i++) { uint256 randomValue = uint256(keccak256(abi.encode(randomResult, i))) % (totalSupply - _totalMinted.current()); uint256 tokenID = getTokenIdFromRandomNumber(randomValue); emit AssignedTokenID(msg.sender, tokenID); _safeMint(msg.sender, tokenID); _setTokenURI(tokenID, Strings.toString(tokenID)); delete randomValue; delete tokenID; _totalMinted.increment(); emit RemainingSupply(totalSupply - _totalMinted.current()); } } /** * Requests randomness */ function loadRandomNumber() public onlyOwner { require(LINK.balanceOf(address(this)) >= linkFee, "Not enough LINK in contract"); requestRandomness(keyHash, linkFee); } /** * Callback function used by VRF Coordinator */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { emit RandomnessFulfilled(requestId); randomResult = randomness; } function setContractStatus(ContractStatus status) public onlyOwner { contractStatus = status; } function isWhitelist(address account, bytes32[] calldata proof) public view returns (bool) { return MerkleProof.verify(proof, addressMerkleRoot, generateAddressMerkleLeaf(account)); } function canMint(address account, uint256 allowedQuantity, bytes32[] calldata proof) public view returns (bool) { return MerkleProof.verify(proof, quantityMerkleRoot, generateDevMintMerkleLeaf(account, allowedQuantity)); } function generateAddressMerkleLeaf(address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account)); } function generateDevMintMerkleLeaf(address account, uint256 allowedQuantity) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account, allowedQuantity)); } function setAddressMerkleRoot(bytes32 _merkleRoot) public onlyOwner { addressMerkleRoot = _merkleRoot; } function setQuantityMerkleRoot(bytes32 _merkleRoot) public onlyOwner { quantityMerkleRoot = _merkleRoot; } function getQuantityMinted() public view returns (uint256) { return _totalMinted.current(); } function withdraw() public onlyOwner { uint256 sendAmount = address(this).balance; address haus = payable(0xb386e92aCf9279cebb13389811C22b77cC649Bd6); address youngworld = payable(0x433e7F8e28cDd827016f656b25cE9ef46558844A); bool success; (success, ) = haus.call{value: (sendAmount * 850/1000)}(""); require(success, "Transaction Unsuccessful"); (success, ) = youngworld.call{value: (sendAmount * 150/1000)}(""); require(success, "Transaction Unsuccessful"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 private constant USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface internal immutable LINK; address private immutable vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 => uint256) /* keyHash */ /* nonce */ private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @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` cannot be the zero address. * - `to` cannot be the zero address. * * 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_alMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_quantityMerkleRoot","type":"bytes32"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkTokenAddress","type":"address"},{"internalType":"bytes32","name":"kHash","type":"bytes32"},{"internalType":"string","name":"contractBaseURI","type":"string"}],"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":"_for","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"AssignedTokenID","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_who","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"MintTokenCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestID","type":"bytes32"}],"name":"RandomnessFulfilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"supply","type":"uint256"}],"name":"RemainingSupply","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":"addressMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"allowedQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractStatus","outputs":[{"internalType":"enum Modules.ContractStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"allowedQuantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"devMint","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":[],"name":"getQuantityMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"loadRandomNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quantityMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"quantityMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"remainingSupplyCache","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAddressMerkleRoot","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Modules.ContractStatus","name":"status","type":"uint8"}],"name":"setContractStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setQuantityMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526002600960006101000a81548160ff021916908360028111156200002d576200002c6200061b565b5b02179055503480156200003f57600080fd5b5060405162005d3b38038062005d3b833981810160405281019062000065919062000421565b83836040518060400160405280600a81526020017f68617573706861736573000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f48415553000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000eb929190620002c5565b50806001908051906020019062000104929190620002c5565b505050620001276200011b620001f760201b60201c565b620001ff60201b60201c565b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505085600a8190555084600b8190555080600d9080519060200190620001bd929190620002c5565b50611e61600e8190555066470de4df820000600c8190555081601281905550671bc16d674ec8000060138190555050505050505062000701565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002d390620005af565b90600052602060002090601f016020900481019282620002f7576000855562000343565b82601f106200031257805160ff191683800117855562000343565b8280016001018555821562000343579182015b828111156200034257825182559160200191906001019062000325565b5b50905062000352919062000356565b5090565b5b808211156200037157600081600090555060010162000357565b5090565b60006200038c620003868462000505565b620004dc565b905082815260208101848484011115620003ab57620003aa620006ad565b5b620003b884828562000579565b509392505050565b600081519050620003d181620006cd565b92915050565b600081519050620003e881620006e7565b92915050565b600082601f830112620004065762000405620006a8565b5b81516200041884826020860162000375565b91505092915050565b60008060008060008060c08789031215620004415762000440620006b7565b5b60006200045189828a01620003d7565b96505060206200046489828a01620003d7565b95505060406200047789828a01620003c0565b94505060606200048a89828a01620003c0565b93505060806200049d89828a01620003d7565b92505060a087015167ffffffffffffffff811115620004c157620004c0620006b2565b5b620004cf89828a01620003ee565b9150509295509295509295565b6000620004e8620004fb565b9050620004f68282620005e5565b919050565b6000604051905090565b600067ffffffffffffffff82111562000523576200052262000679565b5b6200052e82620006bc565b9050602081019050919050565b6000620005488262000559565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620005995780820151818401526020810190506200057c565b83811115620005a9576000848401525b50505050565b60006002820490506001821680620005c857607f821691505b60208210811415620005df57620005de6200064a565b5b50919050565b620005f082620006bc565b810181811067ffffffffffffffff8211171562000612576200061162000679565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006d8816200053b565b8114620006e457600080fd5b50565b620006f2816200054f565b8114620006fe57600080fd5b50565b60805160601c60a05160601c6156006200073b6000396000818161174f015261289a0152600081816119db015261285e01526156006000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146107ac578063cd8fceea146107e9578063d2be585014610814578063e985e9c51461083f578063f2fde38b1461087c5761021a565b8063a22cb465146106fc578063b88d4fde14610725578063b953438b1461074e578063ba41b0c614610765578063c6ee20d2146107815761021a565b806392a823af116100f257806392a823af1461061757806394985ddd1461064057806395d89b41146106695780639d1c16d614610694578063a035b1fe146106d15761021a565b8063715018a61461055b5780637817777d146105725780638da5cb5b146105af578063921211ea146105da5761021a565b806323b872dd116101a657806355f804b31161017557806355f804b3146104645780636352211e1461048d5780636c0360eb146104ca5780636cd99145146104f557806370a082311461051e5761021a565b806323b872dd146103d25780633ccfd60b146103fb57806342842e0e1461041257806342966c681461043b5761021a565b806311267c17116101ed57806311267c17146102ed57806311f706ec1461031657806316df99d11461033f57806318160ddd1461037c578063216a08d4146103a75761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613b8a565b6108a5565b6040516102539190614452565b60405180910390f35b34801561026857600080fd5b50610271610987565b60405161027e9190614511565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613c5a565b610a19565b6040516102bb91906143ad565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613a3c565b610a9e565b005b3480156102f957600080fd5b50610314600480360381019061030f9190613d14565b610bb6565b005b34801561032257600080fd5b5061033d60048036038101906103389190613be4565b610e8c565b005b34801561034b57600080fd5b5061036660048036038101906103619190613859565b610f35565b60405161037391906148d3565b60405180910390f35b34801561038857600080fd5b50610391610f4d565b60405161039e91906148d3565b60405180910390f35b3480156103b357600080fd5b506103bc610f53565b6040516103c991906148d3565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f491906138c6565b610f64565b005b34801561040757600080fd5b50610410610fc4565b005b34801561041e57600080fd5b50610439600480360381019061043491906138c6565b61120a565b005b34801561044757600080fd5b50610462600480360381019061045d9190613c5a565b61122a565b005b34801561047057600080fd5b5061048b60048036038101906104869190613c11565b611286565b005b34801561049957600080fd5b506104b460048036038101906104af9190613c5a565b61131c565b6040516104c191906143ad565b60405180910390f35b3480156104d657600080fd5b506104df6113ce565b6040516104ec9190614511565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613b1d565b61145c565b005b34801561052a57600080fd5b5061054560048036038101906105409190613859565b6114e2565b60405161055291906148d3565b60405180910390f35b34801561056757600080fd5b5061057061159a565b005b34801561057e57600080fd5b5061059960048036038101906105949190613c5a565b611622565b6040516105a691906148d3565b60405180910390f35b3480156105bb57600080fd5b506105c461163a565b6040516105d191906143ad565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190613a7c565b611664565b60405161060e9190614452565b60405180910390f35b34801561062357600080fd5b5061063e60048036038101906106399190613b1d565b6116c7565b005b34801561064c57600080fd5b5061066760048036038101906106629190613b4a565b61174d565b005b34801561067557600080fd5b5061067e6117e9565b60405161068b9190614511565b60405180910390f35b3480156106a057600080fd5b506106bb60048036038101906106b6919061399c565b61187b565b6040516106c89190614452565b60405180910390f35b3480156106dd57600080fd5b506106e66118dc565b6040516106f391906148d3565b60405180910390f35b34801561070857600080fd5b50610723600480360381019061071e91906139fc565b6118e2565b005b34801561073157600080fd5b5061074c60048036038101906107479190613919565b6118f8565b005b34801561075a57600080fd5b5061076361195a565b005b61077f600480360381019061077a9190613cb4565b611ad4565b005b34801561078d57600080fd5b50610796611d1a565b6040516107a391906144f6565b60405180910390f35b3480156107b857600080fd5b506107d360048036038101906107ce9190613c5a565b611d2d565b6040516107e09190614511565b60405180910390f35b3480156107f557600080fd5b506107fe611d3f565b60405161080b919061446d565b60405180910390f35b34801561082057600080fd5b50610829611d45565b604051610836919061446d565b60405180910390f35b34801561084b57600080fd5b5061086660048036038101906108619190613886565b611d4b565b6040516108739190614452565b60405180910390f35b34801561088857600080fd5b506108a3600480360381019061089e9190613859565b611ddf565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061097057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610980575061097f82611ed7565b5b9050919050565b60606000805461099690614be6565b80601f01602080910402602001604051908101604052809291908181526020018280546109c290614be6565b8015610a0f5780601f106109e457610100808354040283529160200191610a0f565b820191906000526020600020905b8154815290600101906020018083116109f257829003601f168201915b5050505050905090565b6000610a2482611f41565b610a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5a90614793565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aa98261131c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1190614873565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b39611fad565b73ffffffffffffffffffffffffffffffffffffffff161480610b685750610b6781610b62611fad565b611d4b565b5b610ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9e906146b3565b60405180910390fd5b610bb18383611fb5565b505050565b3373ffffffffffffffffffffffffffffffffffffffff167f9e1d5541b7306ad9458bf085972d932baa5dcd0ccba572710a46d233bded5fe485604051610bfc91906148d3565b60405180910390a2600a841115610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f90614553565b60405180910390fd5b600e5484610c56600f61206e565b610c6091906149ec565b1115610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890614573565b60405180910390fd5b600280811115610cb457610cb3614d59565b5b600960009054906101000a900460ff166002811115610cd657610cd5614d59565b5b1415610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90614533565b60405180910390fd5b610d2333848484611664565b610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d59906147b3565b60405180910390fd5b8284601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610dae91906149ec565b1115610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de6906145d3565b60405180910390fd5b610df88461207c565b83601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e4391906149ec565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b610e94611fad565b73ffffffffffffffffffffffffffffffffffffffff16610eb261163a565b73ffffffffffffffffffffffffffffffffffffffff1614610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff906147d3565b60405180910390fd5b80600960006101000a81548160ff02191690836002811115610f2d57610f2c614d59565b5b021790555050565b60116020528060005260406000206000915090505481565b600e5481565b6000610f5f600f61206e565b905090565b610f75610f6f611fad565b826121c9565b610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614893565b60405180910390fd5b610fbf8383836122a7565b505050565b610fcc611fad565b73ffffffffffffffffffffffffffffffffffffffff16610fea61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611040576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611037906147d3565b60405180910390fd5b6000479050600073b386e92acf9279cebb13389811c22b77cc649bd69050600073433e7f8e28cdd827016f656b25ce9ef46558844a905060008273ffffffffffffffffffffffffffffffffffffffff166103e8610352866110a19190614a73565b6110ab9190614a42565b6040516110b790614398565b60006040518083038185875af1925050503d80600081146110f4576040519150601f19603f3d011682016040523d82523d6000602084013e6110f9565b606091505b5050809150508061113f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113690614633565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166103e86096866111669190614a73565b6111709190614a42565b60405161117c90614398565b60006040518083038185875af1925050503d80600081146111b9576040519150601f19603f3d011682016040523d82523d6000602084013e6111be565b606091505b50508091505080611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb90614633565b60405180910390fd5b50505050565b611225838383604051806020016040528060008152506118f8565b505050565b61123b611235611fad565b826121c9565b61127a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611271906148b3565b60405180910390fd5b61128381612503565b50565b61128e611fad565b73ffffffffffffffffffffffffffffffffffffffff166112ac61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f9906147d3565b60405180910390fd5b80600d9080519060200190611318929190613583565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bc906146f3565b60405180910390fd5b80915050919050565b600d80546113db90614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461140790614be6565b80156114545780601f1061142957610100808354040283529160200191611454565b820191906000526020600020905b81548152906001019060200180831161143757829003601f168201915b505050505081565b611464611fad565b73ffffffffffffffffffffffffffffffffffffffff1661148261163a565b73ffffffffffffffffffffffffffffffffffffffff16146114d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cf906147d3565b60405180910390fd5b80600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a906146d3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115a2611fad565b73ffffffffffffffffffffffffffffffffffffffff166115c061163a565b73ffffffffffffffffffffffffffffffffffffffff1614611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d906147d3565b60405180910390fd5b611620600061250f565b565b60106020528060005260406000206000915090505481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006116bd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b546116b888886125d5565b612608565b9050949350505050565b6116cf611fad565b73ffffffffffffffffffffffffffffffffffffffff166116ed61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611743576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173a906147d3565b60405180910390fd5b80600a8190555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d290614833565b60405180910390fd5b6117e5828261261f565b5050565b6060600180546117f890614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461182490614be6565b80156118715780601f1061184657610100808354040283529160200191611871565b820191906000526020600020905b81548152906001019060200180831161185457829003601f168201915b5050505050905090565b60006118d3838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a546118ce87612661565b612608565b90509392505050565b600c5481565b6118f46118ed611fad565b8383612691565b5050565b611909611903611fad565b836121c9565b611948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193f90614893565b60405180910390fd5b611954848484846127fe565b50505050565b611962611fad565b73ffffffffffffffffffffffffffffffffffffffff1661198061163a565b73ffffffffffffffffffffffffffffffffffffffff16146119d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cd906147d3565b60405180910390fd5b6013547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a3291906143ad565b60206040518083038186803b158015611a4a57600080fd5b505afa158015611a5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a829190613c87565b1015611ac3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aba90614733565b60405180910390fd5b611ad160125460135461285a565b50565b3373ffffffffffffffffffffffffffffffffffffffff167f9e1d5541b7306ad9458bf085972d932baa5dcd0ccba572710a46d233bded5fe484604051611b1a91906148d3565b60405180910390a2600a831115611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614553565b60405180910390fd5b600e5483611b74600f61206e565b611b7e91906149ec565b1115611bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb690614573565b60405180910390fd5b600280811115611bd257611bd1614d59565b5b600960009054906101000a900460ff166002811115611bf457611bf3614d59565b5b1415611c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2c90614533565b60405180910390fd5b82600c54611c439190614a73565b341015611c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7c90614853565b60405180910390fd5b60006002811115611c9957611c98614d59565b5b600960009054906101000a900460ff166002811115611cbb57611cba614d59565b5b1415611d0c57611ccc33838361187b565b611d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0290614593565b60405180910390fd5b5b611d158361207c565b505050565b600960009054906101000a900460ff1681565b6060611d38826129bc565b9050919050565b600a5481565b600b5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611de7611fad565b73ffffffffffffffffffffffffffffffffffffffff16611e0561163a565b73ffffffffffffffffffffffffffffffffffffffff1614611e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e52906147d3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ecb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec2906145f3565b60405180910390fd5b611ed48161250f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166120288361131c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60005b818110156121c5576000612093600f61206e565b600e546120a09190614acd565b601454836040516020016120b59291906148ee565b6040516020818303038152906040528051906020012060001c6120d89190614cca565b905060006120e582612b0e565b90503373ffffffffffffffffffffffffffffffffffffffff167f7c7eed1539080708567a4b7e9b4103745ed24123e55df0bf4a6866d39acfc8398260405161212d91906148d3565b60405180910390a261213f3382612be3565b6121518161214c83612c01565b612d62565b6000915060009050612163600f612dd6565b7f4089431fa0bba0d0ed464c3039d19cd0076e19ba8089aee275fd538ac42f5cf761218e600f61206e565b600e5461219b9190614acd565b6040516121a891906148d3565b60405180910390a1505080806121bd90614c49565b91505061207f565b5050565b60006121d482611f41565b612213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220a90614693565b60405180910390fd5b600061221e8361131c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061228d57508373ffffffffffffffffffffffffffffffffffffffff1661227584610a19565b73ffffffffffffffffffffffffffffffffffffffff16145b8061229e575061229d8185611d4b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122c78261131c565b73ffffffffffffffffffffffffffffffffffffffff161461231d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612314906147f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561238d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238490614653565b60405180910390fd5b612398838383612dec565b6123a3600082611fb5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f39190614acd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461244a91906149ec565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61250c81612df1565b50565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082826040516020016125ea9291906142f0565b60405160208183030381529060405280519060200120905092915050565b6000826126158584612e44565b1490509392505050565b7fa312c4217fec2a5d353039350081a0149ed918efd6ec43d7f0e8a425f0715f158260405161264e919061446d565b60405180910390a1806014819055505050565b60008160405160200161267491906142d5565b604051602081830303815290604052805190602001209050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f790614673565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127f19190614452565b60405180910390a3505050565b6128098484846122a7565b61281584848484612ef7565b612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b906145b3565b60405180910390fd5b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016128ce929190614488565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016128fb93929190614414565b602060405180830381600087803b15801561291557600080fd5b505af1158015612929573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061294d9190613af0565b50600061297084600030600860008981526020019081526020016000205461308e565b90506001600860008681526020019081526020016000205461299291906149ec565b60086000868152602001908152602001600020819055506129b384826130ca565b91505092915050565b60606129c782611f41565b612a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fd90614773565b60405180910390fd5b6000600660008481526020019081526020016000208054612a2690614be6565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5290614be6565b8015612a9f5780601f10612a7457610100808354040283529160200191612a9f565b820191906000526020600020905b815481529060010190602001808311612a8257829003601f168201915b505050505090506000612ab06130fd565b9050600081511415612ac6578192505050612b09565b600082511115612afb578082604051602001612ae3929190614374565b60405160208183030381529060405292505050612b09565b612b048461318f565b925050505b919050565b6000806000601060008581526020019081526020016000205414612b45576010600084815260200190815260200160002054612b47565b825b90506000612b55600f61206e565b600e54612b629190614acd565b9050600060106000600184612b779190614acd565b81526020019081526020016000205414612bb05760106000600183612b9c9190614acd565b815260200190815260200160002054612bbe565b600181612bbd9190614acd565b5b6010600086815260200190815260200160002081905550600090508192505050919050565b612bfd828260405180602001604052806000815250613236565b5050565b60606000821415612c49576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d5d565b600082905060005b60008214612c7b578080612c6490614c49565b915050600a82612c749190614a42565b9150612c51565b60008167ffffffffffffffff811115612c9757612c96614de6565b5b6040519080825280601f01601f191660200182016040528015612cc95781602001600182028036833780820191505090505b5090505b60008514612d5657600182612ce29190614acd565b9150600a85612cf19190614cca565b6030612cfd91906149ec565b60f81b818381518110612d1357612d12614db7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d4f9190614a42565b9450612ccd565b8093505050505b919050565b612d6b82611f41565b612daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da190614713565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190612dd1929190613583565b505050565b6001816000016000828254019250508190555050565b505050565b612dfa81613291565b6000600660008381526020019081526020016000208054612e1a90614be6565b905014612e4157600660008281526020019081526020016000206000612e409190613609565b5b50565b60008082905060005b8451811015612eec576000858281518110612e6b57612e6a614db7565b5b60200260200101519050808311612eac578281604051602001612e8f92919061431c565b604051602081830303815290604052805190602001209250612ed8565b8083604051602001612ebf92919061431c565b6040516020818303038152906040528051906020012092505b508080612ee490614c49565b915050612e4d565b508091505092915050565b6000612f188473ffffffffffffffffffffffffffffffffffffffff166133a2565b15613081578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f41611fad565b8786866040518563ffffffff1660e01b8152600401612f6394939291906143c8565b602060405180830381600087803b158015612f7d57600080fd5b505af1925050508015612fae57506040513d601f19601f82011682018060405250810190612fab9190613bb7565b60015b613031573d8060008114612fde576040519150601f19603f3d011682016040523d82523d6000602084013e612fe3565b606091505b50600081511415613029576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613020906145b3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613086565b600190505b949350505050565b6000848484846040516020016130a794939291906144b1565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016130df929190614348565b60405160208183030381529060405280519060200120905092915050565b6060600d805461310c90614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461313890614be6565b80156131855780601f1061315a57610100808354040283529160200191613185565b820191906000526020600020905b81548152906001019060200180831161316857829003601f168201915b5050505050905090565b606061319a82611f41565b6131d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d090614813565b60405180910390fd5b60006131e36130fd565b90506000815111613203576040518060200160405280600081525061322e565b8061320d84612c01565b60405160200161321e929190614374565b6040516020818303038152906040525b915050919050565b61324083836133b5565b61324d6000848484612ef7565b61328c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613283906145b3565b60405180910390fd5b505050565b600061329c8261131c565b90506132aa81600084612dec565b6132b5600083611fb5565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133059190614acd565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613425576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341c90614753565b60405180910390fd5b61342e81611f41565b1561346e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346590614613565b60405180910390fd5b61347a60008383612dec565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134ca91906149ec565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b82805461358f90614be6565b90600052602060002090601f0160209004810192826135b157600085556135f8565b82601f106135ca57805160ff19168380011785556135f8565b828001600101855582156135f8579182015b828111156135f75782518255916020019190600101906135dc565b5b5090506136059190613649565b5090565b50805461361590614be6565b6000825580601f106136275750613646565b601f0160209004906000526020600020908101906136459190613649565b5b50565b5b8082111561366257600081600090555060010161364a565b5090565b60006136796136748461493c565b614917565b90508281526020810184848401111561369557613694614e24565b5b6136a0848285614ba4565b509392505050565b60006136bb6136b68461496d565b614917565b9050828152602081018484840111156136d7576136d6614e24565b5b6136e2848285614ba4565b509392505050565b6000813590506136f981615547565b92915050565b60008083601f84011261371557613714614e1a565b5b8235905067ffffffffffffffff81111561373257613731614e15565b5b60208301915083602082028301111561374e5761374d614e1f565b5b9250929050565b6000813590506137648161555e565b92915050565b6000815190506137798161555e565b92915050565b60008135905061378e81615575565b92915050565b6000813590506137a38161558c565b92915050565b6000815190506137b88161558c565b92915050565b600082601f8301126137d3576137d2614e1a565b5b81356137e3848260208601613666565b91505092915050565b6000813590506137fb816155a3565b92915050565b600082601f83011261381657613815614e1a565b5b81356138268482602086016136a8565b91505092915050565b60008135905061383e816155b3565b92915050565b600081519050613853816155b3565b92915050565b60006020828403121561386f5761386e614e2e565b5b600061387d848285016136ea565b91505092915050565b6000806040838503121561389d5761389c614e2e565b5b60006138ab858286016136ea565b92505060206138bc858286016136ea565b9150509250929050565b6000806000606084860312156138df576138de614e2e565b5b60006138ed868287016136ea565b93505060206138fe868287016136ea565b925050604061390f8682870161382f565b9150509250925092565b6000806000806080858703121561393357613932614e2e565b5b6000613941878288016136ea565b9450506020613952878288016136ea565b93505060406139638782880161382f565b925050606085013567ffffffffffffffff81111561398457613983614e29565b5b613990878288016137be565b91505092959194509250565b6000806000604084860312156139b5576139b4614e2e565b5b60006139c3868287016136ea565b935050602084013567ffffffffffffffff8111156139e4576139e3614e29565b5b6139f0868287016136ff565b92509250509250925092565b60008060408385031215613a1357613a12614e2e565b5b6000613a21858286016136ea565b9250506020613a3285828601613755565b9150509250929050565b60008060408385031215613a5357613a52614e2e565b5b6000613a61858286016136ea565b9250506020613a728582860161382f565b9150509250929050565b60008060008060608587031215613a9657613a95614e2e565b5b6000613aa4878288016136ea565b9450506020613ab58782880161382f565b935050604085013567ffffffffffffffff811115613ad657613ad5614e29565b5b613ae2878288016136ff565b925092505092959194509250565b600060208284031215613b0657613b05614e2e565b5b6000613b148482850161376a565b91505092915050565b600060208284031215613b3357613b32614e2e565b5b6000613b418482850161377f565b91505092915050565b60008060408385031215613b6157613b60614e2e565b5b6000613b6f8582860161377f565b9250506020613b808582860161382f565b9150509250929050565b600060208284031215613ba057613b9f614e2e565b5b6000613bae84828501613794565b91505092915050565b600060208284031215613bcd57613bcc614e2e565b5b6000613bdb848285016137a9565b91505092915050565b600060208284031215613bfa57613bf9614e2e565b5b6000613c08848285016137ec565b91505092915050565b600060208284031215613c2757613c26614e2e565b5b600082013567ffffffffffffffff811115613c4557613c44614e29565b5b613c5184828501613801565b91505092915050565b600060208284031215613c7057613c6f614e2e565b5b6000613c7e8482850161382f565b91505092915050565b600060208284031215613c9d57613c9c614e2e565b5b6000613cab84828501613844565b91505092915050565b600080600060408486031215613ccd57613ccc614e2e565b5b6000613cdb8682870161382f565b935050602084013567ffffffffffffffff811115613cfc57613cfb614e29565b5b613d08868287016136ff565b92509250509250925092565b60008060008060608587031215613d2e57613d2d614e2e565b5b6000613d3c8782880161382f565b9450506020613d4d8782880161382f565b935050604085013567ffffffffffffffff811115613d6e57613d6d614e29565b5b613d7a878288016136ff565b925092505092959194509250565b613d9181614b01565b82525050565b613da8613da382614b01565b614c92565b82525050565b613db781614b13565b82525050565b613dc681614b1f565b82525050565b613ddd613dd882614b1f565b614ca4565b82525050565b6000613dee8261499e565b613df881856149b4565b9350613e08818560208601614bb3565b613e1181614e33565b840191505092915050565b613e2581614b92565b82525050565b6000613e36826149a9565b613e4081856149d0565b9350613e50818560208601614bb3565b613e5981614e33565b840191505092915050565b6000613e6f826149a9565b613e7981856149e1565b9350613e89818560208601614bb3565b80840191505092915050565b6000613ea26018836149d0565b9150613ead82614e51565b602082019050919050565b6000613ec5600e836149d0565b9150613ed082614e7a565b602082019050919050565b6000613ee86011836149d0565b9150613ef382614ea3565b602082019050919050565b6000613f0b6019836149d0565b9150613f1682614ecc565b602082019050919050565b6000613f2e6032836149d0565b9150613f3982614ef5565b604082019050919050565b6000613f51601d836149d0565b9150613f5c82614f44565b602082019050919050565b6000613f746026836149d0565b9150613f7f82614f6d565b604082019050919050565b6000613f97601c836149d0565b9150613fa282614fbc565b602082019050919050565b6000613fba6018836149d0565b9150613fc582614fe5565b602082019050919050565b6000613fdd6024836149d0565b9150613fe88261500e565b604082019050919050565b60006140006019836149d0565b915061400b8261505d565b602082019050919050565b6000614023602c836149d0565b915061402e82615086565b604082019050919050565b60006140466038836149d0565b9150614051826150d5565b604082019050919050565b6000614069602a836149d0565b915061407482615124565b604082019050919050565b600061408c6029836149d0565b915061409782615173565b604082019050919050565b60006140af602e836149d0565b91506140ba826151c2565b604082019050919050565b60006140d2601b836149d0565b91506140dd82615211565b602082019050919050565b60006140f56020836149d0565b91506141008261523a565b602082019050919050565b60006141186031836149d0565b915061412382615263565b604082019050919050565b600061413b602c836149d0565b9150614146826152b2565b604082019050919050565b600061415e601f836149d0565b915061416982615301565b602082019050919050565b60006141816020836149d0565b915061418c8261532a565b602082019050919050565b60006141a46029836149d0565b91506141af82615353565b604082019050919050565b60006141c7602f836149d0565b91506141d2826153a2565b604082019050919050565b60006141ea601f836149d0565b91506141f5826153f1565b602082019050919050565b600061420d6013836149d0565b91506142188261541a565b602082019050919050565b60006142306021836149d0565b915061423b82615443565b604082019050919050565b60006142536000836149c5565b915061425e82615492565b600082019050919050565b60006142766031836149d0565b915061428182615495565b604082019050919050565b60006142996030836149d0565b91506142a4826154e4565b604082019050919050565b6142b881614b88565b82525050565b6142cf6142ca82614b88565b614cc0565b82525050565b60006142e18284613d97565b60148201915081905092915050565b60006142fc8285613d97565b60148201915061430c82846142be565b6020820191508190509392505050565b60006143288285613dcc565b6020820191506143388284613dcc565b6020820191508190509392505050565b60006143548285613dcc565b60208201915061436482846142be565b6020820191508190509392505050565b60006143808285613e64565b915061438c8284613e64565b91508190509392505050565b60006143a382614246565b9150819050919050565b60006020820190506143c26000830184613d88565b92915050565b60006080820190506143dd6000830187613d88565b6143ea6020830186613d88565b6143f760408301856142af565b81810360608301526144098184613de3565b905095945050505050565b60006060820190506144296000830186613d88565b61443660208301856142af565b81810360408301526144488184613de3565b9050949350505050565b60006020820190506144676000830184613dae565b92915050565b60006020820190506144826000830184613dbd565b92915050565b600060408201905061449d6000830185613dbd565b6144aa60208301846142af565b9392505050565b60006080820190506144c66000830187613dbd565b6144d360208301866142af565b6144e06040830185613d88565b6144ed60608301846142af565b95945050505050565b600060208201905061450b6000830184613e1c565b92915050565b6000602082019050818103600083015261452b8184613e2b565b905092915050565b6000602082019050818103600083015261454c81613e95565b9050919050565b6000602082019050818103600083015261456c81613eb8565b9050919050565b6000602082019050818103600083015261458c81613edb565b9050919050565b600060208201905081810360008301526145ac81613efe565b9050919050565b600060208201905081810360008301526145cc81613f21565b9050919050565b600060208201905081810360008301526145ec81613f44565b9050919050565b6000602082019050818103600083015261460c81613f67565b9050919050565b6000602082019050818103600083015261462c81613f8a565b9050919050565b6000602082019050818103600083015261464c81613fad565b9050919050565b6000602082019050818103600083015261466c81613fd0565b9050919050565b6000602082019050818103600083015261468c81613ff3565b9050919050565b600060208201905081810360008301526146ac81614016565b9050919050565b600060208201905081810360008301526146cc81614039565b9050919050565b600060208201905081810360008301526146ec8161405c565b9050919050565b6000602082019050818103600083015261470c8161407f565b9050919050565b6000602082019050818103600083015261472c816140a2565b9050919050565b6000602082019050818103600083015261474c816140c5565b9050919050565b6000602082019050818103600083015261476c816140e8565b9050919050565b6000602082019050818103600083015261478c8161410b565b9050919050565b600060208201905081810360008301526147ac8161412e565b9050919050565b600060208201905081810360008301526147cc81614151565b9050919050565b600060208201905081810360008301526147ec81614174565b9050919050565b6000602082019050818103600083015261480c81614197565b9050919050565b6000602082019050818103600083015261482c816141ba565b9050919050565b6000602082019050818103600083015261484c816141dd565b9050919050565b6000602082019050818103600083015261486c81614200565b9050919050565b6000602082019050818103600083015261488c81614223565b9050919050565b600060208201905081810360008301526148ac81614269565b9050919050565b600060208201905081810360008301526148cc8161428c565b9050919050565b60006020820190506148e860008301846142af565b92915050565b600060408201905061490360008301856142af565b61491060208301846142af565b9392505050565b6000614921614932565b905061492d8282614c18565b919050565b6000604051905090565b600067ffffffffffffffff82111561495757614956614de6565b5b61496082614e33565b9050602081019050919050565b600067ffffffffffffffff82111561498857614987614de6565b5b61499182614e33565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006149f782614b88565b9150614a0283614b88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3757614a36614cfb565b5b828201905092915050565b6000614a4d82614b88565b9150614a5883614b88565b925082614a6857614a67614d2a565b5b828204905092915050565b6000614a7e82614b88565b9150614a8983614b88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac257614ac1614cfb565b5b828202905092915050565b6000614ad882614b88565b9150614ae383614b88565b925082821015614af657614af5614cfb565b5b828203905092915050565b6000614b0c82614b68565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614b6382615533565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614b9d82614b55565b9050919050565b82818337600083830152505050565b60005b83811015614bd1578082015181840152602081019050614bb6565b83811115614be0576000848401525b50505050565b60006002820490506001821680614bfe57607f821691505b60208210811415614c1257614c11614d88565b5b50919050565b614c2182614e33565b810181811067ffffffffffffffff82111715614c4057614c3f614de6565b5b80604052505050565b6000614c5482614b88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c8757614c86614cfb565b5b600182019050919050565b6000614c9d82614cae565b9050919050565b6000819050919050565b6000614cb982614e44565b9050919050565b6000819050919050565b6000614cd582614b88565b9150614ce083614b88565b925082614cf057614cef614d2a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e74696e672063757272656e746c79207061757365640000000000000000600082015250565b7f4d6178203130207065722074786e000000000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820737570706c79000000000000000000000000000000600082015250565b7f4d696e74696e672063757272656e746c7920574c206f6e6c7900000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4578636565647320616c6c6f776564206d696e74207175616e74697479000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f5472616e73616374696f6e20556e7375636365737366756c0000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204c494e4b20696e20636f6e74726163740000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f526571756573746564207175616e74697479206e6f7420617070726f76656400600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6003811061554457615543614d59565b5b50565b61555081614b01565b811461555b57600080fd5b50565b61556781614b13565b811461557257600080fd5b50565b61557e81614b1f565b811461558957600080fd5b50565b61559581614b29565b81146155a057600080fd5b50565b600381106155b057600080fd5b50565b6155bc81614b88565b81146155c757600080fd5b5056fea264697066735822122001e462ffa4ed5caf741507e0c827ef1f9a3ea49830496aa2df90d7c6a5a4eb2864736f6c6343000807003301cb8c11d144fc92ecc0994992e244281174c53f043f4956c62cb1e2069295951459b1965e8a4f4cb2c4ade9d4e3b7fa9f5f6154337cf9f618a75bb93bc9c4aa000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44500000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5143576d5a615a6a794a474d4b674773345055635a42476a4e6246566875725166754a59706439506d4161682f00000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063715018a611610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146107ac578063cd8fceea146107e9578063d2be585014610814578063e985e9c51461083f578063f2fde38b1461087c5761021a565b8063a22cb465146106fc578063b88d4fde14610725578063b953438b1461074e578063ba41b0c614610765578063c6ee20d2146107815761021a565b806392a823af116100f257806392a823af1461061757806394985ddd1461064057806395d89b41146106695780639d1c16d614610694578063a035b1fe146106d15761021a565b8063715018a61461055b5780637817777d146105725780638da5cb5b146105af578063921211ea146105da5761021a565b806323b872dd116101a657806355f804b31161017557806355f804b3146104645780636352211e1461048d5780636c0360eb146104ca5780636cd99145146104f557806370a082311461051e5761021a565b806323b872dd146103d25780633ccfd60b146103fb57806342842e0e1461041257806342966c681461043b5761021a565b806311267c17116101ed57806311267c17146102ed57806311f706ec1461031657806316df99d11461033f57806318160ddd1461037c578063216a08d4146103a75761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613b8a565b6108a5565b6040516102539190614452565b60405180910390f35b34801561026857600080fd5b50610271610987565b60405161027e9190614511565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190613c5a565b610a19565b6040516102bb91906143ad565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190613a3c565b610a9e565b005b3480156102f957600080fd5b50610314600480360381019061030f9190613d14565b610bb6565b005b34801561032257600080fd5b5061033d60048036038101906103389190613be4565b610e8c565b005b34801561034b57600080fd5b5061036660048036038101906103619190613859565b610f35565b60405161037391906148d3565b60405180910390f35b34801561038857600080fd5b50610391610f4d565b60405161039e91906148d3565b60405180910390f35b3480156103b357600080fd5b506103bc610f53565b6040516103c991906148d3565b60405180910390f35b3480156103de57600080fd5b506103f960048036038101906103f491906138c6565b610f64565b005b34801561040757600080fd5b50610410610fc4565b005b34801561041e57600080fd5b50610439600480360381019061043491906138c6565b61120a565b005b34801561044757600080fd5b50610462600480360381019061045d9190613c5a565b61122a565b005b34801561047057600080fd5b5061048b60048036038101906104869190613c11565b611286565b005b34801561049957600080fd5b506104b460048036038101906104af9190613c5a565b61131c565b6040516104c191906143ad565b60405180910390f35b3480156104d657600080fd5b506104df6113ce565b6040516104ec9190614511565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613b1d565b61145c565b005b34801561052a57600080fd5b5061054560048036038101906105409190613859565b6114e2565b60405161055291906148d3565b60405180910390f35b34801561056757600080fd5b5061057061159a565b005b34801561057e57600080fd5b5061059960048036038101906105949190613c5a565b611622565b6040516105a691906148d3565b60405180910390f35b3480156105bb57600080fd5b506105c461163a565b6040516105d191906143ad565b60405180910390f35b3480156105e657600080fd5b5061060160048036038101906105fc9190613a7c565b611664565b60405161060e9190614452565b60405180910390f35b34801561062357600080fd5b5061063e60048036038101906106399190613b1d565b6116c7565b005b34801561064c57600080fd5b5061066760048036038101906106629190613b4a565b61174d565b005b34801561067557600080fd5b5061067e6117e9565b60405161068b9190614511565b60405180910390f35b3480156106a057600080fd5b506106bb60048036038101906106b6919061399c565b61187b565b6040516106c89190614452565b60405180910390f35b3480156106dd57600080fd5b506106e66118dc565b6040516106f391906148d3565b60405180910390f35b34801561070857600080fd5b50610723600480360381019061071e91906139fc565b6118e2565b005b34801561073157600080fd5b5061074c60048036038101906107479190613919565b6118f8565b005b34801561075a57600080fd5b5061076361195a565b005b61077f600480360381019061077a9190613cb4565b611ad4565b005b34801561078d57600080fd5b50610796611d1a565b6040516107a391906144f6565b60405180910390f35b3480156107b857600080fd5b506107d360048036038101906107ce9190613c5a565b611d2d565b6040516107e09190614511565b60405180910390f35b3480156107f557600080fd5b506107fe611d3f565b60405161080b919061446d565b60405180910390f35b34801561082057600080fd5b50610829611d45565b604051610836919061446d565b60405180910390f35b34801561084b57600080fd5b5061086660048036038101906108619190613886565b611d4b565b6040516108739190614452565b60405180910390f35b34801561088857600080fd5b506108a3600480360381019061089e9190613859565b611ddf565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061097057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610980575061097f82611ed7565b5b9050919050565b60606000805461099690614be6565b80601f01602080910402602001604051908101604052809291908181526020018280546109c290614be6565b8015610a0f5780601f106109e457610100808354040283529160200191610a0f565b820191906000526020600020905b8154815290600101906020018083116109f257829003601f168201915b5050505050905090565b6000610a2482611f41565b610a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5a90614793565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aa98261131c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1190614873565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b39611fad565b73ffffffffffffffffffffffffffffffffffffffff161480610b685750610b6781610b62611fad565b611d4b565b5b610ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9e906146b3565b60405180910390fd5b610bb18383611fb5565b505050565b3373ffffffffffffffffffffffffffffffffffffffff167f9e1d5541b7306ad9458bf085972d932baa5dcd0ccba572710a46d233bded5fe485604051610bfc91906148d3565b60405180910390a2600a841115610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f90614553565b60405180910390fd5b600e5484610c56600f61206e565b610c6091906149ec565b1115610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890614573565b60405180910390fd5b600280811115610cb457610cb3614d59565b5b600960009054906101000a900460ff166002811115610cd657610cd5614d59565b5b1415610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90614533565b60405180910390fd5b610d2333848484611664565b610d62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d59906147b3565b60405180910390fd5b8284601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610dae91906149ec565b1115610def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de6906145d3565b60405180910390fd5b610df88461207c565b83601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e4391906149ec565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b610e94611fad565b73ffffffffffffffffffffffffffffffffffffffff16610eb261163a565b73ffffffffffffffffffffffffffffffffffffffff1614610f08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eff906147d3565b60405180910390fd5b80600960006101000a81548160ff02191690836002811115610f2d57610f2c614d59565b5b021790555050565b60116020528060005260406000206000915090505481565b600e5481565b6000610f5f600f61206e565b905090565b610f75610f6f611fad565b826121c9565b610fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fab90614893565b60405180910390fd5b610fbf8383836122a7565b505050565b610fcc611fad565b73ffffffffffffffffffffffffffffffffffffffff16610fea61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611040576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611037906147d3565b60405180910390fd5b6000479050600073b386e92acf9279cebb13389811c22b77cc649bd69050600073433e7f8e28cdd827016f656b25ce9ef46558844a905060008273ffffffffffffffffffffffffffffffffffffffff166103e8610352866110a19190614a73565b6110ab9190614a42565b6040516110b790614398565b60006040518083038185875af1925050503d80600081146110f4576040519150601f19603f3d011682016040523d82523d6000602084013e6110f9565b606091505b5050809150508061113f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113690614633565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166103e86096866111669190614a73565b6111709190614a42565b60405161117c90614398565b60006040518083038185875af1925050503d80600081146111b9576040519150601f19603f3d011682016040523d82523d6000602084013e6111be565b606091505b50508091505080611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb90614633565b60405180910390fd5b50505050565b611225838383604051806020016040528060008152506118f8565b505050565b61123b611235611fad565b826121c9565b61127a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611271906148b3565b60405180910390fd5b61128381612503565b50565b61128e611fad565b73ffffffffffffffffffffffffffffffffffffffff166112ac61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f9906147d3565b60405180910390fd5b80600d9080519060200190611318929190613583565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bc906146f3565b60405180910390fd5b80915050919050565b600d80546113db90614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461140790614be6565b80156114545780601f1061142957610100808354040283529160200191611454565b820191906000526020600020905b81548152906001019060200180831161143757829003601f168201915b505050505081565b611464611fad565b73ffffffffffffffffffffffffffffffffffffffff1661148261163a565b73ffffffffffffffffffffffffffffffffffffffff16146114d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cf906147d3565b60405180910390fd5b80600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a906146d3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115a2611fad565b73ffffffffffffffffffffffffffffffffffffffff166115c061163a565b73ffffffffffffffffffffffffffffffffffffffff1614611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d906147d3565b60405180910390fd5b611620600061250f565b565b60106020528060005260406000206000915090505481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006116bd838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600b546116b888886125d5565b612608565b9050949350505050565b6116cf611fad565b73ffffffffffffffffffffffffffffffffffffffff166116ed61163a565b73ffffffffffffffffffffffffffffffffffffffff1614611743576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173a906147d3565b60405180910390fd5b80600a8190555050565b7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d290614833565b60405180910390fd5b6117e5828261261f565b5050565b6060600180546117f890614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461182490614be6565b80156118715780601f1061184657610100808354040283529160200191611871565b820191906000526020600020905b81548152906001019060200180831161185457829003601f168201915b5050505050905090565b60006118d3838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a546118ce87612661565b612608565b90509392505050565b600c5481565b6118f46118ed611fad565b8383612691565b5050565b611909611903611fad565b836121c9565b611948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193f90614893565b60405180910390fd5b611954848484846127fe565b50505050565b611962611fad565b73ffffffffffffffffffffffffffffffffffffffff1661198061163a565b73ffffffffffffffffffffffffffffffffffffffff16146119d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cd906147d3565b60405180910390fd5b6013547f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611a3291906143ad565b60206040518083038186803b158015611a4a57600080fd5b505afa158015611a5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a829190613c87565b1015611ac3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aba90614733565b60405180910390fd5b611ad160125460135461285a565b50565b3373ffffffffffffffffffffffffffffffffffffffff167f9e1d5541b7306ad9458bf085972d932baa5dcd0ccba572710a46d233bded5fe484604051611b1a91906148d3565b60405180910390a2600a831115611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614553565b60405180910390fd5b600e5483611b74600f61206e565b611b7e91906149ec565b1115611bbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb690614573565b60405180910390fd5b600280811115611bd257611bd1614d59565b5b600960009054906101000a900460ff166002811115611bf457611bf3614d59565b5b1415611c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2c90614533565b60405180910390fd5b82600c54611c439190614a73565b341015611c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7c90614853565b60405180910390fd5b60006002811115611c9957611c98614d59565b5b600960009054906101000a900460ff166002811115611cbb57611cba614d59565b5b1415611d0c57611ccc33838361187b565b611d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0290614593565b60405180910390fd5b5b611d158361207c565b505050565b600960009054906101000a900460ff1681565b6060611d38826129bc565b9050919050565b600a5481565b600b5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611de7611fad565b73ffffffffffffffffffffffffffffffffffffffff16611e0561163a565b73ffffffffffffffffffffffffffffffffffffffff1614611e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e52906147d3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ecb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec2906145f3565b60405180910390fd5b611ed48161250f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166120288361131c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60005b818110156121c5576000612093600f61206e565b600e546120a09190614acd565b601454836040516020016120b59291906148ee565b6040516020818303038152906040528051906020012060001c6120d89190614cca565b905060006120e582612b0e565b90503373ffffffffffffffffffffffffffffffffffffffff167f7c7eed1539080708567a4b7e9b4103745ed24123e55df0bf4a6866d39acfc8398260405161212d91906148d3565b60405180910390a261213f3382612be3565b6121518161214c83612c01565b612d62565b6000915060009050612163600f612dd6565b7f4089431fa0bba0d0ed464c3039d19cd0076e19ba8089aee275fd538ac42f5cf761218e600f61206e565b600e5461219b9190614acd565b6040516121a891906148d3565b60405180910390a1505080806121bd90614c49565b91505061207f565b5050565b60006121d482611f41565b612213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220a90614693565b60405180910390fd5b600061221e8361131c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061228d57508373ffffffffffffffffffffffffffffffffffffffff1661227584610a19565b73ffffffffffffffffffffffffffffffffffffffff16145b8061229e575061229d8185611d4b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166122c78261131c565b73ffffffffffffffffffffffffffffffffffffffff161461231d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612314906147f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561238d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238490614653565b60405180910390fd5b612398838383612dec565b6123a3600082611fb5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f39190614acd565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461244a91906149ec565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61250c81612df1565b50565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082826040516020016125ea9291906142f0565b60405160208183030381529060405280519060200120905092915050565b6000826126158584612e44565b1490509392505050565b7fa312c4217fec2a5d353039350081a0149ed918efd6ec43d7f0e8a425f0715f158260405161264e919061446d565b60405180910390a1806014819055505050565b60008160405160200161267491906142d5565b604051602081830303815290604052805190602001209050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f790614673565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127f19190614452565b60405180910390a3505050565b6128098484846122a7565b61281584848484612ef7565b612854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284b906145b3565b60405180910390fd5b50505050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016128ce929190614488565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016128fb93929190614414565b602060405180830381600087803b15801561291557600080fd5b505af1158015612929573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061294d9190613af0565b50600061297084600030600860008981526020019081526020016000205461308e565b90506001600860008681526020019081526020016000205461299291906149ec565b60086000868152602001908152602001600020819055506129b384826130ca565b91505092915050565b60606129c782611f41565b612a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fd90614773565b60405180910390fd5b6000600660008481526020019081526020016000208054612a2690614be6565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5290614be6565b8015612a9f5780601f10612a7457610100808354040283529160200191612a9f565b820191906000526020600020905b815481529060010190602001808311612a8257829003601f168201915b505050505090506000612ab06130fd565b9050600081511415612ac6578192505050612b09565b600082511115612afb578082604051602001612ae3929190614374565b60405160208183030381529060405292505050612b09565b612b048461318f565b925050505b919050565b6000806000601060008581526020019081526020016000205414612b45576010600084815260200190815260200160002054612b47565b825b90506000612b55600f61206e565b600e54612b629190614acd565b9050600060106000600184612b779190614acd565b81526020019081526020016000205414612bb05760106000600183612b9c9190614acd565b815260200190815260200160002054612bbe565b600181612bbd9190614acd565b5b6010600086815260200190815260200160002081905550600090508192505050919050565b612bfd828260405180602001604052806000815250613236565b5050565b60606000821415612c49576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d5d565b600082905060005b60008214612c7b578080612c6490614c49565b915050600a82612c749190614a42565b9150612c51565b60008167ffffffffffffffff811115612c9757612c96614de6565b5b6040519080825280601f01601f191660200182016040528015612cc95781602001600182028036833780820191505090505b5090505b60008514612d5657600182612ce29190614acd565b9150600a85612cf19190614cca565b6030612cfd91906149ec565b60f81b818381518110612d1357612d12614db7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d4f9190614a42565b9450612ccd565b8093505050505b919050565b612d6b82611f41565b612daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da190614713565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190612dd1929190613583565b505050565b6001816000016000828254019250508190555050565b505050565b612dfa81613291565b6000600660008381526020019081526020016000208054612e1a90614be6565b905014612e4157600660008281526020019081526020016000206000612e409190613609565b5b50565b60008082905060005b8451811015612eec576000858281518110612e6b57612e6a614db7565b5b60200260200101519050808311612eac578281604051602001612e8f92919061431c565b604051602081830303815290604052805190602001209250612ed8565b8083604051602001612ebf92919061431c565b6040516020818303038152906040528051906020012092505b508080612ee490614c49565b915050612e4d565b508091505092915050565b6000612f188473ffffffffffffffffffffffffffffffffffffffff166133a2565b15613081578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f41611fad565b8786866040518563ffffffff1660e01b8152600401612f6394939291906143c8565b602060405180830381600087803b158015612f7d57600080fd5b505af1925050508015612fae57506040513d601f19601f82011682018060405250810190612fab9190613bb7565b60015b613031573d8060008114612fde576040519150601f19603f3d011682016040523d82523d6000602084013e612fe3565b606091505b50600081511415613029576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613020906145b3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613086565b600190505b949350505050565b6000848484846040516020016130a794939291906144b1565b6040516020818303038152906040528051906020012060001c9050949350505050565b600082826040516020016130df929190614348565b60405160208183030381529060405280519060200120905092915050565b6060600d805461310c90614be6565b80601f016020809104026020016040519081016040528092919081815260200182805461313890614be6565b80156131855780601f1061315a57610100808354040283529160200191613185565b820191906000526020600020905b81548152906001019060200180831161316857829003601f168201915b5050505050905090565b606061319a82611f41565b6131d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d090614813565b60405180910390fd5b60006131e36130fd565b90506000815111613203576040518060200160405280600081525061322e565b8061320d84612c01565b60405160200161321e929190614374565b6040516020818303038152906040525b915050919050565b61324083836133b5565b61324d6000848484612ef7565b61328c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613283906145b3565b60405180910390fd5b505050565b600061329c8261131c565b90506132aa81600084612dec565b6132b5600083611fb5565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133059190614acd565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613425576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341c90614753565b60405180910390fd5b61342e81611f41565b1561346e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346590614613565b60405180910390fd5b61347a60008383612dec565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134ca91906149ec565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b82805461358f90614be6565b90600052602060002090601f0160209004810192826135b157600085556135f8565b82601f106135ca57805160ff19168380011785556135f8565b828001600101855582156135f8579182015b828111156135f75782518255916020019190600101906135dc565b5b5090506136059190613649565b5090565b50805461361590614be6565b6000825580601f106136275750613646565b601f0160209004906000526020600020908101906136459190613649565b5b50565b5b8082111561366257600081600090555060010161364a565b5090565b60006136796136748461493c565b614917565b90508281526020810184848401111561369557613694614e24565b5b6136a0848285614ba4565b509392505050565b60006136bb6136b68461496d565b614917565b9050828152602081018484840111156136d7576136d6614e24565b5b6136e2848285614ba4565b509392505050565b6000813590506136f981615547565b92915050565b60008083601f84011261371557613714614e1a565b5b8235905067ffffffffffffffff81111561373257613731614e15565b5b60208301915083602082028301111561374e5761374d614e1f565b5b9250929050565b6000813590506137648161555e565b92915050565b6000815190506137798161555e565b92915050565b60008135905061378e81615575565b92915050565b6000813590506137a38161558c565b92915050565b6000815190506137b88161558c565b92915050565b600082601f8301126137d3576137d2614e1a565b5b81356137e3848260208601613666565b91505092915050565b6000813590506137fb816155a3565b92915050565b600082601f83011261381657613815614e1a565b5b81356138268482602086016136a8565b91505092915050565b60008135905061383e816155b3565b92915050565b600081519050613853816155b3565b92915050565b60006020828403121561386f5761386e614e2e565b5b600061387d848285016136ea565b91505092915050565b6000806040838503121561389d5761389c614e2e565b5b60006138ab858286016136ea565b92505060206138bc858286016136ea565b9150509250929050565b6000806000606084860312156138df576138de614e2e565b5b60006138ed868287016136ea565b93505060206138fe868287016136ea565b925050604061390f8682870161382f565b9150509250925092565b6000806000806080858703121561393357613932614e2e565b5b6000613941878288016136ea565b9450506020613952878288016136ea565b93505060406139638782880161382f565b925050606085013567ffffffffffffffff81111561398457613983614e29565b5b613990878288016137be565b91505092959194509250565b6000806000604084860312156139b5576139b4614e2e565b5b60006139c3868287016136ea565b935050602084013567ffffffffffffffff8111156139e4576139e3614e29565b5b6139f0868287016136ff565b92509250509250925092565b60008060408385031215613a1357613a12614e2e565b5b6000613a21858286016136ea565b9250506020613a3285828601613755565b9150509250929050565b60008060408385031215613a5357613a52614e2e565b5b6000613a61858286016136ea565b9250506020613a728582860161382f565b9150509250929050565b60008060008060608587031215613a9657613a95614e2e565b5b6000613aa4878288016136ea565b9450506020613ab58782880161382f565b935050604085013567ffffffffffffffff811115613ad657613ad5614e29565b5b613ae2878288016136ff565b925092505092959194509250565b600060208284031215613b0657613b05614e2e565b5b6000613b148482850161376a565b91505092915050565b600060208284031215613b3357613b32614e2e565b5b6000613b418482850161377f565b91505092915050565b60008060408385031215613b6157613b60614e2e565b5b6000613b6f8582860161377f565b9250506020613b808582860161382f565b9150509250929050565b600060208284031215613ba057613b9f614e2e565b5b6000613bae84828501613794565b91505092915050565b600060208284031215613bcd57613bcc614e2e565b5b6000613bdb848285016137a9565b91505092915050565b600060208284031215613bfa57613bf9614e2e565b5b6000613c08848285016137ec565b91505092915050565b600060208284031215613c2757613c26614e2e565b5b600082013567ffffffffffffffff811115613c4557613c44614e29565b5b613c5184828501613801565b91505092915050565b600060208284031215613c7057613c6f614e2e565b5b6000613c7e8482850161382f565b91505092915050565b600060208284031215613c9d57613c9c614e2e565b5b6000613cab84828501613844565b91505092915050565b600080600060408486031215613ccd57613ccc614e2e565b5b6000613cdb8682870161382f565b935050602084013567ffffffffffffffff811115613cfc57613cfb614e29565b5b613d08868287016136ff565b92509250509250925092565b60008060008060608587031215613d2e57613d2d614e2e565b5b6000613d3c8782880161382f565b9450506020613d4d8782880161382f565b935050604085013567ffffffffffffffff811115613d6e57613d6d614e29565b5b613d7a878288016136ff565b925092505092959194509250565b613d9181614b01565b82525050565b613da8613da382614b01565b614c92565b82525050565b613db781614b13565b82525050565b613dc681614b1f565b82525050565b613ddd613dd882614b1f565b614ca4565b82525050565b6000613dee8261499e565b613df881856149b4565b9350613e08818560208601614bb3565b613e1181614e33565b840191505092915050565b613e2581614b92565b82525050565b6000613e36826149a9565b613e4081856149d0565b9350613e50818560208601614bb3565b613e5981614e33565b840191505092915050565b6000613e6f826149a9565b613e7981856149e1565b9350613e89818560208601614bb3565b80840191505092915050565b6000613ea26018836149d0565b9150613ead82614e51565b602082019050919050565b6000613ec5600e836149d0565b9150613ed082614e7a565b602082019050919050565b6000613ee86011836149d0565b9150613ef382614ea3565b602082019050919050565b6000613f0b6019836149d0565b9150613f1682614ecc565b602082019050919050565b6000613f2e6032836149d0565b9150613f3982614ef5565b604082019050919050565b6000613f51601d836149d0565b9150613f5c82614f44565b602082019050919050565b6000613f746026836149d0565b9150613f7f82614f6d565b604082019050919050565b6000613f97601c836149d0565b9150613fa282614fbc565b602082019050919050565b6000613fba6018836149d0565b9150613fc582614fe5565b602082019050919050565b6000613fdd6024836149d0565b9150613fe88261500e565b604082019050919050565b60006140006019836149d0565b915061400b8261505d565b602082019050919050565b6000614023602c836149d0565b915061402e82615086565b604082019050919050565b60006140466038836149d0565b9150614051826150d5565b604082019050919050565b6000614069602a836149d0565b915061407482615124565b604082019050919050565b600061408c6029836149d0565b915061409782615173565b604082019050919050565b60006140af602e836149d0565b91506140ba826151c2565b604082019050919050565b60006140d2601b836149d0565b91506140dd82615211565b602082019050919050565b60006140f56020836149d0565b91506141008261523a565b602082019050919050565b60006141186031836149d0565b915061412382615263565b604082019050919050565b600061413b602c836149d0565b9150614146826152b2565b604082019050919050565b600061415e601f836149d0565b915061416982615301565b602082019050919050565b60006141816020836149d0565b915061418c8261532a565b602082019050919050565b60006141a46029836149d0565b91506141af82615353565b604082019050919050565b60006141c7602f836149d0565b91506141d2826153a2565b604082019050919050565b60006141ea601f836149d0565b91506141f5826153f1565b602082019050919050565b600061420d6013836149d0565b91506142188261541a565b602082019050919050565b60006142306021836149d0565b915061423b82615443565b604082019050919050565b60006142536000836149c5565b915061425e82615492565b600082019050919050565b60006142766031836149d0565b915061428182615495565b604082019050919050565b60006142996030836149d0565b91506142a4826154e4565b604082019050919050565b6142b881614b88565b82525050565b6142cf6142ca82614b88565b614cc0565b82525050565b60006142e18284613d97565b60148201915081905092915050565b60006142fc8285613d97565b60148201915061430c82846142be565b6020820191508190509392505050565b60006143288285613dcc565b6020820191506143388284613dcc565b6020820191508190509392505050565b60006143548285613dcc565b60208201915061436482846142be565b6020820191508190509392505050565b60006143808285613e64565b915061438c8284613e64565b91508190509392505050565b60006143a382614246565b9150819050919050565b60006020820190506143c26000830184613d88565b92915050565b60006080820190506143dd6000830187613d88565b6143ea6020830186613d88565b6143f760408301856142af565b81810360608301526144098184613de3565b905095945050505050565b60006060820190506144296000830186613d88565b61443660208301856142af565b81810360408301526144488184613de3565b9050949350505050565b60006020820190506144676000830184613dae565b92915050565b60006020820190506144826000830184613dbd565b92915050565b600060408201905061449d6000830185613dbd565b6144aa60208301846142af565b9392505050565b60006080820190506144c66000830187613dbd565b6144d360208301866142af565b6144e06040830185613d88565b6144ed60608301846142af565b95945050505050565b600060208201905061450b6000830184613e1c565b92915050565b6000602082019050818103600083015261452b8184613e2b565b905092915050565b6000602082019050818103600083015261454c81613e95565b9050919050565b6000602082019050818103600083015261456c81613eb8565b9050919050565b6000602082019050818103600083015261458c81613edb565b9050919050565b600060208201905081810360008301526145ac81613efe565b9050919050565b600060208201905081810360008301526145cc81613f21565b9050919050565b600060208201905081810360008301526145ec81613f44565b9050919050565b6000602082019050818103600083015261460c81613f67565b9050919050565b6000602082019050818103600083015261462c81613f8a565b9050919050565b6000602082019050818103600083015261464c81613fad565b9050919050565b6000602082019050818103600083015261466c81613fd0565b9050919050565b6000602082019050818103600083015261468c81613ff3565b9050919050565b600060208201905081810360008301526146ac81614016565b9050919050565b600060208201905081810360008301526146cc81614039565b9050919050565b600060208201905081810360008301526146ec8161405c565b9050919050565b6000602082019050818103600083015261470c8161407f565b9050919050565b6000602082019050818103600083015261472c816140a2565b9050919050565b6000602082019050818103600083015261474c816140c5565b9050919050565b6000602082019050818103600083015261476c816140e8565b9050919050565b6000602082019050818103600083015261478c8161410b565b9050919050565b600060208201905081810360008301526147ac8161412e565b9050919050565b600060208201905081810360008301526147cc81614151565b9050919050565b600060208201905081810360008301526147ec81614174565b9050919050565b6000602082019050818103600083015261480c81614197565b9050919050565b6000602082019050818103600083015261482c816141ba565b9050919050565b6000602082019050818103600083015261484c816141dd565b9050919050565b6000602082019050818103600083015261486c81614200565b9050919050565b6000602082019050818103600083015261488c81614223565b9050919050565b600060208201905081810360008301526148ac81614269565b9050919050565b600060208201905081810360008301526148cc8161428c565b9050919050565b60006020820190506148e860008301846142af565b92915050565b600060408201905061490360008301856142af565b61491060208301846142af565b9392505050565b6000614921614932565b905061492d8282614c18565b919050565b6000604051905090565b600067ffffffffffffffff82111561495757614956614de6565b5b61496082614e33565b9050602081019050919050565b600067ffffffffffffffff82111561498857614987614de6565b5b61499182614e33565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006149f782614b88565b9150614a0283614b88565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3757614a36614cfb565b5b828201905092915050565b6000614a4d82614b88565b9150614a5883614b88565b925082614a6857614a67614d2a565b5b828204905092915050565b6000614a7e82614b88565b9150614a8983614b88565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac257614ac1614cfb565b5b828202905092915050565b6000614ad882614b88565b9150614ae383614b88565b925082821015614af657614af5614cfb565b5b828203905092915050565b6000614b0c82614b68565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614b6382615533565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614b9d82614b55565b9050919050565b82818337600083830152505050565b60005b83811015614bd1578082015181840152602081019050614bb6565b83811115614be0576000848401525b50505050565b60006002820490506001821680614bfe57607f821691505b60208210811415614c1257614c11614d88565b5b50919050565b614c2182614e33565b810181811067ffffffffffffffff82111715614c4057614c3f614de6565b5b80604052505050565b6000614c5482614b88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614c8757614c86614cfb565b5b600182019050919050565b6000614c9d82614cae565b9050919050565b6000819050919050565b6000614cb982614e44565b9050919050565b6000819050919050565b6000614cd582614b88565b9150614ce083614b88565b925082614cf057614cef614d2a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e74696e672063757272656e746c79207061757365640000000000000000600082015250565b7f4d6178203130207065722074786e000000000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820737570706c79000000000000000000000000000000600082015250565b7f4d696e74696e672063757272656e746c7920574c206f6e6c7900000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4578636565647320616c6c6f776564206d696e74207175616e74697479000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f5472616e73616374696f6e20556e7375636365737366756c0000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204c494e4b20696e20636f6e74726163740000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f526571756573746564207175616e74697479206e6f7420617070726f76656400600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00600082015250565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6003811061554457615543614d59565b5b50565b61555081614b01565b811461555b57600080fd5b50565b61556781614b13565b811461557257600080fd5b50565b61557e81614b1f565b811461558957600080fd5b50565b61559581614b29565b81146155a057600080fd5b50565b600381106155b057600080fd5b50565b6155bc81614b88565b81146155c757600080fd5b5056fea264697066735822122001e462ffa4ed5caf741507e0c827ef1f9a3ea49830496aa2df90d7c6a5a4eb2864736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
01cb8c11d144fc92ecc0994992e244281174c53f043f4956c62cb1e2069295951459b1965e8a4f4cb2c4ade9d4e3b7fa9f5f6154337cf9f618a75bb93bc9c4aa000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44500000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5143576d5a615a6a794a474d4b674773345055635a42476a4e6246566875725166754a59706439506d4161682f00000000000000000000
-----Decoded View---------------
Arg [0] : _alMerkleRoot (bytes32): 0x01cb8c11d144fc92ecc0994992e244281174c53f043f4956c62cb1e206929595
Arg [1] : _quantityMerkleRoot (bytes32): 0x1459b1965e8a4f4cb2c4ade9d4e3b7fa9f5f6154337cf9f618a75bb93bc9c4aa
Arg [2] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [3] : linkTokenAddress (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [4] : kHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : contractBaseURI (string): ipfs://QmQCWmZaZjyJGMKgGs4PUcZBGjNbFVhurQfuJYpd9PmAah/
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 01cb8c11d144fc92ecc0994992e244281174c53f043f4956c62cb1e206929595
Arg [1] : 1459b1965e8a4f4cb2c4ade9d4e3b7fa9f5f6154337cf9f618a75bb93bc9c4aa
Arg [2] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [3] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [7] : 697066733a2f2f516d5143576d5a615a6a794a474d4b674773345055635a4247
Arg [8] : 6a4e6246566875725166754a59706439506d4161682f00000000000000000000
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.