Contract Overview
Balance:
0 CELO
CELO Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x272a09d25ca3c3e7314798dc4e39d2ef687e5945397adf41890af56cffb4a8d4 | 0x60806040 | 14258295 | 313 days 19 hrs ago | 0x8bea3a62b1628c3ded30cbbe8cf96213cf43670e | IN | Create: ERC721Factory | 0 CELO | 0.001785618 |
[ Download CSV Export ]
Contract Name:
ERC721Factory
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/** *Submitted for verification at celoscan.io on 2022-07-27 */ // SPDX-License-Identifier: No License pragma solidity >=0.8.10; // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) /* * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ // File: @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) // 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 subtraction 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; } } } // File: WL/MintdropzNFT.sol /** * @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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ 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 Merkle 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) } } } library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/utils/introspection/[email protected] /** * @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); } // File @openzeppelin/contracts/token/ERC721/[email protected] /** * @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; } // File @openzeppelin/contracts/token/ERC721/[email protected] /** * @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); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] /** * @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); } // File @openzeppelin/contracts/utils/[email protected] /** * @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; } } // File @openzeppelin/contracts/utils/introspection/[email protected] /** * @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; } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 1; uint256 internal immutable maxBatchSize; // 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) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex-1; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } } interface IRoyaltiesProvider { function getRoyalties(address token, uint tokenId) external returns (LibPart.Part[] memory); } library LibRoyaltiesV2 { /* * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc; } interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); } abstract contract AbstractRoyalties { mapping (uint256 => LibPart.Part[]) public royalties; function _saveRoyalties(uint256 _id, LibPart.Part[] memory _royalties) internal { for (uint i = 0; i < _royalties.length; i++) { require(_royalties[i].account != address(0x0), "Recipient should be present"); require(_royalties[i].value != 0, "Royalty value should be positive"); royalties[_id].push(_royalties[i]); } _onRoyaltiesSet(_id, _royalties); } function _updateAccount(uint256 _id, address _from, address _to) internal { uint length = royalties[_id].length; for(uint i = 0; i < length; i++) { if (royalties[_id][i].account == _from) { royalties[_id][i].account = payable(address(uint160(_to))); } } } function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) virtual internal; } contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 { function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) { return royalties[id]; } function _onRoyaltiesSet(uint256 _id, LibPart.Part[] memory _royalties) override internal { emit RoyaltiesSet(_id, _royalties); } } contract MintdropzNFT is ERC721A, Ownable, RoyaltiesV2Impl { using SafeMath for uint256; uint256 public MINT_PRICE ; uint256 public totalsupply; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; uint256 public MAX_SUPPLY_FOR_FREE; //250 + 200; uint256 public MAX_NFT_PURCHASE; uint256 public MAX_FREE_FOR_USER ; mapping(address => uint256) private claimInFree; uint256 public royaltyPercent; uint256 public DENOMINATOR = 100; string public _baseTokenURI; address[] public creator; uint256[] public creatorPercent; address private comissionaddress; uint256 public mintdropzReserve; bool public saleIsActive; bool freemintstate = true; bytes32 private root; //merkle root for whitelister address bool reveal = false; bool reserve = false; string realURI; uint256 freemintednft; constructor( string memory _name, string memory _symbol, uint256 _maxMintdropzPurchase, uint256 _MAX_FREE, uint256 _mintdropzPrice, uint256 _mintdropzReserve, address[] memory _creator, uint256[] memory _creatorPercent, uint256 _royaltyPercent, address _commision, uint256 _MAX_FREE_FOR_USER )ERC721A(_name, _symbol, _maxMintdropzPurchase) { mintdropzReserve = _mintdropzReserve; creator = _creator; creatorPercent = _creatorPercent; comissionaddress = _commision; MINT_PRICE = _mintdropzPrice; MAX_FREE_FOR_USER = _MAX_FREE_FOR_USER; MAX_NFT_PURCHASE =_maxMintdropzPurchase; MAX_SUPPLY_FOR_FREE = _MAX_FREE; royaltyPercent = _royaltyPercent; } function flipSaleState() public onlyOwner { saleIsActive = !saleIsActive; } function getsalestatus() public view returns(bool){ return saleIsActive; } function setWhitelisterInfo(bytes32 _root) external onlyOwner { root = _root; } function setRoyaltyConfig( uint256 _royaltyPercent, uint256 _DENOMINATOR ) external onlyOwner { royaltyPercent = _royaltyPercent; DENOMINATOR = _DENOMINATOR; } /** * @dev return the Base URI of the token */ function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } /** * @dev set the _baseTokenURI * @param _newURI of the _baseTokenURI */ function setBaseURI(string calldata _newURI) external onlyOwner { _baseTokenURI = _newURI; } /** * @dev free for first 250, 0.06 ETH for afterwards */ function settotalsupply(uint256 __totalsupply) public onlyOwner { totalsupply = __totalsupply; } function getfreestatu()view public returns(bool){ if(claimInFree[msg.sender] == MAX_FREE_FOR_USER){ return false; } return freemintstate ; } function reservemint(address receiver)public{ require(!reserve,"can't call this function"); for (uint256 i = 0; i < mintdropzReserve; i++) _safeMint(receiver, 1); reserve = true; } function mintNFT(uint256 numberOfTokens, bytes32[] calldata _merkleProof) external payable { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if(!MerkleProof.verify(_merkleProof, root, leaf)){ require(saleIsActive, "Your are not whitelister. Try on pulic sale"); } require(totalSupply() + numberOfTokens <= totalsupply, "can't mint anymore"); uint256 freeMintableCnt = 0; uint256 personalFreeMintable = MAX_FREE_FOR_USER - claimInFree[msg.sender]; uint256 payfulAmount = numberOfTokens; if ( personalFreeMintable > 0 && freemintednft < MAX_SUPPLY_FOR_FREE) { freeMintableCnt = MAX_SUPPLY_FOR_FREE - freemintednft; if (freeMintableCnt > personalFreeMintable) { freeMintableCnt = personalFreeMintable; } } if (freeMintableCnt >= numberOfTokens) { freeMintableCnt = numberOfTokens; payfulAmount = 0; } else { payfulAmount = numberOfTokens - freeMintableCnt; } freemintednft += freeMintableCnt; if(payfulAmount != 0){ require( msg.value >= MINT_PRICE * payfulAmount, "Invalid Amount" ); uint256 restAmount = msg.value - MINT_PRICE * payfulAmount; uint256 commisionAmount = MINT_PRICE.mul(payfulAmount).mul(9).div(DENOMINATOR); payable(comissionaddress).transfer(commisionAmount); payable(msg.sender).transfer(restAmount); for(uint256 i = 0; i < creator.length;i++){ uint256 creatorFee = (MINT_PRICE.mul(payfulAmount) - commisionAmount).mul(creatorPercent[i]).div(DENOMINATOR); payable(creator[i]).transfer(creatorFee); } payable(owner()).transfer(address(this).balance); } claimInFree[msg.sender] += freeMintableCnt; _safeMint(msg.sender, numberOfTokens); if(totalSupply() >= MAX_SUPPLY_FOR_FREE) freemintstate = false; } function getmintprice()view external returns(uint256){ return MINT_PRICE; } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { if(interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) { return true; } if(interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if(!reveal) return _baseTokenURI; else return string(abi.encodePacked(realURI, Strings.toString(tokenId), ".json")); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { LibPart.Part[] memory _royalties = royalties[_tokenId]; if(_royalties.length > 0) { return (_royalties[0].account, (_salePrice * _royalties[0].value)/10000); } return (address(0), 0); } function setRealURI(string memory uri)public onlyOwner{ reveal = true; realURI = uri; } } // File: apeactoryV2.sol contract ERC721Factory is Ownable { mapping(address => address) public contractAddresses; uint256 public contractCount; event createdcontract(address child, string name, string symbol); function createContract( string memory _name, string memory _symbol, uint256 _maxMintdropzPurchase, uint256 _MAX_FREE_MINTDROPZ, uint256 _mintdropzPrice, uint256 _mintdropzReserve, address[] memory _creator, uint256[] memory _creatorPercent, uint256 _MAX_FREE_FOR_USER, uint256 _royaltyPercent, uint256 _totalsuppy ) public { MintdropzNFT _contract = new MintdropzNFT( _name, _symbol, _maxMintdropzPurchase, _MAX_FREE_MINTDROPZ, _mintdropzPrice, _mintdropzReserve, _creator, _creatorPercent, _royaltyPercent, owner(), _MAX_FREE_FOR_USER); contractAddresses[msg.sender] = address(_contract); emit createdcontract(address(_contract), _name, _symbol); _contract.settotalsupply(_totalsuppy); _contract.transferOwnership(msg.sender); contractCount++; } function getMyContract() external view returns (address) { require(contractAddresses[msg.sender] != address(0)); return (contractAddresses[msg.sender]); } function getContractCount() external view returns (uint256) { return contractCount; } }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"child","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"createdcontract","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contractAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxMintdropzPurchase","type":"uint256"},{"internalType":"uint256","name":"_MAX_FREE_MINTDROPZ","type":"uint256"},{"internalType":"uint256","name":"_mintdropzPrice","type":"uint256"},{"internalType":"uint256","name":"_mintdropzReserve","type":"uint256"},{"internalType":"address[]","name":"_creator","type":"address[]"},{"internalType":"uint256[]","name":"_creatorPercent","type":"uint256[]"},{"internalType":"uint256","name":"_MAX_FREE_FOR_USER","type":"uint256"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"},{"internalType":"uint256","name":"_totalsuppy","type":"uint256"}],"name":"createContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getContractCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350613f4a806100616000396000f3fe60806040523480156200001157600080fd5b5060043610620000935760003560e01c80638736381a11620000625780638736381a146200010e5780638da5cb5b14620001275780639399869d1462000139578063f2fde38b146200014257600080fd5b80634661ac951462000098578063471192e114620000e15780635c41a1c414620000fa578063715018a61462000104575b600080fd5b620000c4620000a936600462000533565b6001602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b620000f8620000f23660046200071e565b62000159565b005b620000c462000300565b620000f862000340565b6200011860025481565b604051908152602001620000d8565b6000546001600160a01b0316620000c4565b60025462000118565b620000f86200015336600462000533565b620003ea565b60008b8b8b8b8b8b8b8b8a620001776000546001600160a01b031690565b8d604051620001869062000508565b6200019c9b9a99989796959493929190620008ae565b604051809103906000f080158015620001b9573d6000803e3d6000fd5b50336000908152600160205260409081902080546001600160a01b0319166001600160a01b038416179055519091507fab5854bbd1f0e5755faec76fbf9c6a7fb55dccf48e66393cc26b703f5f650945906200021b9083908f908f9062000987565b60405180910390a1604051630e25c96360e41b8152600481018390526001600160a01b0382169063e25c963090602401600060405180830381600087803b1580156200026657600080fd5b505af11580156200027b573d6000803e3d6000fd5b505060405163f2fde38b60e01b81523360048201526001600160a01b038416925063f2fde38b9150602401600060405180830381600087803b158015620002c157600080fd5b505af1158015620002d6573d6000803e3d6000fd5b505060028054925090506000620002ed83620009cb565b9190505550505050505050505050505050565b336000908152600160205260408120546001600160a01b03166200032357600080fd5b50336000908152600160205260409020546001600160a01b031690565b6000546001600160a01b03163314620003a05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314620004465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000397565b6001600160a01b038116620004ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000397565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61351f80620009f683390190565b80356001600160a01b03811681146200052e57600080fd5b919050565b6000602082840312156200054657600080fd5b620005518262000516565b9392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156200059a576200059a62000558565b604052919050565b600082601f830112620005b457600080fd5b813567ffffffffffffffff811115620005d157620005d162000558565b620005e6601f8201601f19166020016200056e565b818152846020838601011115620005fc57600080fd5b816020850160208301376000918101602001919091529392505050565b600067ffffffffffffffff82111562000636576200063662000558565b5060051b60200190565b600082601f8301126200065257600080fd5b813560206200066b620006658362000619565b6200056e565b82815260059290921b840181019181810190868411156200068b57600080fd5b8286015b84811015620006b157620006a38162000516565b83529183019183016200068f565b509695505050505050565b600082601f830112620006ce57600080fd5b81356020620006e1620006658362000619565b82815260059290921b840181019181810190868411156200070157600080fd5b8286015b84811015620006b1578035835291830191830162000705565b60008060008060008060008060008060006101608c8e0312156200074157600080fd5b67ffffffffffffffff808d3511156200075957600080fd5b620007688e8e358f01620005a2565b9b508060208e013511156200077c57600080fd5b6200078e8e60208f01358f01620005a2565b9a5060408d0135995060608d0135985060808d0135975060a08d013596508060c08e01351115620007be57600080fd5b620007d08e60c08f01358f0162000640565b95508060e08e01351115620007e457600080fd5b50620007f78d60e08e01358e01620006bc565b93506101008c013592506101208c013591506101408c013590509295989b509295989b9093969950565b6000815180845260005b8181101562000849576020818501810151868301820152016200082b565b818111156200085c576000602083870101525b50601f01601f19169290920160200192915050565b600081518084526020808501945080840160005b83811015620008a35781518752958201959082019060010162000885565b509495945050505050565b6000610160808352620008c48184018f62000821565b9050602083820381850152620008db828f62000821565b91508c60408501528b60608501528a60808501528960a085015283820360c08501528189518084528284019150828b01935060005b81811015620009375784516001600160a01b03168352938301939183019160010162000910565b505084810360e08601526200094d818a62000871565b935050505084610100830152620009706101208301856001600160a01b03169052565b826101408301529c9b505050505050505050505050565b6001600160a01b0384168152606060208201819052600090620009ad9083018562000821565b8281036040840152620009c1818562000821565b9695505050505050565b6000600019821415620009ee57634e487b7160e01b600052601160045260246000fd5b506001019056fe60a06040526001600090815560075560646011556017805461ff0019166101001790556019805461ffff191690553480156200003a57600080fd5b506040516200351f3803806200351f8339810160408190526200005d91620004e9565b8a8a8a60008111620000c55760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b8251620000da906001906020860190620001af565b508151620000f0906002906020850190620001af565b506080525050600880546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060168690558451620001539060139060208801906200023e565b5083516200016990601490602087019062000296565b50601580546001600160a01b0319166001600160a01b039390931692909217909155600a95909555600e94909455505050600d92909255600c5560105550620006429050565b828054620001bd9062000605565b90600052602060002090601f016020900481019282620001e157600085556200022c565b82601f10620001fc57805160ff19168380011785556200022c565b828001600101855582156200022c579182015b828111156200022c5782518255916020019190600101906200020f565b506200023a929150620002d3565b5090565b8280548282559060005260206000209081019282156200022c579160200282015b828111156200022c57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200025f565b8280548282559060005260206000209081019282156200022c57916020028201828111156200022c5782518255916020019190600101906200020f565b5b808211156200023a5760008155600101620002d4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200032b576200032b620002ea565b604052919050565b600082601f8301126200034557600080fd5b81516001600160401b03811115620003615762000361620002ea565b602062000377601f8301601f1916820162000300565b82815285828487010111156200038c57600080fd5b60005b83811015620003ac5785810183015182820184015282016200038f565b83811115620003be5760008385840101525b5095945050505050565b60006001600160401b03821115620003e457620003e4620002ea565b5060051b60200190565b80516001600160a01b03811681146200040657600080fd5b919050565b600082601f8301126200041d57600080fd5b81516020620004366200043083620003c8565b62000300565b82815260059290921b840181019181810190868411156200045657600080fd5b8286015b848110156200047c576200046e81620003ee565b83529183019183016200045a565b509695505050505050565b600082601f8301126200049957600080fd5b81516020620004ac6200043083620003c8565b82815260059290921b84018101918181019086841115620004cc57600080fd5b8286015b848110156200047c5780518352918301918301620004d0565b60008060008060008060008060008060006101608c8e0312156200050c57600080fd5b8b516001600160401b038111156200052357600080fd5b620005318e828f0162000333565b60208e0151909c5090506001600160401b038111156200055057600080fd5b6200055e8e828f0162000333565b9a505060408c0151985060608c0151975060808c0151965060a08c0151955060c08c015160018060401b038111156200059657600080fd5b620005a48e828f016200040b565b60e08e015190965090506001600160401b03811115620005c357600080fd5b620005d18e828f0162000487565b9450506101008c01519250620005eb6101208d01620003ee565b91506101408c015190509295989b509295989b9093969950565b600181811c908216806200061a57607f821691505b602082108114156200063c57634e487b7160e01b600052602260045260246000fd5b50919050565b608051612eb36200066c60003960008181611f1401528181611f3e015261232b0152612eb36000f3fe60806040526004361061027d5760003560e01c80638da5cb5b1161014f578063c87b56dd116100c1578063e5391c8b1161007a578063e5391c8b1461076a578063e985e9c51461078a578063ea334aa6146107d3578063eb8d2444146107e9578063f2fde38b14610803578063fa6485841461082357600080fd5b8063c87b56dd146106bf578063cad96cca146106df578063cfc86f7b1461070c578063d62fd29614610721578063d7224ba014610734578063e25c96301461074a57600080fd5b8063a22cb46511610113578063a22cb4651461061c578063a3df1eb71461063c578063aabd482014610654578063b88d4fde14610669578063c002d23d14610689578063c10dc4221461069f57600080fd5b80638da5cb5b146105a8578063918f8674146105c657806395d89b41146105dc5780639f5c66b1146105f15780639f67756d1461060657600080fd5b806342842e0e116101f3578063609cd0f4116101ac578063609cd0f4146104e05780636352211e146104f657806370a0823114610516578063715018a61461053657806372dd529b1461054b5780638924af741461056157600080fd5b806342842e0e1461042057806349d3fa14146104405780634a9c8ed9146104605780634f6ccce714610480578063510b5158146104a057806355f804b3146104c057600080fd5b806318160ddd1161024557806318160ddd1461035757806323b872dd1461036c5780632a55205a1461038c5780632f745c59146103cb57806333684b97146103eb57806334918dfd1461040b57600080fd5b806301ffc9a714610282578063020b39cc146102b757806306fdde03146102db578063081812fc146102fd578063095ea7b314610335575b600080fd5b34801561028e57600080fd5b506102a261029d3660046126df565b610839565b60405190151581526020015b60405180910390f35b3480156102c357600080fd5b506102cd600d5481565b6040519081526020016102ae565b3480156102e757600080fd5b506102f061088c565b6040516102ae9190612754565b34801561030957600080fd5b5061031d610318366004612767565b61091e565b6040516001600160a01b0390911681526020016102ae565b34801561034157600080fd5b50610355610350366004612797565b6109ae565b005b34801561036357600080fd5b506102cd610ac6565b34801561037857600080fd5b506103556103873660046127c1565b610adc565b34801561039857600080fd5b506103ac6103a73660046127fd565b610ae7565b604080516001600160a01b0390931683526020830191909152016102ae565b3480156103d757600080fd5b506102cd6103e6366004612797565b610bed565b3480156103f757600080fd5b506103556104063660046127fd565b610d65565b34801561041757600080fd5b50610355610d9a565b34801561042c57600080fd5b5061035561043b3660046127c1565b610dd8565b34801561044c57600080fd5b5061035561045b366004612767565b610df3565b34801561046c57600080fd5b5061035561047b36600461281f565b610e22565b34801561048c57600080fd5b506102cd61049b366004612767565b610eb7565b3480156104ac57600080fd5b5061031d6104bb366004612767565b610f1f565b3480156104cc57600080fd5b506103556104db36600461283a565b610f49565b3480156104ec57600080fd5b506102cd60165481565b34801561050257600080fd5b5061031d610511366004612767565b610f7f565b34801561052257600080fd5b506102cd61053136600461281f565b610f91565b34801561054257600080fd5b50610355611022565b34801561055757600080fd5b506102cd600b5481565b34801561056d57600080fd5b5061058161057c3660046127fd565b611096565b604080516001600160a01b0390931683526001600160601b039091166020830152016102ae565b3480156105b457600080fd5b506008546001600160a01b031661031d565b3480156105d257600080fd5b506102cd60115481565b3480156105e857600080fd5b506102f06110df565b3480156105fd57600080fd5b506102a26110ee565b34801561061257600080fd5b506102cd60105481565b34801561062857600080fd5b506103556106373660046128ac565b61111e565b34801561064857600080fd5b5060175460ff166102a2565b34801561066057600080fd5b50600a546102cd565b34801561067557600080fd5b50610355610684366004612974565b6111e3565b34801561069557600080fd5b506102cd600a5481565b3480156106ab57600080fd5b506103556106ba3660046129f0565b61121c565b3480156106cb57600080fd5b506102f06106da366004612767565b61126a565b3480156106eb57600080fd5b506106ff6106fa366004612767565b6113ae565b6040516102ae9190612a39565b34801561071857600080fd5b506102f061143d565b61035561072f366004612a9a565b6114cb565b34801561074057600080fd5b506102cd60075481565b34801561075657600080fd5b50610355610765366004612767565b6118ee565b34801561077657600080fd5b506102cd610785366004612767565b61191d565b34801561079657600080fd5b506102a26107a5366004612b19565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107df57600080fd5b506102cd600e5481565b3480156107f557600080fd5b506017546102a29060ff1681565b34801561080f57600080fd5b5061035561081e36600461281f565b61193e565b34801561082f57600080fd5b506102cd600c5481565b60006001600160e01b03198216631131d2f360e21b141561085c57506001919050565b6001600160e01b0319821663152a902d60e11b141561087d57506001919050565b61088682611a29565b92915050565b60606001805461089b90612b4c565b80601f01602080910402602001604051908101604052809291908181526020018280546108c790612b4c565b80156109145780601f106108e957610100808354040283529160200191610914565b820191906000526020600020905b8154815290600101906020018083116108f757829003601f168201915b5050505050905090565b600061092b826000541190565b6109925760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109b982610f7f565b9050806001600160a01b0316836001600160a01b03161415610a285760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610989565b336001600160a01b0382161480610a445750610a4481336107a5565b610ab65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610989565b610ac1838383611a94565b505050565b60006001600054610ad79190612b9d565b905090565b610ac1838383611af0565b6000828152600960209081526040808320805482518185028101850190935280835284938493929190849084015b82821015610b6457600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610b15565b505050509050600081511115610bdd5780600081518110610b8757610b87612bb4565b60200260200101516000015161271082600081518110610ba957610ba9612bb4565b6020026020010151602001516001600160601b031686610bc99190612bca565b610bd39190612bff565b9250925050610be6565b60008092509250505b9250929050565b6000610bf883610f91565b8210610c515760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610989565b6000610c5b610ac6565b905060008060005b83811015610d05576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610cb657805192505b876001600160a01b0316836001600160a01b03161415610cf25786841415610ce45750935061088692505050565b83610cee81612c13565b9450505b5080610cfd81612c13565b915050610c63565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610989565b6008546001600160a01b03163314610d8f5760405162461bcd60e51b815260040161098990612c2e565b601091909155601155565b6008546001600160a01b03163314610dc45760405162461bcd60e51b815260040161098990612c2e565b6017805460ff19811660ff90911615179055565b610ac1838383604051806020016040528060008152506111e3565b6008546001600160a01b03163314610e1d5760405162461bcd60e51b815260040161098990612c2e565b601855565b601954610100900460ff1615610e7a5760405162461bcd60e51b815260206004820152601860248201527f63616e27742063616c6c20746869732066756e6374696f6e00000000000000006044820152606401610989565b60005b601654811015610ea457610e92826001611e78565b80610e9c81612c13565b915050610e7d565b50506019805461ff001916610100179055565b6000610ec1610ac6565b8210610f1b5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610989565b5090565b60138181548110610f2f57600080fd5b6000918252602090912001546001600160a01b0316905081565b6008546001600160a01b03163314610f735760405162461bcd60e51b815260040161098990612c2e565b610ac1601283836125bd565b6000610f8a82611e92565b5192915050565b60006001600160a01b038216610ffd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610989565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b0316331461104c5760405162461bcd60e51b815260040161098990612c2e565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b600960205281600052604060002081815481106110b257600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b60606002805461089b90612b4c565b600e54336000908152600f60205260408120549091141561110f5750600090565b50601754610100900460ff1690565b6001600160a01b0382163314156111775760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610989565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6111ee848484611af0565b6111fa8484848461203c565b6112165760405162461bcd60e51b815260040161098990612c63565b50505050565b6008546001600160a01b031633146112465760405162461bcd60e51b815260040161098990612c2e565b6019805460ff19166001179055805161126690601a90602084019061263d565b5050565b6060611277826000541190565b6112db5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610989565b60195460ff1661137757601280546112f290612b4c565b80601f016020809104026020016040519081016040528092919081815260200182805461131e90612b4c565b801561136b5780601f106113405761010080835404028352916020019161136b565b820191906000526020600020905b81548152906001019060200180831161134e57829003601f168201915b50505050509050919050565b601a6113828361213b565b604051602001611393929190612cd2565b6040516020818303038152906040529050919050565b919050565b606060096000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561143257600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016113e3565b505050509050919050565b6012805461144a90612b4c565b80601f016020809104026020016040519081016040528092919081815260200182805461147690612b4c565b80156114c35780601f10611498576101008083540402835291602001916114c3565b820191906000526020600020905b8154815290600101906020018083116114a657829003601f168201915b505050505081565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611545838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506018549150849050612239565b6115af5760175460ff166115af5760405162461bcd60e51b815260206004820152602b60248201527f596f757220617265206e6f742077686974656c69737465722e20547279206f6e60448201526a2070756c69632073616c6560a81b6064820152608401610989565b600b54846115bb610ac6565b6115c59190612d8d565b11156116085760405162461bcd60e51b815260206004820152601260248201527163616e2774206d696e7420616e796d6f726560701b6044820152606401610989565b336000908152600f6020526040812054600e54829161162691612b9d565b905085811580159061163b5750600c54601b54105b1561165e57601b54600c546116509190612b9d565b92508183111561165e578192505b8683106116705750859150600061167d565b61167a8388612b9d565b90505b82601b600082825461168f9190612d8d565b9091555050801561189a5780600a546116a89190612bca565b3410156116e85760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908105b5bdd5b9d60921b6044820152606401610989565b600081600a546116f89190612bca565b6117029034612b9d565b9050600061173260115461172c600961172687600a5461224f90919063ffffffff16565b9061224f565b90612262565b6015546040519192506001600160a01b03169082156108fc029083906000818181858888f1935050505015801561176d573d6000803e3d6000fd5b50604051339083156108fc029084906000818181858888f1935050505015801561179b573d6000803e3d6000fd5b5060005b60135481101561185c5760006117f260115461172c601485815481106117c7576117c7612bb4565b9060005260206000200154866117e88a600a5461224f90919063ffffffff16565b6117269190612b9d565b90506013828154811061180757611807612bb4565b60009182526020822001546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015611847573d6000803e3d6000fd5b5050808061185490612c13565b91505061179f565b506008546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015611896573d6000803e3d6000fd5b5050505b336000908152600f6020526040812080548592906118b9908490612d8d565b909155506118c990503388611e78565b600c546118d4610ac6565b106118e5576017805461ff00191690555b50505050505050565b6008546001600160a01b031633146119185760405162461bcd60e51b815260040161098990612c2e565b600b55565b6014818154811061192d57600080fd5b600091825260209091200154905081565b6008546001600160a01b031633146119685760405162461bcd60e51b815260040161098990612c2e565b6001600160a01b0381166119cd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610989565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b1480611a5a57506001600160e01b03198216635b5e139f60e01b145b80611a7557506001600160e01b0319821663780e9d6360e01b145b8061088657506301ffc9a760e01b6001600160e01b0319831614610886565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611afb82611e92565b80519091506000906001600160a01b0316336001600160a01b03161480611b32575033611b278461091e565b6001600160a01b0316145b80611b4457508151611b4490336107a5565b905080611bae5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610989565b846001600160a01b031682600001516001600160a01b031614611c225760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610989565b6001600160a01b038416611c865760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610989565b611c966000848460000151611a94565b6001600160a01b0385166000908152600460205260408120805460019290611cc89084906001600160801b0316612da5565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092611d1491859116612dcd565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611d9c846001612d8d565b6000818152600360205260409020549091506001600160a01b0316611e2e57611dc6816000541190565b15611e2e5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61126682826040518060200160405280600081525061226e565b6040805180820190915260008082526020820152611eb1826000541190565b611f105760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610989565b60007f00000000000000000000000000000000000000000000000000000000000000008310611f7157611f637f000000000000000000000000000000000000000000000000000000000000000084612b9d565b611f6e906001612d8d565b90505b825b818110611fdb576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215611fc857949350505050565b5080611fd381612df8565b915050611f73565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610989565b60006001600160a01b0384163b1561212f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612080903390899088908890600401612e0f565b6020604051808303816000875af19250505080156120bb575060408051601f3d908101601f191682019092526120b891810190612e4c565b60015b612115573d8080156120e9576040519150601f19603f3d011682016040523d82523d6000602084013e6120ee565b606091505b50805161210d5760405162461bcd60e51b815260040161098990612c63565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612133565b5060015b949350505050565b60608161215f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612189578061217381612c13565b91506121829050600a83612bff565b9150612163565b60008167ffffffffffffffff8111156121a4576121a46128e8565b6040519080825280601f01601f1916602001820160405280156121ce576020820181803683370190505b5090505b8415612133576121e3600183612b9d565b91506121f0600a86612e69565b6121fb906030612d8d565b60f81b81838151811061221057612210612bb4565b60200101906001600160f81b031916908160001a905350612232600a86612bff565b94506121d2565b6000826122468584612549565b14949350505050565b600061225b8284612bca565b9392505050565b600061225b8284612bff565b6000546001600160a01b0384166122d15760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610989565b6122dc816000541190565b156123295760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610989565b7f00000000000000000000000000000000000000000000000000000000000000008311156123a45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610989565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612400908790612dcd565b6001600160801b0316815260200185836020015161241e9190612dcd565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561253e5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612502600088848861203c565b61251e5760405162461bcd60e51b815260040161098990612c63565b8161252881612c13565b925050808061253690612c13565b9150506124b5565b506000819055611e70565b600081815b84518110156125b557600085828151811061256b5761256b612bb4565b6020026020010151905080831161259157600083815260208290526040902092506125a2565b600081815260208490526040902092505b50806125ad81612c13565b91505061254e565b509392505050565b8280546125c990612b4c565b90600052602060002090601f0160209004810192826125eb5760008555612631565b82601f106126045782800160ff19823516178555612631565b82800160010185558215612631579182015b82811115612631578235825591602001919060010190612616565b50610f1b9291506126b1565b82805461264990612b4c565b90600052602060002090601f01602090048101928261266b5760008555612631565b82601f1061268457805160ff1916838001178555612631565b82800160010185558215612631579182015b82811115612631578251825591602001919060010190612696565b5b80821115610f1b57600081556001016126b2565b6001600160e01b0319811681146126dc57600080fd5b50565b6000602082840312156126f157600080fd5b813561225b816126c6565b60005b838110156127175781810151838201526020016126ff565b838111156112165750506000910152565b600081518084526127408160208601602086016126fc565b601f01601f19169290920160200192915050565b60208152600061225b6020830184612728565b60006020828403121561277957600080fd5b5035919050565b80356001600160a01b03811681146113a957600080fd5b600080604083850312156127aa57600080fd5b6127b383612780565b946020939093013593505050565b6000806000606084860312156127d657600080fd5b6127df84612780565b92506127ed60208501612780565b9150604084013590509250925092565b6000806040838503121561281057600080fd5b50508035926020909101359150565b60006020828403121561283157600080fd5b61225b82612780565b6000806020838503121561284d57600080fd5b823567ffffffffffffffff8082111561286557600080fd5b818501915085601f83011261287957600080fd5b81358181111561288857600080fd5b86602082850101111561289a57600080fd5b60209290920196919550909350505050565b600080604083850312156128bf57600080fd5b6128c883612780565b9150602083013580151581146128dd57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612919576129196128e8565b604051601f8501601f19908116603f01168101908282118183101715612941576129416128e8565b8160405280935085815286868601111561295a57600080fd5b858560208301376000602087830101525050509392505050565b6000806000806080858703121561298a57600080fd5b61299385612780565b93506129a160208601612780565b925060408501359150606085013567ffffffffffffffff8111156129c457600080fd5b8501601f810187136129d557600080fd5b6129e4878235602084016128fe565b91505092959194509250565b600060208284031215612a0257600080fd5b813567ffffffffffffffff811115612a1957600080fd5b8201601f81018413612a2a57600080fd5b612133848235602084016128fe565b602080825282518282018190526000919060409081850190868401855b82811015612a8d57815180516001600160a01b031685528601516001600160601b0316868501529284019290850190600101612a56565b5091979650505050505050565b600080600060408486031215612aaf57600080fd5b83359250602084013567ffffffffffffffff80821115612ace57600080fd5b818601915086601f830112612ae257600080fd5b813581811115612af157600080fd5b8760208260051b8501011115612b0657600080fd5b6020830194508093505050509250925092565b60008060408385031215612b2c57600080fd5b612b3583612780565b9150612b4360208401612780565b90509250929050565b600181811c90821680612b6057607f821691505b60208210811415612b8157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015612baf57612baf612b87565b500390565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612be457612be4612b87565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612c0e57612c0e612be9565b500490565b6000600019821415612c2757612c27612b87565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008151612cc88185602086016126fc565b9290920192915050565b600080845481600182811c915080831680612cee57607f831692505b6020808410821415612d0e57634e487b7160e01b86526022600452602486fd5b818015612d225760018114612d3357612d60565b60ff19861689528489019650612d60565b60008b81526020902060005b86811015612d585781548b820152908501908301612d3f565b505084890196505b505050505050612d84612d738286612cb6565b64173539b7b760d91b815260050190565b95945050505050565b60008219821115612da057612da0612b87565b500190565b60006001600160801b0383811690831681811015612dc557612dc5612b87565b039392505050565b60006001600160801b03808316818516808303821115612def57612def612b87565b01949350505050565b600081612e0757612e07612b87565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e4290830184612728565b9695505050505050565b600060208284031215612e5e57600080fd5b815161225b816126c6565b600082612e7857612e78612be9565b50069056fea2646970667358221220032a0ee71afebf507db49970c6e9e98842887e827a94c83236bdbe5f7b2f447864736f6c634300080a0033a2646970667358221220ac800c4064be3974a3bec2f81fd456c5f9f52d8fba641c079077e31fabdd78e864736f6c634300080a0033
Deployed ByteCode Sourcemap
58016:1559:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58057:52;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;58057:52:0;;;;;;-1:-1:-1;;;;;656:32:1;;;638:51;;626:2;611:18;58057:52:0;;;;;;;;58224:1056;;;;;;:::i;:::-;;:::i;:::-;;59288:177;;;:::i;46573:148::-;;;:::i;58116:28::-;;;;;;;;;4771:25:1;;;4759:2;4744:18;58116:28:0;4625:177:1;45922:87:0;45968:7;45995:6;-1:-1:-1;;;;;45995:6:0;45922:87;;59473:99;59551:13;;59473:99;;46876:244;;;;;;:::i;:::-;;:::i;58224:1056::-;58663:22;58720:5;58740:7;58762:21;58798:19;58832:15;58862:17;58894:8;58917:15;58947;58977:7;45968;45995:6;-1:-1:-1;;;;;45995:6:0;;45922:87;58977:7;58999:18;58688:330;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59049:10:0;59031:29;;;;:17;:29;;;;;;;:50;;-1:-1:-1;;;;;;59031:50:0;-1:-1:-1;;;;;59031:50:0;;;;;59097:51;59031:50;;-1:-1:-1;59097:51:0;;;;59031:50;;59133:5;;59140:7;;59097:51;:::i;:::-;;;;;;;;59159:37;;-1:-1:-1;;;59159:37:0;;;;;4771:25:1;;;-1:-1:-1;;;;;59159:24:0;;;;;4744:18:1;;59159:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59207:39:0;;-1:-1:-1;;;59207:39:0;;59235:10;59207:39;;;638:51:1;-1:-1:-1;;;;;59207:27:0;;;-1:-1:-1;59207:27:0;;-1:-1:-1;611:18:1;;59207:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;59257:13:0;:15;;;-1:-1:-1;59257:13:0;-1:-1:-1;59257:13:0;:15;;;:::i;:::-;;;;;;58652:628;58224:1056;;;;;;;;;;;:::o;59288:177::-;59382:10;59336:7;59364:29;;;:17;:29;;;;;;-1:-1:-1;;;;;59364:29:0;59356:52;;;;;;-1:-1:-1;59445:10:0;59427:29;;;;:17;:29;;;;;;-1:-1:-1;;;;;59427:29:0;;59288:177::o;46573:148::-;45968:7;45995:6;-1:-1:-1;;;;;45995:6:0;26864:10;46142:23;46134:68;;;;-1:-1:-1;;;46134:68:0;;8317:2:1;46134:68:0;;;8299:21:1;;;8336:18;;;8329:30;8395:34;8375:18;;;8368:62;8447:18;;46134:68:0;;;;;;;;;46680:1:::1;46664:6:::0;;46643:40:::1;::::0;-1:-1:-1;;;;;46664:6:0;;::::1;::::0;46643:40:::1;::::0;46680:1;;46643:40:::1;46711:1;46694:19:::0;;-1:-1:-1;;;;;;46694:19:0::1;::::0;;46573:148::o;46876:244::-;45968:7;45995:6;-1:-1:-1;;;;;45995:6:0;26864:10;46142:23;46134:68;;;;-1:-1:-1;;;46134:68:0;;8317:2:1;46134:68:0;;;8299:21:1;;;8336:18;;;8329:30;8395:34;8375:18;;;8368:62;8447:18;;46134:68:0;8115:356:1;46134:68:0;-1:-1:-1;;;;;46965:22:0;::::1;46957:73;;;::::0;-1:-1:-1;;;46957:73:0;;8678:2:1;46957:73:0::1;::::0;::::1;8660:21:1::0;8717:2;8697:18;;;8690:30;8756:34;8736:18;;;8729:62;-1:-1:-1;;;8807:18:1;;;8800:36;8853:19;;46957:73:0::1;8476:402:1::0;46957:73:0::1;47067:6;::::0;;47046:38:::1;::::0;-1:-1:-1;;;;;47046:38:0;;::::1;::::0;47067:6;::::1;::::0;47046:38:::1;::::0;::::1;47095:6;:17:::0;;-1:-1:-1;;;;;;47095:17:0::1;-1:-1:-1::0;;;;;47095:17:0;;;::::1;::::0;;;::::1;::::0;;46876:244::o;-1:-1:-1:-;;;;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;:::-;333:39;192:186;-1:-1:-1;;;192:186:1:o;700:127::-;761:10;756:3;752:20;749:1;742:31;792:4;789:1;782:15;816:4;813:1;806:15;832:275;903:2;897:9;968:2;949:13;;-1:-1:-1;;945:27:1;933:40;;1003:18;988:34;;1024:22;;;985:62;982:88;;;1050:18;;:::i;:::-;1086:2;1079:22;832:275;;-1:-1:-1;832:275:1:o;1112:531::-;1155:5;1208:3;1201:4;1193:6;1189:17;1185:27;1175:55;;1226:1;1223;1216:12;1175:55;1262:6;1249:20;1288:18;1284:2;1281:26;1278:52;;;1310:18;;:::i;:::-;1354:55;1397:2;1378:13;;-1:-1:-1;;1374:27:1;1403:4;1370:38;1354:55;:::i;:::-;1434:2;1425:7;1418:19;1480:3;1473:4;1468:2;1460:6;1456:15;1452:26;1449:35;1446:55;;;1497:1;1494;1487:12;1446:55;1562:2;1555:4;1547:6;1543:17;1536:4;1527:7;1523:18;1510:55;1610:1;1585:16;;;1603:4;1581:27;1574:38;;;;1589:7;1112:531;-1:-1:-1;;;1112:531:1:o;1648:183::-;1708:4;1741:18;1733:6;1730:30;1727:56;;;1763:18;;:::i;:::-;-1:-1:-1;1808:1:1;1804:14;1820:4;1800:25;;1648:183::o;1836:668::-;1890:5;1943:3;1936:4;1928:6;1924:17;1920:27;1910:55;;1961:1;1958;1951:12;1910:55;1997:6;1984:20;2023:4;2047:60;2063:43;2103:2;2063:43;:::i;:::-;2047:60;:::i;:::-;2141:15;;;2227:1;2223:10;;;;2211:23;;2207:32;;;2172:12;;;;2251:15;;;2248:35;;;2279:1;2276;2269:12;2248:35;2315:2;2307:6;2303:15;2327:148;2343:6;2338:3;2335:15;2327:148;;;2409:23;2428:3;2409:23;:::i;:::-;2397:36;;2453:12;;;;2360;;2327:148;;;-1:-1:-1;2493:5:1;1836:668;-1:-1:-1;;;;;;1836:668:1:o;2509:662::-;2563:5;2616:3;2609:4;2601:6;2597:17;2593:27;2583:55;;2634:1;2631;2624:12;2583:55;2670:6;2657:20;2696:4;2720:60;2736:43;2776:2;2736:43;:::i;2720:60::-;2814:15;;;2900:1;2896:10;;;;2884:23;;2880:32;;;2845:12;;;;2924:15;;;2921:35;;;2952:1;2949;2942:12;2921:35;2988:2;2980:6;2976:15;3000:142;3016:6;3011:3;3008:15;3000:142;;;3082:17;;3070:30;;3120:12;;;;3033;;3000:142;;3176:1444;3395:6;3403;3411;3419;3427;3435;3443;3451;3459;3467;3475:7;3529:3;3517:9;3508:7;3504:23;3500:33;3497:53;;;3546:1;3543;3536:12;3497:53;3569:18;3627:2;3615:9;3602:23;3599:31;3596:51;;;3643:1;3640;3633:12;3596:51;3666:67;3725:7;3712:9;3699:23;3688:9;3684:39;3666:67;:::i;:::-;3656:77;;3782:2;3776;3765:9;3761:18;3748:32;3745:40;3742:60;;;3798:1;3795;3788:12;3742:60;3821:76;3889:7;3882:2;3871:9;3867:18;3854:32;3843:9;3839:48;3821:76;:::i;:::-;3811:86;;3944:2;3933:9;3929:18;3916:32;3906:42;;3995:2;3984:9;3980:18;3967:32;3957:42;;4046:3;4035:9;4031:19;4018:33;4008:43;;4098:3;4087:9;4083:19;4070:33;4060:43;;4153:2;4146:3;4135:9;4131:19;4118:33;4115:41;4112:61;;;4169:1;4166;4159:12;4112:61;4192:88;4272:7;4264:3;4253:9;4249:19;4236:33;4225:9;4221:49;4192:88;:::i;:::-;4182:98;;4330:2;4323:3;4312:9;4308:19;4295:33;4292:41;4289:61;;;4346:1;4343;4336:12;4289:61;;4369:88;4449:7;4441:3;4430:9;4426:19;4413:33;4402:9;4398:49;4369:88;:::i;:::-;4359:98;;4504:3;4493:9;4489:19;4476:33;4466:43;;4556:3;4545:9;4541:19;4528:33;4518:43;;4609:3;4598:9;4594:19;4581:33;4570:44;;3176:1444;;;;;;;;;;;;;;:::o;4807:472::-;4849:3;4887:5;4881:12;4914:6;4909:3;4902:19;4939:1;4949:162;4963:6;4960:1;4957:13;4949:162;;;5025:4;5081:13;;;5077:22;;5071:29;5053:11;;;5049:20;;5042:59;4978:12;4949:162;;;5129:6;5126:1;5123:13;5120:87;;;5195:1;5188:4;5179:6;5174:3;5170:16;5166:27;5159:38;5120:87;-1:-1:-1;5261:2:1;5240:15;-1:-1:-1;;5236:29:1;5227:39;;;;5268:4;5223:50;;4807:472;-1:-1:-1;;4807:472:1:o;5284:435::-;5337:3;5375:5;5369:12;5402:6;5397:3;5390:19;5428:4;5457:2;5452:3;5448:12;5441:19;;5494:2;5487:5;5483:14;5515:1;5525:169;5539:6;5536:1;5533:13;5525:169;;;5600:13;;5588:26;;5634:12;;;;5669:15;;;;5561:1;5554:9;5525:169;;;-1:-1:-1;5710:3:1;;5284:435;-1:-1:-1;;;;;5284:435:1:o;5724:1664::-;6237:4;6266:3;6296:2;6285:9;6278:21;6322:45;6363:2;6352:9;6348:18;6340:6;6322:45;:::i;:::-;6308:59;;6386:2;6436:9;6428:6;6424:22;6419:2;6408:9;6404:18;6397:50;6470:33;6496:6;6488;6470:33;:::i;:::-;6456:47;;6539:6;6534:2;6523:9;6519:18;6512:34;6582:6;6577:2;6566:9;6562:18;6555:34;6626:6;6620:3;6609:9;6605:19;6598:35;6670:6;6664:3;6653:9;6649:19;6642:35;6726:9;6718:6;6714:22;6708:3;6697:9;6693:19;6686:51;6757:6;6792;6786:13;6823:6;6815;6808:22;6858:2;6850:6;6846:15;6839:22;;6896:2;6888:6;6884:15;6870:29;;6917:1;6927:195;6941:6;6938:1;6935:13;6927:195;;;7006:13;;-1:-1:-1;;;;;7002:39:1;6990:52;;7097:15;;;;7062:12;;;;7038:1;6956:9;6927:195;;;6931:3;;7168:9;7163:3;7159:19;7153:3;7142:9;7138:19;7131:48;7196:41;7233:3;7225:6;7196:41;:::i;:::-;7188:49;;;;;7274:6;7268:3;7257:9;7253:19;7246:35;7290:47;7332:3;7321:9;7317:19;7309:6;-1:-1:-1;;;;;449:31:1;437:44;;383:104;7290:47;7374:7;7368:3;7357:9;7353:19;7346:36;5724:1664;;;;;;;;;;;;;;:::o;7393:480::-;-1:-1:-1;;;;;7618:32:1;;7600:51;;7687:2;7682;7667:18;;7660:30;;;-1:-1:-1;;7713:45:1;;7739:18;;7731:6;7713:45;:::i;:::-;7806:9;7798:6;7794:22;7789:2;7778:9;7774:18;7767:50;7834:33;7860:6;7852;7834:33;:::i;:::-;7826:41;7393:480;-1:-1:-1;;;;;;7393:480:1:o;7878:232::-;7917:3;-1:-1:-1;;7938:17:1;;7935:140;;;7997:10;7992:3;7988:20;7985:1;7978:31;8032:4;8029:1;8022:15;8060:4;8057:1;8050:15;7935:140;-1:-1:-1;8102:1:1;8091:13;;7878:232::o
Swarm Source
ipfs://ac800c4064be3974a3bec2f81fd456c5f9f52d8fba641c079077e31fabdd78e8
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.