Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 650 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Public Mint | 14451577 | 1074 days ago | IN | 0.05 ETH | 0.00199933 | ||||
Public Mint | 14451399 | 1074 days ago | IN | 0.05 ETH | 0.00175371 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00214756 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00216594 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00214818 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.0021524 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00214818 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00214756 | ||||
Public Mint | 14451373 | 1074 days ago | IN | 0.05 ETH | 0.00218933 | ||||
Public Mint | 14451365 | 1074 days ago | IN | 0.05 ETH | 0.00225128 | ||||
Public Mint | 14451365 | 1074 days ago | IN | 0.05 ETH | 0.00224365 | ||||
Public Mint | 14451364 | 1074 days ago | IN | 0.05 ETH | 0.00234394 | ||||
Public Mint | 14451364 | 1074 days ago | IN | 0.05 ETH | 0.00233354 | ||||
Withdraw All Via... | 14451297 | 1074 days ago | IN | 0 ETH | 0.0031519 | ||||
Set Sale To Clos... | 14451291 | 1074 days ago | IN | 0 ETH | 0.00191776 | ||||
Public Mint | 14451288 | 1074 days ago | IN | 0.05 ETH | 0.00267232 | ||||
Public Mint | 14451288 | 1074 days ago | IN | 0.05 ETH | 0.00271061 | ||||
Public Mint | 14451288 | 1074 days ago | IN | 0.05 ETH | 0.00271139 | ||||
Public Mint | 14451288 | 1074 days ago | IN | 0.05 ETH | 0.00271061 | ||||
Public Mint | 14451287 | 1074 days ago | IN | 0.05 ETH | 0.00295746 | ||||
Public Mint | 14451287 | 1074 days ago | IN | 0.05 ETH | 0.00295576 | ||||
Public Mint | 14451286 | 1074 days ago | IN | 0.05 ETH | 0.00300523 | ||||
Public Mint | 14451286 | 1074 days ago | IN | 0.05 ETH | 0.00300609 | ||||
Public Mint | 14451286 | 1074 days ago | IN | 0.05 ETH | 0.00921897 | ||||
Public Mint | 14451286 | 1074 days ago | IN | 0.05 ETH | 0.00898116 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FLUFDynamicMarketplace
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; contract FLUFDynamicMarketplace is ERC1155Holder, ReentrancyGuard, Ownable { using ECDSA for bytes32; using MerkleProof for bytes32[]; using Address for address; address public flufAddress; address public partybearsAddress; address public thingiesAddress; struct Sales { address contractAddress; // The contractAddresses uint256[] ids; // The tokenIds uint256[] amounts; // The quantity of each token to transfer uint256 price; } mapping(uint256 => Sales) public availableSales; bytes32 private root; // Root of Merkle mapping(uint256 => mapping(bytes => bool)) public usedToken; // Whether the SALT Token has been consumed mapping(uint256 => mapping(address => bool)) public addressMinted; // Whether this address has already minted during this sale mapping(uint256 => mapping(address => bool)) private _mintedInBlock; event Mint(address indexed _from, uint256 _saleNonce); enum State { Closed, PrivateSale, PublicSale } State private _state; address private _signer; constructor( address signer, bytes32 _newRoot, address _flufAddress, address _partybearsAddress, address _thingiesAddress ) { _signer = signer; root = _newRoot; flufAddress = _flufAddress; partybearsAddress = _partybearsAddress; thingiesAddress = _thingiesAddress; } function setSaleToClosed() public onlyOwner { _state = State.Closed; } function setSaleToPrivate() public onlyOwner { _state = State.PrivateSale; } function setSaleToPublic() public onlyOwner { _state = State.PublicSale; } function listNewSale( address _contractAddress, uint256[] memory _ids, uint256[] memory _amounts, uint256 _price, uint256 saleNonce ) public onlyOwner { availableSales[saleNonce].contractAddress = _contractAddress; availableSales[saleNonce].ids = _ids; availableSales[saleNonce].amounts = _amounts; availableSales[saleNonce].price = _price; } function updateSigner(address __signer) public onlyOwner { _signer = __signer; } function _hash(string calldata salt, address _address) public view returns (bytes32) { return keccak256(abi.encode(salt, address(this), _address)); } function _verify(bytes32 hash, bytes memory token) public view returns (bool) { return (_recover(hash, token) == _signer); } function _recover(bytes32 hash, bytes memory token) public pure returns (address) { return hash.toEthSignedMessageHash().recover(token); } function setRoot(bytes32 _newRoot) public onlyOwner { root = _newRoot; } function grantTokens(address _to, uint256 saleNonce) internal { uint256[] memory ids = availableSales[saleNonce].ids; uint256[] memory amounts = availableSales[saleNonce].amounts; address contractAddress = availableSales[saleNonce].contractAddress; IERC1155(contractAddress).safeBatchTransferFrom( address(this), _to, ids, amounts, "0x0" ); } function setFlufAddress(address _flufAddress) public onlyOwner { flufAddress = _flufAddress; } function setPartybearsAddress(address _partybearsAddress) public onlyOwner { partybearsAddress = _partybearsAddress; } function setThingiesAddress(address _thingiesAddress) public onlyOwner { thingiesAddress = _thingiesAddress; } function isEcosystemOwner(address _address) public view returns (bool) { uint256 fluf = IERC721(flufAddress).balanceOf(_address); if (fluf > 0) { return true; } uint256 pb = IERC721(partybearsAddress).balanceOf(_address); if (pb > 0) { return true; } uint256 thingies = IERC721(thingiesAddress).balanceOf(_address); if (thingies > 0) { return true; } return false; } function hasStock(uint256 _saleNonce) public view returns (bool) { uint256 bal = IERC1155(availableSales[_saleNonce].contractAddress) .balanceOf(address(this), availableSales[_saleNonce].ids[0]); if (bal > 0) { return true; } else { return false; } } function publicMint( string calldata salt, bytes calldata token, uint256 saleNonce ) external payable nonReentrant { require(hasStock(saleNonce) == true, "Out of stock"); require(_state == State.PublicSale, "Publicsale is not active"); require( isEcosystemOwner(msg.sender) == true, "This wallet does not have any FLUFs, Partybears or Thingies." ); require(msg.sender == tx.origin, "Mint from contract not allowed"); require( !Address.isContract(msg.sender), "Contracts are not allowed to mint." ); uint256 price = availableSales[saleNonce].price; require(msg.value >= price, "Ether value sent is incorrect."); require(!usedToken[saleNonce][token], "The token has been used."); require(_verify(_hash(salt, msg.sender), token), "Invalid token."); require( _mintedInBlock[block.number][msg.sender] == false, "already minted in this block" ); usedToken[saleNonce][token] = true; _mintedInBlock[block.number][msg.sender] = true; grantTokens(msg.sender, saleNonce); emit Mint(msg.sender, saleNonce); } function privateMint(bytes32[] memory _proof, uint256 saleNonce) external payable nonReentrant { require(hasStock(saleNonce) == true, "Out of stock"); require(_state == State.PrivateSale, "Private Sale is not active."); require(msg.sender == tx.origin, "Mint from contract not allowed"); require( !Address.isContract(msg.sender), "Contracts are not allowed to mint." ); uint256 price = availableSales[saleNonce].price; require(msg.value >= price, "Ether value sent is incorrect."); require( !addressMinted[saleNonce][msg.sender], "This address has already minted during private sale." ); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(_proof.verify(root, leaf), "invalid proof"); addressMinted[saleNonce][msg.sender] = true; grantTokens(msg.sender, saleNonce); emit Mint(msg.sender, saleNonce); } function withdrawAll(address recipient) public onlyOwner { uint256 balance = address(this).balance; payable(recipient).transfer(balance); } function withdrawAllViaCall(address payable _to) public onlyOwner { uint256 balance = address(this).balance; (bool sent, bytes memory data) = _to.call{value: balance}(""); require(sent, "Failed to send Ether"); } function emergencyWithdrawTokens( address _to, uint256[] memory ids, uint256[] memory amounts, address contractAddress ) public onlyOwner { IERC1155(contractAddress).safeBatchTransferFrom( address(this), _to, ids, amounts, "0x0" ); } }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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 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 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes32","name":"_newRoot","type":"bytes32"},{"internalType":"address","name":"_flufAddress","type":"address"},{"internalType":"address","name":"_partybearsAddress","type":"address"},{"internalType":"address","name":"_thingiesAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_saleNonce","type":"uint256"}],"name":"Mint","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"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"_hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableSales","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"emergencyWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flufAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleNonce","type":"uint256"}],"name":"hasStock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isEcosystemOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"saleNonce","type":"uint256"}],"name":"listNewSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partybearsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"saleNonce","type":"uint256"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"},{"internalType":"uint256","name":"saleNonce","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_flufAddress","type":"address"}],"name":"setFlufAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partybearsAddress","type":"address"}],"name":"setPartybearsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToClosed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_thingiesAddress","type":"address"}],"name":"setThingiesAddress","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":"thingiesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"__signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAllViaCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200264f3803806200264f833981016040819052620000349162000115565b60016000556200004433620000a6565b600a80546001600160a01b0396871661010002610100600160a81b0319909116179055600693909355600280549285166001600160a01b031993841617905560038054918516918316919091179055600480549290931691161790556200017b565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200011057600080fd5b919050565b600080600080600060a086880312156200012d578081fd5b6200013886620000f8565b9450602086015193506200014f60408701620000f8565b92506200015f60608701620000f8565b91506200016f60808701620000f8565b90509295509295909350565b6124c4806200018b6000396000f3fe6080604052600436106101685760003560e01c806301ffc9a71461016d5780630bb3de85146101a2578063265d3e97146101b957806328818b96146101e6578063399853dd146101f9578063450500ec146102455780634833be101461029357806350582344146102b3578063681ba83e146102d35780636edc457b146102e6578063715018a6146103065780638983de571461031b5780638da5cb5b14610330578063a7ecd37e14610345578063a83ae17214610365578063a905821a1461037a578063aacd6f941461039a578063aad310ae146103ba578063aba7eddc146103da578063bc197c81146103fa578063c2669e3b1461043f578063cdd366b11461045f578063cfa8ba4f1461047f578063da211e391461049f578063dab5f340146104bf578063ec8ba2d9146104df578063f23a6e611461050d578063f2fde38b14610539578063f4a6680814610559578063fa09e63014610594578063fbe2525f146105b4575b600080fd5b34801561017957600080fd5b5061018d61018836600461204f565b6105d4565b60405190151581526020015b60405180910390f35b3480156101ae57600080fd5b506101b761060b565b005b3480156101c557600080fd5b506101d96101d436600461200b565b610659565b60405161019991906121cc565b6101b76101f4366004611f5b565b6106c2565b34801561020557600080fd5b5061018d61021436600461200b565b6007602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b34801561025157600080fd5b50610285610260366004611ff3565b600560205260009081526040902080546003909101546001600160a01b039091169082565b604051610199929190612247565b34801561029f57600080fd5b506003546101d9906001600160a01b031681565b3480156102bf57600080fd5b506101b76102ce366004611d27565b610973565b6101b76102e13660046120cb565b6109c4565b3480156102f257600080fd5b506002546101d9906001600160a01b031681565b34801561031257600080fd5b506101b7610d90565b34801561032757600080fd5b506101b7610dcb565b34801561033c57600080fd5b506101d9610e0e565b34801561035157600080fd5b506101b7610360366004611d27565b610e1d565b34801561037157600080fd5b506101b7610e74565b34801561038657600080fd5b506101b7610395366004611d27565b610eb7565b3480156103a657600080fd5b506101b76103b5366004611e52565b610f89565b3480156103c657600080fd5b506004546101d9906001600160a01b031681565b3480156103e657600080fd5b506101b76103f5366004611ed7565b611022565b34801561040657600080fd5b50610426610415366004611d43565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610199565b34801561044b57600080fd5b506101b761045a366004611d27565b6110cd565b34801561046b57600080fd5b506101b761047a366004611d27565b61111e565b34801561048b57600080fd5b5061018d61049a36600461200b565b61116f565b3480156104ab57600080fd5b5061018d6104ba366004611d27565b61119e565b3480156104cb57600080fd5b506101b76104da366004611ff3565b611367565b3480156104eb57600080fd5b506104ff6104fa366004612077565b61139b565b604051908152602001610199565b34801561051957600080fd5b50610426610528366004611dec565b63f23a6e6160e01b95945050505050565b34801561054557600080fd5b506101b7610554366004611d27565b6113d3565b34801561056557600080fd5b5061018d610574366004612153565b600860209081526000928352604080842090915290825290205460ff1681565b3480156105a057600080fd5b506101b76105af366004611d27565b611473565b3480156105c057600080fd5b5061018d6105cf366004611ff3565b6114df565b60006001600160e01b03198216630271189760e51b148061060557506301ffc9a760e01b6001600160e01b03198316145b92915050565b33610614610e0e565b6001600160a01b0316146106435760405162461bcd60e51b815260040161063a90612304565b60405180910390fd5b600a80546001919060ff191682805b0217905550565b60006106bb826106b5856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115b8565b9392505050565b600260005414156106e55760405162461bcd60e51b815260040161063a906123b2565b60026000556106f3816114df565b15156001146107145760405162461bcd60e51b815260040161063a906122de565b6001600a5460ff16600281111561073b57634e487b7160e01b600052602160045260246000fd5b146107865760405162461bcd60e51b815260206004820152601b60248201527a283934bb30ba329029b0b6329034b9903737ba1030b1ba34bb329760291b604482015260640161063a565b3332146107a55760405162461bcd60e51b815260040161063a906122a7565b333b156107c45760405162461bcd60e51b815260040161063a90612370565b600081815260056020526040902060030154348111156107f65760405162461bcd60e51b815260040161063a90612339565b600082815260086020908152604080832033845290915290205460ff161561087d5760405162461bcd60e51b815260206004820152603460248201527f5468697320616464726573732068617320616c7265616479206d696e74656420604482015273323ab934b73390383934bb30ba329039b0b6329760611b606482015260840161063a565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506108c860065482866115dc9092919063ffffffff16565b6109045760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161063a565b6000838152600860209081526040808320338085529252909120805460ff191660011790556109339084611699565b60405183815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2505060016000555050565b3361097c610e0e565b6001600160a01b0316146109a25760405162461bcd60e51b815260040161063a90612304565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600260005414156109e75760405162461bcd60e51b815260040161063a906123b2565b60026000556109f5816114df565b1515600114610a165760405162461bcd60e51b815260040161063a906122de565b6002600a5460ff166002811115610a3d57634e487b7160e01b600052602160045260246000fd5b14610a855760405162461bcd60e51b81526020600482015260186024820152775075626c696373616c65206973206e6f742061637469766560401b604482015260640161063a565b610a8e3361119e565b1515600114610b045760405162461bcd60e51b815260206004820152603c60248201527f546869732077616c6c657420646f6573206e6f74206861766520616e7920464c60448201527b2aa33996102830b93a3cb132b0b9399037b9102a3434b733b4b2b99760211b606482015260840161063a565b333214610b235760405162461bcd60e51b815260040161063a906122a7565b333b15610b425760405162461bcd60e51b815260040161063a90612370565b60008181526005602052604090206003015434811115610b745760405162461bcd60e51b815260040161063a90612339565b600082815260076020526040908190209051610b9390869086906121bc565b9081526040519081900360200190205460ff1615610bee5760405162461bcd60e51b81526020600482015260186024820152772a3432903a37b5b2b7103430b9903132b2b7103ab9b2b21760411b604482015260640161063a565b610c38610bfc87873361139b565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061116f92505050565b610c755760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103a37b5b2b71760911b604482015260640161063a565b43600090815260096020908152604080832033845290915290205460ff1615610cdf5760405162461bcd60e51b815260206004820152601c60248201527b616c7265616479206d696e74656420696e207468697320626c6f636b60201b604482015260640161063a565b6001600760008481526020019081526020016000208585604051610d049291906121bc565b90815260408051918290036020908101909220805493151560ff1994851617905543600090815260098352818120338083529352208054909216600117909155610d4e9083611699565b60405182815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a25050600160005550505050565b33610d99610e0e565b6001600160a01b031614610dbf5760405162461bcd60e51b815260040161063a90612304565b610dc960006117df565b565b33610dd4610e0e565b6001600160a01b031614610dfa5760405162461bcd60e51b815260040161063a90612304565b600a80546000919060ff1916600183610652565b6001546001600160a01b031690565b33610e26610e0e565b6001600160a01b031614610e4c5760405162461bcd60e51b815260040161063a90612304565b600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b33610e7d610e0e565b6001600160a01b031614610ea35760405162461bcd60e51b815260040161063a90612304565b600a80546002919060ff1916600183610652565b33610ec0610e0e565b6001600160a01b031614610ee65760405162461bcd60e51b815260040161063a90612304565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114610f35576040519150601f19603f3d011682016040523d82523d6000602084013e610f3a565b606091505b509150915081610f835760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640161063a565b50505050565b33610f92610e0e565b6001600160a01b031614610fb85760405162461bcd60e51b815260040161063a90612304565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d690610fea9030908890889088906004016121e0565b600060405180830381600087803b15801561100457600080fd5b505af1158015611018573d6000803e3d6000fd5b5050505050505050565b3361102b610e0e565b6001600160a01b0316146110515760405162461bcd60e51b815260040161063a90612304565b600081815260056020908152604090912080546001600160a01b0319166001600160a01b038816178155855161108f92600190920191870190611baf565b50600081815260056020908152604090912084516110b592600290920191860190611baf565b50600090815260056020526040902060030155505050565b336110d6610e0e565b6001600160a01b0316146110fc5760405162461bcd60e51b815260040161063a90612304565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b33611127610e0e565b6001600160a01b03161461114d5760405162461bcd60e51b815260040161063a90612304565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600a5460009061010090046001600160a01b031661118d8484610659565b6001600160a01b0316149392505050565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906111d39086906004016121cc565b60206040518083038186803b1580156111eb57600080fd5b505afa1580156111ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611223919061213b565b905080156112345750600192915050565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112659087906004016121cc565b60206040518083038186803b15801561127d57600080fd5b505afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b5919061213b565b905080156112c7575060019392505050565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a08231916112f9918991016121cc565b60206040518083038186803b15801561131157600080fd5b505afa158015611325573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611349919061213b565b9050801561135c57506001949350505050565b506000949350505050565b33611370610e0e565b6001600160a01b0316146113965760405162461bcd60e51b815260040161063a90612304565b600655565b6000838330846040516020016113b49493929190612260565b6040516020818303038152906040528051906020012090509392505050565b336113dc610e0e565b6001600160a01b0316146114025760405162461bcd60e51b815260040161063a90612304565b6001600160a01b0381166114675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063a565b611470816117df565b50565b3361147c610e0e565b6001600160a01b0316146114a25760405162461bcd60e51b815260040161063a90612304565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114da573d6000803e3d6000fd5b505050565b600081815260056020526040812080546001909101805483926001600160a01b03169162fdd58e91309190859061152657634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518363ffffffff1660e01b815260040161154e929190612247565b60206040518083038186803b15801561156657600080fd5b505afa15801561157a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159e919061213b565b905080156115af5750600192915050565b50600092915050565b60008060006115c78585611831565b915091506115d4816118a1565b509392505050565b600081815b855181101561168e57600086828151811061160c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161164e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061167b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806116868161243c565b9150506115e1565b509092149392505050565b6000818152600560209081526040808320600101805482518185028101850190935280835291929091908301828280156116f257602002820191906000526020600020905b8154815260200190600101908083116116de575b5050505050905060006005600084815260200190815260200160002060020180548060200260200160405190810160405280929190818152602001828054801561175b57602002820191906000526020600020905b815481526020019060010190808311611747575b50505060008681526005602052604090819020549051631759616b60e11b81529394506001600160a01b031692839250632eb2c2d691506117a69030908990889088906004016121e0565b600060405180830381600087803b1580156117c057600080fd5b505af11580156117d4573d6000803e3d6000fd5b505050505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000808251604114156118685760208301516040840151606085015160001a61185c87828585611a9d565b9450945050505061189a565b8251604014156118925760208301516040840151611887868383611b80565b93509350505061189a565b506000905060025b9250929050565b60008160048111156118c357634e487b7160e01b600052602160045260246000fd5b14156118cc5750565b60018160048111156118ee57634e487b7160e01b600052602160045260246000fd5b14156119375760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161063a565b600281600481111561195957634e487b7160e01b600052602160045260246000fd5b14156119a75760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161063a565b60038160048111156119c957634e487b7160e01b600052602160045260246000fd5b1415611a225760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161063a565b6004816004811115611a4457634e487b7160e01b600052602160045260246000fd5b14156114705760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161063a565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115611aca5750600090506003611b77565b8460ff16601b14158015611ae257508460ff16601c14155b15611af35750600090506004611b77565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611b47573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b7057600060019250925050611b77565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611ba187828885611a9d565b935093505050935093915050565b828054828255906000526020600020908101928215611bea579160200282015b82811115611bea578251825591602001919060010190611bcf565b50611bf6929150611bfa565b5090565b5b80821115611bf65760008155600101611bfb565b600082601f830112611c1f578081fd5b81356020611c34611c2f83612419565b6123e9565b80838252828201915082860187848660051b8901011115611c53578586fd5b855b85811015611c7157813584529284019290840190600101611c55565b5090979650505050505050565b60008083601f840112611c8f578182fd5b5081356001600160401b03811115611ca5578182fd5b60208301915083602082850101111561189a57600080fd5b600082601f830112611ccd578081fd5b81356001600160401b03811115611ce657611ce6612463565b611cf9601f8201601f19166020016123e9565b818152846020838601011115611d0d578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611d38578081fd5b81356106bb81612479565b600080600080600060a08688031215611d5a578081fd5b8535611d6581612479565b94506020860135611d7581612479565b935060408601356001600160401b0380821115611d90578283fd5b611d9c89838a01611c0f565b94506060880135915080821115611db1578283fd5b611dbd89838a01611c0f565b93506080880135915080821115611dd2578283fd5b50611ddf88828901611cbd565b9150509295509295909350565b600080600080600060a08688031215611e03578081fd5b8535611e0e81612479565b94506020860135611e1e81612479565b9350604086013592506060860135915060808601356001600160401b03811115611e46578182fd5b611ddf88828901611cbd565b60008060008060808587031215611e67578384fd5b8435611e7281612479565b935060208501356001600160401b0380821115611e8d578485fd5b611e9988838901611c0f565b94506040870135915080821115611eae578384fd5b50611ebb87828801611c0f565b9250506060850135611ecc81612479565b939692955090935050565b600080600080600060a08688031215611eee578081fd5b8535611ef981612479565b945060208601356001600160401b0380821115611f14578283fd5b611f2089838a01611c0f565b95506040880135915080821115611f35578283fd5b50611f4288828901611c0f565b9598949750949560608101359550608001359392505050565b60008060408385031215611f6d578081fd5b82356001600160401b03811115611f82578182fd5b8301601f81018513611f92578182fd5b80356020611fa2611c2f83612419565b80838252828201915082850189848660051b8801011115611fc1578687fd5b8695505b84861015611fe3578035835260019590950194918301918301611fc5565b5098969091013596505050505050565b600060208284031215612004578081fd5b5035919050565b6000806040838503121561201d578182fd5b8235915060208301356001600160401b03811115612039578182fd5b61204585828601611cbd565b9150509250929050565b600060208284031215612060578081fd5b81356001600160e01b0319811681146106bb578182fd5b60008060006040848603121561208b578081fd5b83356001600160401b038111156120a0578182fd5b6120ac86828701611c7e565b90945092505060208401356120c081612479565b809150509250925092565b6000806000806000606086880312156120e2578283fd5b85356001600160401b03808211156120f8578485fd5b61210489838a01611c7e565b9097509550602088013591508082111561211c578485fd5b5061212988828901611c7e565b96999598509660400135949350505050565b60006020828403121561214c578081fd5b5051919050565b60008060408385031215612165578182fd5b82359150602083013561217781612479565b809150509250929050565b6000815180845260208085019450808401835b838110156121b157815187529582019590820190600101612195565b509495945050505050565b8183823760009101908152919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260a06040820181905260009061220c90830185612182565b828103606084015261221e8185612182565b8381036080909401939093525050600381526203078360ec1b6020820152604001949350505050565b6001600160a01b03929092168252602082015260400190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6020808252601e908201527f4d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000604082015260600190565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f45746865722076616c75652073656e7420697320696e636f72726563742e0000604082015260600190565b60208082526022908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6040820152613a1760f11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561241157612411612463565b604052919050565b60006001600160401b0382111561243257612432612463565b5060051b60200190565b600060001982141561245c57634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461147057600080fdfea2646970667358221220dad05bb7e6c23a2ae78f3d80879856a2d76927e7387a9d7b332b03b08791f2e264736f6c63430008040033000000000000000000000000aae1b41ae4663008a6ffd50ebe0b750c9c418cb8a3b14032c58a1d20c93dbec9ea8701c25f4646c6ad6b6d0889f52e7dfa8106f6000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18
Deployed Bytecode
0x6080604052600436106101685760003560e01c806301ffc9a71461016d5780630bb3de85146101a2578063265d3e97146101b957806328818b96146101e6578063399853dd146101f9578063450500ec146102455780634833be101461029357806350582344146102b3578063681ba83e146102d35780636edc457b146102e6578063715018a6146103065780638983de571461031b5780638da5cb5b14610330578063a7ecd37e14610345578063a83ae17214610365578063a905821a1461037a578063aacd6f941461039a578063aad310ae146103ba578063aba7eddc146103da578063bc197c81146103fa578063c2669e3b1461043f578063cdd366b11461045f578063cfa8ba4f1461047f578063da211e391461049f578063dab5f340146104bf578063ec8ba2d9146104df578063f23a6e611461050d578063f2fde38b14610539578063f4a6680814610559578063fa09e63014610594578063fbe2525f146105b4575b600080fd5b34801561017957600080fd5b5061018d61018836600461204f565b6105d4565b60405190151581526020015b60405180910390f35b3480156101ae57600080fd5b506101b761060b565b005b3480156101c557600080fd5b506101d96101d436600461200b565b610659565b60405161019991906121cc565b6101b76101f4366004611f5b565b6106c2565b34801561020557600080fd5b5061018d61021436600461200b565b6007602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b34801561025157600080fd5b50610285610260366004611ff3565b600560205260009081526040902080546003909101546001600160a01b039091169082565b604051610199929190612247565b34801561029f57600080fd5b506003546101d9906001600160a01b031681565b3480156102bf57600080fd5b506101b76102ce366004611d27565b610973565b6101b76102e13660046120cb565b6109c4565b3480156102f257600080fd5b506002546101d9906001600160a01b031681565b34801561031257600080fd5b506101b7610d90565b34801561032757600080fd5b506101b7610dcb565b34801561033c57600080fd5b506101d9610e0e565b34801561035157600080fd5b506101b7610360366004611d27565b610e1d565b34801561037157600080fd5b506101b7610e74565b34801561038657600080fd5b506101b7610395366004611d27565b610eb7565b3480156103a657600080fd5b506101b76103b5366004611e52565b610f89565b3480156103c657600080fd5b506004546101d9906001600160a01b031681565b3480156103e657600080fd5b506101b76103f5366004611ed7565b611022565b34801561040657600080fd5b50610426610415366004611d43565b63bc197c8160e01b95945050505050565b6040516001600160e01b03199091168152602001610199565b34801561044b57600080fd5b506101b761045a366004611d27565b6110cd565b34801561046b57600080fd5b506101b761047a366004611d27565b61111e565b34801561048b57600080fd5b5061018d61049a36600461200b565b61116f565b3480156104ab57600080fd5b5061018d6104ba366004611d27565b61119e565b3480156104cb57600080fd5b506101b76104da366004611ff3565b611367565b3480156104eb57600080fd5b506104ff6104fa366004612077565b61139b565b604051908152602001610199565b34801561051957600080fd5b50610426610528366004611dec565b63f23a6e6160e01b95945050505050565b34801561054557600080fd5b506101b7610554366004611d27565b6113d3565b34801561056557600080fd5b5061018d610574366004612153565b600860209081526000928352604080842090915290825290205460ff1681565b3480156105a057600080fd5b506101b76105af366004611d27565b611473565b3480156105c057600080fd5b5061018d6105cf366004611ff3565b6114df565b60006001600160e01b03198216630271189760e51b148061060557506301ffc9a760e01b6001600160e01b03198316145b92915050565b33610614610e0e565b6001600160a01b0316146106435760405162461bcd60e51b815260040161063a90612304565b60405180910390fd5b600a80546001919060ff191682805b0217905550565b60006106bb826106b5856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115b8565b9392505050565b600260005414156106e55760405162461bcd60e51b815260040161063a906123b2565b60026000556106f3816114df565b15156001146107145760405162461bcd60e51b815260040161063a906122de565b6001600a5460ff16600281111561073b57634e487b7160e01b600052602160045260246000fd5b146107865760405162461bcd60e51b815260206004820152601b60248201527a283934bb30ba329029b0b6329034b9903737ba1030b1ba34bb329760291b604482015260640161063a565b3332146107a55760405162461bcd60e51b815260040161063a906122a7565b333b156107c45760405162461bcd60e51b815260040161063a90612370565b600081815260056020526040902060030154348111156107f65760405162461bcd60e51b815260040161063a90612339565b600082815260086020908152604080832033845290915290205460ff161561087d5760405162461bcd60e51b815260206004820152603460248201527f5468697320616464726573732068617320616c7265616479206d696e74656420604482015273323ab934b73390383934bb30ba329039b0b6329760611b606482015260840161063a565b6040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506108c860065482866115dc9092919063ffffffff16565b6109045760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161063a565b6000838152600860209081526040808320338085529252909120805460ff191660011790556109339084611699565b60405183815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a2505060016000555050565b3361097c610e0e565b6001600160a01b0316146109a25760405162461bcd60e51b815260040161063a90612304565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600260005414156109e75760405162461bcd60e51b815260040161063a906123b2565b60026000556109f5816114df565b1515600114610a165760405162461bcd60e51b815260040161063a906122de565b6002600a5460ff166002811115610a3d57634e487b7160e01b600052602160045260246000fd5b14610a855760405162461bcd60e51b81526020600482015260186024820152775075626c696373616c65206973206e6f742061637469766560401b604482015260640161063a565b610a8e3361119e565b1515600114610b045760405162461bcd60e51b815260206004820152603c60248201527f546869732077616c6c657420646f6573206e6f74206861766520616e7920464c60448201527b2aa33996102830b93a3cb132b0b9399037b9102a3434b733b4b2b99760211b606482015260840161063a565b333214610b235760405162461bcd60e51b815260040161063a906122a7565b333b15610b425760405162461bcd60e51b815260040161063a90612370565b60008181526005602052604090206003015434811115610b745760405162461bcd60e51b815260040161063a90612339565b600082815260076020526040908190209051610b9390869086906121bc565b9081526040519081900360200190205460ff1615610bee5760405162461bcd60e51b81526020600482015260186024820152772a3432903a37b5b2b7103430b9903132b2b7103ab9b2b21760411b604482015260640161063a565b610c38610bfc87873361139b565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061116f92505050565b610c755760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103a37b5b2b71760911b604482015260640161063a565b43600090815260096020908152604080832033845290915290205460ff1615610cdf5760405162461bcd60e51b815260206004820152601c60248201527b616c7265616479206d696e74656420696e207468697320626c6f636b60201b604482015260640161063a565b6001600760008481526020019081526020016000208585604051610d049291906121bc565b90815260408051918290036020908101909220805493151560ff1994851617905543600090815260098352818120338083529352208054909216600117909155610d4e9083611699565b60405182815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a25050600160005550505050565b33610d99610e0e565b6001600160a01b031614610dbf5760405162461bcd60e51b815260040161063a90612304565b610dc960006117df565b565b33610dd4610e0e565b6001600160a01b031614610dfa5760405162461bcd60e51b815260040161063a90612304565b600a80546000919060ff1916600183610652565b6001546001600160a01b031690565b33610e26610e0e565b6001600160a01b031614610e4c5760405162461bcd60e51b815260040161063a90612304565b600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b33610e7d610e0e565b6001600160a01b031614610ea35760405162461bcd60e51b815260040161063a90612304565b600a80546002919060ff1916600183610652565b33610ec0610e0e565b6001600160a01b031614610ee65760405162461bcd60e51b815260040161063a90612304565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114610f35576040519150601f19603f3d011682016040523d82523d6000602084013e610f3a565b606091505b509150915081610f835760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015260640161063a565b50505050565b33610f92610e0e565b6001600160a01b031614610fb85760405162461bcd60e51b815260040161063a90612304565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d690610fea9030908890889088906004016121e0565b600060405180830381600087803b15801561100457600080fd5b505af1158015611018573d6000803e3d6000fd5b5050505050505050565b3361102b610e0e565b6001600160a01b0316146110515760405162461bcd60e51b815260040161063a90612304565b600081815260056020908152604090912080546001600160a01b0319166001600160a01b038816178155855161108f92600190920191870190611baf565b50600081815260056020908152604090912084516110b592600290920191860190611baf565b50600090815260056020526040902060030155505050565b336110d6610e0e565b6001600160a01b0316146110fc5760405162461bcd60e51b815260040161063a90612304565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b33611127610e0e565b6001600160a01b03161461114d5760405162461bcd60e51b815260040161063a90612304565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600a5460009061010090046001600160a01b031661118d8484610659565b6001600160a01b0316149392505050565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906111d39086906004016121cc565b60206040518083038186803b1580156111eb57600080fd5b505afa1580156111ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611223919061213b565b905080156112345750600192915050565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112659087906004016121cc565b60206040518083038186803b15801561127d57600080fd5b505afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b5919061213b565b905080156112c7575060019392505050565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a08231916112f9918991016121cc565b60206040518083038186803b15801561131157600080fd5b505afa158015611325573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611349919061213b565b9050801561135c57506001949350505050565b506000949350505050565b33611370610e0e565b6001600160a01b0316146113965760405162461bcd60e51b815260040161063a90612304565b600655565b6000838330846040516020016113b49493929190612260565b6040516020818303038152906040528051906020012090509392505050565b336113dc610e0e565b6001600160a01b0316146114025760405162461bcd60e51b815260040161063a90612304565b6001600160a01b0381166114675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161063a565b611470816117df565b50565b3361147c610e0e565b6001600160a01b0316146114a25760405162461bcd60e51b815260040161063a90612304565b60405147906001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114da573d6000803e3d6000fd5b505050565b600081815260056020526040812080546001909101805483926001600160a01b03169162fdd58e91309190859061152657634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518363ffffffff1660e01b815260040161154e929190612247565b60206040518083038186803b15801561156657600080fd5b505afa15801561157a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159e919061213b565b905080156115af5750600192915050565b50600092915050565b60008060006115c78585611831565b915091506115d4816118a1565b509392505050565b600081815b855181101561168e57600086828151811061160c57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161164e57604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061167b565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806116868161243c565b9150506115e1565b509092149392505050565b6000818152600560209081526040808320600101805482518185028101850190935280835291929091908301828280156116f257602002820191906000526020600020905b8154815260200190600101908083116116de575b5050505050905060006005600084815260200190815260200160002060020180548060200260200160405190810160405280929190818152602001828054801561175b57602002820191906000526020600020905b815481526020019060010190808311611747575b50505060008681526005602052604090819020549051631759616b60e11b81529394506001600160a01b031692839250632eb2c2d691506117a69030908990889088906004016121e0565b600060405180830381600087803b1580156117c057600080fd5b505af11580156117d4573d6000803e3d6000fd5b505050505050505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000808251604114156118685760208301516040840151606085015160001a61185c87828585611a9d565b9450945050505061189a565b8251604014156118925760208301516040840151611887868383611b80565b93509350505061189a565b506000905060025b9250929050565b60008160048111156118c357634e487b7160e01b600052602160045260246000fd5b14156118cc5750565b60018160048111156118ee57634e487b7160e01b600052602160045260246000fd5b14156119375760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b604482015260640161063a565b600281600481111561195957634e487b7160e01b600052602160045260246000fd5b14156119a75760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161063a565b60038160048111156119c957634e487b7160e01b600052602160045260246000fd5b1415611a225760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161063a565b6004816004811115611a4457634e487b7160e01b600052602160045260246000fd5b14156114705760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161063a565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115611aca5750600090506003611b77565b8460ff16601b14158015611ae257508460ff16601c14155b15611af35750600090506004611b77565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611b47573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b7057600060019250925050611b77565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611ba187828885611a9d565b935093505050935093915050565b828054828255906000526020600020908101928215611bea579160200282015b82811115611bea578251825591602001919060010190611bcf565b50611bf6929150611bfa565b5090565b5b80821115611bf65760008155600101611bfb565b600082601f830112611c1f578081fd5b81356020611c34611c2f83612419565b6123e9565b80838252828201915082860187848660051b8901011115611c53578586fd5b855b85811015611c7157813584529284019290840190600101611c55565b5090979650505050505050565b60008083601f840112611c8f578182fd5b5081356001600160401b03811115611ca5578182fd5b60208301915083602082850101111561189a57600080fd5b600082601f830112611ccd578081fd5b81356001600160401b03811115611ce657611ce6612463565b611cf9601f8201601f19166020016123e9565b818152846020838601011115611d0d578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611d38578081fd5b81356106bb81612479565b600080600080600060a08688031215611d5a578081fd5b8535611d6581612479565b94506020860135611d7581612479565b935060408601356001600160401b0380821115611d90578283fd5b611d9c89838a01611c0f565b94506060880135915080821115611db1578283fd5b611dbd89838a01611c0f565b93506080880135915080821115611dd2578283fd5b50611ddf88828901611cbd565b9150509295509295909350565b600080600080600060a08688031215611e03578081fd5b8535611e0e81612479565b94506020860135611e1e81612479565b9350604086013592506060860135915060808601356001600160401b03811115611e46578182fd5b611ddf88828901611cbd565b60008060008060808587031215611e67578384fd5b8435611e7281612479565b935060208501356001600160401b0380821115611e8d578485fd5b611e9988838901611c0f565b94506040870135915080821115611eae578384fd5b50611ebb87828801611c0f565b9250506060850135611ecc81612479565b939692955090935050565b600080600080600060a08688031215611eee578081fd5b8535611ef981612479565b945060208601356001600160401b0380821115611f14578283fd5b611f2089838a01611c0f565b95506040880135915080821115611f35578283fd5b50611f4288828901611c0f565b9598949750949560608101359550608001359392505050565b60008060408385031215611f6d578081fd5b82356001600160401b03811115611f82578182fd5b8301601f81018513611f92578182fd5b80356020611fa2611c2f83612419565b80838252828201915082850189848660051b8801011115611fc1578687fd5b8695505b84861015611fe3578035835260019590950194918301918301611fc5565b5098969091013596505050505050565b600060208284031215612004578081fd5b5035919050565b6000806040838503121561201d578182fd5b8235915060208301356001600160401b03811115612039578182fd5b61204585828601611cbd565b9150509250929050565b600060208284031215612060578081fd5b81356001600160e01b0319811681146106bb578182fd5b60008060006040848603121561208b578081fd5b83356001600160401b038111156120a0578182fd5b6120ac86828701611c7e565b90945092505060208401356120c081612479565b809150509250925092565b6000806000806000606086880312156120e2578283fd5b85356001600160401b03808211156120f8578485fd5b61210489838a01611c7e565b9097509550602088013591508082111561211c578485fd5b5061212988828901611c7e565b96999598509660400135949350505050565b60006020828403121561214c578081fd5b5051919050565b60008060408385031215612165578182fd5b82359150602083013561217781612479565b809150509250929050565b6000815180845260208085019450808401835b838110156121b157815187529582019590820190600101612195565b509495945050505050565b8183823760009101908152919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260a06040820181905260009061220c90830185612182565b828103606084015261221e8185612182565b8381036080909401939093525050600381526203078360ec1b6020820152604001949350505050565b6001600160a01b03929092168252602082015260400190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6020808252601e908201527f4d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000604082015260600190565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f45746865722076616c75652073656e7420697320696e636f72726563742e0000604082015260600190565b60208082526022908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6040820152613a1760f11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561241157612411612463565b604052919050565b60006001600160401b0382111561243257612432612463565b5060051b60200190565b600060001982141561245c57634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461147057600080fdfea2646970667358221220dad05bb7e6c23a2ae78f3d80879856a2d76927e7387a9d7b332b03b08791f2e264736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000aae1b41ae4663008a6ffd50ebe0b750c9c418cb8a3b14032c58a1d20c93dbec9ea8701c25f4646c6ad6b6d0889f52e7dfa8106f6000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18
-----Decoded View---------------
Arg [0] : signer (address): 0xaAE1b41aE4663008a6FFD50ebE0b750c9C418cb8
Arg [1] : _newRoot (bytes32): 0xa3b14032c58a1d20c93dbec9ea8701c25f4646c6ad6b6d0889f52e7dfa8106f6
Arg [2] : _flufAddress (address): 0xCcc441ac31f02cD96C153DB6fd5Fe0a2F4e6A68d
Arg [3] : _partybearsAddress (address): 0x35471f47c3C0BC5FC75025b97A19ECDDe00F78f8
Arg [4] : _thingiesAddress (address): 0x1AFEF6b252cc35Ec061eFe6a9676C90915a73F18
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000aae1b41ae4663008a6ffd50ebe0b750c9c418cb8
Arg [1] : a3b14032c58a1d20c93dbec9ea8701c25f4646c6ad6b6d0889f52e7dfa8106f6
Arg [2] : 000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d
Arg [3] : 00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f8
Arg [4] : 0000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.