ERC-721
Overview
Max Total Supply
1,511 KIFT
Holders
286
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KIFTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kiftables
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "erc721a/contracts/ERC721A.sol"; import "./BatchReveal.sol"; contract Kiftables is ERC721A, Ownable, ReentrancyGuard, VRFConsumerBaseV2, BatchReveal { string public baseURI; string public preRevealBaseURI; string public verificationHash; address private openSeaProxyRegistryAddress; bool private isOpenSeaProxyActive = true; address private gnosisSafe; uint256 public constant MAX_KIFTABLES_PER_WALLET = 5; uint256 public constant maxKiftables = 10000; uint256 public constant maxCommunitySaleKiftables = 7000; uint256 public constant maxTreasuryKiftables = 1000; bool public treasuryMinted = false; uint256 public constant PUBLIC_SALE_PRICE = 0.1 ether; bool public isPublicSaleActive = false; uint256 public constant COMMUNITY_SALE_PRICE = 0.08 ether; bool public isCommunitySaleActive = false; bytes32 public communityListMerkleRoot; mapping(address => uint256) public communityMintCounts; mapping(address => uint256) public airdropCounts; // Constants from https://docs.chain.link/docs/vrf-contracts/ VRFCoordinatorV2Interface COORDINATOR; bytes32 private immutable s_keyHash; uint64 private immutable s_subscriptionId; // ============ EVENTS ============ event MintTreasury(); event Airdrop(address indexed to, uint256 indexed amount); // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier publicSaleActive() { require(isPublicSaleActive, "Public sale is not active"); _; } modifier communitySaleActive() { require(isCommunitySaleActive, "Community sale is not active"); _; } modifier maxKiftablesPerWallet(uint256 numberOfTokens) { uint256 numAirdropped = airdropCounts[msg.sender]; require( numberOfTokens <= MAX_KIFTABLES_PER_WALLET && balanceOf(msg.sender) - numAirdropped + numberOfTokens <= MAX_KIFTABLES_PER_WALLET, "Max Kiftables to mint is five" ); _; } modifier canMintKiftables(uint256 numberOfTokens) { require( _totalMinted() + numberOfTokens <= maxKiftables, "Not enough Kiftables remaining to mint" ); _; } modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( price * numberOfTokens == msg.value, "Incorrect ETH value sent" ); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address not in list or incorrect proof" ); _; } constructor( string memory _preRevealURI, bytes32 _s_keyHash, address _vrfCoordinator, uint64 _s_subscriptionId, address _openSeaProxyRegistryAddress, address _gnosisSafe ) ERC721A("Kiftables", "KIFT") VRFConsumerBaseV2(_vrfCoordinator) { COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); s_keyHash = _s_keyHash; s_subscriptionId = _s_subscriptionId; preRevealBaseURI = _preRevealURI; openSeaProxyRegistryAddress = _openSeaProxyRegistryAddress; gnosisSafe = _gnosisSafe; } // ============ Treasury ============ function treasuryMint() public onlyOwner { require(treasuryMinted == false, "Treasury can only be minted once"); _safeMint(gnosisSafe, maxTreasuryKiftables); treasuryMinted = true; emit MintTreasury(); } // ============ Airdrop ============ function airdrop(address _to, uint256[] memory _tokenIds) public onlyOwner { for (uint256 i = 0; i < _tokenIds.length; i++) { airdropCounts[_to]++; safeTransferFrom(msg.sender, _to, _tokenIds[i]); } emit Airdrop(_to, _tokenIds.length); } // ============ PUBLIC FUNCTIONS FOR MINTING ============ function mint(uint256 numberOfTokens) public payable nonReentrant isCorrectPayment(PUBLIC_SALE_PRICE, numberOfTokens) publicSaleActive canMintKiftables(numberOfTokens) maxKiftablesPerWallet(numberOfTokens) { _safeMint(msg.sender, numberOfTokens); } // TODO put back to uint8 function mintCommunitySale( uint256 numberOfTokens, bytes32[] calldata merkleProof ) external payable nonReentrant communitySaleActive canMintKiftables(numberOfTokens) isCorrectPayment(COMMUNITY_SALE_PRICE, numberOfTokens) isValidMerkleProof(merkleProof, communityListMerkleRoot) { uint256 numAlreadyMinted = communityMintCounts[msg.sender]; require( numAlreadyMinted + numberOfTokens <= MAX_KIFTABLES_PER_WALLET, "Max Kiftables to mint in community sale is five" ); require( _totalMinted() + numberOfTokens <= maxCommunitySaleKiftables, "Not enough Kiftables remaining to mint in community sale" ); communityMintCounts[msg.sender] = numAlreadyMinted + numberOfTokens; _safeMint(msg.sender, numberOfTokens); } // ============ PUBLIC READ-ONLY FUNCTIONS ============ function nextTokenId() external view returns (uint256) { return _totalMinted(); } // ============ OWNER-ONLY ADMIN FUNCTIONS ============ function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setPreRevealURI(string memory _prerevealURI) external onlyOwner { preRevealBaseURI = _prerevealURI; } function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setIsPublicSaleActive(bool _isPublicSaleActive) external onlyOwner { isPublicSaleActive = _isPublicSaleActive; } function setIsCommunitySaleActive(bool _isCommunitySaleActive) external onlyOwner { isCommunitySaleActive = _isCommunitySaleActive; } function setCommunityListMerkleRoot(bytes32 _merkleRoot) external onlyOwner { communityListMerkleRoot = _merkleRoot; } function setVerificationHash(string memory _verificationHash) external onlyOwner { verificationHash = _verificationHash; } function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } function withdrawTokens(IERC20 token) public onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } // ============ CHAINLINK FUNCTIONS ============ function revealNextBatch() public onlyOwner { require( maxKiftables >= (lastTokenRevealed + REVEAL_BATCH_SIZE), "maxKiftables too low" ); COORDINATOR.requestRandomWords( s_keyHash, s_subscriptionId, 3, 100000, 1 ); } function fulfillRandomWords( uint256, uint256[] memory randomWords ) internal override { require( maxKiftables >= (lastTokenRevealed + REVEAL_BATCH_SIZE), "maxKiftables too low" ); setBatchSeed(randomWords[0]); } // ============ FUNCTION OVERRIDES ============ function isApprovedForAll(address owner, address operator) public view override returns (bool) { ProxyRegistry proxyRegistry = ProxyRegistry( openSeaProxyRegistryAddress ); if ( isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator ) { return true; } return super.isApprovedForAll(owner, operator); } function tokenURI(uint256 _tokenId) public view virtual override(ERC721A) returns (string memory) { require(_exists(_tokenId), "Nonexistent token"); if (_tokenId >= lastTokenRevealed) { return preRevealBaseURI; } return string( abi.encodePacked( baseURI, "/", Strings.toString(getShuffledTokenId(_tokenId)), ".json" ) ); } } contract OwnableDelegateProxy { } contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 pragma solidity ^0.8.0; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
//SPDX-License-Identifier: CC0 pragma solidity ^0.8.2; import "@openzeppelin/contracts/utils/Strings.sol"; // Forked from tubby-cats abstract contract BatchReveal { uint256 public constant TOKEN_LIMIT = 10000; uint256 public constant REVEAL_BATCH_SIZE = 200; mapping(uint256 => uint256) public batchToSeed; uint256 public lastTokenRevealed = 0; // in [0-9999]. offset not included struct Range { int128 start; int128 end; } event LogReveal(uint256 indexed lastTokenRevealed); // Forked from openzeppelin /** * @dev Returns the smallest of two numbers. */ function min(int128 a, int128 b) internal pure returns (int128) { return a < b ? a : b; } uint256 constant RANGE_LENGTH = (TOKEN_LIMIT / REVEAL_BATCH_SIZE) * 2; int128 constant intTOKEN_LIMIT = int128(int256(TOKEN_LIMIT)); // ranges include the start but not the end [start, end) function addRange( Range[RANGE_LENGTH] memory ranges, int128 start, int128 end, uint256 lastIndex ) private pure returns (uint256) { uint256 positionToAssume = lastIndex; for (uint256 j = 0; j < lastIndex; j++) { int128 rangeStart = ranges[j].start; int128 rangeEnd = ranges[j].end; if (start < rangeStart && positionToAssume == lastIndex) { positionToAssume = j; } if ( (start < rangeStart && end > rangeStart) || (rangeStart <= start && end <= rangeEnd) || (start < rangeEnd && end > rangeEnd) ) { int128 length = end - start; start = min(start, rangeStart); end = start + length + (rangeEnd - rangeStart); ranges[j] = Range(-1, -1); // Delete } } for (uint256 pos = lastIndex; pos > positionToAssume; pos--) { ranges[pos] = ranges[pos - 1]; } ranges[positionToAssume] = Range(start, min(end, intTOKEN_LIMIT)); lastIndex++; if (end > intTOKEN_LIMIT) { addRange(ranges, 0, end - intTOKEN_LIMIT, lastIndex); lastIndex++; } return lastIndex; } function buildJumps(uint256 lastBatch) view private returns (Range[RANGE_LENGTH] memory) { Range[RANGE_LENGTH] memory ranges; uint256 lastIndex = 0; for (uint256 i = 0; i < lastBatch; i++) { int128 start = int128( int256(getFreeTokenId(batchToSeed[i], ranges)) ); int128 end = start + int128(int256(REVEAL_BATCH_SIZE)); lastIndex = addRange(ranges, start, end, lastIndex); } return ranges; } function getShuffledTokenId(uint256 startId) view internal returns (uint256) { uint256 batch = startId / REVEAL_BATCH_SIZE; Range[RANGE_LENGTH] memory ranges = buildJumps(batch); uint256 positionsToMove = (startId % REVEAL_BATCH_SIZE) + batchToSeed[batch]; return getFreeTokenId(positionsToMove, ranges); } function getFreeTokenId( uint256 positionsToMoveStart, Range[RANGE_LENGTH] memory ranges ) pure private returns (uint256) { int128 positionsToMove = int128(int256(positionsToMoveStart)); int128 id = 0; for (uint256 round = 0; round < 2; round++) { for (uint256 i = 0; i < RANGE_LENGTH; i++) { int128 start = ranges[i].start; int128 end = ranges[i].end; if (id < start) { int128 finalId = id + positionsToMove; if (finalId < start) { return uint256(uint128(finalId)); } else { positionsToMove -= start - id; id = end; } } else if (id < end) { id = end; } } if ((id + positionsToMove) >= intTOKEN_LIMIT) { positionsToMove -= intTOKEN_LIMIT - id; id = 0; } } return uint256(uint128(id + positionsToMove)); } function setBatchSeed(uint256 randomness) internal { uint256 batchNumber; unchecked { batchNumber = lastTokenRevealed / REVEAL_BATCH_SIZE; lastTokenRevealed += REVEAL_BATCH_SIZE; } // not perfectly random since the folding doesn't match bounds perfectly, but difference is small batchToSeed[batchNumber] = randomness % (TOKEN_LIMIT - (batchNumber * REVEAL_BATCH_SIZE)); emit LogReveal(lastTokenRevealed); } }
// 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 (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() 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":"string","name":"_preRevealURI","type":"string"},{"internalType":"bytes32","name":"_s_keyHash","type":"bytes32"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"uint64","name":"_s_subscriptionId","type":"uint64"},{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"},{"internalType":"address","name":"_gnosisSafe","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Airdrop","type":"event"},{"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":"uint256","name":"lastTokenRevealed","type":"uint256"}],"name":"LogReveal","type":"event"},{"anonymous":false,"inputs":[],"name":"MintTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COMMUNITY_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_KIFTABLES_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_BATCH_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"airdropCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"batchToSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"communityMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCommunitySaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenRevealed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCommunitySaleKiftables","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxKiftables","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTreasuryKiftables","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintCommunitySale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealNextBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setCommunityListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isCommunitySaleActive","type":"bool"}],"name":"setIsCommunitySaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_prerevealURI","type":"string"}],"name":"setPreRevealURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_verificationHash","type":"string"}],"name":"setVerificationHash","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":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verificationHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526000600b556001600f60146101000a81548160ff0219169083151502179055506000601060146101000a81548160ff0219169083151502179055506000601060156101000a81548160ff0219169083151502179055506000601060166101000a81548160ff0219169083151502179055503480156200008257600080fd5b5060405162006669380380620066698339818101604052810190620000a8919062000508565b836040518060400160405280600981526020017f4b69667461626c657300000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4b4946540000000000000000000000000000000000000000000000000000000081525081600290805190602001906200012d929190620003a1565b50806003908051906020019062000146929190620003a1565b5062000157620002ce60201b60201c565b60008190555050506200017f62000173620002d360201b60201c565b620002db60201b60201c565b60016009819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505083601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460a081815250508267ffffffffffffffff1660c08167ffffffffffffffff1660c01b8152505085600d90805190602001906200023f929190620003a1565b5081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050620007c7565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003af906200069e565b90600052602060002090601f016020900481019282620003d357600085556200041f565b82601f10620003ee57805160ff19168380011785556200041f565b828001600101855582156200041f579182015b828111156200041e57825182559160200191906001019062000401565b5b5090506200042e919062000432565b5090565b5b808211156200044d57600081600090555060010162000433565b5090565b6000620004686200046284620005e0565b620005b7565b9050828152602081018484840111156200048157600080fd5b6200048e84828562000668565b509392505050565b600081519050620004a78162000779565b92915050565b600081519050620004be8162000793565b92915050565b600082601f830112620004d657600080fd5b8151620004e884826020860162000451565b91505092915050565b6000815190506200050281620007ad565b92915050565b60008060008060008060c087890312156200052257600080fd5b600087015167ffffffffffffffff8111156200053d57600080fd5b6200054b89828a01620004c4565b96505060206200055e89828a01620004ad565b95505060406200057189828a0162000496565b94505060606200058489828a01620004f1565b93505060806200059789828a0162000496565b92505060a0620005aa89828a0162000496565b9150509295509295509295565b6000620005c3620005d6565b9050620005d18282620006d4565b919050565b6000604051905090565b600067ffffffffffffffff821115620005fe57620005fd62000739565b5b620006098262000768565b9050602081019050919050565b6000620006238262000634565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60005b83811015620006885780820151818401526020810190506200066b565b8381111562000698576000848401525b50505050565b60006002820490506001821680620006b757607f821691505b60208210811415620006ce57620006cd6200070a565b5b50919050565b620006df8262000768565b810181811067ffffffffffffffff8211171562000701576200070062000739565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620007848162000616565b81146200079057600080fd5b50565b6200079e816200062a565b8114620007aa57600080fd5b50565b620007b88162000654565b8114620007c457600080fd5b50565b60805160601c60a05160c05160c01c615e65620008046000396000611b7301526000611b5201526000818161144c01526114a00152615e656000f3fe6080604052600436106102fe5760003560e01c806370a0823111610190578063b88d4fde116100dc578063e43082f711610095578063eb6ac8e11161006f578063eb6ac8e114610b1c578063f2fde38b14610b47578063f431919514610b70578063fdd0f3ca14610b9b576102fe565b8063e43082f714610a8b578063e985e9c514610ab4578063eb4883ab14610af1576102fe565b8063b88d4fde1461097b578063badabe7b146109a4578063bec95107146109cf578063c0c36a37146109fa578063c87b56dd14610a25578063e10c605f14610a62576102fe565b80638da5cb5b1161014957806395d89b411161012357806395d89b41146108e05780639f2063da1461090b578063a0712d6814610936578063a22cb46514610952576102fe565b80638da5cb5b1461085f5780638f1d28051461088a5780639471558e146108b5576102fe565b806370a082311461074f578063715018a61461078c57806375794a3c146107a3578063777c9091146107ce57806385bc4d831461080b5780638ba4c97214610834576102fe565b806323b872dd1161024f5780633ccfd60b1161020857806355f804b3116101e257806355f804b3146106a7578063622f1c47146106d05780636352211e146106e75780636c0360eb14610724576102fe565b80633ccfd60b1461064b57806342842e0e1461065557806349df728c1461067e576102fe565b806323b872dd1461053f57806324f985e91461056857806328032fec1461059157806328cad13d146105bc5780632a85db55146105e557806337cacb111461060e576102fe565b806307e89ec0116102bc5780630d3cf1f2116102965780630d3cf1f21461049757806318160ddd146104c05780631e84c413146104eb5780631fe543e314610516576102fe565b806307e89ec014610406578063081812fc14610431578063095ea7b31461046e576102fe565b80620322351461030357806301ffc9a71461031a578063031bd4c4146103575780630694722a1461038257806306fdde03146103bf57806307bd8fef146103ea575b600080fd5b34801561030f57600080fd5b50610318610bc6565b005b34801561032657600080fd5b50610341600480360381019061033c9190614a1c565b610d0f565b60405161034e9190615126565b60405180910390f35b34801561036357600080fd5b5061036c610df1565b6040516103799190615391565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a491906147a6565b610df7565b6040516103b69190615391565b60405180910390f35b3480156103cb57600080fd5b506103d4610e0f565b6040516103e191906151af565b60405180910390f35b61040460048036038101906103ff9190614b53565b610ea1565b005b34801561041257600080fd5b5061041b6111fa565b6040516104289190615391565b60405180910390f35b34801561043d57600080fd5b5061045860048036038101906104539190614b01565b611206565b604051610465919061506d565b60405180910390f35b34801561047a57600080fd5b5061049560048036038101906104909190614965565b611282565b005b3480156104a357600080fd5b506104be60048036038101906104b991906149a1565b611387565b005b3480156104cc57600080fd5b506104d5611420565b6040516104e29190615391565b60405180910390f35b3480156104f757600080fd5b50610500611437565b60405161050d9190615126565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190614bab565b61144a565b005b34801561054b57600080fd5b506105666004803603810190610561919061480b565b61150a565b005b34801561057457600080fd5b5061058f600480360381019061058a9190614ac0565b61151a565b005b34801561059d57600080fd5b506105a66115b0565b6040516105b39190615391565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de91906149a1565b6115b6565b005b3480156105f157600080fd5b5061060c60048036038101906106079190614ac0565b61164f565b005b34801561061a57600080fd5b50610635600480360381019061063091906147a6565b6116e5565b6040516106429190615391565b60405180910390f35b6106536116fd565b005b34801561066157600080fd5b5061067c6004803603810190610677919061480b565b6117f2565b005b34801561068a57600080fd5b506106a560048036038101906106a09190614a6e565b611812565b005b3480156106b357600080fd5b506106ce60048036038101906106c99190614ac0565b6119ad565b005b3480156106dc57600080fd5b506106e5611a43565b005b3480156106f357600080fd5b5061070e60048036038101906107099190614b01565b611c0f565b60405161071b919061506d565b60405180910390f35b34801561073057600080fd5b50610739611c25565b60405161074691906151af565b60405180910390f35b34801561075b57600080fd5b50610776600480360381019061077191906147a6565b611cb3565b6040516107839190615391565b60405180910390f35b34801561079857600080fd5b506107a1611d83565b005b3480156107af57600080fd5b506107b8611e0b565b6040516107c59190615391565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190614b01565b611e1a565b6040516108029190615391565b60405180910390f35b34801561081757600080fd5b50610832600480360381019061082d91906148d5565b611e32565b005b34801561084057600080fd5b50610849611fb7565b6040516108569190615391565b60405180910390f35b34801561086b57600080fd5b50610874611fbc565b604051610881919061506d565b60405180910390f35b34801561089657600080fd5b5061089f611fe6565b6040516108ac9190615391565b60405180910390f35b3480156108c157600080fd5b506108ca611fec565b6040516108d79190615391565b60405180910390f35b3480156108ec57600080fd5b506108f5611ff2565b60405161090291906151af565b60405180910390f35b34801561091757600080fd5b50610920612084565b60405161092d9190615391565b60405180910390f35b610950600480360381019061094b9190614b01565b612089565b005b34801561095e57600080fd5b5061097960048036038101906109749190614929565b6122a3565b005b34801561098757600080fd5b506109a2600480360381019061099d919061485a565b61241b565b005b3480156109b057600080fd5b506109b9612493565b6040516109c69190615141565b60405180910390f35b3480156109db57600080fd5b506109e4612499565b6040516109f19190615391565b60405180910390f35b348015610a0657600080fd5b50610a0f6124a5565b604051610a1c91906151af565b60405180910390f35b348015610a3157600080fd5b50610a4c6004803603810190610a479190614b01565b612533565b604051610a5991906151af565b60405180910390f35b348015610a6e57600080fd5b50610a896004803603810190610a8491906149f3565b612653565b005b348015610a9757600080fd5b50610ab26004803603810190610aad91906149a1565b6126d9565b005b348015610ac057600080fd5b50610adb6004803603810190610ad691906147cf565b612772565b604051610ae89190615126565b60405180910390f35b348015610afd57600080fd5b50610b0661288c565b604051610b139190615126565b60405180910390f35b348015610b2857600080fd5b50610b3161289f565b604051610b3e91906151af565b60405180910390f35b348015610b5357600080fd5b50610b6e6004803603810190610b6991906147a6565b61292d565b005b348015610b7c57600080fd5b50610b85612a25565b604051610b929190615391565b60405180910390f35b348015610ba757600080fd5b50610bb0612a2b565b604051610bbd9190615126565b60405180910390f35b610bce612a3e565b73ffffffffffffffffffffffffffffffffffffffff16610bec611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c39906152b1565b60405180910390fd5b60001515601060149054906101000a900460ff16151514610c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8f90615311565b60405180910390fd5b610cc6601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166103e8612a46565b6001601060146101000a81548160ff0219169083151502179055507f7801a4ff7b20a52cef1ca2c55698b3d6f409f688ae001e13ec5fa31ea01d0f7460405160405180910390a1565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dda57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dea5750610de982612a64565b5b9050919050565b61271081565b60136020528060005260406000206000915090505481565b606060028054610e1e90615862565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4a90615862565b8015610e975780601f10610e6c57610100808354040283529160200191610e97565b820191906000526020600020905b815481529060010190602001808311610e7a57829003601f168201915b5050505050905090565b60026009541415610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede90615351565b60405180910390fd5b6002600981905550601060169054906101000a900460ff16610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f35906151d1565b60405180910390fd5b8261271081610f4b612ace565b610f559190615546565b1115610f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8d90615291565b60405180910390fd5b67011c37937e08000084348183610fad91906155cd565b14610fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe490615331565b60405180910390fd5b8484601154611064838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016110499190615003565b60405160208183030381529060405280519060200120612ae1565b6110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a906152d1565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058a826110f59190615546565b1115611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d906152f1565b60405180910390fd5b611b588a611142612ace565b61114c9190615546565b111561118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118490615211565b60405180910390fd5b89816111999190615546565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111e6338b612a46565b505050505050506001600981905550505050565b67016345785d8a000081565b600061121182612af8565b611247576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061128d82611c0f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611314612a3e565b73ffffffffffffffffffffffffffffffffffffffff1614611377576113408161133b612a3e565b612772565b611376576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b611382838383612b46565b505050565b61138f612a3e565b73ffffffffffffffffffffffffffffffffffffffff166113ad611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611403576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fa906152b1565b60405180910390fd5b80601060166101000a81548160ff02191690831515021790555050565b600061142a612bf8565b6001546000540303905090565b601060159054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114fc57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f40000000000000000000000000000000000000000000000000000000081526004016114f3929190615088565b60405180910390fd5b6115068282612bfd565b5050565b611515838383612c9e565b505050565b611522612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611540611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d906152b1565b60405180910390fd5b80600e90805190602001906115ac9291906143f0565b5050565b61271081565b6115be612a3e565b73ffffffffffffffffffffffffffffffffffffffff166115dc611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611632576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611629906152b1565b60405180910390fd5b80601060156101000a81548160ff02191690831515021790555050565b611657612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611675611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146116cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c2906152b1565b60405180910390fd5b80600d90805190602001906116e19291906143f0565b5050565b60126020528060005260406000206000915090505481565b611705612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611723611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611770906152b1565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161179f90615058565b60006040518083038185875af1925050503d80600081146117dc576040519150601f19603f3d011682016040523d82523d6000602084013e6117e1565b606091505b50509050806117ef57600080fd5b50565b61180d8383836040518060200160405280600081525061241b565b505050565b61181a612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611838611fbc565b73ffffffffffffffffffffffffffffffffffffffff161461188e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611885906152b1565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118c9919061506d565b60206040518083038186803b1580156118e157600080fd5b505afa1580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119199190614b2a565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016119569291906150fd565b602060405180830381600087803b15801561197057600080fd5b505af1158015611984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a891906149ca565b505050565b6119b5612a3e565b73ffffffffffffffffffffffffffffffffffffffff166119d3611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a20906152b1565b60405180910390fd5b80600c9080519060200190611a3f9291906143f0565b5050565b611a4b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611a69611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab6906152b1565b60405180910390fd5b60c8600b54611ace9190615546565b6127101015611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0990615231565b60405180910390fd5b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d307f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006003620186a060016040518663ffffffff1660e01b8152600401611bba95949392919061515c565b602060405180830381600087803b158015611bd457600080fd5b505af1158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c9190614b2a565b50565b6000611c1a82613154565b600001519050919050565b600c8054611c3290615862565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5e90615862565b8015611cab5780601f10611c8057610100808354040283529160200191611cab565b820191906000526020600020905b815481529060010190602001808311611c8e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d1b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611d8b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611da9611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df6906152b1565b60405180910390fd5b611e0960006133df565b565b6000611e15612ace565b905090565b600a6020528060005260406000206000915090505481565b611e3a612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611e58611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea5906152b1565b60405180910390fd5b60005b8151811015611f6d57601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611f0a906158c5565b9190505550611f5a3384848481518110611f4d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516117f2565b8080611f65906158c5565b915050611eb1565b5080518273ffffffffffffffffffffffffffffffffffffffff167f8c32c568416fcf97be35ce5b27844cfddcd63a67a1a602c3595ba5dac38f303a60405160405180910390a35050565b600581565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b5881565b6103e881565b60606003805461200190615862565b80601f016020809104026020016040519081016040528092919081815260200182805461202d90615862565b801561207a5780601f1061204f5761010080835404028352916020019161207a565b820191906000526020600020905b81548152906001019060200180831161205d57829003601f168201915b5050505050905090565b60c881565b600260095414156120cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c690615351565b60405180910390fd5b600260098190555067016345785d8a0000813481836120ee91906155cd565b1461212e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212590615331565b60405180910390fd5b601060159054906101000a900460ff1661217d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217490615271565b60405180910390fd5b826127108161218a612ace565b6121949190615546565b11156121d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cc90615291565b60405180910390fd5b836000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506005821115801561224a57506005828261223333611cb3565b61223d91906156ab565b6122479190615546565b11155b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090615371565b60405180910390fd5b6122933387612a46565b5050505050600160098190555050565b6122ab612a3e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612310576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061231d612a3e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ca612a3e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161240f9190615126565b60405180910390a35050565b612426848484612c9e565b6124458373ffffffffffffffffffffffffffffffffffffffff166134a5565b1561248d57612456848484846134c8565b61248c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60115481565b67011c37937e08000081565b600e80546124b290615862565b80601f01602080910402602001604051908101604052809291908181526020018280546124de90615862565b801561252b5780601f106125005761010080835404028352916020019161252b565b820191906000526020600020905b81548152906001019060200180831161250e57829003601f168201915b505050505081565b606061253e82612af8565b61257d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257490615251565b60405180910390fd5b600b54821061261857600d805461259390615862565b80601f01602080910402602001604051908101604052809291908181526020018280546125bf90615862565b801561260c5780601f106125e15761010080835404028352916020019161260c565b820191906000526020600020905b8154815290600101906020018083116125ef57829003601f168201915b5050505050905061264e565b600c61262b61262684613628565b61368a565b60405160200161263c92919061501e565b60405160208183030381529060405290505b919050565b61265b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612679611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146126cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c6906152b1565b60405180910390fd5b8060118190555050565b6126e1612a3e565b73ffffffffffffffffffffffffffffffffffffffff166126ff611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c906152b1565b60405180910390fd5b80600f60146101000a81548160ff02191690831515021790555050565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600f60149054906101000a900460ff16801561286957508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401612801919061506d565b60206040518083038186803b15801561281957600080fd5b505afa15801561282d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128519190614a97565b73ffffffffffffffffffffffffffffffffffffffff16145b15612878576001915050612886565b6128828484613837565b9150505b92915050565b601060169054906101000a900460ff1681565b600d80546128ac90615862565b80601f01602080910402602001604051908101604052809291908181526020018280546128d890615862565b80156129255780601f106128fa57610100808354040283529160200191612925565b820191906000526020600020905b81548152906001019060200180831161290857829003601f168201915b505050505081565b612935612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612953611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146129a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a0906152b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a10906151f1565b60405180910390fd5b612a22816133df565b50565b600b5481565b601060149054906101000a900460ff1681565b600033905090565b612a608282604051806020016040528060008152506138cb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000612ad8612bf8565b60005403905090565b600082612aee8584613c8d565b1490509392505050565b600081612b03612bf8565b11158015612b12575060005482105b8015612b3f575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60c8600b54612c0c9190615546565b6127101015612c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4790615231565b60405180910390fd5b612c9a81600081518110612c8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151613d28565b5050565b6000612ca982613154565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d14576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612d35612a3e565b73ffffffffffffffffffffffffffffffffffffffff161480612d645750612d6385612d5e612a3e565b612772565b5b80612da95750612d72612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612d9184611206565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612de2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e49576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e568585856001613de6565b612e6260008487612b46565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156130e25760005482146130e157878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314d8585856001613dec565b5050505050565b61315c614476565b60008290508061316a612bf8565b116133a8576000548110156133a7576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516133a557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146132895780925050506133da565b5b6001156133a457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461339f5780925050506133da565b61328a565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134ee612a3e565b8786866040518563ffffffff1660e01b815260040161351094939291906150b1565b602060405180830381600087803b15801561352a57600080fd5b505af192505050801561355b57506040513d601f19601f820116820180604052508101906135589190614a45565b60015b6135d5573d806000811461358b576040519150601f19603f3d011682016040523d82523d6000602084013e613590565b606091505b506000815114156135cd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008060c883613638919061559c565b9050600061364582613df2565b90506000600a60008481526020019081526020016000205460c88661366a9190615932565b6136749190615546565b90506136808183613e6e565b9350505050919050565b606060008214156136d2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613832565b600082905060005b600082146137045780806136ed906158c5565b915050600a826136fd919061559c565b91506136da565b60008167ffffffffffffffff811115613746577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137785781602001600182028036833780820191505090505b5090505b6000851461382b5760018261379191906156ab565b9150600a856137a09190615932565b60306137ac9190615546565b60f81b8183815181106137e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613824919061559c565b945061377c565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613938576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613973576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139806000858386613de6565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050613b418673ffffffffffffffffffffffffffffffffffffffff166134a5565b15613c06575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bb660008784806001019550876134c8565b613bec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613b47578260005414613c0157600080fd5b613c71565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613c07575b816000819055505050613c876000858386613dec565b50505050565b60008082905060005b8451811015613d1d576000858281518110613cda577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613cfc57613cf58382614041565b9250613d09565b613d068184614041565b92505b508080613d15906158c5565b915050613c96565b508091505092915050565b600060c8600b5481613d63577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905060c8600b6000828254019250508190555060c881613d8491906155cd565b612710613d9191906156ab565b82613d9c9190615932565b600a600083815260200190815260200160002081905550600b547f13d97a570b843b00409978e31e7752baae08816430bbb9f5a5a89f012452423260405160405180910390a25050565b50505050565b50505050565b613dfa6144b9565b613e026144b9565b6000805b84811015613e63576000613e2d600a60008481526020019081526020016000205485613e6e565b9050600060c882613e3e91906154c2565b9050613e4c85838387614058565b935050508080613e5b906158c5565b915050613e06565b508192505050919050565b6000808390506000805b60028110156140175760005b600260c8612710613e95919061559c565b613e9f91906155cd565b811015613fc9576000868260648110613ee1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000878360648110613f27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b1215613fa15760008686613f4e91906154c2565b905082600f0b81600f0b1215613f7f57806fffffffffffffffffffffffffffffffff1697505050505050505061403b565b8583613f8b9190615627565b87613f969190615627565b965081955050613fb4565b80600f0b85600f0b1215613fb3578094505b5b50508080613fc1906158c5565b915050613e84565b50612710600f0b8383613fdc91906154c2565b600f0b126140045781612710613ff29190615627565b83613ffd9190615627565b9250600091505b808061400f906158c5565b915050613e78565b50818161402491906154c2565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b600082600052816020526040600020905092915050565b60008082905060005b838110156142685760008782606481106140a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160000151905060008883606481106140ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b12801561410957508584145b15614112578293505b81600f0b88600f0b12801561412c575081600f0b87600f0b135b8061414f575087600f0b82600f0b1315801561414e575080600f0b87600f0b13155b5b80614170575080600f0b88600f0b12801561416f575080600f0b87600f0b135b5b1561425357600088886141839190615627565b905061418f89846143d1565b9850828261419d9190615627565b818a6141a991906154c2565b6141b391906154c2565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a8560648110614249577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b50508080614260906158c5565b915050614061565b5060008390505b81811115614315578660018261428591906156ab565b606481106142bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518782606481106142fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250808061430d90615838565b91505061426f565b50604051806040016040528086600f0b8152602001614336866127106143d1565b600f0b815250868260648110614375577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052508280614388906158c5565b935050612710600f0b84600f0b13156143c5576143b5866000612710876143af9190615627565b86614058565b5082806143c1906158c5565b9350505b82915050949350505050565b600081600f0b83600f0b126143e657816143e8565b825b905092915050565b8280546143fc90615862565b90600052602060002090601f01602090048101928261441e5760008555614465565b82601f1061443757805160ff1916838001178555614465565b82800160010185558215614465579182015b82811115614464578251825591602001919060010190614449565b5b50905061447291906144e7565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610c8001604052806064905b6144d1614504565b8152602001906001900390816144c95790505090565b5b808211156145005760008160009055506001016144e8565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000614537614532846153d1565b6153ac565b9050808382526020820190508285602086028201111561455657600080fd5b60005b85811015614586578161456c888261477c565b845260208401935060208301925050600181019050614559565b5050509392505050565b60006145a361459e846153fd565b6153ac565b9050828152602081018484840111156145bb57600080fd5b6145c68482856157f6565b509392505050565b60006145e16145dc8461542e565b6153ac565b9050828152602081018484840111156145f957600080fd5b6146048482856157f6565b509392505050565b60008135905061461b81615d8e565b92915050565b60008083601f84011261463357600080fd5b8235905067ffffffffffffffff81111561464c57600080fd5b60208301915083602082028301111561466457600080fd5b9250929050565b600082601f83011261467c57600080fd5b813561468c848260208601614524565b91505092915050565b6000813590506146a481615da5565b92915050565b6000815190506146b981615da5565b92915050565b6000813590506146ce81615dbc565b92915050565b6000813590506146e381615dd3565b92915050565b6000815190506146f881615dd3565b92915050565b600082601f83011261470f57600080fd5b813561471f848260208601614590565b91505092915050565b60008135905061473781615dea565b92915050565b60008151905061474c81615e01565b92915050565b600082601f83011261476357600080fd5b81356147738482602086016145ce565b91505092915050565b60008135905061478b81615e18565b92915050565b6000815190506147a081615e18565b92915050565b6000602082840312156147b857600080fd5b60006147c68482850161460c565b91505092915050565b600080604083850312156147e257600080fd5b60006147f08582860161460c565b92505060206148018582860161460c565b9150509250929050565b60008060006060848603121561482057600080fd5b600061482e8682870161460c565b935050602061483f8682870161460c565b92505060406148508682870161477c565b9150509250925092565b6000806000806080858703121561487057600080fd5b600061487e8782880161460c565b945050602061488f8782880161460c565b93505060406148a08782880161477c565b925050606085013567ffffffffffffffff8111156148bd57600080fd5b6148c9878288016146fe565b91505092959194509250565b600080604083850312156148e857600080fd5b60006148f68582860161460c565b925050602083013567ffffffffffffffff81111561491357600080fd5b61491f8582860161466b565b9150509250929050565b6000806040838503121561493c57600080fd5b600061494a8582860161460c565b925050602061495b85828601614695565b9150509250929050565b6000806040838503121561497857600080fd5b60006149868582860161460c565b92505060206149978582860161477c565b9150509250929050565b6000602082840312156149b357600080fd5b60006149c184828501614695565b91505092915050565b6000602082840312156149dc57600080fd5b60006149ea848285016146aa565b91505092915050565b600060208284031215614a0557600080fd5b6000614a13848285016146bf565b91505092915050565b600060208284031215614a2e57600080fd5b6000614a3c848285016146d4565b91505092915050565b600060208284031215614a5757600080fd5b6000614a65848285016146e9565b91505092915050565b600060208284031215614a8057600080fd5b6000614a8e84828501614728565b91505092915050565b600060208284031215614aa957600080fd5b6000614ab78482850161473d565b91505092915050565b600060208284031215614ad257600080fd5b600082013567ffffffffffffffff811115614aec57600080fd5b614af884828501614752565b91505092915050565b600060208284031215614b1357600080fd5b6000614b218482850161477c565b91505092915050565b600060208284031215614b3c57600080fd5b6000614b4a84828501614791565b91505092915050565b600080600060408486031215614b6857600080fd5b6000614b768682870161477c565b935050602084013567ffffffffffffffff811115614b9357600080fd5b614b9f86828701614621565b92509250509250925092565b60008060408385031215614bbe57600080fd5b6000614bcc8582860161477c565b925050602083013567ffffffffffffffff811115614be957600080fd5b614bf58582860161466b565b9150509250929050565b614c08816156df565b82525050565b614c1f614c1a826156df565b61590e565b82525050565b614c2e816156f1565b82525050565b614c3d816156fd565b82525050565b6000614c4e82615474565b614c58818561548a565b9350614c68818560208601615805565b614c7181615a1f565b840191505092915050565b614c85816157c0565b82525050565b614c94816157d2565b82525050565b614ca3816157e4565b82525050565b6000614cb48261547f565b614cbe81856154a6565b9350614cce818560208601615805565b614cd781615a1f565b840191505092915050565b6000614ced8261547f565b614cf781856154b7565b9350614d07818560208601615805565b80840191505092915050565b60008154614d2081615862565b614d2a81866154b7565b94506001821660008114614d455760018114614d5657614d89565b60ff19831686528186019350614d89565b614d5f8561545f565b60005b83811015614d8157815481890152600182019150602081019050614d62565b838801955050505b50505092915050565b6000614d9f601c836154a6565b9150614daa82615a3d565b602082019050919050565b6000614dc26026836154a6565b9150614dcd82615a66565b604082019050919050565b6000614de56038836154a6565b9150614df082615ab5565b604082019050919050565b6000614e086014836154a6565b9150614e1382615b04565b602082019050919050565b6000614e2b6011836154a6565b9150614e3682615b2d565b602082019050919050565b6000614e4e6019836154a6565b9150614e5982615b56565b602082019050919050565b6000614e716026836154a6565b9150614e7c82615b7f565b604082019050919050565b6000614e946005836154b7565b9150614e9f82615bce565b600582019050919050565b6000614eb76020836154a6565b9150614ec282615bf7565b602082019050919050565b6000614eda6026836154a6565b9150614ee582615c20565b604082019050919050565b6000614efd602f836154a6565b9150614f0882615c6f565b604082019050919050565b6000614f2060008361549b565b9150614f2b82615cbe565b600082019050919050565b6000614f436020836154a6565b9150614f4e82615cc1565b602082019050919050565b6000614f666018836154a6565b9150614f7182615cea565b602082019050919050565b6000614f89601f836154a6565b9150614f9482615d13565b602082019050919050565b6000614fac601d836154a6565b9150614fb782615d3c565b602082019050919050565b6000614fcf6001836154b7565b9150614fda82615d65565b600182019050919050565b614fee81615792565b82525050565b614ffd816157ac565b82525050565b600061500f8284614c0e565b60148201915081905092915050565b600061502a8285614d13565b915061503582614fc2565b91506150418284614ce2565b915061504c82614e87565b91508190509392505050565b600061506382614f13565b9150819050919050565b60006020820190506150826000830184614bff565b92915050565b600060408201905061509d6000830185614bff565b6150aa6020830184614bff565b9392505050565b60006080820190506150c66000830187614bff565b6150d36020830186614bff565b6150e06040830185614fe5565b81810360608301526150f28184614c43565b905095945050505050565b60006040820190506151126000830185614bff565b61511f6020830184614fe5565b9392505050565b600060208201905061513b6000830184614c25565b92915050565b60006020820190506151566000830184614c34565b92915050565b600060a0820190506151716000830188614c34565b61517e6020830187614ff4565b61518b6040830186614c9a565b6151986060830185614c7c565b6151a56080830184614c8b565b9695505050505050565b600060208201905081810360008301526151c98184614ca9565b905092915050565b600060208201905081810360008301526151ea81614d92565b9050919050565b6000602082019050818103600083015261520a81614db5565b9050919050565b6000602082019050818103600083015261522a81614dd8565b9050919050565b6000602082019050818103600083015261524a81614dfb565b9050919050565b6000602082019050818103600083015261526a81614e1e565b9050919050565b6000602082019050818103600083015261528a81614e41565b9050919050565b600060208201905081810360008301526152aa81614e64565b9050919050565b600060208201905081810360008301526152ca81614eaa565b9050919050565b600060208201905081810360008301526152ea81614ecd565b9050919050565b6000602082019050818103600083015261530a81614ef0565b9050919050565b6000602082019050818103600083015261532a81614f36565b9050919050565b6000602082019050818103600083015261534a81614f59565b9050919050565b6000602082019050818103600083015261536a81614f7c565b9050919050565b6000602082019050818103600083015261538a81614f9f565b9050919050565b60006020820190506153a66000830184614fe5565b92915050565b60006153b66153c7565b90506153c28282615894565b919050565b6000604051905090565b600067ffffffffffffffff8211156153ec576153eb6159f0565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615418576154176159f0565b5b61542182615a1f565b9050602081019050919050565b600067ffffffffffffffff821115615449576154486159f0565b5b61545282615a1f565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006154cd82615757565b91506154d883615757565b9250816f7fffffffffffffffffffffffffffffff0383136000831215161561550357615502615963565b5b817fffffffffffffffffffffffffffffffff8000000000000000000000000000000003831260008312161561553b5761553a615963565b5b828201905092915050565b600061555182615792565b915061555c83615792565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561559157615590615963565b5b828201905092915050565b60006155a782615792565b91506155b283615792565b9250826155c2576155c1615992565b5b828204905092915050565b60006155d882615792565b91506155e383615792565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561561c5761561b615963565b5b828202905092915050565b600061563282615757565b915061563d83615757565b9250827fffffffffffffffffffffffffffffffff800000000000000000000000000000000182126000841215161561567857615677615963565b5b826f7fffffffffffffffffffffffffffffff0182136000841216156156a05761569f615963565b5b828203905092915050565b60006156b682615792565b91506156c183615792565b9250828210156156d4576156d3615963565b5b828203905092915050565b60006156ea82615772565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061573e826156df565b9050919050565b6000615750826156df565b9050919050565b600081600f0b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60006157cb8261579c565b9050919050565b60006157dd8261579c565b9050919050565b60006157ef82615764565b9050919050565b82818337600083830152505050565b60005b83811015615823578082015181840152602081019050615808565b83811115615832576000848401525b50505050565b600061584382615792565b9150600082141561585757615856615963565b5b600182039050919050565b6000600282049050600182168061587a57607f821691505b6020821081141561588e5761588d6159c1565b5b50919050565b61589d82615a1f565b810181811067ffffffffffffffff821117156158bc576158bb6159f0565b5b80604052505050565b60006158d082615792565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561590357615902615963565b5b600182019050919050565b600061591982615920565b9050919050565b600061592b82615a30565b9050919050565b600061593d82615792565b915061594883615792565b92508261595857615957615992565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f436f6d6d756e6974792073616c65206973206e6f742061637469766500000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204b69667461626c65732072656d61696e696e67207460008201527f6f206d696e7420696e20636f6d6d756e6974792073616c650000000000000000602082015250565b7f6d61784b69667461626c657320746f6f206c6f77000000000000000000000000600082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4e6f7420656e6f756768204b69667461626c65732072656d61696e696e67207460008201527f6f206d696e740000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646472657373206e6f7420696e206c697374206f7220696e636f727265637460008201527f2070726f6f660000000000000000000000000000000000000000000000000000602082015250565b7f4d6178204b69667461626c657320746f206d696e7420696e20636f6d6d756e6960008201527f74792073616c6520697320666976650000000000000000000000000000000000602082015250565b50565b7f54726561737572792063616e206f6e6c79206265206d696e746564206f6e6365600082015250565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d6178204b69667461626c657320746f206d696e742069732066697665000000600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615d97816156df565b8114615da257600080fd5b50565b615dae816156f1565b8114615db957600080fd5b50565b615dc5816156fd565b8114615dd057600080fd5b50565b615ddc81615707565b8114615de757600080fd5b50565b615df381615733565b8114615dfe57600080fd5b50565b615e0a81615745565b8114615e1557600080fd5b50565b615e2181615792565b8114615e2c57600080fd5b5056fea26469706673582212206de9fa4487102b905dcd0d2041ba3ad0542d4b6a1d05cfd7399588753446f50464736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c0ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000000000000000000000000000000000000000008a000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000013709e1c65812050bbae94d8a8afe024cae669160000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d54653732355666686f793961465346355452456d795a62664d7a505a415862445879396b713336777a4773320000000000000000000000
Deployed Bytecode
0x6080604052600436106102fe5760003560e01c806370a0823111610190578063b88d4fde116100dc578063e43082f711610095578063eb6ac8e11161006f578063eb6ac8e114610b1c578063f2fde38b14610b47578063f431919514610b70578063fdd0f3ca14610b9b576102fe565b8063e43082f714610a8b578063e985e9c514610ab4578063eb4883ab14610af1576102fe565b8063b88d4fde1461097b578063badabe7b146109a4578063bec95107146109cf578063c0c36a37146109fa578063c87b56dd14610a25578063e10c605f14610a62576102fe565b80638da5cb5b1161014957806395d89b411161012357806395d89b41146108e05780639f2063da1461090b578063a0712d6814610936578063a22cb46514610952576102fe565b80638da5cb5b1461085f5780638f1d28051461088a5780639471558e146108b5576102fe565b806370a082311461074f578063715018a61461078c57806375794a3c146107a3578063777c9091146107ce57806385bc4d831461080b5780638ba4c97214610834576102fe565b806323b872dd1161024f5780633ccfd60b1161020857806355f804b3116101e257806355f804b3146106a7578063622f1c47146106d05780636352211e146106e75780636c0360eb14610724576102fe565b80633ccfd60b1461064b57806342842e0e1461065557806349df728c1461067e576102fe565b806323b872dd1461053f57806324f985e91461056857806328032fec1461059157806328cad13d146105bc5780632a85db55146105e557806337cacb111461060e576102fe565b806307e89ec0116102bc5780630d3cf1f2116102965780630d3cf1f21461049757806318160ddd146104c05780631e84c413146104eb5780631fe543e314610516576102fe565b806307e89ec014610406578063081812fc14610431578063095ea7b31461046e576102fe565b80620322351461030357806301ffc9a71461031a578063031bd4c4146103575780630694722a1461038257806306fdde03146103bf57806307bd8fef146103ea575b600080fd5b34801561030f57600080fd5b50610318610bc6565b005b34801561032657600080fd5b50610341600480360381019061033c9190614a1c565b610d0f565b60405161034e9190615126565b60405180910390f35b34801561036357600080fd5b5061036c610df1565b6040516103799190615391565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a491906147a6565b610df7565b6040516103b69190615391565b60405180910390f35b3480156103cb57600080fd5b506103d4610e0f565b6040516103e191906151af565b60405180910390f35b61040460048036038101906103ff9190614b53565b610ea1565b005b34801561041257600080fd5b5061041b6111fa565b6040516104289190615391565b60405180910390f35b34801561043d57600080fd5b5061045860048036038101906104539190614b01565b611206565b604051610465919061506d565b60405180910390f35b34801561047a57600080fd5b5061049560048036038101906104909190614965565b611282565b005b3480156104a357600080fd5b506104be60048036038101906104b991906149a1565b611387565b005b3480156104cc57600080fd5b506104d5611420565b6040516104e29190615391565b60405180910390f35b3480156104f757600080fd5b50610500611437565b60405161050d9190615126565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190614bab565b61144a565b005b34801561054b57600080fd5b506105666004803603810190610561919061480b565b61150a565b005b34801561057457600080fd5b5061058f600480360381019061058a9190614ac0565b61151a565b005b34801561059d57600080fd5b506105a66115b0565b6040516105b39190615391565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de91906149a1565b6115b6565b005b3480156105f157600080fd5b5061060c60048036038101906106079190614ac0565b61164f565b005b34801561061a57600080fd5b50610635600480360381019061063091906147a6565b6116e5565b6040516106429190615391565b60405180910390f35b6106536116fd565b005b34801561066157600080fd5b5061067c6004803603810190610677919061480b565b6117f2565b005b34801561068a57600080fd5b506106a560048036038101906106a09190614a6e565b611812565b005b3480156106b357600080fd5b506106ce60048036038101906106c99190614ac0565b6119ad565b005b3480156106dc57600080fd5b506106e5611a43565b005b3480156106f357600080fd5b5061070e60048036038101906107099190614b01565b611c0f565b60405161071b919061506d565b60405180910390f35b34801561073057600080fd5b50610739611c25565b60405161074691906151af565b60405180910390f35b34801561075b57600080fd5b50610776600480360381019061077191906147a6565b611cb3565b6040516107839190615391565b60405180910390f35b34801561079857600080fd5b506107a1611d83565b005b3480156107af57600080fd5b506107b8611e0b565b6040516107c59190615391565b60405180910390f35b3480156107da57600080fd5b506107f560048036038101906107f09190614b01565b611e1a565b6040516108029190615391565b60405180910390f35b34801561081757600080fd5b50610832600480360381019061082d91906148d5565b611e32565b005b34801561084057600080fd5b50610849611fb7565b6040516108569190615391565b60405180910390f35b34801561086b57600080fd5b50610874611fbc565b604051610881919061506d565b60405180910390f35b34801561089657600080fd5b5061089f611fe6565b6040516108ac9190615391565b60405180910390f35b3480156108c157600080fd5b506108ca611fec565b6040516108d79190615391565b60405180910390f35b3480156108ec57600080fd5b506108f5611ff2565b60405161090291906151af565b60405180910390f35b34801561091757600080fd5b50610920612084565b60405161092d9190615391565b60405180910390f35b610950600480360381019061094b9190614b01565b612089565b005b34801561095e57600080fd5b5061097960048036038101906109749190614929565b6122a3565b005b34801561098757600080fd5b506109a2600480360381019061099d919061485a565b61241b565b005b3480156109b057600080fd5b506109b9612493565b6040516109c69190615141565b60405180910390f35b3480156109db57600080fd5b506109e4612499565b6040516109f19190615391565b60405180910390f35b348015610a0657600080fd5b50610a0f6124a5565b604051610a1c91906151af565b60405180910390f35b348015610a3157600080fd5b50610a4c6004803603810190610a479190614b01565b612533565b604051610a5991906151af565b60405180910390f35b348015610a6e57600080fd5b50610a896004803603810190610a8491906149f3565b612653565b005b348015610a9757600080fd5b50610ab26004803603810190610aad91906149a1565b6126d9565b005b348015610ac057600080fd5b50610adb6004803603810190610ad691906147cf565b612772565b604051610ae89190615126565b60405180910390f35b348015610afd57600080fd5b50610b0661288c565b604051610b139190615126565b60405180910390f35b348015610b2857600080fd5b50610b3161289f565b604051610b3e91906151af565b60405180910390f35b348015610b5357600080fd5b50610b6e6004803603810190610b6991906147a6565b61292d565b005b348015610b7c57600080fd5b50610b85612a25565b604051610b929190615391565b60405180910390f35b348015610ba757600080fd5b50610bb0612a2b565b604051610bbd9190615126565b60405180910390f35b610bce612a3e565b73ffffffffffffffffffffffffffffffffffffffff16610bec611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c39906152b1565b60405180910390fd5b60001515601060149054906101000a900460ff16151514610c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8f90615311565b60405180910390fd5b610cc6601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166103e8612a46565b6001601060146101000a81548160ff0219169083151502179055507f7801a4ff7b20a52cef1ca2c55698b3d6f409f688ae001e13ec5fa31ea01d0f7460405160405180910390a1565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dda57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dea5750610de982612a64565b5b9050919050565b61271081565b60136020528060005260406000206000915090505481565b606060028054610e1e90615862565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4a90615862565b8015610e975780601f10610e6c57610100808354040283529160200191610e97565b820191906000526020600020905b815481529060010190602001808311610e7a57829003601f168201915b5050505050905090565b60026009541415610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede90615351565b60405180910390fd5b6002600981905550601060169054906101000a900460ff16610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f35906151d1565b60405180910390fd5b8261271081610f4b612ace565b610f559190615546565b1115610f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8d90615291565b60405180910390fd5b67011c37937e08000084348183610fad91906155cd565b14610fed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe490615331565b60405180910390fd5b8484601154611064838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016110499190615003565b60405160208183030381529060405280519060200120612ae1565b6110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a906152d1565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060058a826110f59190615546565b1115611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d906152f1565b60405180910390fd5b611b588a611142612ace565b61114c9190615546565b111561118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118490615211565b60405180910390fd5b89816111999190615546565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506111e6338b612a46565b505050505050506001600981905550505050565b67016345785d8a000081565b600061121182612af8565b611247576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061128d82611c0f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112f5576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611314612a3e565b73ffffffffffffffffffffffffffffffffffffffff1614611377576113408161133b612a3e565b612772565b611376576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b611382838383612b46565b505050565b61138f612a3e565b73ffffffffffffffffffffffffffffffffffffffff166113ad611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611403576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fa906152b1565b60405180910390fd5b80601060166101000a81548160ff02191690831515021790555050565b600061142a612bf8565b6001546000540303905090565b601060159054906101000a900460ff1681565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146114fc57337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f40000000000000000000000000000000000000000000000000000000081526004016114f3929190615088565b60405180910390fd5b6115068282612bfd565b5050565b611515838383612c9e565b505050565b611522612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611540611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d906152b1565b60405180910390fd5b80600e90805190602001906115ac9291906143f0565b5050565b61271081565b6115be612a3e565b73ffffffffffffffffffffffffffffffffffffffff166115dc611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611632576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611629906152b1565b60405180910390fd5b80601060156101000a81548160ff02191690831515021790555050565b611657612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611675611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146116cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c2906152b1565b60405180910390fd5b80600d90805190602001906116e19291906143f0565b5050565b60126020528060005260406000206000915090505481565b611705612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611723611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611770906152b1565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161179f90615058565b60006040518083038185875af1925050503d80600081146117dc576040519150601f19603f3d011682016040523d82523d6000602084013e6117e1565b606091505b50509050806117ef57600080fd5b50565b61180d8383836040518060200160405280600081525061241b565b505050565b61181a612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611838611fbc565b73ffffffffffffffffffffffffffffffffffffffff161461188e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611885906152b1565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118c9919061506d565b60206040518083038186803b1580156118e157600080fd5b505afa1580156118f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119199190614b2a565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016119569291906150fd565b602060405180830381600087803b15801561197057600080fd5b505af1158015611984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a891906149ca565b505050565b6119b5612a3e565b73ffffffffffffffffffffffffffffffffffffffff166119d3611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a20906152b1565b60405180910390fd5b80600c9080519060200190611a3f9291906143f0565b5050565b611a4b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611a69611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab6906152b1565b60405180910390fd5b60c8600b54611ace9190615546565b6127101015611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0990615231565b60405180910390fd5b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d307fff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f927f000000000000000000000000000000000000000000000000000000000000008a6003620186a060016040518663ffffffff1660e01b8152600401611bba95949392919061515c565b602060405180830381600087803b158015611bd457600080fd5b505af1158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c9190614b2a565b50565b6000611c1a82613154565b600001519050919050565b600c8054611c3290615862565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5e90615862565b8015611cab5780601f10611c8057610100808354040283529160200191611cab565b820191906000526020600020905b815481529060010190602001808311611c8e57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d1b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611d8b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611da9611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df6906152b1565b60405180910390fd5b611e0960006133df565b565b6000611e15612ace565b905090565b600a6020528060005260406000206000915090505481565b611e3a612a3e565b73ffffffffffffffffffffffffffffffffffffffff16611e58611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614611eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea5906152b1565b60405180910390fd5b60005b8151811015611f6d57601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611f0a906158c5565b9190505550611f5a3384848481518110611f4d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516117f2565b8080611f65906158c5565b915050611eb1565b5080518273ffffffffffffffffffffffffffffffffffffffff167f8c32c568416fcf97be35ce5b27844cfddcd63a67a1a602c3595ba5dac38f303a60405160405180910390a35050565b600581565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b5881565b6103e881565b60606003805461200190615862565b80601f016020809104026020016040519081016040528092919081815260200182805461202d90615862565b801561207a5780601f1061204f5761010080835404028352916020019161207a565b820191906000526020600020905b81548152906001019060200180831161205d57829003601f168201915b5050505050905090565b60c881565b600260095414156120cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c690615351565b60405180910390fd5b600260098190555067016345785d8a0000813481836120ee91906155cd565b1461212e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212590615331565b60405180910390fd5b601060159054906101000a900460ff1661217d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217490615271565b60405180910390fd5b826127108161218a612ace565b6121949190615546565b11156121d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cc90615291565b60405180910390fd5b836000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506005821115801561224a57506005828261223333611cb3565b61223d91906156ab565b6122479190615546565b11155b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090615371565b60405180910390fd5b6122933387612a46565b5050505050600160098190555050565b6122ab612a3e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612310576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061231d612a3e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ca612a3e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161240f9190615126565b60405180910390a35050565b612426848484612c9e565b6124458373ffffffffffffffffffffffffffffffffffffffff166134a5565b1561248d57612456848484846134c8565b61248c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60115481565b67011c37937e08000081565b600e80546124b290615862565b80601f01602080910402602001604051908101604052809291908181526020018280546124de90615862565b801561252b5780601f106125005761010080835404028352916020019161252b565b820191906000526020600020905b81548152906001019060200180831161250e57829003601f168201915b505050505081565b606061253e82612af8565b61257d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257490615251565b60405180910390fd5b600b54821061261857600d805461259390615862565b80601f01602080910402602001604051908101604052809291908181526020018280546125bf90615862565b801561260c5780601f106125e15761010080835404028352916020019161260c565b820191906000526020600020905b8154815290600101906020018083116125ef57829003601f168201915b5050505050905061264e565b600c61262b61262684613628565b61368a565b60405160200161263c92919061501e565b60405160208183030381529060405290505b919050565b61265b612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612679611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146126cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c6906152b1565b60405180910390fd5b8060118190555050565b6126e1612a3e565b73ffffffffffffffffffffffffffffffffffffffff166126ff611fbc565b73ffffffffffffffffffffffffffffffffffffffff1614612755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274c906152b1565b60405180910390fd5b80600f60146101000a81548160ff02191690831515021790555050565b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600f60149054906101000a900460ff16801561286957508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401612801919061506d565b60206040518083038186803b15801561281957600080fd5b505afa15801561282d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128519190614a97565b73ffffffffffffffffffffffffffffffffffffffff16145b15612878576001915050612886565b6128828484613837565b9150505b92915050565b601060169054906101000a900460ff1681565b600d80546128ac90615862565b80601f01602080910402602001604051908101604052809291908181526020018280546128d890615862565b80156129255780601f106128fa57610100808354040283529160200191612925565b820191906000526020600020905b81548152906001019060200180831161290857829003601f168201915b505050505081565b612935612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612953611fbc565b73ffffffffffffffffffffffffffffffffffffffff16146129a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a0906152b1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a10906151f1565b60405180910390fd5b612a22816133df565b50565b600b5481565b601060149054906101000a900460ff1681565b600033905090565b612a608282604051806020016040528060008152506138cb565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000612ad8612bf8565b60005403905090565b600082612aee8584613c8d565b1490509392505050565b600081612b03612bf8565b11158015612b12575060005482105b8015612b3f575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b60c8600b54612c0c9190615546565b6127101015612c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4790615231565b60405180910390fd5b612c9a81600081518110612c8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151613d28565b5050565b6000612ca982613154565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d14576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612d35612a3e565b73ffffffffffffffffffffffffffffffffffffffff161480612d645750612d6385612d5e612a3e565b612772565b5b80612da95750612d72612a3e565b73ffffffffffffffffffffffffffffffffffffffff16612d9184611206565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612de2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e49576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e568585856001613de6565b612e6260008487612b46565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156130e25760005482146130e157878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314d8585856001613dec565b5050505050565b61315c614476565b60008290508061316a612bf8565b116133a8576000548110156133a7576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516133a557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146132895780925050506133da565b5b6001156133a457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461339f5780925050506133da565b61328a565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134ee612a3e565b8786866040518563ffffffff1660e01b815260040161351094939291906150b1565b602060405180830381600087803b15801561352a57600080fd5b505af192505050801561355b57506040513d601f19601f820116820180604052508101906135589190614a45565b60015b6135d5573d806000811461358b576040519150601f19603f3d011682016040523d82523d6000602084013e613590565b606091505b506000815114156135cd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008060c883613638919061559c565b9050600061364582613df2565b90506000600a60008481526020019081526020016000205460c88661366a9190615932565b6136749190615546565b90506136808183613e6e565b9350505050919050565b606060008214156136d2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613832565b600082905060005b600082146137045780806136ed906158c5565b915050600a826136fd919061559c565b91506136da565b60008167ffffffffffffffff811115613746577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137785781602001600182028036833780820191505090505b5090505b6000851461382b5760018261379191906156ab565b9150600a856137a09190615932565b60306137ac9190615546565b60f81b8183815181106137e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613824919061559c565b945061377c565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613938576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613973576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6139806000858386613de6565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008482019050613b418673ffffffffffffffffffffffffffffffffffffffff166134a5565b15613c06575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bb660008784806001019550876134c8565b613bec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613b47578260005414613c0157600080fd5b613c71565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613c07575b816000819055505050613c876000858386613dec565b50505050565b60008082905060005b8451811015613d1d576000858281518110613cda577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613cfc57613cf58382614041565b9250613d09565b613d068184614041565b92505b508080613d15906158c5565b915050613c96565b508091505092915050565b600060c8600b5481613d63577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905060c8600b6000828254019250508190555060c881613d8491906155cd565b612710613d9191906156ab565b82613d9c9190615932565b600a600083815260200190815260200160002081905550600b547f13d97a570b843b00409978e31e7752baae08816430bbb9f5a5a89f012452423260405160405180910390a25050565b50505050565b50505050565b613dfa6144b9565b613e026144b9565b6000805b84811015613e63576000613e2d600a60008481526020019081526020016000205485613e6e565b9050600060c882613e3e91906154c2565b9050613e4c85838387614058565b935050508080613e5b906158c5565b915050613e06565b508192505050919050565b6000808390506000805b60028110156140175760005b600260c8612710613e95919061559c565b613e9f91906155cd565b811015613fc9576000868260648110613ee1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000878360648110613f27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b1215613fa15760008686613f4e91906154c2565b905082600f0b81600f0b1215613f7f57806fffffffffffffffffffffffffffffffff1697505050505050505061403b565b8583613f8b9190615627565b87613f969190615627565b965081955050613fb4565b80600f0b85600f0b1215613fb3578094505b5b50508080613fc1906158c5565b915050613e84565b50612710600f0b8383613fdc91906154c2565b600f0b126140045781612710613ff29190615627565b83613ffd9190615627565b9250600091505b808061400f906158c5565b915050613e78565b50818161402491906154c2565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b600082600052816020526040600020905092915050565b60008082905060005b838110156142685760008782606481106140a4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160000151905060008883606481106140ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b12801561410957508584145b15614112578293505b81600f0b88600f0b12801561412c575081600f0b87600f0b135b8061414f575087600f0b82600f0b1315801561414e575080600f0b87600f0b13155b5b80614170575080600f0b88600f0b12801561416f575080600f0b87600f0b135b5b1561425357600088886141839190615627565b905061418f89846143d1565b9850828261419d9190615627565b818a6141a991906154c2565b6141b391906154c2565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a8560648110614249577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b50508080614260906158c5565b915050614061565b5060008390505b81811115614315578660018261428591906156ab565b606481106142bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518782606481106142fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250808061430d90615838565b91505061426f565b50604051806040016040528086600f0b8152602001614336866127106143d1565b600f0b815250868260648110614375577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201819052508280614388906158c5565b935050612710600f0b84600f0b13156143c5576143b5866000612710876143af9190615627565b86614058565b5082806143c1906158c5565b9350505b82915050949350505050565b600081600f0b83600f0b126143e657816143e8565b825b905092915050565b8280546143fc90615862565b90600052602060002090601f01602090048101928261441e5760008555614465565b82601f1061443757805160ff1916838001178555614465565b82800160010185558215614465579182015b82811115614464578251825591602001919060010190614449565b5b50905061447291906144e7565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b60405180610c8001604052806064905b6144d1614504565b8152602001906001900390816144c95790505090565b5b808211156145005760008160009055506001016144e8565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000614537614532846153d1565b6153ac565b9050808382526020820190508285602086028201111561455657600080fd5b60005b85811015614586578161456c888261477c565b845260208401935060208301925050600181019050614559565b5050509392505050565b60006145a361459e846153fd565b6153ac565b9050828152602081018484840111156145bb57600080fd5b6145c68482856157f6565b509392505050565b60006145e16145dc8461542e565b6153ac565b9050828152602081018484840111156145f957600080fd5b6146048482856157f6565b509392505050565b60008135905061461b81615d8e565b92915050565b60008083601f84011261463357600080fd5b8235905067ffffffffffffffff81111561464c57600080fd5b60208301915083602082028301111561466457600080fd5b9250929050565b600082601f83011261467c57600080fd5b813561468c848260208601614524565b91505092915050565b6000813590506146a481615da5565b92915050565b6000815190506146b981615da5565b92915050565b6000813590506146ce81615dbc565b92915050565b6000813590506146e381615dd3565b92915050565b6000815190506146f881615dd3565b92915050565b600082601f83011261470f57600080fd5b813561471f848260208601614590565b91505092915050565b60008135905061473781615dea565b92915050565b60008151905061474c81615e01565b92915050565b600082601f83011261476357600080fd5b81356147738482602086016145ce565b91505092915050565b60008135905061478b81615e18565b92915050565b6000815190506147a081615e18565b92915050565b6000602082840312156147b857600080fd5b60006147c68482850161460c565b91505092915050565b600080604083850312156147e257600080fd5b60006147f08582860161460c565b92505060206148018582860161460c565b9150509250929050565b60008060006060848603121561482057600080fd5b600061482e8682870161460c565b935050602061483f8682870161460c565b92505060406148508682870161477c565b9150509250925092565b6000806000806080858703121561487057600080fd5b600061487e8782880161460c565b945050602061488f8782880161460c565b93505060406148a08782880161477c565b925050606085013567ffffffffffffffff8111156148bd57600080fd5b6148c9878288016146fe565b91505092959194509250565b600080604083850312156148e857600080fd5b60006148f68582860161460c565b925050602083013567ffffffffffffffff81111561491357600080fd5b61491f8582860161466b565b9150509250929050565b6000806040838503121561493c57600080fd5b600061494a8582860161460c565b925050602061495b85828601614695565b9150509250929050565b6000806040838503121561497857600080fd5b60006149868582860161460c565b92505060206149978582860161477c565b9150509250929050565b6000602082840312156149b357600080fd5b60006149c184828501614695565b91505092915050565b6000602082840312156149dc57600080fd5b60006149ea848285016146aa565b91505092915050565b600060208284031215614a0557600080fd5b6000614a13848285016146bf565b91505092915050565b600060208284031215614a2e57600080fd5b6000614a3c848285016146d4565b91505092915050565b600060208284031215614a5757600080fd5b6000614a65848285016146e9565b91505092915050565b600060208284031215614a8057600080fd5b6000614a8e84828501614728565b91505092915050565b600060208284031215614aa957600080fd5b6000614ab78482850161473d565b91505092915050565b600060208284031215614ad257600080fd5b600082013567ffffffffffffffff811115614aec57600080fd5b614af884828501614752565b91505092915050565b600060208284031215614b1357600080fd5b6000614b218482850161477c565b91505092915050565b600060208284031215614b3c57600080fd5b6000614b4a84828501614791565b91505092915050565b600080600060408486031215614b6857600080fd5b6000614b768682870161477c565b935050602084013567ffffffffffffffff811115614b9357600080fd5b614b9f86828701614621565b92509250509250925092565b60008060408385031215614bbe57600080fd5b6000614bcc8582860161477c565b925050602083013567ffffffffffffffff811115614be957600080fd5b614bf58582860161466b565b9150509250929050565b614c08816156df565b82525050565b614c1f614c1a826156df565b61590e565b82525050565b614c2e816156f1565b82525050565b614c3d816156fd565b82525050565b6000614c4e82615474565b614c58818561548a565b9350614c68818560208601615805565b614c7181615a1f565b840191505092915050565b614c85816157c0565b82525050565b614c94816157d2565b82525050565b614ca3816157e4565b82525050565b6000614cb48261547f565b614cbe81856154a6565b9350614cce818560208601615805565b614cd781615a1f565b840191505092915050565b6000614ced8261547f565b614cf781856154b7565b9350614d07818560208601615805565b80840191505092915050565b60008154614d2081615862565b614d2a81866154b7565b94506001821660008114614d455760018114614d5657614d89565b60ff19831686528186019350614d89565b614d5f8561545f565b60005b83811015614d8157815481890152600182019150602081019050614d62565b838801955050505b50505092915050565b6000614d9f601c836154a6565b9150614daa82615a3d565b602082019050919050565b6000614dc26026836154a6565b9150614dcd82615a66565b604082019050919050565b6000614de56038836154a6565b9150614df082615ab5565b604082019050919050565b6000614e086014836154a6565b9150614e1382615b04565b602082019050919050565b6000614e2b6011836154a6565b9150614e3682615b2d565b602082019050919050565b6000614e4e6019836154a6565b9150614e5982615b56565b602082019050919050565b6000614e716026836154a6565b9150614e7c82615b7f565b604082019050919050565b6000614e946005836154b7565b9150614e9f82615bce565b600582019050919050565b6000614eb76020836154a6565b9150614ec282615bf7565b602082019050919050565b6000614eda6026836154a6565b9150614ee582615c20565b604082019050919050565b6000614efd602f836154a6565b9150614f0882615c6f565b604082019050919050565b6000614f2060008361549b565b9150614f2b82615cbe565b600082019050919050565b6000614f436020836154a6565b9150614f4e82615cc1565b602082019050919050565b6000614f666018836154a6565b9150614f7182615cea565b602082019050919050565b6000614f89601f836154a6565b9150614f9482615d13565b602082019050919050565b6000614fac601d836154a6565b9150614fb782615d3c565b602082019050919050565b6000614fcf6001836154b7565b9150614fda82615d65565b600182019050919050565b614fee81615792565b82525050565b614ffd816157ac565b82525050565b600061500f8284614c0e565b60148201915081905092915050565b600061502a8285614d13565b915061503582614fc2565b91506150418284614ce2565b915061504c82614e87565b91508190509392505050565b600061506382614f13565b9150819050919050565b60006020820190506150826000830184614bff565b92915050565b600060408201905061509d6000830185614bff565b6150aa6020830184614bff565b9392505050565b60006080820190506150c66000830187614bff565b6150d36020830186614bff565b6150e06040830185614fe5565b81810360608301526150f28184614c43565b905095945050505050565b60006040820190506151126000830185614bff565b61511f6020830184614fe5565b9392505050565b600060208201905061513b6000830184614c25565b92915050565b60006020820190506151566000830184614c34565b92915050565b600060a0820190506151716000830188614c34565b61517e6020830187614ff4565b61518b6040830186614c9a565b6151986060830185614c7c565b6151a56080830184614c8b565b9695505050505050565b600060208201905081810360008301526151c98184614ca9565b905092915050565b600060208201905081810360008301526151ea81614d92565b9050919050565b6000602082019050818103600083015261520a81614db5565b9050919050565b6000602082019050818103600083015261522a81614dd8565b9050919050565b6000602082019050818103600083015261524a81614dfb565b9050919050565b6000602082019050818103600083015261526a81614e1e565b9050919050565b6000602082019050818103600083015261528a81614e41565b9050919050565b600060208201905081810360008301526152aa81614e64565b9050919050565b600060208201905081810360008301526152ca81614eaa565b9050919050565b600060208201905081810360008301526152ea81614ecd565b9050919050565b6000602082019050818103600083015261530a81614ef0565b9050919050565b6000602082019050818103600083015261532a81614f36565b9050919050565b6000602082019050818103600083015261534a81614f59565b9050919050565b6000602082019050818103600083015261536a81614f7c565b9050919050565b6000602082019050818103600083015261538a81614f9f565b9050919050565b60006020820190506153a66000830184614fe5565b92915050565b60006153b66153c7565b90506153c28282615894565b919050565b6000604051905090565b600067ffffffffffffffff8211156153ec576153eb6159f0565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615418576154176159f0565b5b61542182615a1f565b9050602081019050919050565b600067ffffffffffffffff821115615449576154486159f0565b5b61545282615a1f565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006154cd82615757565b91506154d883615757565b9250816f7fffffffffffffffffffffffffffffff0383136000831215161561550357615502615963565b5b817fffffffffffffffffffffffffffffffff8000000000000000000000000000000003831260008312161561553b5761553a615963565b5b828201905092915050565b600061555182615792565b915061555c83615792565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561559157615590615963565b5b828201905092915050565b60006155a782615792565b91506155b283615792565b9250826155c2576155c1615992565b5b828204905092915050565b60006155d882615792565b91506155e383615792565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561561c5761561b615963565b5b828202905092915050565b600061563282615757565b915061563d83615757565b9250827fffffffffffffffffffffffffffffffff800000000000000000000000000000000182126000841215161561567857615677615963565b5b826f7fffffffffffffffffffffffffffffff0182136000841216156156a05761569f615963565b5b828203905092915050565b60006156b682615792565b91506156c183615792565b9250828210156156d4576156d3615963565b5b828203905092915050565b60006156ea82615772565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061573e826156df565b9050919050565b6000615750826156df565b9050919050565b600081600f0b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60006157cb8261579c565b9050919050565b60006157dd8261579c565b9050919050565b60006157ef82615764565b9050919050565b82818337600083830152505050565b60005b83811015615823578082015181840152602081019050615808565b83811115615832576000848401525b50505050565b600061584382615792565b9150600082141561585757615856615963565b5b600182039050919050565b6000600282049050600182168061587a57607f821691505b6020821081141561588e5761588d6159c1565b5b50919050565b61589d82615a1f565b810181811067ffffffffffffffff821117156158bc576158bb6159f0565b5b80604052505050565b60006158d082615792565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561590357615902615963565b5b600182019050919050565b600061591982615920565b9050919050565b600061592b82615a30565b9050919050565b600061593d82615792565b915061594883615792565b92508261595857615957615992565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f436f6d6d756e6974792073616c65206973206e6f742061637469766500000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768204b69667461626c65732072656d61696e696e67207460008201527f6f206d696e7420696e20636f6d6d756e6974792073616c650000000000000000602082015250565b7f6d61784b69667461626c657320746f6f206c6f77000000000000000000000000600082015250565b7f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4e6f7420656e6f756768204b69667461626c65732072656d61696e696e67207460008201527f6f206d696e740000000000000000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646472657373206e6f7420696e206c697374206f7220696e636f727265637460008201527f2070726f6f660000000000000000000000000000000000000000000000000000602082015250565b7f4d6178204b69667461626c657320746f206d696e7420696e20636f6d6d756e6960008201527f74792073616c6520697320666976650000000000000000000000000000000000602082015250565b50565b7f54726561737572792063616e206f6e6c79206265206d696e746564206f6e6365600082015250565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f4d6178204b69667461626c657320746f206d696e742069732066697665000000600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b615d97816156df565b8114615da257600080fd5b50565b615dae816156f1565b8114615db957600080fd5b50565b615dc5816156fd565b8114615dd057600080fd5b50565b615ddc81615707565b8114615de757600080fd5b50565b615df381615733565b8114615dfe57600080fd5b50565b615e0a81615745565b8114615e1557600080fd5b50565b615e2181615792565b8114615e2c57600080fd5b5056fea26469706673582212206de9fa4487102b905dcd0d2041ba3ad0542d4b6a1d05cfd7399588753446f50464736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c0ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000000000000000000000000000000000000000008a000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000013709e1c65812050bbae94d8a8afe024cae669160000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d54653732355666686f793961465346355452456d795a62664d7a505a415862445879396b713336777a4773320000000000000000000000
-----Decoded View---------------
Arg [0] : _preRevealURI (string): ipfs://QmTe725Vfhoy9aFSF5TREmyZbfMzPZAXbDXy9kq36wzGs2
Arg [1] : _s_keyHash (bytes32): 0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [2] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [3] : _s_subscriptionId (uint64): 138
Arg [4] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [5] : _gnosisSafe (address): 0x13709E1c65812050BBae94D8A8Afe024cae66916
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [2] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [3] : 000000000000000000000000000000000000000000000000000000000000008a
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [5] : 00000000000000000000000013709e1c65812050bbae94d8a8afe024cae66916
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [7] : 697066733a2f2f516d54653732355666686f793961465346355452456d795a62
Arg [8] : 664d7a505a415862445879396b713336777a4773320000000000000000000000
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.