Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
259 BABYMALLOW
Holders
24
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 BABYMALLOWLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Babymallows
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./ERC721A.sol"; import "./Ownable.sol"; import "./Strings.sol"; import "./LOVE.sol"; import "./Mallowland.sol"; import "./ECDSA.sol"; contract Babymallows is ERC721A, Ownable { using Strings for uint256; bool mintState = false; string public baseURI; uint256 public mintCost = 100 ether; uint256 public maxSupply; address private signer = 0xeFB45a786C8A9fE6D53DdE0E3A4DB6aF54C73DA7; LOVE loveContract; Mallowland mallowlandContract; constructor ( string memory _name, string memory _symbol, string memory _initBaseURI, uint256 _maxSupply ) ERC721A(_name, _symbol){ setBaseURI(_initBaseURI); maxSupply = _maxSupply; } function _baseURI() internal view virtual override returns (string memory){ return baseURI; } function tokenURI(uint256 token_id) public view override returns (string memory) { require(_exists(token_id), "nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, token_id.toString())) : ""; } function mint(uint256 _mintAmount, bytes calldata _signature) external{ require(mintState, "CLOSED"); require(_mintAmount > 0, "Amount invalid"); require(ECDSA.recover(keccak256(abi.encodePacked(msg.sender, _mintAmount)), _signature) == signer, "Signature Invalid"); require((totalSupply() + _mintAmount) <= maxSupply, "Sold out"); loveContract.burn(msg.sender, _mintAmount * mintCost); _safeMint(msg.sender, _mintAmount); } function numberMinted(address _owner) public view returns (uint256) { return _numberMinted(_owner); } function airdropsBulk(address[] calldata _airdropWallets, uint256[] calldata _mintAmounts) external onlyOwner(){ require(_airdropWallets.length == _mintAmounts.length, "Missing parameters"); require((totalSupply() + _airdropWallets.length) <= maxSupply, "Cannot mint more"); for (uint i =0; i < _airdropWallets.length; i++) { _safeMint(_airdropWallets[i], _mintAmounts[i]); } } function airdrop(address _airdropWallet, uint256 quantity) external onlyOwner(){ require((totalSupply() + quantity) <= maxSupply, "Cannot mint more"); _safeMint(_airdropWallet, quantity); } function setSupply(uint256 _newMaxSupply) external onlyOwner(){ maxSupply = _newMaxSupply; } function setDependencies(address _loveAddress, address _mallowLandAddress) external onlyOwner{ loveContract = LOVE(_loveAddress); mallowlandContract = Mallowland(_mallowLandAddress); } function setSale(bool _saleState) external onlyOwner(){ mintState = _saleState; } function setBaseURI(string memory _newBaseURI) public onlyOwner(){ baseURI = _newBaseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "./Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721.sol'; import './IERC721Receiver.sol'; import './IERC721Metadata.sol'; import './IERC721Enumerable.sol'; import './Address.sol'; import './Context.sol'; import './Strings.sol'; import './ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { bool isApprovedOrOwner = _isApprovedOrOwner(_msgSender(), tokenId); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { bool isApprovedOrOwner = _isApprovedOrOwner(_msgSender(), tokenId); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); TokenOwnership memory prevOwnership = ownershipOf(tokenId); return (spender == prevOwnership.addr || getApproved(tokenId) == spender || isApprovedForAll(prevOwnership.addr, spender)); } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, //address do bacano address to, //address do firepit uint256 tokenId ) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); /* bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); */ if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./Ownable.sol"; import "./IERC721Receiver.sol"; import "./Metamallows.sol"; import "./LOVE.sol"; import "./INewFirepit.sol"; contract Firepit is IERC721Receiver,Ownable{ struct stakedInfo{ address owner; uint256 tokenId; uint256 lastUpdate; bool exists; } event tokenStaked(address indexed _owner, uint256 indexed _tokenId, uint256 indexed _lastUpdate); event claimedLove(uint256 indexed _tokenId, uint256 _loveEarned, bool indexed _unstake, address indexed _owner); uint256 constant public LOVE_RATE = 3 ether; uint256 public totalMalloStaked; mapping(uint256 => stakedInfo) firepit; bool public staking = false; Metamallows metamallowContract; LOVE loveContract; function stakingTokens(uint256[] calldata _tokenIds) external{ require(staking,"Staking not available yet"); for (uint i = 0; i < _tokenIds.length; i++) { require (!firepit[_tokenIds[i]].exists, 'Already in stake'); require(msg.sender == metamallowContract.ownerOf(_tokenIds[i]),"Not the owner of this token"); metamallowContract.transferFrom(msg.sender, address(this),_tokenIds[i]); uint256 timestamp = uint80(block.timestamp); firepit[_tokenIds[i]] = stakedInfo({ owner: _msgSender(), tokenId: _tokenIds[i], lastUpdate: timestamp, exists: true }); totalMalloStaked += 1; emit tokenStaked(_msgSender(), _tokenIds[i], timestamp); } } function clamingTokens(uint256[] calldata _tokenIds, bool[] calldata _unstake) external{ require(_tokenIds.length == _unstake.length,"Params must have same lenght"); uint256 reward = 0; for (uint i = 0; i < _tokenIds.length; i++) { require(firepit[_tokenIds[i]].exists,"Not in stake"); require(firepit[_tokenIds[i]].owner == msg.sender, "Not the user which has staked this token"); reward += LOVE_RATE * (block.timestamp - firepit[_tokenIds[i]].lastUpdate) / 1 days; if(_unstake[i]){ metamallowContract.safeTransferFrom(address(this), msg.sender, _tokenIds[i], ""); // Send back the NFT delete firepit[_tokenIds[i]]; totalMalloStaked -= 1; } else{ firepit[_tokenIds[i]].lastUpdate = uint80(block.timestamp); } emit claimedLove(_tokenIds[i], reward, _unstake[i], msg.sender); } loveContract.mint(msg.sender, reward); } function calculateReward(uint256[] calldata _tokenIds) external view returns (uint256){ uint256 total =0; for (uint i = 0; i < _tokenIds.length; i++) { require(firepit[_tokenIds[i]].exists,"Not in stake"); total += (LOVE_RATE * (block.timestamp - firepit[_tokenIds[i]].lastUpdate) / 1 days); } return total; } function viewfirepit (uint256 _tokenId) external view returns (stakedInfo memory){ return firepit[_tokenId]; } function isOwnerOfStakedTokens(uint256[] calldata _tokenIds, address _owner) external view returns (bool){ for(uint i =0; i <_tokenIds.length; i++){ if(firepit[_tokenIds[i]].owner != _owner){ return false; } } return true; } function setStaking(bool _state) external onlyOwner { staking = _state; } function emergencyMigration(address _newContract) external onlyOwner{ INewFirepit contractToMigrate = INewFirepit(_newContract); uint total = totalMalloStaked; for (uint i = 0; i < total; i++) { metamallowContract.safeTransferFrom(address(this), _newContract, firepit[i].tokenId, ""); // Send back the NFT contractToMigrate.migration(firepit[i].owner, firepit[i].tokenId, firepit[i].lastUpdate); delete firepit[i]; totalMalloStaked -= 1; } } function setDependencies(address _loveAddress, address _metamallowsAddress) external onlyOwner{ loveContract = LOVE(_loveAddress); metamallowContract = Metamallows(_metamallowsAddress); } function onERC721Received( address, address from, uint256, bytes calldata ) external pure override returns (bytes4) { require(from == address(0x0), "Must use staking function to send tokens to the Firepit"); return IERC721Receiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./Ownable.sol"; import "./IERC721Receiver.sol"; interface IFirepit is IERC721Receiver{ function isOwnerOfStakedTokens(uint256[] calldata _tokenIds, address _owner) external view returns (bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; interface INewFirepit{ function migration(address _owner, uint256 _tokenId, uint256 _lastUpdate) external; }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./ERC20.sol"; import "./Ownable.sol"; contract LOVE is ERC20, Ownable{ mapping(address => bool) public isApprovedAddress; constructor ( string memory _name, string memory _symbol )ERC20(_name,_symbol){ } modifier onlyApprovedAddresses{ require(isApprovedAddress[msg.sender], "You are not authorized!"); _; } function mint(address _to, uint256 _amount) external onlyApprovedAddresses{ _mint(_to, _amount); } function burn(address _to, uint256 _amount) external onlyApprovedAddresses{ _burn(_to, _amount); } function setApprovedAddresses(address _approvedAddress, bool _set) external onlyOwner(){ isApprovedAddress[_approvedAddress] = _set; } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./IERC721.sol"; import "./ERC165.sol"; import "./IFirepit.sol"; import "./Metamallows.sol"; import "./Ownable.sol"; contract Mallowland is ERC165, Ownable { Metamallows metamallows; IFirepit firepit; function setDependecies(address _metamallowAddress, address _firepitAddress) external onlyOwner{ metamallows = Metamallows(_metamallowAddress); firepit = IFirepit(_firepitAddress); } function balanceOf(address owner) public view returns (uint256) { uint256 numTokens; uint[] memory aux = new uint[](1); for (uint256 i = 0; i < metamallows.totalSupply(); i++) { aux[0] = i; if (firepit.isOwnerOfStakedTokens(aux, owner)) { numTokens++; } } return metamallows.balanceOf(owner) + numTokens; } /** * @inheritdoc ERC165 */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.4; import "./ERC721A.sol"; import "./Ownable.sol"; import "./Firepit.sol"; import "./Strings.sol"; import "./SafeMath.sol"; import "./ECDSA.sol"; contract Metamallows is ERC721A, Ownable { using Strings for uint256; using SafeMath for uint256; enum State { CLOSED, PRESALE, PUBLIC } string public baseURI; uint256 public mintCost = 0.049 ether; uint256 public maxSupply; uint256 public maxPreSupply; uint256 public maxMintAmount = 5; uint256 airdropsNumber = 0; address private partners; address private signer = 0xeFB45a786C8A9fE6D53DdE0E3A4DB6aF54C73DA7; mapping(address => uint256) public nonces; State public saleState = State.CLOSED; Firepit firepitContract; constructor ( string memory _name, string memory _symbol, string memory _initBaseURI, uint256 _maxPreSupply, uint256 _maxSupply, uint256 _airdropsNumber, address _partners ) ERC721A(_name, _symbol){ setBaseURI(_initBaseURI); maxPreSupply = _maxPreSupply; maxSupply = _maxSupply; airdropsNumber = _airdropsNumber; partners = _partners; } function _baseURI() internal view virtual override returns (string memory){ return baseURI; } function tokenURI(uint256 token_id) public view override returns (string memory) { require(_exists(token_id), "nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, token_id.toString())) : ""; } function presaleMint(uint256 _mintAmount, bytes calldata _signature, uint256 _nonce) external payable{ require(saleState == State.PRESALE, "PRESALE unavailable"); require(_mintAmount > 0); require(ECDSA.recover(keccak256(abi.encodePacked(saleState, msg.sender, _nonce)), _signature) == signer, "Signature Invalid"); require(numberMinted(msg.sender) + _mintAmount <= maxMintAmount, "Exceeded mint amount"); require((totalSupply() + _mintAmount) <= maxPreSupply, "PreSale sold out"); require(msg.value >= (mintCost * _mintAmount), "Not enough ether to mint"); nonces[msg.sender]++; _safeMint(msg.sender, _mintAmount); } function publicMint(uint256 _mintAmount) external payable{ require(saleState == State.PUBLIC, "PUBLIC sale unavailable"); require(_mintAmount > 0); require(_mintAmount <= maxMintAmount, "Exceeded mint amount"); require((totalSupply() + _mintAmount) <= maxSupply, "Metamallows sold out"); require(msg.value >= (mintCost * _mintAmount), "Not enough ether to mint"); _safeMint(msg.sender, _mintAmount); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory){ return ownershipOf(tokenId); } function numberMinted(address _owner) public view returns (uint256) { return _numberMinted(_owner); } function airdropsBulk(address[] calldata _airdropWallets) external onlyOwner(){ require(_airdropWallets.length == airdropsNumber, "Invalid mumber of airdrops"); require((totalSupply() + _airdropWallets.length) <= (maxSupply + airdropsNumber), "Cannot mint more"); for (uint i =0; i < _airdropWallets.length; i++) { _safeMint(_airdropWallets[i], 1); } } function airdrop(address _airdropWallet, uint256 quantity) external onlyOwner(){ require((totalSupply() + quantity) <= (maxSupply + airdropsNumber), "Cannot mint more"); _safeMint(_airdropWallet, quantity); } function setAirdropsNumber(uint256 _newAirdropsNumber) external onlyOwner(){ airdropsNumber = _newAirdropsNumber; } function setMaxPreSupply(uint256 _newMaxPreSupply) external onlyOwner(){ require(_newMaxPreSupply <= maxSupply, "Exceeded the total supply"); maxPreSupply = _newMaxPreSupply; } function setDependecies(address _firepitAddress) external onlyOwner{ firepitContract = Firepit(_firepitAddress); } function setSale(uint8 _saleState) external onlyOwner(){ saleState = State(_saleState); } function setMaxMintAmount(uint256 _newmaxMintAmount) external onlyOwner(){ maxMintAmount = _newmaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner(){ baseURI = _newBaseURI; } function withdrawAll() external onlyOwner(){ require(address(this).balance > 0, "No balance"); uint256 contractBalance = address(this).balance; (bool w1,) = partners.call{value: contractBalance}(""); require(w1, "Withdraw failed"); } function transferFrom( address _from, address _to, uint256 _tokenId ) public virtual override{ // if (_msgSender() != address(firepitContract)){ require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved"); } _transfer(_from, _to, _tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_airdropWallet","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropWallets","type":"address[]"},{"internalType":"uint256[]","name":"_mintAmounts","type":"uint256[]"}],"name":"airdropsBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_loveAddress","type":"address"},{"internalType":"address","name":"_mallowLandAddress","type":"address"}],"name":"setDependencies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleState","type":"bool"}],"name":"setSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff60a01b1916905568056bc75e2d63100000600a55600c80546001600160a01b03191673efb45a786c8a9fe6d53dde0e3a4db6af54c73da71790553480156200005157600080fd5b506040516200266e3803806200266e833981016040819052620000749162000254565b838360026200008483826200037c565b5060036200009382826200037c565b505050620000b0620000aa620000c860201b60201c565b620000cc565b620000bb826200011e565b600b555062000448915050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b031633146200017d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b60096200018b82826200037c565b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001b757600080fd5b81516001600160401b0380821115620001d457620001d46200018f565b604051601f8301601f19908116603f01168101908282118183101715620001ff57620001ff6200018f565b816040528381526020925086838588010111156200021c57600080fd5b600091505b8382101562000240578582018301518183018401529082019062000221565b600093810190920192909252949350505050565b600080600080608085870312156200026b57600080fd5b84516001600160401b03808211156200028357600080fd5b6200029188838901620001a5565b95506020870151915080821115620002a857600080fd5b620002b688838901620001a5565b94506040870151915080821115620002cd57600080fd5b50620002dc87828801620001a5565b606096909601519497939650505050565b600181811c908216806200030257607f821691505b6020821081036200032357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037757600081815260208120601f850160051c81016020861015620003525750805b601f850160051c820191505b8181101562000373578281556001016200035e565b5050505b505050565b81516001600160401b038111156200039857620003986200018f565b620003b081620003a98454620002ed565b8462000329565b602080601f831160018114620003e85760008415620003cf5750858301515b600019600386901b1c1916600185901b17855562000373565b600085815260208120601f198616915b828110156200041957888601518255948401946001909101908401620003f8565b5085821015620004385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61221680620004586000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063c87b56dd11610097578063dc33e68111610071578063dc33e6811461038e578063e87c28a7146103a1578063e985e9c5146103b4578063f2fde38b146103c757600080fd5b8063c87b56dd1461035f578063d5abeb0114610372578063db7fd4081461037b57600080fd5b806395d89b41116100d357806395d89b4114610328578063a22cb46514610330578063b88d4fde14610343578063bdb4b8481461035657600080fd5b8063715018a6146102fc5780638ba4cc3c146103045780638da5cb5b1461031757600080fd5b80633b4c4b251161016657806355f804b31161014057806355f804b3146102bb5780636352211e146102ce5780636c0360eb146102e157806370a08231146102e957600080fd5b80633b4c4b251461028257806342842e0e14610295578063510f2894146102a857600080fd5b8063095ea7b3116101a2578063095ea7b31461023157806318160ddd146102465780631d2e5a3a1461025c57806323b872dd1461026f57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611a70565b6103da565b60405190151581526020015b60405180910390f35b6101f961042c565b6040516101e89190611ae4565b610219610214366004611af7565b6104be565b6040516001600160a01b0390911681526020016101e8565b61024461023f366004611b2c565b610502565b005b600154600054035b6040519081526020016101e8565b61024461026a366004611b66565b61058f565b61024461027d366004611b81565b6105e0565b610244610290366004611af7565b61061d565b6102446102a3366004611b81565b61064c565b6102446102b6366004611c01565b610667565b6102446102c9366004611cf7565b61079d565b6102196102dc366004611af7565b6107d7565b6101f96107e9565b61024e6102f7366004611d3f565b610877565b6102446108c5565b610244610312366004611b2c565b6108fb565b6008546001600160a01b0316610219565b6101f961098b565b61024461033e366004611d5a565b61099a565b610244610351366004611d8d565b610a2f565b61024e600a5481565b6101f961036d366004611af7565b610a8f565b61024e600b5481565b610244610389366004611e08565b610b36565b61024e61039c366004611d3f565b610d6d565b6102446103af366004611e83565b610d78565b6101dc6103c2366004611e83565b610dd0565b6102446103d5366004611d3f565b610dfe565b60006001600160e01b031982166380ac58cd60e01b148061040b57506001600160e01b03198216635b5e139f60e01b145b8061042657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461043b90611ead565b80601f016020809104026020016040519081016040528092919081815260200182805461046790611ead565b80156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b5050505050905090565b60006104c982610e99565b6104e6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061050d826107d7565b9050806001600160a01b0316836001600160a01b0316036105415760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610561575061055f8133610dd0565b155b1561057f576040516367d9dca160e11b815260040160405180910390fd5b61058a838383610ec4565b505050565b6008546001600160a01b031633146105c25760405162461bcd60e51b81526004016105b990611ee7565b60405180910390fd5b60088054911515600160a01b0260ff60a01b19909216919091179055565b60006105ec3383610f20565b90508061060c57604051632ce44b5f60e11b815260040160405180910390fd5b610617848484610ff0565b50505050565b6008546001600160a01b031633146106475760405162461bcd60e51b81526004016105b990611ee7565b600b55565b61058a83838360405180602001604052806000815250610a2f565b6008546001600160a01b031633146106915760405162461bcd60e51b81526004016105b990611ee7565b8281146106d55760405162461bcd60e51b81526020600482015260126024820152714d697373696e6720706172616d657465727360701b60448201526064016105b9565b600b54836106e66001546000540390565b6106f09190611f32565b11156107315760405162461bcd60e51b815260206004820152601060248201526f43616e6e6f74206d696e74206d6f726560801b60448201526064016105b9565b60005b838110156107965761078485858381811061075157610751611f45565b90506020020160208101906107669190611d3f565b84848481811061077857610778611f45565b9050602002013561119a565b8061078e81611f5b565b915050610734565b5050505050565b6008546001600160a01b031633146107c75760405162461bcd60e51b81526004016105b990611ee7565b60096107d38282611fc2565b5050565b60006107e2826111b4565b5192915050565b600980546107f690611ead565b80601f016020809104026020016040519081016040528092919081815260200182805461082290611ead565b801561086f5780601f106108445761010080835404028352916020019161086f565b820191906000526020600020905b81548152906001019060200180831161085257829003601f168201915b505050505081565b60006001600160a01b0382166108a0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146108ef5760405162461bcd60e51b81526004016105b990611ee7565b6108f960006112cd565b565b6008546001600160a01b031633146109255760405162461bcd60e51b81526004016105b990611ee7565b600b54816109366001546000540390565b6109409190611f32565b11156109815760405162461bcd60e51b815260206004820152601060248201526f43616e6e6f74206d696e74206d6f726560801b60448201526064016105b9565b6107d3828261119a565b60606003805461043b90611ead565b336001600160a01b038316036109c35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610a3b3384610f20565b905080610a5b57604051632ce44b5f60e11b815260040160405180910390fd5b610a66858585610ff0565b610a728585858561131f565b610796576040516368d2bf6b60e11b815260040160405180910390fd5b6060610a9a82610e99565b610ada5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016105b9565b600060098054610ae990611ead565b905011610b055760405180602001604052806000815250610426565b6009610b1083611421565b604051602001610b21929190612081565b60405160208183030381529060405292915050565b600854600160a01b900460ff16610b785760405162461bcd60e51b815260206004820152600660248201526510d313d4d15160d21b60448201526064016105b9565b60008311610bb95760405162461bcd60e51b815260206004820152600e60248201526d105b5bdd5b9d081a5b9d985b1a5960921b60448201526064016105b9565b600c546040516bffffffffffffffffffffffff193360601b166020820152603481018590526001600160a01b0390911690610c43906054016040516020818303038152906040528051906020012084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061152192505050565b6001600160a01b031614610c8d5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948125b9d985b1a59607a1b60448201526064016105b9565b600b5483610c9e6001546000540390565b610ca89190611f32565b1115610ce15760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016105b9565b600d54600a546001600160a01b0390911690639dc29fac903390610d059087612108565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d4b57600080fd5b505af1158015610d5f573d6000803e3d6000fd5b5050505061058a338461119a565b600061042682611545565b6008546001600160a01b03163314610da25760405162461bcd60e51b81526004016105b990611ee7565b600d80546001600160a01b039384166001600160a01b031991821617909155600e8054929093169116179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314610e285760405162461bcd60e51b81526004016105b990611ee7565b6001600160a01b038116610e8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b9565b610e96816112cd565b50565b6000805482108015610426575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610f2b82610e99565b610f8c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b9565b6000610f97836111b4565b905080600001516001600160a01b0316846001600160a01b03161480610fd65750836001600160a01b0316610fcb846104be565b6001600160a01b0316145b80610fe857508051610fe89085610dd0565b949350505050565b6000610ffb826111b4565b9050836001600160a01b031681600001516001600160a01b0316146110325760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03831661105957604051633a954ecd60e21b815260040160405180910390fd5b6110696000838360000151610ec4565b6001600160a01b038481166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255888616808652838620805493841693831660019081018416949094179055888652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559085018083529120549091166111535760005481101561115357815160008281526004602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610617565b6107d382826040518060200160405280600081525061159a565b60408051606081018252600080825260208201819052918101829052905482908110156112b457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906112b25780516001600160a01b031615611249579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156112ad579392505050565b611249565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561141657604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061136390339089908890889060040161211f565b6020604051808303816000875af192505050801561139e575060408051601f3d908101601f1916820190925261139b9181019061215c565b60015b6113fc573d8080156113cc576040519150601f19603f3d011682016040523d82523d6000602084013e6113d1565b606091505b5080516000036113f4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fe8565b506001949350505050565b6060816000036114485750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611472578061145c81611f5b565b915061146b9050600a8361218f565b915061144c565b6000816001600160401b0381111561148c5761148c611c6c565b6040519080825280601f01601f1916602001820160405280156114b6576020820181803683370190505b5090505b8415610fe8576114cb6001836121a3565b91506114d8600a866121b6565b6114e3906030611f32565b60f81b8183815181106114f8576114f8611f45565b60200101906001600160f81b031916908160001a90535061151a600a8661218f565b94506114ba565b600080600061153085856115a7565b9150915061153d81611615565b509392505050565b60006001600160a01b03821661156e576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b61058a83838360016117cb565b60008082516041036115dd5760208301516040840151606085015160001a6115d187828585611934565b9450945050505061160e565b825160400361160657602083015160408401516115fb868383611a21565b93509350505061160e565b506000905060025b9250929050565b6000816004811115611629576116296121ca565b036116315750565b6001816004811115611645576116456121ca565b036116925760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105b9565b60028160048111156116a6576116a66121ca565b036116f35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105b9565b6003816004811115611707576117076121ca565b0361175f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105b9565b6004816004811115611773576117736121ca565b03610e965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105b9565b6000546001600160a01b0385166117f457604051622e076360e81b815260040160405180910390fd5b836000036118155760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561192b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561190157506118ff600088848861131f565b155b1561191f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016118aa565b50600055610796565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561196b5750600090506003611a18565b8460ff16601b1415801561198357508460ff16601c14155b156119945750600090506004611a18565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156119e8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a1157600060019250925050611a18565b9150600090505b94509492505050565b6000806001600160ff1b03831681611a3e60ff86901c601b611f32565b9050611a4c87828885611934565b935093505050935093915050565b6001600160e01b031981168114610e9657600080fd5b600060208284031215611a8257600080fd5b8135611a8d81611a5a565b9392505050565b60005b83811015611aaf578181015183820152602001611a97565b50506000910152565b60008151808452611ad0816020860160208601611a94565b601f01601f19169290920160200192915050565b602081526000611a8d6020830184611ab8565b600060208284031215611b0957600080fd5b5035919050565b80356001600160a01b0381168114611b2757600080fd5b919050565b60008060408385031215611b3f57600080fd5b611b4883611b10565b946020939093013593505050565b80358015158114611b2757600080fd5b600060208284031215611b7857600080fd5b611a8d82611b56565b600080600060608486031215611b9657600080fd5b611b9f84611b10565b9250611bad60208501611b10565b9150604084013590509250925092565b60008083601f840112611bcf57600080fd5b5081356001600160401b03811115611be657600080fd5b6020830191508360208260051b850101111561160e57600080fd5b60008060008060408587031215611c1757600080fd5b84356001600160401b0380821115611c2e57600080fd5b611c3a88838901611bbd565b90965094506020870135915080821115611c5357600080fd5b50611c6087828801611bbd565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611c9c57611c9c611c6c565b604051601f8501601f19908116603f01168101908282118183101715611cc457611cc4611c6c565b81604052809350858152868686011115611cdd57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611d0957600080fd5b81356001600160401b03811115611d1f57600080fd5b8201601f81018413611d3057600080fd5b610fe884823560208401611c82565b600060208284031215611d5157600080fd5b611a8d82611b10565b60008060408385031215611d6d57600080fd5b611d7683611b10565b9150611d8460208401611b56565b90509250929050565b60008060008060808587031215611da357600080fd5b611dac85611b10565b9350611dba60208601611b10565b92506040850135915060608501356001600160401b03811115611ddc57600080fd5b8501601f81018713611ded57600080fd5b611dfc87823560208401611c82565b91505092959194509250565b600080600060408486031215611e1d57600080fd5b8335925060208401356001600160401b0380821115611e3b57600080fd5b818601915086601f830112611e4f57600080fd5b813581811115611e5e57600080fd5b876020828501011115611e7057600080fd5b6020830194508093505050509250925092565b60008060408385031215611e9657600080fd5b611e9f83611b10565b9150611d8460208401611b10565b600181811c90821680611ec157607f821691505b602082108103611ee157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561042657610426611f1c565b634e487b7160e01b600052603260045260246000fd5b600060018201611f6d57611f6d611f1c565b5060010190565b601f82111561058a57600081815260208120601f850160051c81016020861015611f9b5750805b601f850160051c820191505b81811015611fba57828155600101611fa7565b505050505050565b81516001600160401b03811115611fdb57611fdb611c6c565b611fef81611fe98454611ead565b84611f74565b602080601f831160018114612024576000841561200c5750858301515b600019600386901b1c1916600185901b178555611fba565b600085815260208120601f198616915b8281101561205357888601518255948401946001909101908401612034565b50858210156120715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461208f81611ead565b600182811680156120a757600181146120bc576120eb565b60ff19841687528215158302870194506120eb565b8860005260208060002060005b858110156120e25781548a8201529084019082016120c9565b50505082870194505b5050505083516120ff818360208801611a94565b01949350505050565b808202811582820484141761042657610426611f1c565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061215290830184611ab8565b9695505050505050565b60006020828403121561216e57600080fd5b8151611a8d81611a5a565b634e487b7160e01b600052601260045260246000fd5b60008261219e5761219e612179565b500490565b8181038181111561042657610426611f1c565b6000826121c5576121c5612179565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220198829805bd29db8b200bcee6bf514831a177ba654119cbc09ae22611dc8dd6b64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000ad8000000000000000000000000000000000000000000000000000000000000000a426162796d616c6c6f7700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a424142594d414c4c4f57000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5a50594d3951645a68356337553477564a50614677643437385a3367394a62344a32774770554147575875642f00000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063c87b56dd11610097578063dc33e68111610071578063dc33e6811461038e578063e87c28a7146103a1578063e985e9c5146103b4578063f2fde38b146103c757600080fd5b8063c87b56dd1461035f578063d5abeb0114610372578063db7fd4081461037b57600080fd5b806395d89b41116100d357806395d89b4114610328578063a22cb46514610330578063b88d4fde14610343578063bdb4b8481461035657600080fd5b8063715018a6146102fc5780638ba4cc3c146103045780638da5cb5b1461031757600080fd5b80633b4c4b251161016657806355f804b31161014057806355f804b3146102bb5780636352211e146102ce5780636c0360eb146102e157806370a08231146102e957600080fd5b80633b4c4b251461028257806342842e0e14610295578063510f2894146102a857600080fd5b8063095ea7b3116101a2578063095ea7b31461023157806318160ddd146102465780631d2e5a3a1461025c57806323b872dd1461026f57600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611a70565b6103da565b60405190151581526020015b60405180910390f35b6101f961042c565b6040516101e89190611ae4565b610219610214366004611af7565b6104be565b6040516001600160a01b0390911681526020016101e8565b61024461023f366004611b2c565b610502565b005b600154600054035b6040519081526020016101e8565b61024461026a366004611b66565b61058f565b61024461027d366004611b81565b6105e0565b610244610290366004611af7565b61061d565b6102446102a3366004611b81565b61064c565b6102446102b6366004611c01565b610667565b6102446102c9366004611cf7565b61079d565b6102196102dc366004611af7565b6107d7565b6101f96107e9565b61024e6102f7366004611d3f565b610877565b6102446108c5565b610244610312366004611b2c565b6108fb565b6008546001600160a01b0316610219565b6101f961098b565b61024461033e366004611d5a565b61099a565b610244610351366004611d8d565b610a2f565b61024e600a5481565b6101f961036d366004611af7565b610a8f565b61024e600b5481565b610244610389366004611e08565b610b36565b61024e61039c366004611d3f565b610d6d565b6102446103af366004611e83565b610d78565b6101dc6103c2366004611e83565b610dd0565b6102446103d5366004611d3f565b610dfe565b60006001600160e01b031982166380ac58cd60e01b148061040b57506001600160e01b03198216635b5e139f60e01b145b8061042657506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461043b90611ead565b80601f016020809104026020016040519081016040528092919081815260200182805461046790611ead565b80156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b5050505050905090565b60006104c982610e99565b6104e6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061050d826107d7565b9050806001600160a01b0316836001600160a01b0316036105415760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610561575061055f8133610dd0565b155b1561057f576040516367d9dca160e11b815260040160405180910390fd5b61058a838383610ec4565b505050565b6008546001600160a01b031633146105c25760405162461bcd60e51b81526004016105b990611ee7565b60405180910390fd5b60088054911515600160a01b0260ff60a01b19909216919091179055565b60006105ec3383610f20565b90508061060c57604051632ce44b5f60e11b815260040160405180910390fd5b610617848484610ff0565b50505050565b6008546001600160a01b031633146106475760405162461bcd60e51b81526004016105b990611ee7565b600b55565b61058a83838360405180602001604052806000815250610a2f565b6008546001600160a01b031633146106915760405162461bcd60e51b81526004016105b990611ee7565b8281146106d55760405162461bcd60e51b81526020600482015260126024820152714d697373696e6720706172616d657465727360701b60448201526064016105b9565b600b54836106e66001546000540390565b6106f09190611f32565b11156107315760405162461bcd60e51b815260206004820152601060248201526f43616e6e6f74206d696e74206d6f726560801b60448201526064016105b9565b60005b838110156107965761078485858381811061075157610751611f45565b90506020020160208101906107669190611d3f565b84848481811061077857610778611f45565b9050602002013561119a565b8061078e81611f5b565b915050610734565b5050505050565b6008546001600160a01b031633146107c75760405162461bcd60e51b81526004016105b990611ee7565b60096107d38282611fc2565b5050565b60006107e2826111b4565b5192915050565b600980546107f690611ead565b80601f016020809104026020016040519081016040528092919081815260200182805461082290611ead565b801561086f5780601f106108445761010080835404028352916020019161086f565b820191906000526020600020905b81548152906001019060200180831161085257829003601f168201915b505050505081565b60006001600160a01b0382166108a0576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146108ef5760405162461bcd60e51b81526004016105b990611ee7565b6108f960006112cd565b565b6008546001600160a01b031633146109255760405162461bcd60e51b81526004016105b990611ee7565b600b54816109366001546000540390565b6109409190611f32565b11156109815760405162461bcd60e51b815260206004820152601060248201526f43616e6e6f74206d696e74206d6f726560801b60448201526064016105b9565b6107d3828261119a565b60606003805461043b90611ead565b336001600160a01b038316036109c35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000610a3b3384610f20565b905080610a5b57604051632ce44b5f60e11b815260040160405180910390fd5b610a66858585610ff0565b610a728585858561131f565b610796576040516368d2bf6b60e11b815260040160405180910390fd5b6060610a9a82610e99565b610ada5760405162461bcd60e51b81526020600482015260116024820152703737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016105b9565b600060098054610ae990611ead565b905011610b055760405180602001604052806000815250610426565b6009610b1083611421565b604051602001610b21929190612081565b60405160208183030381529060405292915050565b600854600160a01b900460ff16610b785760405162461bcd60e51b815260206004820152600660248201526510d313d4d15160d21b60448201526064016105b9565b60008311610bb95760405162461bcd60e51b815260206004820152600e60248201526d105b5bdd5b9d081a5b9d985b1a5960921b60448201526064016105b9565b600c546040516bffffffffffffffffffffffff193360601b166020820152603481018590526001600160a01b0390911690610c43906054016040516020818303038152906040528051906020012084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061152192505050565b6001600160a01b031614610c8d5760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948125b9d985b1a59607a1b60448201526064016105b9565b600b5483610c9e6001546000540390565b610ca89190611f32565b1115610ce15760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b60448201526064016105b9565b600d54600a546001600160a01b0390911690639dc29fac903390610d059087612108565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d4b57600080fd5b505af1158015610d5f573d6000803e3d6000fd5b5050505061058a338461119a565b600061042682611545565b6008546001600160a01b03163314610da25760405162461bcd60e51b81526004016105b990611ee7565b600d80546001600160a01b039384166001600160a01b031991821617909155600e8054929093169116179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314610e285760405162461bcd60e51b81526004016105b990611ee7565b6001600160a01b038116610e8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b9565b610e96816112cd565b50565b6000805482108015610426575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610f2b82610e99565b610f8c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105b9565b6000610f97836111b4565b905080600001516001600160a01b0316846001600160a01b03161480610fd65750836001600160a01b0316610fcb846104be565b6001600160a01b0316145b80610fe857508051610fe89085610dd0565b949350505050565b6000610ffb826111b4565b9050836001600160a01b031681600001516001600160a01b0316146110325760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03831661105957604051633a954ecd60e21b815260040160405180910390fd5b6110696000838360000151610ec4565b6001600160a01b038481166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255888616808652838620805493841693831660019081018416949094179055888652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559085018083529120549091166111535760005481101561115357815160008281526004602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610617565b6107d382826040518060200160405280600081525061159a565b60408051606081018252600080825260208201819052918101829052905482908110156112b457600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906112b25780516001600160a01b031615611249579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156112ad579392505050565b611249565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561141657604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061136390339089908890889060040161211f565b6020604051808303816000875af192505050801561139e575060408051601f3d908101601f1916820190925261139b9181019061215c565b60015b6113fc573d8080156113cc576040519150601f19603f3d011682016040523d82523d6000602084013e6113d1565b606091505b5080516000036113f4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fe8565b506001949350505050565b6060816000036114485750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611472578061145c81611f5b565b915061146b9050600a8361218f565b915061144c565b6000816001600160401b0381111561148c5761148c611c6c565b6040519080825280601f01601f1916602001820160405280156114b6576020820181803683370190505b5090505b8415610fe8576114cb6001836121a3565b91506114d8600a866121b6565b6114e3906030611f32565b60f81b8183815181106114f8576114f8611f45565b60200101906001600160f81b031916908160001a90535061151a600a8661218f565b94506114ba565b600080600061153085856115a7565b9150915061153d81611615565b509392505050565b60006001600160a01b03821661156e576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b61058a83838360016117cb565b60008082516041036115dd5760208301516040840151606085015160001a6115d187828585611934565b9450945050505061160e565b825160400361160657602083015160408401516115fb868383611a21565b93509350505061160e565b506000905060025b9250929050565b6000816004811115611629576116296121ca565b036116315750565b6001816004811115611645576116456121ca565b036116925760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105b9565b60028160048111156116a6576116a66121ca565b036116f35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105b9565b6003816004811115611707576117076121ca565b0361175f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105b9565b6004816004811115611773576117736121ca565b03610e965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105b9565b6000546001600160a01b0385166117f457604051622e076360e81b815260040160405180910390fd5b836000036118155760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c018116909202179091558584526004909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561192b5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561190157506118ff600088848861131f565b155b1561191f576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016118aa565b50600055610796565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561196b5750600090506003611a18565b8460ff16601b1415801561198357508460ff16601c14155b156119945750600090506004611a18565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156119e8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611a1157600060019250925050611a18565b9150600090505b94509492505050565b6000806001600160ff1b03831681611a3e60ff86901c601b611f32565b9050611a4c87828885611934565b935093505050935093915050565b6001600160e01b031981168114610e9657600080fd5b600060208284031215611a8257600080fd5b8135611a8d81611a5a565b9392505050565b60005b83811015611aaf578181015183820152602001611a97565b50506000910152565b60008151808452611ad0816020860160208601611a94565b601f01601f19169290920160200192915050565b602081526000611a8d6020830184611ab8565b600060208284031215611b0957600080fd5b5035919050565b80356001600160a01b0381168114611b2757600080fd5b919050565b60008060408385031215611b3f57600080fd5b611b4883611b10565b946020939093013593505050565b80358015158114611b2757600080fd5b600060208284031215611b7857600080fd5b611a8d82611b56565b600080600060608486031215611b9657600080fd5b611b9f84611b10565b9250611bad60208501611b10565b9150604084013590509250925092565b60008083601f840112611bcf57600080fd5b5081356001600160401b03811115611be657600080fd5b6020830191508360208260051b850101111561160e57600080fd5b60008060008060408587031215611c1757600080fd5b84356001600160401b0380821115611c2e57600080fd5b611c3a88838901611bbd565b90965094506020870135915080821115611c5357600080fd5b50611c6087828801611bbd565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611c9c57611c9c611c6c565b604051601f8501601f19908116603f01168101908282118183101715611cc457611cc4611c6c565b81604052809350858152868686011115611cdd57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611d0957600080fd5b81356001600160401b03811115611d1f57600080fd5b8201601f81018413611d3057600080fd5b610fe884823560208401611c82565b600060208284031215611d5157600080fd5b611a8d82611b10565b60008060408385031215611d6d57600080fd5b611d7683611b10565b9150611d8460208401611b56565b90509250929050565b60008060008060808587031215611da357600080fd5b611dac85611b10565b9350611dba60208601611b10565b92506040850135915060608501356001600160401b03811115611ddc57600080fd5b8501601f81018713611ded57600080fd5b611dfc87823560208401611c82565b91505092959194509250565b600080600060408486031215611e1d57600080fd5b8335925060208401356001600160401b0380821115611e3b57600080fd5b818601915086601f830112611e4f57600080fd5b813581811115611e5e57600080fd5b876020828501011115611e7057600080fd5b6020830194508093505050509250925092565b60008060408385031215611e9657600080fd5b611e9f83611b10565b9150611d8460208401611b10565b600181811c90821680611ec157607f821691505b602082108103611ee157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561042657610426611f1c565b634e487b7160e01b600052603260045260246000fd5b600060018201611f6d57611f6d611f1c565b5060010190565b601f82111561058a57600081815260208120601f850160051c81016020861015611f9b5750805b601f850160051c820191505b81811015611fba57828155600101611fa7565b505050505050565b81516001600160401b03811115611fdb57611fdb611c6c565b611fef81611fe98454611ead565b84611f74565b602080601f831160018114612024576000841561200c5750858301515b600019600386901b1c1916600185901b178555611fba565b600085815260208120601f198616915b8281101561205357888601518255948401946001909101908401612034565b50858210156120715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461208f81611ead565b600182811680156120a757600181146120bc576120eb565b60ff19841687528215158302870194506120eb565b8860005260208060002060005b858110156120e25781548a8201529084019082016120c9565b50505082870194505b5050505083516120ff818360208801611a94565b01949350505050565b808202811582820484141761042657610426611f1c565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061215290830184611ab8565b9695505050505050565b60006020828403121561216e57600080fd5b8151611a8d81611a5a565b634e487b7160e01b600052601260045260246000fd5b60008261219e5761219e612179565b500490565b8181038181111561042657610426611f1c565b6000826121c5576121c5612179565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220198829805bd29db8b200bcee6bf514831a177ba654119cbc09ae22611dc8dd6b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000ad8000000000000000000000000000000000000000000000000000000000000000a426162796d616c6c6f7700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a424142594d414c4c4f57000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5a50594d3951645a68356337553477564a50614677643437385a3367394a62344a32774770554147575875642f00000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Babymallow
Arg [1] : _symbol (string): BABYMALLOW
Arg [2] : _initBaseURI (string): ipfs://QmZPYM9QdZh5c7U4wVJPaFwd478Z3g9Jb4J2wGpUAGWXud/
Arg [3] : _maxSupply (uint256): 2776
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000ad8
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 426162796d616c6c6f7700000000000000000000000000000000000000000000
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 424142594d414c4c4f5700000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [9] : 697066733a2f2f516d5a50594d3951645a68356337553477564a506146776434
Arg [10] : 37385a3367394a62344a32774770554147575875642f00000000000000000000
Deployed Bytecode Sourcemap
218:2824:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3915:305:7;;;;;;:::i;:::-;;:::i;:::-;;;565:14:25;;558:22;540:41;;528:2;513:18;3915:305:7;;;;;;;;7275:100;;;:::i;:::-;;;;;;;:::i;8778:204::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:25;;;1679:51;;1667:2;1652:18;8778:204:7;1533:203:25;8341:371:7;;;;;;:::i;:::-;;:::i;:::-;;3572:271;3808:12;;3616:7;3792:13;:28;3572:271;;;2324:25:25;;;2312:2;2297:18;3572:271:7;2178:177:25;2831:95:1;;;;;;:::i;:::-;;:::i;9635:324:7:-;;;;;;:::i;:::-;;:::i;2502:106:1:-;;;;;;:::i;:::-;;:::i;10030:185:7:-;;;;;;:::i;:::-;;:::i;1843:431:1:-;;;;;;:::i;:::-;;:::i;2934:105::-;;;;;;:::i;:::-;;:::i;7084:124:7:-;;;;;;:::i;:::-;;:::i;330:21:1:-;;;:::i;4284:206:7:-;;;;;;:::i;:::-;;:::i;1660:101:22:-;;;:::i;2282:212:1:-;;;;;;:::i;:::-;;:::i;1028:85:22:-;1100:6;;-1:-1:-1;;;;;1100:6:22;1028:85;;7444:104:7;;;:::i;9054:279::-;;;;;;:::i;:::-;;:::i;10286:496::-;;;;;;:::i;:::-;;:::i;360:35:1:-;;;;;;955:262;;;;;;:::i;:::-;;:::i;406:24::-;;;;;;1225:487;;;;;;:::i;:::-;;:::i;1720:115::-;;;;;;:::i;:::-;;:::i;2616:207::-;;;;;;:::i;:::-;;:::i;9404:164:7:-;;;;;;:::i;:::-;;:::i;1910:198:22:-;;;;;;:::i;:::-;;:::i;3915:305:7:-;4017:4;-1:-1:-1;;;;;;4054:40:7;;-1:-1:-1;;;4054:40:7;;:105;;-1:-1:-1;;;;;;;4111:48:7;;-1:-1:-1;;;4111:48:7;4054:105;:158;;;-1:-1:-1;;;;;;;;;;937:40:4;;;4176:36:7;4034:178;3915:305;-1:-1:-1;;3915:305:7:o;7275:100::-;7329:13;7362:5;7355:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7275:100;:::o;8778:204::-;8846:7;8871:16;8879:7;8871;:16::i;:::-;8866:64;;8896:34;;-1:-1:-1;;;8896:34:7;;;;;;;;;;;8866:64;-1:-1:-1;8950:24:7;;;;:15;:24;;;;;;-1:-1:-1;;;;;8950:24:7;;8778:204::o;8341:371::-;8414:13;8430:24;8446:7;8430:15;:24::i;:::-;8414:40;;8475:5;-1:-1:-1;;;;;8469:11:7;:2;-1:-1:-1;;;;;8469:11:7;;8465:48;;8489:24;;-1:-1:-1;;;8489:24:7;;;;;;;;;;;8465:48;719:10:2;-1:-1:-1;;;;;8530:21:7;;;;;;:63;;-1:-1:-1;8556:37:7;8573:5;719:10:2;9404:164:7;:::i;8556:37::-;8555:38;8530:63;8526:138;;;8617:35;;-1:-1:-1;;;8617:35:7;;;;;;;;;;;8526:138;8676:28;8685:2;8689:7;8698:5;8676:8;:28::i;:::-;8403:309;8341:371;;:::o;2831:95:1:-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;;;;;;;;;2896:9:1::1;:22:::0;;;::::1;;-1:-1:-1::0;;;2896:22:1::1;-1:-1:-1::0;;;;2896:22:1;;::::1;::::0;;;::::1;::::0;;2831:95::o;9635:324:7:-;9769:22;9794:41;719:10:2;9827:7:7;9794:18;:41::i;:::-;9769:66;;9851:17;9846:66;;9877:35;;-1:-1:-1;;;9877:35:7;;;;;;;;;;;9846:66;9923:28;9933:4;9939:2;9943:7;9923:9;:28::i;:::-;9758:201;9635:324;;;:::o;2502:106:1:-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;2575:9:1::1;:25:::0;2502:106::o;10030:185:7:-;10168:39;10185:4;10191:2;10195:7;10168:39;;;;;;;;;;;;:16;:39::i;1843:431:1:-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;1973:45:1;;::::1;1965:76;;;::::0;-1:-1:-1;;;1965:76:1;;8417:2:25;1965:76:1::1;::::0;::::1;8399:21:25::0;8456:2;8436:18;;;8429:30;-1:-1:-1;;;8475:18:25;;;8468:48;8533:18;;1965:76:1::1;8215:342:25::0;1965:76:1::1;2104:9;::::0;2077:15;2061:13:::1;3808:12:7::0;;3616:7;3792:13;:28;;3572:271;2061:13:1::1;:38;;;;:::i;:::-;2060:53;;2052:82;;;::::0;-1:-1:-1;;;2052:82:1;;9026:2:25;2052:82:1::1;::::0;::::1;9008:21:25::0;9065:2;9045:18;;;9038:30;-1:-1:-1;;;9084:18:25;;;9077:46;9140:18;;2052:82:1::1;8824:340:25::0;2052:82:1::1;2150:6;2145:122;2161:26:::0;;::::1;2145:122;;;2209:46;2219:15;;2235:1;2219:18;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;2239:12;;2252:1;2239:15;;;;;;;:::i;:::-;;;;;;;2209:9;:46::i;:::-;2189:3:::0;::::1;::::0;::::1;:::i;:::-;;;;2145:122;;;;1843:431:::0;;;;:::o;2934:105::-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;3010:7:1::1;:21;3020:11:::0;3010:7;:21:::1;:::i;:::-;;2934:105:::0;:::o;7084:124:7:-;7148:7;7175:20;7187:7;7175:11;:20::i;:::-;:25;;7084:124;-1:-1:-1;;7084:124:7:o;330:21:1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4284:206:7:-;4348:7;-1:-1:-1;;;;;4372:19:7;;4368:60;;4400:28;;-1:-1:-1;;;4400:28:7;;;;;;;;;;;4368:60;-1:-1:-1;;;;;;4454:19:7;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;4454:27:7;;4284:206::o;1660:101:22:-;1100:6;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;1724:30:::1;1751:1;1724:18;:30::i;:::-;1660:101::o:0;2282:212:1:-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;2410:9:1::1;;2397:8;2381:13;3808:12:7::0;;3616:7;3792:13;:28;;3572:271;2381:13:1::1;:24;;;;:::i;:::-;2380:39;;2372:68;;;::::0;-1:-1:-1;;;2372:68:1;;9026:2:25;2372:68:1::1;::::0;::::1;9008:21:25::0;9065:2;9045:18;;;9038:30;-1:-1:-1;;;9084:18:25;;;9077:46;9140:18;;2372:68:1::1;8824:340:25::0;2372:68:1::1;2451:35;2461:14;2477:8;2451:9;:35::i;7444:104:7:-:0;7500:13;7533:7;7526:14;;;;;:::i;9054:279::-;719:10:2;-1:-1:-1;;;;;9145:24:7;;;9141:54;;9178:17;;-1:-1:-1;;;9178:17:7;;;;;;;;;;;9141:54;719:10:2;9208:32:7;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;9208:42:7;;;;;;;;;;;;:53;;-1:-1:-1;;9208:53:7;;;;;;;;;;9277:48;;540:41:25;;;9208:42:7;;719:10:2;9277:48:7;;513:18:25;9277:48:7;;;;;;;9054:279;;:::o;10286:496::-;10453:22;10478:41;719:10:2;10511:7:7;10478:18;:41::i;:::-;10453:66;;10535:17;10530:66;;10561:35;;-1:-1:-1;;;10561:35:7;;;;;;;;;;;10530:66;10607:28;10617:4;10623:2;10627:7;10607:9;:28::i;:::-;10651:48;10674:4;10680:2;10684:7;10693:5;10651:22;:48::i;:::-;10646:129;;10723:40;;-1:-1:-1;;;10723:40:7;;;;;;;;;;;955:262:1;1021:13;1055:17;1063:8;1055:7;:17::i;:::-;1047:47;;;;-1:-1:-1;;;1047:47:1;;11847:2:25;1047:47:1;;;11829:21:25;11886:2;11866:18;;;11859:30;-1:-1:-1;;;11905:18:25;;;11898:47;11962:18;;1047:47:1;11645:341:25;1047:47:1;1136:1;1118:7;1112:21;;;;;:::i;:::-;;;:25;:97;;;;;;;;;;;;;;;;;1174:7;1183:19;:8;:17;:19::i;:::-;1157:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1105:104;955:262;-1:-1:-1;;955:262:1:o;1225:487::-;1315:9;;-1:-1:-1;;;1315:9:1;;;;1307:28;;;;-1:-1:-1;;;1307:28:1;;13218:2:25;1307:28:1;;;13200:21:25;13257:1;13237:18;;;13230:29;-1:-1:-1;;;13275:18:25;;;13268:36;13321:18;;1307:28:1;13016:329:25;1307:28:1;1369:1;1355:11;:15;1347:42;;;;-1:-1:-1;;;1347:42:1;;13552:2:25;1347:42:1;;;13534:21:25;13591:2;13571:18;;;13564:30;-1:-1:-1;;;13610:18:25;;;13603:44;13664:18;;1347:42:1;13350:338:25;1347:42:1;1491:6;;1432:41;;-1:-1:-1;;1449:10:1;13870:2:25;13866:15;13862:53;1432:41:1;;;13850:66:25;13932:12;;;13925:28;;;-1:-1:-1;;;;;1491:6:1;;;;1408:79;;13969:12:25;;1432:41:1;;;;;;;;;;;;1422:52;;;;;;1476:10;;1408:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1408:13:1;;-1:-1:-1;;;1408:79:1:i;:::-;-1:-1:-1;;;;;1408:89:1;;1400:119;;;;-1:-1:-1;;;1400:119:1;;14194:2:25;1400:119:1;;;14176:21:25;14233:2;14213:18;;;14206:30;-1:-1:-1;;;14252:18:25;;;14245:47;14309:18;;1400:119:1;13992:341:25;1400:119:1;1571:9;;1555:11;1539:13;3808:12:7;;3616:7;3792:13;:28;;3572:271;1539:13:1;:27;;;;:::i;:::-;1538:42;;1530:63;;;;-1:-1:-1;;;1530:63:1;;14540:2:25;1530:63:1;;;14522:21:25;14579:1;14559:18;;;14552:29;-1:-1:-1;;;14597:18:25;;;14590:38;14645:18;;1530:63:1;14338:331:25;1530:63:1;1605:12;;1649:8;;-1:-1:-1;;;;;1605:12:1;;;;:17;;1623:10;;1635:22;;:11;:22;:::i;:::-;1605:53;;-1:-1:-1;;;;;;1605:53:1;;;;;;;-1:-1:-1;;;;;15039:32:25;;;1605:53:1;;;15021:51:25;15088:18;;;15081:34;14994:18;;1605:53:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1669:34;1679:10;1691:11;1669:9;:34::i;1720:115::-;1779:7;1806:21;1820:6;1806:13;:21::i;2616:207::-;1100:6:22;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;2720:12:1::1;:33:::0;;-1:-1:-1;;;;;2720:33:1;;::::1;-1:-1:-1::0;;;;;;2720:33:1;;::::1;;::::0;;;2764:18:::1;:51:::0;;;;;::::1;::::0;::::1;;::::0;;2616:207::o;9404:164:7:-;-1:-1:-1;;;;;9525:25:7;;;9501:4;9525:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;9404:164::o;1910:198:22:-;1100:6;;-1:-1:-1;;;;;1100:6:22;719:10:2;1240:23:22;1232:68;;;;-1:-1:-1;;;1232:68:22;;;;;;;:::i;:::-;-1:-1:-1;;;;;1998:22:22;::::1;1990:73;;;::::0;-1:-1:-1;;;1990:73:22;;15328:2:25;1990:73:22::1;::::0;::::1;15310:21:25::0;15367:2;15347:18;;;15340:30;15406:34;15386:18;;;15379:62;-1:-1:-1;;;15457:18:25;;;15450:36;15503:19;;1990:73:22::1;15126:402:25::0;1990:73:22::1;2073:28;2092:8;2073:18;:28::i;:::-;1910:198:::0;:::o;11037:144:7:-;11094:4;11128:13;;11118:7;:23;:55;;;;-1:-1:-1;;11146:20:7;;;;:11;:20;;;;;:27;-1:-1:-1;;;11146:27:7;;;;11145:28;;11037:144::o;18879:196::-;18994:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;18994:29:7;-1:-1:-1;;;;;18994:29:7;;;;;;;;;19039:28;;18994:24;;19039:28;;;;;;;18879:196;;;:::o;11346:403::-;11439:4;11464:16;11472:7;11464;:16::i;:::-;11456:73;;;;-1:-1:-1;;;11456:73:7;;15735:2:25;11456:73:7;;;15717:21:25;15774:2;15754:18;;;15747:30;15813:34;15793:18;;;15786:62;-1:-1:-1;;;15864:18:25;;;15857:42;15916:19;;11456:73:7;15533:408:25;11456:73:7;11540:35;11578:20;11590:7;11578:11;:20::i;:::-;11540:58;;11628:13;:18;;;-1:-1:-1;;;;;11617:29:7;:7;-1:-1:-1;;;;;11617:29:7;;:64;;;;11674:7;-1:-1:-1;;;;;11650:31:7;:20;11662:7;11650:11;:20::i;:::-;-1:-1:-1;;;;;11650:31:7;;11617:64;:123;;;-1:-1:-1;11712:18:7;;11695:45;;11732:7;11695:16;:45::i;:::-;11609:132;11346:403;-1:-1:-1;;;;11346:403:7:o;14312:2180::-;14479:35;14517:20;14529:7;14517:11;:20::i;:::-;14479:58;;14863:4;-1:-1:-1;;;;;14841:26:7;:13;:18;;;-1:-1:-1;;;;;14841:26:7;;14837:67;;14876:28;;-1:-1:-1;;;14876:28:7;;;;;;;;;;;14837:67;-1:-1:-1;;;;;14919:16:7;;14915:52;;14944:23;;-1:-1:-1;;;14944:23:7;;;;;;;;;;;14915:52;15088:49;15105:1;15109:7;15118:13;:18;;;15088:8;:49::i;:::-;-1:-1:-1;;;;;15433:18:7;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;15433:31:7;;;-1:-1:-1;;;;;15433:31:7;;;-1:-1:-1;;15433:31:7;;;;;;;15479:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;15479:29:7;;;;;;;;;;;15525:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;15570:61:7;;;;-1:-1:-1;;;15615:15:7;15570:61;;;;;;;;;;;15905:11;;;15935:24;;;;;:29;15905:11;;15935:29;15931:445;;16160:13;;16146:11;:27;16142:219;;;16230:18;;;16198:24;;;:11;:24;;;;;;;;:50;;16313:28;;;;-1:-1:-1;;;;;16271:70:7;-1:-1:-1;;;16271:70:7;-1:-1:-1;;;;;;16271:70:7;;;-1:-1:-1;;;;;16198:50:7;;;16271:70;;;;;;;16142:219;15408:979;16423:7;16419:2;-1:-1:-1;;;;;16404:27:7;16413:4;-1:-1:-1;;;;;16404:27:7;;;;;;;;;;;16442:42;9635:324;11757:104;11826:27;11836:2;11840:8;11826:27;;;;;;;;;;;;:9;:27::i;5939:1083::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;6105:13:7;;6049:7;;6098:20;;6094:861;;;6139:31;6173:17;;;:11;:17;;;;;;;;;6139:51;;;;;;;;;-1:-1:-1;;;;;6139:51:7;;;;-1:-1:-1;;;6139:51:7;;-1:-1:-1;;;;;6139:51:7;;;;;;;;-1:-1:-1;;;6139:51:7;;;;;;;;;;;;;;6209:731;;6259:14;;-1:-1:-1;;;;;6259:28:7;;6255:101;;6323:9;5939:1083;-1:-1:-1;;;5939:1083:7:o;6255:101::-;-1:-1:-1;;;6700:6:7;6745:17;;;;:11;:17;;;;;;;;;6733:29;;;;;;;;;-1:-1:-1;;;;;6733:29:7;;;;;-1:-1:-1;;;6733:29:7;;-1:-1:-1;;;;;6733:29:7;;;;;;;;-1:-1:-1;;;6733:29:7;;;;;;;;;;;;;6793:28;6789:109;;6861:9;5939:1083;-1:-1:-1;;;5939:1083:7:o;6789:109::-;6660:261;;;6120:835;6094:861;6983:31;;-1:-1:-1;;;6983:31:7;;;;;;;;;;;2262:187:22;2354:6;;;-1:-1:-1;;;;;2370:17:22;;;-1:-1:-1;;;;;;2370:17:22;;;;;;;2402:40;;2354:6;;;2370:17;2354:6;;2402:40;;2335:16;;2402:40;2325:124;2262:187;:::o;19640:790:7:-;19795:4;-1:-1:-1;;;;;19816:13:7;;1087:20:0;1133:8;19812:611:7;;19852:72;;-1:-1:-1;;;19852:72:7;;-1:-1:-1;;;;;19852:36:7;;;;;:72;;719:10:2;;19903:4:7;;19909:7;;19918:5;;19852:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19852:72:7;;;;;;;;-1:-1:-1;;19852:72:7;;;;;;;;;;;;:::i;:::-;;;19848:520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20098:6;:13;20115:1;20098:18;20094:259;;20148:40;;-1:-1:-1;;;20148:40:7;;;;;;;;;;;20094:259;20303:6;20297:13;20288:6;20284:2;20280:15;20273:38;19848:520;-1:-1:-1;;;;;;19975:55:7;-1:-1:-1;;;19975:55:7;;-1:-1:-1;19968:62:7;;19812:611;-1:-1:-1;20407:4:7;19640:790;;;;;;:::o;328:703:24:-;384:13;601:5;610:1;601:10;597:51;;-1:-1:-1;;627:10:24;;;;;;;;;;;;-1:-1:-1;;;627:10:24;;;;;328:703::o;597:51::-;672:5;657:12;711:75;718:9;;711:75;;743:8;;;;:::i;:::-;;-1:-1:-1;765:10:24;;-1:-1:-1;773:2:24;765:10;;:::i;:::-;;;711:75;;;795:19;827:6;-1:-1:-1;;;;;817:17:24;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;817:17:24;;795:39;;844:150;851:10;;844:150;;877:11;887:1;877:11;;:::i;:::-;;-1:-1:-1;945:10:24;953:2;945:5;:10;:::i;:::-;932:24;;:2;:24;:::i;:::-;919:39;;902:6;909;902:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;902:56:24;;;;;;;;-1:-1:-1;972:11:24;981:2;972:11;;:::i;:::-;;;844:150;;4408:231:3;4486:7;4507:17;4526:18;4548:27;4559:4;4565:9;4548:10;:27::i;:::-;4506:69;;;;4586:18;4598:5;4586:11;:18::i;:::-;-1:-1:-1;4622:9:3;4408:231;-1:-1:-1;;;4408:231:3:o;4572:207:7:-;4633:7;-1:-1:-1;;;;;4657:19:7;;4653:59;;4685:27;;-1:-1:-1;;;4685:27:7;;;;;;;;;;;4653:59;-1:-1:-1;;;;;;4738:19:7;;;;;:12;:19;;;;;:32;-1:-1:-1;;;4738:32:7;;-1:-1:-1;;;;;4738:32:7;;4572:207::o;12224:163::-;12347:32;12353:2;12357:8;12367:5;12374:4;12347:5;:32::i;2298:1308:3:-;2379:7;2388:12;2613:9;:16;2633:2;2613:22;2609:990;;2909:4;2894:20;;2888:27;2959:4;2944:20;;2938:27;3017:4;3002:20;;2996:27;2652:9;2988:36;3060:25;3071:4;2988:36;2888:27;2938;3060:10;:25::i;:::-;3053:32;;;;;;;;;2609:990;3107:9;:16;3127:2;3107:22;3103:496;;3382:4;3367:20;;3361:27;3433:4;3418:20;;3412:27;3475:23;3486:4;3361:27;3412;3475:10;:23::i;:::-;3468:30;;;;;;;;3103:496;-1:-1:-1;3547:1:3;;-1:-1:-1;3551:35:3;3103:496;2298:1308;;;;;:::o;569:643::-;647:20;638:5;:29;;;;;;;;:::i;:::-;;634:571;;569:643;:::o;634:571::-;745:29;736:5;:38;;;;;;;;:::i;:::-;;732:473;;791:34;;-1:-1:-1;;;791:34:3;;17535:2:25;791:34:3;;;17517:21:25;17574:2;17554:18;;;17547:30;17613:26;17593:18;;;17586:54;17657:18;;791:34:3;17333:348:25;732:473:3;856:35;847:5;:44;;;;;;;;:::i;:::-;;843:362;;908:41;;-1:-1:-1;;;908:41:3;;17888:2:25;908:41:3;;;17870:21:25;17927:2;17907:18;;;17900:30;17966:33;17946:18;;;17939:61;18017:18;;908:41:3;17686:355:25;843:362:3;980:30;971:5;:39;;;;;;;;:::i;:::-;;967:238;;1027:44;;-1:-1:-1;;;1027:44:3;;18248:2:25;1027:44:3;;;18230:21:25;18287:2;18267:18;;;18260:30;18326:34;18306:18;;;18299:62;-1:-1:-1;;;18377:18:25;;;18370:32;18419:19;;1027:44:3;18046:398:25;967:238:3;1102:30;1093:5;:39;;;;;;;;:::i;:::-;;1089:116;;1149:44;;-1:-1:-1;;;1149:44:3;;18651:2:25;1149:44:3;;;18633:21:25;18690:2;18670:18;;;18663:30;18729:34;18709:18;;;18702:62;-1:-1:-1;;;18780:18:25;;;18773:32;18822:19;;1149:44:3;18449:398:25;12646:1412:7;12785:20;12808:13;-1:-1:-1;;;;;12836:16:7;;12832:48;;12861:19;;-1:-1:-1;;;12861:19:7;;;;;;;;;;;12832:48;12895:8;12907:1;12895:13;12891:44;;12917:18;;-1:-1:-1;;;12917:18:7;;;;;;;;;;;12891:44;-1:-1:-1;;;;;13286:16:7;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;13345:49:7;;-1:-1:-1;;;;;13286:44:7;;;;;;;13345:49;;;-1:-1:-1;;;;;13286:44:7;;;;;;13345:49;;;;;;;;;;;;;;;;13411:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;13461:66:7;;;;-1:-1:-1;;;13511:15:7;13461:66;;;;;;;;;;;13411:25;;13596:328;13616:8;13612:1;:12;13596:328;;;13655:38;;13680:12;;-1:-1:-1;;;;;13655:38:7;;;13672:1;;13655:38;;13672:1;;13655:38;13716:4;:68;;;;;13725:59;13756:1;13760:2;13764:12;13778:5;13725:22;:59::i;:::-;13724:60;13716:68;13712:164;;;13816:40;;-1:-1:-1;;;13816:40:7;;;;;;;;;;;13712:164;13894:14;;;;;13626:3;13596:328;;;-1:-1:-1;13940:13:7;:28;13990:60;9635:324;5860:1632:3;5991:7;;6925:66;6912:79;;6908:163;;;-1:-1:-1;7024:1:3;;-1:-1:-1;7028:30:3;7008:51;;6908:163;7085:1;:7;;7090:2;7085:7;;:18;;;;;7096:1;:7;;7101:2;7096:7;;7085:18;7081:102;;;-1:-1:-1;7136:1:3;;-1:-1:-1;7140:30:3;7120:51;;7081:102;7297:24;;;7280:14;7297:24;;;;;;;;;19079:25:25;;;19152:4;19140:17;;19120:18;;;19113:45;;;;19174:18;;;19167:34;;;19217:18;;;19210:34;;;7297:24:3;;19051:19:25;;7297:24:3;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7297:24:3;;-1:-1:-1;;7297:24:3;;;-1:-1:-1;;;;;;;7336:20:3;;7332:103;;7389:1;7393:29;7373:50;;;;;;;7332:103;7455:6;-1:-1:-1;7463:20:3;;-1:-1:-1;5860:1632:3;;;;;;;;:::o;4902:344::-;5016:7;;-1:-1:-1;;;;;5062:80:3;;5016:7;5169:25;5185:3;5170:18;;;5192:2;5169:25;:::i;:::-;5153:42;;5213:25;5224:4;5230:1;5233;5236;5213:10;:25::i;:::-;5206:32;;;;;;4902:344;;;;;;:::o;14:131:25:-;-1:-1:-1;;;;;;88:32:25;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:25:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:25;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:25;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:25:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:25;;1348:180;-1:-1:-1;1348:180:25:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:25;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:25:o;2360:160::-;2425:20;;2481:13;;2474:21;2464:32;;2454:60;;2510:1;2507;2500:12;2525:180;2581:6;2634:2;2622:9;2613:7;2609:23;2605:32;2602:52;;;2650:1;2647;2640:12;2602:52;2673:26;2689:9;2673:26;:::i;2710:328::-;2787:6;2795;2803;2856:2;2844:9;2835:7;2831:23;2827:32;2824:52;;;2872:1;2869;2862:12;2824:52;2895:29;2914:9;2895:29;:::i;:::-;2885:39;;2943:38;2977:2;2966:9;2962:18;2943:38;:::i;:::-;2933:48;;3028:2;3017:9;3013:18;3000:32;2990:42;;2710:328;;;;;:::o;3043:367::-;3106:8;3116:6;3170:3;3163:4;3155:6;3151:17;3147:27;3137:55;;3188:1;3185;3178:12;3137:55;-1:-1:-1;3211:20:25;;-1:-1:-1;;;;;3243:30:25;;3240:50;;;3286:1;3283;3276:12;3240:50;3323:4;3315:6;3311:17;3299:29;;3383:3;3376:4;3366:6;3363:1;3359:14;3351:6;3347:27;3343:38;3340:47;3337:67;;;3400:1;3397;3390:12;3415:773;3537:6;3545;3553;3561;3614:2;3602:9;3593:7;3589:23;3585:32;3582:52;;;3630:1;3627;3620:12;3582:52;3670:9;3657:23;-1:-1:-1;;;;;3740:2:25;3732:6;3729:14;3726:34;;;3756:1;3753;3746:12;3726:34;3795:70;3857:7;3848:6;3837:9;3833:22;3795:70;:::i;:::-;3884:8;;-1:-1:-1;3769:96:25;-1:-1:-1;3972:2:25;3957:18;;3944:32;;-1:-1:-1;3988:16:25;;;3985:36;;;4017:1;4014;4007:12;3985:36;;4056:72;4120:7;4109:8;4098:9;4094:24;4056:72;:::i;:::-;3415:773;;;;-1:-1:-1;4147:8:25;-1:-1:-1;;;;3415:773:25:o;4193:127::-;4254:10;4249:3;4245:20;4242:1;4235:31;4285:4;4282:1;4275:15;4309:4;4306:1;4299:15;4325:632;4390:5;-1:-1:-1;;;;;4461:2:25;4453:6;4450:14;4447:40;;;4467:18;;:::i;:::-;4542:2;4536:9;4510:2;4596:15;;-1:-1:-1;;4592:24:25;;;4618:2;4588:33;4584:42;4572:55;;;4642:18;;;4662:22;;;4639:46;4636:72;;;4688:18;;:::i;:::-;4728:10;4724:2;4717:22;4757:6;4748:15;;4787:6;4779;4772:22;4827:3;4818:6;4813:3;4809:16;4806:25;4803:45;;;4844:1;4841;4834:12;4803:45;4894:6;4889:3;4882:4;4874:6;4870:17;4857:44;4949:1;4942:4;4933:6;4925;4921:19;4917:30;4910:41;;;;4325:632;;;;;:::o;4962:451::-;5031:6;5084:2;5072:9;5063:7;5059:23;5055:32;5052:52;;;5100:1;5097;5090:12;5052:52;5140:9;5127:23;-1:-1:-1;;;;;5165:6:25;5162:30;5159:50;;;5205:1;5202;5195:12;5159:50;5228:22;;5281:4;5273:13;;5269:27;-1:-1:-1;5259:55:25;;5310:1;5307;5300:12;5259:55;5333:74;5399:7;5394:2;5381:16;5376:2;5372;5368:11;5333:74;:::i;5418:186::-;5477:6;5530:2;5518:9;5509:7;5505:23;5501:32;5498:52;;;5546:1;5543;5536:12;5498:52;5569:29;5588:9;5569:29;:::i;5609:254::-;5674:6;5682;5735:2;5723:9;5714:7;5710:23;5706:32;5703:52;;;5751:1;5748;5741:12;5703:52;5774:29;5793:9;5774:29;:::i;:::-;5764:39;;5822:35;5853:2;5842:9;5838:18;5822:35;:::i;:::-;5812:45;;5609:254;;;;;:::o;5868:667::-;5963:6;5971;5979;5987;6040:3;6028:9;6019:7;6015:23;6011:33;6008:53;;;6057:1;6054;6047:12;6008:53;6080:29;6099:9;6080:29;:::i;:::-;6070:39;;6128:38;6162:2;6151:9;6147:18;6128:38;:::i;:::-;6118:48;;6213:2;6202:9;6198:18;6185:32;6175:42;;6268:2;6257:9;6253:18;6240:32;-1:-1:-1;;;;;6287:6:25;6284:30;6281:50;;;6327:1;6324;6317:12;6281:50;6350:22;;6403:4;6395:13;;6391:27;-1:-1:-1;6381:55:25;;6432:1;6429;6422:12;6381:55;6455:74;6521:7;6516:2;6503:16;6498:2;6494;6490:11;6455:74;:::i;:::-;6445:84;;;5868:667;;;;;;;:::o;6540:659::-;6619:6;6627;6635;6688:2;6676:9;6667:7;6663:23;6659:32;6656:52;;;6704:1;6701;6694:12;6656:52;6740:9;6727:23;6717:33;;6801:2;6790:9;6786:18;6773:32;-1:-1:-1;;;;;6865:2:25;6857:6;6854:14;6851:34;;;6881:1;6878;6871:12;6851:34;6919:6;6908:9;6904:22;6894:32;;6964:7;6957:4;6953:2;6949:13;6945:27;6935:55;;6986:1;6983;6976:12;6935:55;7026:2;7013:16;7052:2;7044:6;7041:14;7038:34;;;7068:1;7065;7058:12;7038:34;7113:7;7108:2;7099:6;7095:2;7091:15;7087:24;7084:37;7081:57;;;7134:1;7131;7124:12;7081:57;7165:2;7161;7157:11;7147:21;;7187:6;7177:16;;;;;6540:659;;;;;:::o;7204:260::-;7272:6;7280;7333:2;7321:9;7312:7;7308:23;7304:32;7301:52;;;7349:1;7346;7339:12;7301:52;7372:29;7391:9;7372:29;:::i;:::-;7362:39;;7420:38;7454:2;7443:9;7439:18;7420:38;:::i;7469:380::-;7548:1;7544:12;;;;7591;;;7612:61;;7666:4;7658:6;7654:17;7644:27;;7612:61;7719:2;7711:6;7708:14;7688:18;7685:38;7682:161;;7765:10;7760:3;7756:20;7753:1;7746:31;7800:4;7797:1;7790:15;7828:4;7825:1;7818:15;7682:161;;7469:380;;;:::o;7854:356::-;8056:2;8038:21;;;8075:18;;;8068:30;8134:34;8129:2;8114:18;;8107:62;8201:2;8186:18;;7854:356::o;8562:127::-;8623:10;8618:3;8614:20;8611:1;8604:31;8654:4;8651:1;8644:15;8678:4;8675:1;8668:15;8694:125;8759:9;;;8780:10;;;8777:36;;;8793:18;;:::i;9169:127::-;9230:10;9225:3;9221:20;9218:1;9211:31;9261:4;9258:1;9251:15;9285:4;9282:1;9275:15;9301:135;9340:3;9361:17;;;9358:43;;9381:18;;:::i;:::-;-1:-1:-1;9428:1:25;9417:13;;9301:135::o;9567:545::-;9669:2;9664:3;9661:11;9658:448;;;9705:1;9730:5;9726:2;9719:17;9775:4;9771:2;9761:19;9845:2;9833:10;9829:19;9826:1;9822:27;9816:4;9812:38;9881:4;9869:10;9866:20;9863:47;;;-1:-1:-1;9904:4:25;9863:47;9959:2;9954:3;9950:12;9947:1;9943:20;9937:4;9933:31;9923:41;;10014:82;10032:2;10025:5;10022:13;10014:82;;;10077:17;;;10058:1;10047:13;10014:82;;;10018:3;;;9567:545;;;:::o;10288:1352::-;10414:3;10408:10;-1:-1:-1;;;;;10433:6:25;10430:30;10427:56;;;10463:18;;:::i;:::-;10492:97;10582:6;10542:38;10574:4;10568:11;10542:38;:::i;:::-;10536:4;10492:97;:::i;:::-;10644:4;;10708:2;10697:14;;10725:1;10720:663;;;;11427:1;11444:6;11441:89;;;-1:-1:-1;11496:19:25;;;11490:26;11441:89;-1:-1:-1;;10245:1:25;10241:11;;;10237:24;10233:29;10223:40;10269:1;10265:11;;;10220:57;11543:81;;10690:944;;10720:663;9514:1;9507:14;;;9551:4;9538:18;;-1:-1:-1;;10756:20:25;;;10874:236;10888:7;10885:1;10882:14;10874:236;;;10977:19;;;10971:26;10956:42;;11069:27;;;;11037:1;11025:14;;;;10904:19;;10874:236;;;10878:3;11138:6;11129:7;11126:19;11123:201;;;11199:19;;;11193:26;-1:-1:-1;;11282:1:25;11278:14;;;11294:3;11274:24;11270:37;11266:42;11251:58;11236:74;;11123:201;-1:-1:-1;;;;;11370:1:25;11354:14;;;11350:22;11337:36;;-1:-1:-1;10288:1352:25:o;11991:1020::-;12167:3;12196:1;12229:6;12223:13;12259:36;12285:9;12259:36;:::i;:::-;12314:1;12331:18;;;12358:133;;;;12505:1;12500:356;;;;12324:532;;12358:133;-1:-1:-1;;12391:24:25;;12379:37;;12464:14;;12457:22;12445:35;;12436:45;;;-1:-1:-1;12358:133:25;;12500:356;12531:6;12528:1;12521:17;12561:4;12606:2;12603:1;12593:16;12631:1;12645:165;12659:6;12656:1;12653:13;12645:165;;;12737:14;;12724:11;;;12717:35;12780:16;;;;12674:10;;12645:165;;;12649:3;;;12839:6;12834:3;12830:16;12823:23;;12324:532;;;;;12887:6;12881:13;12903:68;12962:8;12957:3;12950:4;12942:6;12938:17;12903:68;:::i;:::-;12987:18;;11991:1020;-1:-1:-1;;;;11991:1020:25:o;14674:168::-;14747:9;;;14778;;14795:15;;;14789:22;;14775:37;14765:71;;14816:18;;:::i;15946:489::-;-1:-1:-1;;;;;16215:15:25;;;16197:34;;16267:15;;16262:2;16247:18;;16240:43;16314:2;16299:18;;16292:34;;;16362:3;16357:2;16342:18;;16335:31;;;16140:4;;16383:46;;16409:19;;16401:6;16383:46;:::i;:::-;16375:54;15946:489;-1:-1:-1;;;;;;15946:489:25:o;16440:249::-;16509:6;16562:2;16550:9;16541:7;16537:23;16533:32;16530:52;;;16578:1;16575;16568:12;16530:52;16610:9;16604:16;16629:30;16653:5;16629:30;:::i;16694:127::-;16755:10;16750:3;16746:20;16743:1;16736:31;16786:4;16783:1;16776:15;16810:4;16807:1;16800:15;16826:120;16866:1;16892;16882:35;;16897:18;;:::i;:::-;-1:-1:-1;16931:9:25;;16826:120::o;16951:128::-;17018:9;;;17039:11;;;17036:37;;;17053:18;;:::i;17084:112::-;17116:1;17142;17132:35;;17147:18;;:::i;:::-;-1:-1:-1;17181:9:25;;17084:112::o;17201:127::-;17262:10;17257:3;17253:20;17250:1;17243:31;17293:4;17290:1;17283:15;17317:4;17314:1;17307:15
Swarm Source
ipfs://198829805bd29db8b200bcee6bf514831a177ba654119cbc09ae22611dc8dd6b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.