Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 364 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 14945610 | 943 days ago | IN | 0 ETH | 0.00744454 | ||||
Mint | 14945606 | 943 days ago | IN | 0 ETH | 0.00651716 | ||||
Mint | 14945601 | 943 days ago | IN | 0 ETH | 0.00946655 | ||||
Mint | 14945600 | 943 days ago | IN | 0 ETH | 0.00604264 | ||||
Mint | 14945582 | 943 days ago | IN | 0 ETH | 0.00853951 | ||||
Mint | 14945557 | 943 days ago | IN | 0 ETH | 0.00678554 | ||||
Mint | 14945527 | 943 days ago | IN | 0 ETH | 0.00823724 | ||||
Mint | 14945516 | 943 days ago | IN | 0 ETH | 0.00860803 | ||||
Mint | 14945503 | 943 days ago | IN | 0 ETH | 0.00798145 | ||||
Mint | 14945498 | 943 days ago | IN | 0 ETH | 0.0068299 | ||||
Mint | 14945495 | 943 days ago | IN | 0 ETH | 0.00758719 | ||||
Mint | 14945484 | 943 days ago | IN | 0 ETH | 0.01069226 | ||||
Mint | 14945471 | 943 days ago | IN | 0 ETH | 0.01588141 | ||||
Mint | 14945461 | 943 days ago | IN | 0 ETH | 0.01685131 | ||||
Mint | 14945460 | 943 days ago | IN | 0 ETH | 0.0154197 | ||||
Mint | 14945456 | 943 days ago | IN | 0 ETH | 0.010265 | ||||
Mint | 14945434 | 943 days ago | IN | 0 ETH | 0.01145709 | ||||
Mint | 14945357 | 943 days ago | IN | 0 ETH | 0.00194408 | ||||
Mint | 14945357 | 943 days ago | IN | 0 ETH | 0.01178102 | ||||
Mint | 14945339 | 943 days ago | IN | 0 ETH | 0.00877146 | ||||
Mint | 14945338 | 943 days ago | IN | 0 ETH | 0.00783554 | ||||
Mint | 14945307 | 943 days ago | IN | 0 ETH | 0.01025418 | ||||
Mint | 14945286 | 943 days ago | IN | 0 ETH | 0.00980589 | ||||
Mint | 14945283 | 943 days ago | IN | 0 ETH | 0.00870324 | ||||
Mint | 14945281 | 943 days ago | IN | 0 ETH | 0.0093752 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SicilianKissBurn
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@manifoldxyz/creator-core-solidity/contracts/core/IERC1155CreatorCore.sol"; import "@manifoldxyz/creator-core-solidity/contracts/extensions/ICreatorExtensionTokenURI.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; contract SicilianKissBurn is AdminControl, ICreatorExtensionTokenURI { address private _creator; uint private burnableTokenId; uint private startingTokenId; bool private initialized; string[] private assetURIs = new string[](4); address public sicilianKissContract; uint256 public deactivationTimestamp = 0; constructor(address creator) { _creator = creator; } function supportsInterface(bytes4 interfaceId) public view virtual override(AdminControl, IERC165) returns (bool) { return interfaceId == type(ICreatorExtensionTokenURI).interfaceId || AdminControl.supportsInterface(interfaceId) || super.supportsInterface(interfaceId); } /* * Allows us to set the contract and token ID eligible for burning */ function setBurnableContractAndToken(address theContract, uint tokenId) public adminRequired { sicilianKissContract = theContract; burnableTokenId = tokenId; } /* * Pushes the deactivation time to 24hrs past the call's blocktime */ function setActive() public adminRequired { deactivationTimestamp = block.timestamp + 86400; } /* * Can only be called once. * Creates the four base tokens that users will later mint via burn-redeem. */ function initialize() public adminRequired { require(!initialized, 'Initialized'); initialized = true; address[] memory addressToSend = new address[](1); addressToSend[0] = msg.sender; uint256[] memory amount = new uint256[](4); amount[0] = 1; amount[1] = 1; amount[2] = 1; amount[3] = 1; string[] memory uris = new string[](4); uris[0] = ""; uris[1] = ""; uris[2] = ""; uris[3] = ""; // forge four completely separate 1155 tokens that this extension can mint uint256[] memory mintedTokenIds = IERC1155CreatorCore(_creator).mintExtensionNew(addressToSend, amount, uris); startingTokenId = mintedTokenIds[0]; // record the first token ID we mint } /* * Public minting function with burn-redeem mechanism. * User must burn 10 Sicilian Kiss to receive 1 of each of the 4 new tokens. * If the user burns a multiple of 10, they will get that multiple of each of the new tokens. * * Ex: I burn 20 kisses so I get 2 of each of the new 4 pieces/tokens totaling 8 new tokens. */ function mint(uint256 amount) public { require(IERC1155(sicilianKissContract).balanceOf(msg.sender, burnableTokenId) >= 10 * amount, "Must own 10x Kisses"); require(IERC1155(sicilianKissContract).isApprovedForAll(msg.sender, address(this)), "BurnRedeem: Contract must be given approval to burn NFT"); require(block.timestamp < deactivationTimestamp, "Inactive"); require(amount > 0, "None"); uint[] memory tokenIds = new uint[](1); tokenIds[0] = burnableTokenId; uint[] memory burnAmounts = new uint[](1); burnAmounts[0] = 10 * amount; try IERC1155CreatorCore(sicilianKissContract).burn(msg.sender, tokenIds, burnAmounts) { } catch (bytes memory) { revert("BurnRedeem: Burn failure"); } address[] memory addressToSend = new address[](1); addressToSend[0] = msg.sender; uint[] memory numToSend = new uint[](4); numToSend[0] = amount; numToSend[1] = amount; numToSend[2] = amount; numToSend[3] = amount; uint[] memory tokenToSend = new uint[](4); tokenToSend[0] = startingTokenId; tokenToSend[1] = startingTokenId + 1; tokenToSend[2] = startingTokenId + 2; tokenToSend[3] = startingTokenId + 3; IERC1155CreatorCore(_creator).mintExtensionExisting(addressToSend, tokenToSend, numToSend); } /* * Sets the URIs for the 4 tokens minted and controlled by this extension. */ function setAssetURIs(string memory uri1, string memory uri2, string memory uri3, string memory uri4) public adminRequired { assetURIs[0] = uri1; assetURIs[1] = uri2; assetURIs[2] = uri3; assetURIs[3] = uri4; } /* * See {ICreatorExtensionTokenURI-tokenURI} */ function tokenURI(address creator, uint256 tokenId) external view override returns (string memory) { require(creator == _creator, "Invalid token"); require(tokenId >= startingTokenId && tokenId <= startingTokenId + 3, "Invalid token"); return assetURIs[tokenId - startingTokenId]; } }
// 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/ERC1155/IERC1155.sol) 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; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Implement this if you want your extension to have overloadable URI's */ interface ICreatorExtensionTokenURI is IERC165 { /** * Get the uri for a given creator/tokenId */ function tokenURI(address creator, uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "./CreatorCore.sol"; /** * @dev Core ERC1155 creator interface */ interface IERC1155CreatorCore is ICreatorCore { /** * @dev mint a token with no extension. Can only be called by an admin. * * @param to - Can be a single element array (all tokens go to same address) or multi-element array (single token to many recipients) * @param amounts - Can be a single element array (all recipients get the same amount) or a multi-element array * @param uris - If no elements, all tokens use the default uri. * If any element is an empty string, the corresponding token uses the default uri. * * * Requirements: If to is a multi-element array, then uris must be empty or single element array * If to is a multi-element array, then amounts must be a single element array or a multi-element array of the same size * If to is a single element array, uris must be empty or the same length as amounts * * Examples: * mintBaseNew(['0x....1', '0x....2'], [1], []) * Mints a single new token, and gives 1 each to '0x....1' and '0x....2'. Token uses default uri. * * mintBaseNew(['0x....1', '0x....2'], [1, 2], []) * Mints a single new token, and gives 1 to '0x....1' and 2 to '0x....2'. Token uses default uri. * * mintBaseNew(['0x....1'], [1, 2], ["", "http://token2.com"]) * Mints two new tokens to '0x....1'. 1 of the first token, 2 of the second. 1st token uses default uri, second uses "http://token2.com". * * @return Returns list of tokenIds minted */ function mintBaseNew(address[] calldata to, uint256[] calldata amounts, string[] calldata uris) external returns (uint256[] memory); /** * @dev batch mint existing token with no extension. Can only be called by an admin. * * @param to - Can be a single element array (all tokens go to same address) or multi-element array (single token to many recipients) * @param tokenIds - Can be a single element array (all recipients get the same token) or a multi-element array * @param amounts - Can be a single element array (all recipients get the same amount) or a multi-element array * * Requirements: If any of the parameters are multi-element arrays, they need to be the same length as other multi-element arrays * * Examples: * mintBaseExisting(['0x....1', '0x....2'], [1], [10]) * Mints 10 of tokenId 1 to each of '0x....1' and '0x....2'. * * mintBaseExisting(['0x....1', '0x....2'], [1, 2], [10, 20]) * Mints 10 of tokenId 1 to '0x....1' and 20 of tokenId 2 to '0x....2'. * * mintBaseExisting(['0x....1'], [1, 2], [10, 20]) * Mints 10 of tokenId 1 and 20 of tokenId 2 to '0x....1'. * * mintBaseExisting(['0x....1', '0x....2'], [1], [10, 20]) * Mints 10 of tokenId 1 to '0x....1' and 20 of tokenId 1 to '0x....2'. * */ function mintBaseExisting(address[] calldata to, uint256[] calldata tokenIds, uint256[] calldata amounts) external; /** * @dev mint a token from an extension. Can only be called by a registered extension. * * @param to - Can be a single element array (all tokens go to same address) or multi-element array (single token to many recipients) * @param amounts - Can be a single element array (all recipients get the same amount) or a multi-element array * @param uris - If no elements, all tokens use the default uri. * If any element is an empty string, the corresponding token uses the default uri. * * * Requirements: If to is a multi-element array, then uris must be empty or single element array * If to is a multi-element array, then amounts must be a single element array or a multi-element array of the same size * If to is a single element array, uris must be empty or the same length as amounts * * Examples: * mintExtensionNew(['0x....1', '0x....2'], [1], []) * Mints a single new token, and gives 1 each to '0x....1' and '0x....2'. Token uses default uri. * * mintExtensionNew(['0x....1', '0x....2'], [1, 2], []) * Mints a single new token, and gives 1 to '0x....1' and 2 to '0x....2'. Token uses default uri. * * mintExtensionNew(['0x....1'], [1, 2], ["", "http://token2.com"]) * Mints two new tokens to '0x....1'. 1 of the first token, 2 of the second. 1st token uses default uri, second uses "http://token2.com". * * @return Returns list of tokenIds minted */ function mintExtensionNew(address[] calldata to, uint256[] calldata amounts, string[] calldata uris) external returns (uint256[] memory); /** * @dev batch mint existing token from extension. Can only be called by a registered extension. * * @param to - Can be a single element array (all tokens go to same address) or multi-element array (single token to many recipients) * @param tokenIds - Can be a single element array (all recipients get the same token) or a multi-element array * @param amounts - Can be a single element array (all recipients get the same amount) or a multi-element array * * Requirements: If any of the parameters are multi-element arrays, they need to be the same length as other multi-element arrays * * Examples: * mintExtensionExisting(['0x....1', '0x....2'], [1], [10]) * Mints 10 of tokenId 1 to each of '0x....1' and '0x....2'. * * mintExtensionExisting(['0x....1', '0x....2'], [1, 2], [10, 20]) * Mints 10 of tokenId 1 to '0x....1' and 20 of tokenId 2 to '0x....2'. * * mintExtensionExisting(['0x....1'], [1, 2], [10, 20]) * Mints 10 of tokenId 1 and 20 of tokenId 2 to '0x....1'. * * mintExtensionExisting(['0x....1', '0x....2'], [1], [10, 20]) * Mints 10 of tokenId 1 to '0x....1' and 20 of tokenId 1 to '0x....2'. * */ function mintExtensionExisting(address[] calldata to, uint256[] calldata tokenIds, uint256[] calldata amounts) external; /** * @dev burn tokens. Can only be called by token owner or approved address. * On burn, calls back to the registered extension's onBurn method */ function burn(address account, uint256[] calldata tokenIds, uint256[] calldata amounts) external; /** * @dev Total amount of tokens in with a given tokenId. */ function totalSupply(uint256 tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// 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 pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "../extensions/ICreatorExtensionTokenURI.sol"; import "./ICreatorCore.sol"; /** * @dev Core creator implementation */ abstract contract CreatorCore is ReentrancyGuard, ICreatorCore, ERC165 { using Strings for uint256; using EnumerableSet for EnumerableSet.AddressSet; using AddressUpgradeable for address; uint256 _tokenCount = 0; // Track registered extensions data EnumerableSet.AddressSet internal _extensions; EnumerableSet.AddressSet internal _blacklistedExtensions; mapping (address => address) internal _extensionPermissions; mapping (address => bool) internal _extensionApproveTransfers; // For tracking which extension a token was minted by mapping (uint256 => address) internal _tokensExtension; // The baseURI for a given extension mapping (address => string) private _extensionBaseURI; mapping (address => bool) private _extensionBaseURIIdentical; // The prefix for any tokens with a uri configured mapping (address => string) private _extensionURIPrefix; // Mapping for individual token URIs mapping (uint256 => string) internal _tokenURIs; // Royalty configurations mapping (address => address payable[]) internal _extensionRoyaltyReceivers; mapping (address => uint256[]) internal _extensionRoyaltyBPS; mapping (uint256 => address payable[]) internal _tokenRoyaltyReceivers; mapping (uint256 => uint256[]) internal _tokenRoyaltyBPS; /** * External interface identifiers for royalties */ /** * @dev CreatorCore * * bytes4(keccak256('getRoyalties(uint256)')) == 0xbb3bafd6 * * => 0xbb3bafd6 = 0xbb3bafd6 */ bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; /** * @dev Rarible: RoyaltiesV1 * * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * * => 0xb9c4d9fb ^ 0x0ebd4c7f = 0xb7799584 */ bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; /** * @dev Foundation * * bytes4(keccak256('getFees(uint256)')) == 0xd5a06d4c * * => 0xd5a06d4c = 0xd5a06d4c */ bytes4 private constant _INTERFACE_ID_ROYALTIES_FOUNDATION = 0xd5a06d4c; /** * @dev EIP-2981 * * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a * * => 0x2a55205a = 0x2a55205a */ bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(ICreatorCore).interfaceId || super.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE || interfaceId == _INTERFACE_ID_ROYALTIES_FOUNDATION || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981; } /** * @dev Only allows registered extensions to call the specified function */ modifier extensionRequired() { require(_extensions.contains(msg.sender), "Must be registered extension"); _; } /** * @dev Only allows non-blacklisted extensions */ modifier nonBlacklistRequired(address extension) { require(!_blacklistedExtensions.contains(extension), "Extension blacklisted"); _; } /** * @dev See {ICreatorCore-getExtensions}. */ function getExtensions() external view override returns (address[] memory extensions) { extensions = new address[](_extensions.length()); for (uint i = 0; i < _extensions.length(); i++) { extensions[i] = _extensions.at(i); } return extensions; } /** * @dev Register an extension */ function _registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) internal { require(extension != address(this), "Creator: Invalid"); require(extension.isContract(), "Creator: Extension must be a contract"); if (!_extensions.contains(extension)) { _extensionBaseURI[extension] = baseURI; _extensionBaseURIIdentical[extension] = baseURIIdentical; emit ExtensionRegistered(extension, msg.sender); _extensions.add(extension); } } /** * @dev Unregister an extension */ function _unregisterExtension(address extension) internal { if (_extensions.contains(extension)) { emit ExtensionUnregistered(extension, msg.sender); _extensions.remove(extension); } } /** * @dev Blacklist an extension */ function _blacklistExtension(address extension) internal { require(extension != address(this), "Cannot blacklist yourself"); if (_extensions.contains(extension)) { emit ExtensionUnregistered(extension, msg.sender); _extensions.remove(extension); } if (!_blacklistedExtensions.contains(extension)) { emit ExtensionBlacklisted(extension, msg.sender); _blacklistedExtensions.add(extension); } } /** * @dev Set base token uri for an extension */ function _setBaseTokenURIExtension(string calldata uri, bool identical) internal { _extensionBaseURI[msg.sender] = uri; _extensionBaseURIIdentical[msg.sender] = identical; } /** * @dev Set token uri prefix for an extension */ function _setTokenURIPrefixExtension(string calldata prefix) internal { _extensionURIPrefix[msg.sender] = prefix; } /** * @dev Set token uri for a token of an extension */ function _setTokenURIExtension(uint256 tokenId, string calldata uri) internal { require(_tokensExtension[tokenId] == msg.sender, "Invalid token"); _tokenURIs[tokenId] = uri; } /** * @dev Set base token uri for tokens with no extension */ function _setBaseTokenURI(string memory uri) internal { _extensionBaseURI[address(this)] = uri; } /** * @dev Set token uri prefix for tokens with no extension */ function _setTokenURIPrefix(string calldata prefix) internal { _extensionURIPrefix[address(this)] = prefix; } /** * @dev Set token uri for a token with no extension */ function _setTokenURI(uint256 tokenId, string calldata uri) internal { require(_tokensExtension[tokenId] == address(this), "Invalid token"); _tokenURIs[tokenId] = uri; } /** * @dev Retrieve a token's URI */ function _tokenURI(uint256 tokenId) internal view returns (string memory) { address extension = _tokensExtension[tokenId]; require(!_blacklistedExtensions.contains(extension), "Extension blacklisted"); if (bytes(_tokenURIs[tokenId]).length != 0) { if (bytes(_extensionURIPrefix[extension]).length != 0) { return string(abi.encodePacked(_extensionURIPrefix[extension],_tokenURIs[tokenId])); } return _tokenURIs[tokenId]; } if (ERC165Checker.supportsInterface(extension, type(ICreatorExtensionTokenURI).interfaceId)) { return ICreatorExtensionTokenURI(extension).tokenURI(address(this), tokenId); } if (!_extensionBaseURIIdentical[extension]) { return string(abi.encodePacked(_extensionBaseURI[extension], tokenId.toString())); } else { return _extensionBaseURI[extension]; } } /** * Get token extension */ function _tokenExtension(uint256 tokenId) internal view returns (address extension) { extension = _tokensExtension[tokenId]; require(extension != address(this), "No extension for token"); require(!_blacklistedExtensions.contains(extension), "Extension blacklisted"); return extension; } /** * Helper to get royalties for a token */ function _getRoyalties(uint256 tokenId) view internal returns (address payable[] storage, uint256[] storage) { return (_getRoyaltyReceivers(tokenId), _getRoyaltyBPS(tokenId)); } /** * Helper to get royalty receivers for a token */ function _getRoyaltyReceivers(uint256 tokenId) view internal returns (address payable[] storage) { if (_tokenRoyaltyReceivers[tokenId].length > 0) { return _tokenRoyaltyReceivers[tokenId]; } else if (_extensionRoyaltyReceivers[_tokensExtension[tokenId]].length > 0) { return _extensionRoyaltyReceivers[_tokensExtension[tokenId]]; } return _extensionRoyaltyReceivers[address(this)]; } /** * Helper to get royalty basis points for a token */ function _getRoyaltyBPS(uint256 tokenId) view internal returns (uint256[] storage) { if (_tokenRoyaltyBPS[tokenId].length > 0) { return _tokenRoyaltyBPS[tokenId]; } else if (_extensionRoyaltyBPS[_tokensExtension[tokenId]].length > 0) { return _extensionRoyaltyBPS[_tokensExtension[tokenId]]; } return _extensionRoyaltyBPS[address(this)]; } function _getRoyaltyInfo(uint256 tokenId, uint256 value) view internal returns (address receiver, uint256 amount){ address payable[] storage receivers = _getRoyaltyReceivers(tokenId); require(receivers.length <= 1, "More than 1 royalty receiver"); if (receivers.length == 0) { return (address(this), 0); } return (receivers[0], _getRoyaltyBPS(tokenId)[0]*value/10000); } /** * Set royalties for a token */ function _setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) internal { require(receivers.length == basisPoints.length, "Invalid input"); uint256 totalBasisPoints; for (uint i = 0; i < basisPoints.length; i++) { totalBasisPoints += basisPoints[i]; } require(totalBasisPoints < 10000, "Invalid total royalties"); _tokenRoyaltyReceivers[tokenId] = receivers; _tokenRoyaltyBPS[tokenId] = basisPoints; emit RoyaltiesUpdated(tokenId, receivers, basisPoints); } /** * Set royalties for all tokens of an extension */ function _setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) internal { require(receivers.length == basisPoints.length, "Invalid input"); uint256 totalBasisPoints; for (uint i = 0; i < basisPoints.length; i++) { totalBasisPoints += basisPoints[i]; } require(totalBasisPoints < 10000, "Invalid total royalties"); _extensionRoyaltyReceivers[extension] = receivers; _extensionRoyaltyBPS[extension] = basisPoints; if (extension == address(this)) { emit DefaultRoyaltiesUpdated(receivers, basisPoints); } else { emit ExtensionRoyaltiesUpdated(extension, receivers, basisPoints); } } }
// 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 pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Core creator interface */ interface ICreatorCore is IERC165 { event ExtensionRegistered(address indexed extension, address indexed sender); event ExtensionUnregistered(address indexed extension, address indexed sender); event ExtensionBlacklisted(address indexed extension, address indexed sender); event MintPermissionsUpdated(address indexed extension, address indexed permissions, address indexed sender); event RoyaltiesUpdated(uint256 indexed tokenId, address payable[] receivers, uint256[] basisPoints); event DefaultRoyaltiesUpdated(address payable[] receivers, uint256[] basisPoints); event ExtensionRoyaltiesUpdated(address indexed extension, address payable[] receivers, uint256[] basisPoints); event ExtensionApproveTransferUpdated(address indexed extension, bool enabled); /** * @dev gets address of all extensions */ function getExtensions() external view returns (address[] memory); /** * @dev add an extension. Can only be called by contract owner or admin. * extension address must point to a contract implementing ICreatorExtension. * Returns True if newly added, False if already added. */ function registerExtension(address extension, string calldata baseURI) external; /** * @dev add an extension. Can only be called by contract owner or admin. * extension address must point to a contract implementing ICreatorExtension. * Returns True if newly added, False if already added. */ function registerExtension(address extension, string calldata baseURI, bool baseURIIdentical) external; /** * @dev add an extension. Can only be called by contract owner or admin. * Returns True if removed, False if already removed. */ function unregisterExtension(address extension) external; /** * @dev blacklist an extension. Can only be called by contract owner or admin. * This function will destroy all ability to reference the metadata of any tokens created * by the specified extension. It will also unregister the extension if needed. * Returns True if removed, False if already removed. */ function blacklistExtension(address extension) external; /** * @dev set the baseTokenURI of an extension. Can only be called by extension. */ function setBaseTokenURIExtension(string calldata uri) external; /** * @dev set the baseTokenURI of an extension. Can only be called by extension. * For tokens with no uri configured, tokenURI will return "uri+tokenId" */ function setBaseTokenURIExtension(string calldata uri, bool identical) external; /** * @dev set the common prefix of an extension. Can only be called by extension. * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI" * Useful if you want to use ipfs/arweave */ function setTokenURIPrefixExtension(string calldata prefix) external; /** * @dev set the tokenURI of a token extension. Can only be called by extension that minted token. */ function setTokenURIExtension(uint256 tokenId, string calldata uri) external; /** * @dev set the tokenURI of a token extension for multiple tokens. Can only be called by extension that minted token. */ function setTokenURIExtension(uint256[] memory tokenId, string[] calldata uri) external; /** * @dev set the baseTokenURI for tokens with no extension. Can only be called by owner/admin. * For tokens with no uri configured, tokenURI will return "uri+tokenId" */ function setBaseTokenURI(string calldata uri) external; /** * @dev set the common prefix for tokens with no extension. Can only be called by owner/admin. * If configured, and a token has a uri set, tokenURI will return "prefixURI+tokenURI" * Useful if you want to use ipfs/arweave */ function setTokenURIPrefix(string calldata prefix) external; /** * @dev set the tokenURI of a token with no extension. Can only be called by owner/admin. */ function setTokenURI(uint256 tokenId, string calldata uri) external; /** * @dev set the tokenURI of multiple tokens with no extension. Can only be called by owner/admin. */ function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external; /** * @dev set a permissions contract for an extension. Used to control minting. */ function setMintPermissions(address extension, address permissions) external; /** * @dev Configure so transfers of tokens created by the caller (must be extension) gets approval * from the extension before transferring */ function setApproveTransferExtension(bool enabled) external; /** * @dev get the extension of a given token */ function tokenExtension(uint256 tokenId) external view returns (address); /** * @dev Set default royalties */ function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of a token */ function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of an extension */ function setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Get royalites of a token. Returns list of receivers and basisPoints */ function getRoyalties(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); // Royalty support for various other standards function getFeeRecipients(uint256 tokenId) external view returns (address payable[] memory); function getFeeBps(uint256 tokenId) external view returns (uint[] memory); function getFees(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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/introspection/ERC165Checker.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","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":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivationTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri1","type":"string"},{"internalType":"string","name":"uri2","type":"string"},{"internalType":"string","name":"uri3","type":"string"},{"internalType":"string","name":"uri4","type":"string"}],"name":"setAssetURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"theContract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setBurnableContractAndToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sicilianKissContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600467ffffffffffffffff81111562000022576200002162000443565b5b6040519080825280602002602001820160405280156200005757816020015b6060815260200190600190039081620000415790505b50600790805190602001906200006f929190620001dc565b5060006009553480156200008257600080fd5b5060405162003403380380620034038339818101604052810190620000a8919062000378565b620000c8620000bc6200011060201b60201c565b6200011860201b60201c565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000491565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562000230579160200282015b828111156200022f5782518290805190602001906200021e92919062000243565b5091602001919060010190620001fd565b5b5090506200023f9190620002d4565b5090565b8280546200025190620003de565b90600052602060002090601f016020900481019282620002755760008555620002c1565b82601f106200029057805160ff1916838001178555620002c1565b82800160010185558215620002c1579182015b82811115620002c0578251825591602001919060010190620002a3565b5b509050620002d09190620002fc565b5090565b5b80821115620002f85760008181620002ee91906200031b565b50600101620002d5565b5090565b5b8082111562000317576000816000905550600101620002fd565b5090565b5080546200032990620003de565b6000825580601f106200033d57506200035e565b601f0160209004906000526020600020908101906200035d9190620002fc565b5b50565b600081519050620003728162000477565b92915050565b60006020828403121562000391576200039062000472565b5b6000620003a18482850162000361565b91505092915050565b6000620003b782620003be565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620003f757607f821691505b602082108114156200040e576200040d62000414565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6200048281620003aa565b81146200048e57600080fd5b50565b612f6280620004a16000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638129fc1c11610097578063b1d33c7e11610066578063b1d33c7e1461024d578063e9dc63751461026b578063f2fde38b1461029b578063fca72d2f146102b757610100565b80638129fc1c146101eb578063813aea68146101f55780638da5cb5b14610213578063a0712d681461023157610100565b806331ae450b116100d357806331ae450b1461019d5780636d73e669146101bb578063715018a6146101d7578063760a8c2a146101e157610100565b806301adc9f41461010557806301ffc9a71461012157806324d7806c146101515780632d34567014610181575b600080fd5b61011f600480360381019061011a919061204a565b6102d3565b005b61013b6004803603810190610136919061201d565b610439565b6040516101489190612677565b60405180910390f35b61016b60048036038101906101669190611f3a565b6104c3565b6040516101789190612677565b60405180910390f35b61019b60048036038101906101969190611f3a565b61051d565b005b6101a5610625565b6040516101b291906125bd565b60405180910390f35b6101d560048036038101906101d09190611f3a565b610707565b005b6101df61080e565b005b6101e9610896565b005b6101f361093d565b005b6101fd610d9c565b60405161020a919061250b565b60405180910390f35b61021b610dc2565b604051610228919061250b565b60405180910390f35b61024b60048036038101906102469190612121565b610deb565b005b610255611547565b60405161026291906127f4565b60405180910390f35b61028560048036038101906102809190611f67565b61154d565b6040516102929190612692565b60405180910390f35b6102b560048036038101906102b09190611f3a565b6116fa565b005b6102d160048036038101906102cc9190611f67565b6117f2565b005b3373ffffffffffffffffffffffffffffffffffffffff166102f2610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061032457506103233360016118ce90919063ffffffff16565b5b610363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035a906127b4565b60405180910390fd5b83600760008154811061037957610378612c3c565b5b906000526020600020019080519060200190610396929190611d20565b508260076001815481106103ad576103ac612c3c565b5b9060005260206000200190805190602001906103ca929190611d20565b508160076002815481106103e1576103e0612c3c565b5b9060005260206000200190805190602001906103fe929190611d20565b5080600760038154811061041557610414612c3c565b5b906000526020600020019080519060200190610432929190611d20565b5050505050565b60007fe9dc6375000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104ac57506104ab826118fe565b5b806104bc57506104bb826118fe565b5b9050919050565b60008173ffffffffffffffffffffffffffffffffffffffff166104e4610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061051657506105158260016118ce90919063ffffffff16565b5b9050919050565b610525611978565b73ffffffffffffffffffffffffffffffffffffffff16610543610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614610599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059090612794565b60405180910390fd5b6105ad8160016118ce90919063ffffffff16565b15610622573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d560405160405180910390a361062081600161198090919063ffffffff16565b505b50565b606061063160016119b0565b67ffffffffffffffff81111561064a57610649612c6b565b5b6040519080825280602002602001820160405280156106785781602001602082028036833780820191505090505b50905060005b61068860016119b0565b811015610703576106a38160016119c590919063ffffffff16565b8282815181106106b6576106b5612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080806106fb90612b66565b91505061067e565b5090565b61070f611978565b73ffffffffffffffffffffffffffffffffffffffff1661072d610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614610783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077a90612794565b60405180910390fd5b6107978160016118ce90919063ffffffff16565b61080b573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb160405160405180910390a36108098160016119df90919063ffffffff16565b505b50565b610816611978565b73ffffffffffffffffffffffffffffffffffffffff16610834610dc2565b73ffffffffffffffffffffffffffffffffffffffff161461088a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088190612794565b60405180910390fd5b6108946000611a0f565b565b3373ffffffffffffffffffffffffffffffffffffffff166108b5610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614806108e757506108e63360016118ce90919063ffffffff16565b5b610926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091d906127b4565b60405180910390fd5b62015180426109359190612969565b600981905550565b3373ffffffffffffffffffffffffffffffffffffffff1661095c610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061098e575061098d3360016118ce90919063ffffffff16565b5b6109cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c4906127b4565b60405180910390fd5b600660009054906101000a900460ff1615610a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a14906127d4565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055506000600167ffffffffffffffff811115610a5557610a54612c6b565b5b604051908082528060200260200182016040528015610a835781602001602082028036833780820191505090505b5090503381600081518110610a9b57610a9a612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600467ffffffffffffffff811115610af257610af1612c6b565b5b604051908082528060200260200182016040528015610b205781602001602082028036833780820191505090505b509050600181600081518110610b3957610b38612c3c565b5b602002602001018181525050600181600181518110610b5b57610b5a612c3c565b5b602002602001018181525050600181600281518110610b7d57610b7c612c3c565b5b602002602001018181525050600181600381518110610b9f57610b9e612c3c565b5b6020026020010181815250506000600467ffffffffffffffff811115610bc857610bc7612c6b565b5b604051908082528060200260200182016040528015610bfb57816020015b6060815260200190600190039081610be65790505b5090506040518060200160405280600081525081600081518110610c2257610c21612c3c565b5b60200260200101819052506040518060200160405280600081525081600181518110610c5157610c50612c3c565b5b60200260200101819052506040518060200160405280600081525081600281518110610c8057610c7f612c3c565b5b60200260200101819052506040518060200160405280600081525081600381518110610caf57610cae612c3c565b5b60200260200101819052506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c6e84728585856040518463ffffffff1660e01b8152600401610d1b939291906125df565b600060405180830381600087803b158015610d3557600080fd5b505af1158015610d49573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d729190611fa7565b905080600081518110610d8857610d87612c3c565b5b602002602001015160058190555050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80600a610df891906129bf565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336004546040518363ffffffff1660e01b8152600401610e56929190612594565b60206040518083038186803b158015610e6e57600080fd5b505afa158015610e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea6919061214e565b1015610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede906126b4565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610f44929190612526565b60206040518083038186803b158015610f5c57600080fd5b505afa158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190611ff0565b610fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fca906126d4565b60405180910390fd5b6009544210611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e90612754565b60405180910390fd5b6000811161105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190612774565b60405180910390fd5b6000600167ffffffffffffffff81111561107757611076612c6b565b5b6040519080825280602002602001820160405280156110a55781602001602082028036833780820191505090505b509050600454816000815181106110bf576110be612c3c565b5b6020026020010181815250506000600167ffffffffffffffff8111156110e8576110e7612c6b565b5b6040519080825280602002602001820160405280156111165781602001602082028036833780820191505090505b50905082600a61112691906129bf565b8160008151811061113a57611139612c3c565b5b602002602001018181525050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633db0f8ab3384846040518463ffffffff1660e01b81526004016111a59392919061254f565b600060405180830381600087803b1580156111bf57600080fd5b505af19250505080156111d0575060015b611241573d8060008114611200576040519150601f19603f3d011682016040523d82523d6000602084013e611205565b606091505b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612714565b60405180910390fd5b6000600167ffffffffffffffff81111561125e5761125d612c6b565b5b60405190808252806020026020018201604052801561128c5781602001602082028036833780820191505090505b50905033816000815181106112a4576112a3612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600467ffffffffffffffff8111156112fb576112fa612c6b565b5b6040519080825280602002602001820160405280156113295781602001602082028036833780820191505090505b509050848160008151811061134157611340612c3c565b5b602002602001018181525050848160018151811061136257611361612c3c565b5b602002602001018181525050848160028151811061138357611382612c3c565b5b60200260200101818152505084816003815181106113a4576113a3612c3c565b5b6020026020010181815250506000600467ffffffffffffffff8111156113cd576113cc612c6b565b5b6040519080825280602002602001820160405280156113fb5781602001602082028036833780820191505090505b5090506005548160008151811061141557611414612c3c565b5b60200260200101818152505060016005546114309190612969565b8160018151811061144457611443612c3c565b5b602002602001018181525050600260055461145f9190612969565b8160028151811061147357611472612c3c565b5b602002602001018181525050600360055461148e9190612969565b816003815181106114a2576114a1612c3c565b5b602002602001018181525050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6c884dc8483856040518463ffffffff1660e01b815260040161150d9392919061262b565b600060405180830381600087803b15801561152757600080fd5b505af115801561153b573d6000803e3d6000fd5b50505050505050505050565b60095481565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690612734565b60405180910390fd5b60055482101580156115ff575060036005546115fb9190612969565b8211155b61163e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163590612734565b60405180910390fd5b60076005548361164e9190612a19565b8154811061165f5761165e612c3c565b5b90600052602060002001805461167490612b03565b80601f01602080910402602001604051908101604052809291908181526020018280546116a090612b03565b80156116ed5780601f106116c2576101008083540402835291602001916116ed565b820191906000526020600020905b8154815290600101906020018083116116d057829003601f168201915b5050505050905092915050565b611702611978565b73ffffffffffffffffffffffffffffffffffffffff16611720610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90612794565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dd906126f4565b60405180910390fd5b6117ef81611a0f565b50565b3373ffffffffffffffffffffffffffffffffffffffff16611811610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061184357506118423360016118ce90919063ffffffff16565b5b611882576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611879906127b4565b60405180910390fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806004819055505050565b60006118f6836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611ad3565b905092915050565b60007f553e757e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611971575061197082611af6565b5b9050919050565b600033905090565b60006119a8836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611b60565b905092915050565b60006119be82600001611c74565b9050919050565b60006119d48360000183611c85565b60001c905092915050565b6000611a07836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611cb0565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008083600101600084815260200190815260200160002054905060008114611c68576000600182611b929190612a19565b9050600060018660000180549050611baa9190612a19565b9050818114611c19576000866000018281548110611bcb57611bca612c3c565b5b9060005260206000200154905080876000018481548110611bef57611bee612c3c565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611c2d57611c2c612c0d565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611c6e565b60009150505b92915050565b600081600001805490509050919050565b6000826000018281548110611c9d57611c9c612c3c565b5b9060005260206000200154905092915050565b6000611cbc8383611ad3565b611d15578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611d1a565b600090505b92915050565b828054611d2c90612b03565b90600052602060002090601f016020900481019282611d4e5760008555611d95565b82601f10611d6757805160ff1916838001178555611d95565b82800160010185558215611d95579182015b82811115611d94578251825591602001919060010190611d79565b5b509050611da29190611da6565b5090565b5b80821115611dbf576000816000905550600101611da7565b5090565b6000611dd6611dd184612834565b61280f565b90508083825260208201905082856020860282011115611df957611df8612c9f565b5b60005b85811015611e295781611e0f8882611f25565b845260208401935060208301925050600181019050611dfc565b5050509392505050565b6000611e46611e4184612860565b61280f565b905082815260208101848484011115611e6257611e61612ca4565b5b611e6d848285612ac1565b509392505050565b600081359050611e8481612ed0565b92915050565b600082601f830112611e9f57611e9e612c9a565b5b8151611eaf848260208601611dc3565b91505092915050565b600081519050611ec781612ee7565b92915050565b600081359050611edc81612efe565b92915050565b600082601f830112611ef757611ef6612c9a565b5b8135611f07848260208601611e33565b91505092915050565b600081359050611f1f81612f15565b92915050565b600081519050611f3481612f15565b92915050565b600060208284031215611f5057611f4f612cae565b5b6000611f5e84828501611e75565b91505092915050565b60008060408385031215611f7e57611f7d612cae565b5b6000611f8c85828601611e75565b9250506020611f9d85828601611f10565b9150509250929050565b600060208284031215611fbd57611fbc612cae565b5b600082015167ffffffffffffffff811115611fdb57611fda612ca9565b5b611fe784828501611e8a565b91505092915050565b60006020828403121561200657612005612cae565b5b600061201484828501611eb8565b91505092915050565b60006020828403121561203357612032612cae565b5b600061204184828501611ecd565b91505092915050565b6000806000806080858703121561206457612063612cae565b5b600085013567ffffffffffffffff81111561208257612081612ca9565b5b61208e87828801611ee2565b945050602085013567ffffffffffffffff8111156120af576120ae612ca9565b5b6120bb87828801611ee2565b935050604085013567ffffffffffffffff8111156120dc576120db612ca9565b5b6120e887828801611ee2565b925050606085013567ffffffffffffffff81111561210957612108612ca9565b5b61211587828801611ee2565b91505092959194509250565b60006020828403121561213757612136612cae565b5b600061214584828501611f10565b91505092915050565b60006020828403121561216457612163612cae565b5b600061217284828501611f25565b91505092915050565b600061218783836121bf565b60208301905092915050565b600061219f838361231d565b905092915050565b60006121b383836124ed565b60208301905092915050565b6121c881612a4d565b82525050565b6121d781612a4d565b82525050565b60006121e8826128c1565b6121f28185612914565b93506121fd83612891565b8060005b8381101561222e578151612215888261217b565b9750612220836128ed565b925050600181019050612201565b5085935050505092915050565b6000612246826128cc565b6122508185612925565b935083602082028501612262856128a1565b8060005b8581101561229e578484038952815161227f8582612193565b945061228a836128fa565b925060208a01995050600181019050612266565b50829750879550505050505092915050565b60006122bb826128d7565b6122c58185612936565b93506122d0836128b1565b8060005b838110156123015781516122e888826121a7565b97506122f383612907565b9250506001810190506122d4565b5085935050505092915050565b61231781612a5f565b82525050565b6000612328826128e2565b6123328185612947565b9350612342818560208601612ad0565b61234b81612cb3565b840191505092915050565b6000612361826128e2565b61236b8185612958565b935061237b818560208601612ad0565b61238481612cb3565b840191505092915050565b600061239c601383612958565b91506123a782612cc4565b602082019050919050565b60006123bf603783612958565b91506123ca82612ced565b604082019050919050565b60006123e2602683612958565b91506123ed82612d3c565b604082019050919050565b6000612405601883612958565b915061241082612d8b565b602082019050919050565b6000612428600d83612958565b915061243382612db4565b602082019050919050565b600061244b600883612958565b915061245682612ddd565b602082019050919050565b600061246e600483612958565b915061247982612e06565b602082019050919050565b6000612491602083612958565b915061249c82612e2f565b602082019050919050565b60006124b4602483612958565b91506124bf82612e58565b604082019050919050565b60006124d7600b83612958565b91506124e282612ea7565b602082019050919050565b6124f681612ab7565b82525050565b61250581612ab7565b82525050565b600060208201905061252060008301846121ce565b92915050565b600060408201905061253b60008301856121ce565b61254860208301846121ce565b9392505050565b600060608201905061256460008301866121ce565b818103602083015261257681856122b0565b9050818103604083015261258a81846122b0565b9050949350505050565b60006040820190506125a960008301856121ce565b6125b660208301846124fc565b9392505050565b600060208201905081810360008301526125d781846121dd565b905092915050565b600060608201905081810360008301526125f981866121dd565b9050818103602083015261260d81856122b0565b90508181036040830152612621818461223b565b9050949350505050565b6000606082019050818103600083015261264581866121dd565b9050818103602083015261265981856122b0565b9050818103604083015261266d81846122b0565b9050949350505050565b600060208201905061268c600083018461230e565b92915050565b600060208201905081810360008301526126ac8184612356565b905092915050565b600060208201905081810360008301526126cd8161238f565b9050919050565b600060208201905081810360008301526126ed816123b2565b9050919050565b6000602082019050818103600083015261270d816123d5565b9050919050565b6000602082019050818103600083015261272d816123f8565b9050919050565b6000602082019050818103600083015261274d8161241b565b9050919050565b6000602082019050818103600083015261276d8161243e565b9050919050565b6000602082019050818103600083015261278d81612461565b9050919050565b600060208201905081810360008301526127ad81612484565b9050919050565b600060208201905081810360008301526127cd816124a7565b9050919050565b600060208201905081810360008301526127ed816124ca565b9050919050565b600060208201905061280960008301846124fc565b92915050565b600061281961282a565b90506128258282612b35565b919050565b6000604051905090565b600067ffffffffffffffff82111561284f5761284e612c6b565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561287b5761287a612c6b565b5b61288482612cb3565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061297482612ab7565b915061297f83612ab7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156129b4576129b3612baf565b5b828201905092915050565b60006129ca82612ab7565b91506129d583612ab7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612a0e57612a0d612baf565b5b828202905092915050565b6000612a2482612ab7565b9150612a2f83612ab7565b925082821015612a4257612a41612baf565b5b828203905092915050565b6000612a5882612a97565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612aee578082015181840152602081019050612ad3565b83811115612afd576000848401525b50505050565b60006002820490506001821680612b1b57607f821691505b60208210811415612b2f57612b2e612bde565b5b50919050565b612b3e82612cb3565b810181811067ffffffffffffffff82111715612b5d57612b5c612c6b565b5b80604052505050565b6000612b7182612ab7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ba457612ba3612baf565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d757374206f776e20313078204b697373657300000000000000000000000000600082015250565b7f4275726e52656465656d3a20436f6e7472616374206d7573742062652067697660008201527f656e20617070726f76616c20746f206275726e204e4654000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4275726e52656465656d3a204275726e206661696c7572650000000000000000600082015250565b7f496e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b7f496e616374697665000000000000000000000000000000000000000000000000600082015250565b7f4e6f6e6500000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160008201527f646d696e00000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a6564000000000000000000000000000000000000000000600082015250565b612ed981612a4d565b8114612ee457600080fd5b50565b612ef081612a5f565b8114612efb57600080fd5b50565b612f0781612a6b565b8114612f1257600080fd5b50565b612f1e81612ab7565b8114612f2957600080fd5b5056fea2646970667358221220713755e9d853675255073286551673f057d0f29567f0b1bd63433ae601bcdc6d64736f6c634300080700330000000000000000000000008887ce34f6f1a4de4e8eb2a9195eeb261c413365
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638129fc1c11610097578063b1d33c7e11610066578063b1d33c7e1461024d578063e9dc63751461026b578063f2fde38b1461029b578063fca72d2f146102b757610100565b80638129fc1c146101eb578063813aea68146101f55780638da5cb5b14610213578063a0712d681461023157610100565b806331ae450b116100d357806331ae450b1461019d5780636d73e669146101bb578063715018a6146101d7578063760a8c2a146101e157610100565b806301adc9f41461010557806301ffc9a71461012157806324d7806c146101515780632d34567014610181575b600080fd5b61011f600480360381019061011a919061204a565b6102d3565b005b61013b6004803603810190610136919061201d565b610439565b6040516101489190612677565b60405180910390f35b61016b60048036038101906101669190611f3a565b6104c3565b6040516101789190612677565b60405180910390f35b61019b60048036038101906101969190611f3a565b61051d565b005b6101a5610625565b6040516101b291906125bd565b60405180910390f35b6101d560048036038101906101d09190611f3a565b610707565b005b6101df61080e565b005b6101e9610896565b005b6101f361093d565b005b6101fd610d9c565b60405161020a919061250b565b60405180910390f35b61021b610dc2565b604051610228919061250b565b60405180910390f35b61024b60048036038101906102469190612121565b610deb565b005b610255611547565b60405161026291906127f4565b60405180910390f35b61028560048036038101906102809190611f67565b61154d565b6040516102929190612692565b60405180910390f35b6102b560048036038101906102b09190611f3a565b6116fa565b005b6102d160048036038101906102cc9190611f67565b6117f2565b005b3373ffffffffffffffffffffffffffffffffffffffff166102f2610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061032457506103233360016118ce90919063ffffffff16565b5b610363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161035a906127b4565b60405180910390fd5b83600760008154811061037957610378612c3c565b5b906000526020600020019080519060200190610396929190611d20565b508260076001815481106103ad576103ac612c3c565b5b9060005260206000200190805190602001906103ca929190611d20565b508160076002815481106103e1576103e0612c3c565b5b9060005260206000200190805190602001906103fe929190611d20565b5080600760038154811061041557610414612c3c565b5b906000526020600020019080519060200190610432929190611d20565b5050505050565b60007fe9dc6375000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104ac57506104ab826118fe565b5b806104bc57506104bb826118fe565b5b9050919050565b60008173ffffffffffffffffffffffffffffffffffffffff166104e4610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061051657506105158260016118ce90919063ffffffff16565b5b9050919050565b610525611978565b73ffffffffffffffffffffffffffffffffffffffff16610543610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614610599576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059090612794565b60405180910390fd5b6105ad8160016118ce90919063ffffffff16565b15610622573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d560405160405180910390a361062081600161198090919063ffffffff16565b505b50565b606061063160016119b0565b67ffffffffffffffff81111561064a57610649612c6b565b5b6040519080825280602002602001820160405280156106785781602001602082028036833780820191505090505b50905060005b61068860016119b0565b811015610703576106a38160016119c590919063ffffffff16565b8282815181106106b6576106b5612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080806106fb90612b66565b91505061067e565b5090565b61070f611978565b73ffffffffffffffffffffffffffffffffffffffff1661072d610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614610783576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077a90612794565b60405180910390fd5b6107978160016118ce90919063ffffffff16565b61080b573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb160405160405180910390a36108098160016119df90919063ffffffff16565b505b50565b610816611978565b73ffffffffffffffffffffffffffffffffffffffff16610834610dc2565b73ffffffffffffffffffffffffffffffffffffffff161461088a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161088190612794565b60405180910390fd5b6108946000611a0f565b565b3373ffffffffffffffffffffffffffffffffffffffff166108b5610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614806108e757506108e63360016118ce90919063ffffffff16565b5b610926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091d906127b4565b60405180910390fd5b62015180426109359190612969565b600981905550565b3373ffffffffffffffffffffffffffffffffffffffff1661095c610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061098e575061098d3360016118ce90919063ffffffff16565b5b6109cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c4906127b4565b60405180910390fd5b600660009054906101000a900460ff1615610a1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a14906127d4565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055506000600167ffffffffffffffff811115610a5557610a54612c6b565b5b604051908082528060200260200182016040528015610a835781602001602082028036833780820191505090505b5090503381600081518110610a9b57610a9a612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600467ffffffffffffffff811115610af257610af1612c6b565b5b604051908082528060200260200182016040528015610b205781602001602082028036833780820191505090505b509050600181600081518110610b3957610b38612c3c565b5b602002602001018181525050600181600181518110610b5b57610b5a612c3c565b5b602002602001018181525050600181600281518110610b7d57610b7c612c3c565b5b602002602001018181525050600181600381518110610b9f57610b9e612c3c565b5b6020026020010181815250506000600467ffffffffffffffff811115610bc857610bc7612c6b565b5b604051908082528060200260200182016040528015610bfb57816020015b6060815260200190600190039081610be65790505b5090506040518060200160405280600081525081600081518110610c2257610c21612c3c565b5b60200260200101819052506040518060200160405280600081525081600181518110610c5157610c50612c3c565b5b60200260200101819052506040518060200160405280600081525081600281518110610c8057610c7f612c3c565b5b60200260200101819052506040518060200160405280600081525081600381518110610caf57610cae612c3c565b5b60200260200101819052506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638c6e84728585856040518463ffffffff1660e01b8152600401610d1b939291906125df565b600060405180830381600087803b158015610d3557600080fd5b505af1158015610d49573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d729190611fa7565b905080600081518110610d8857610d87612c3c565b5b602002602001015160058190555050505050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b80600a610df891906129bf565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336004546040518363ffffffff1660e01b8152600401610e56929190612594565b60206040518083038186803b158015610e6e57600080fd5b505afa158015610e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea6919061214e565b1015610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede906126b4565b60405180910390fd5b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401610f44929190612526565b60206040518083038186803b158015610f5c57600080fd5b505afa158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190611ff0565b610fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fca906126d4565b60405180910390fd5b6009544210611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e90612754565b60405180910390fd5b6000811161105a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105190612774565b60405180910390fd5b6000600167ffffffffffffffff81111561107757611076612c6b565b5b6040519080825280602002602001820160405280156110a55781602001602082028036833780820191505090505b509050600454816000815181106110bf576110be612c3c565b5b6020026020010181815250506000600167ffffffffffffffff8111156110e8576110e7612c6b565b5b6040519080825280602002602001820160405280156111165781602001602082028036833780820191505090505b50905082600a61112691906129bf565b8160008151811061113a57611139612c3c565b5b602002602001018181525050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633db0f8ab3384846040518463ffffffff1660e01b81526004016111a59392919061254f565b600060405180830381600087803b1580156111bf57600080fd5b505af19250505080156111d0575060015b611241573d8060008114611200576040519150601f19603f3d011682016040523d82523d6000602084013e611205565b606091505b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612714565b60405180910390fd5b6000600167ffffffffffffffff81111561125e5761125d612c6b565b5b60405190808252806020026020018201604052801561128c5781602001602082028036833780820191505090505b50905033816000815181106112a4576112a3612c3c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600467ffffffffffffffff8111156112fb576112fa612c6b565b5b6040519080825280602002602001820160405280156113295781602001602082028036833780820191505090505b509050848160008151811061134157611340612c3c565b5b602002602001018181525050848160018151811061136257611361612c3c565b5b602002602001018181525050848160028151811061138357611382612c3c565b5b60200260200101818152505084816003815181106113a4576113a3612c3c565b5b6020026020010181815250506000600467ffffffffffffffff8111156113cd576113cc612c6b565b5b6040519080825280602002602001820160405280156113fb5781602001602082028036833780820191505090505b5090506005548160008151811061141557611414612c3c565b5b60200260200101818152505060016005546114309190612969565b8160018151811061144457611443612c3c565b5b602002602001018181525050600260055461145f9190612969565b8160028151811061147357611472612c3c565b5b602002602001018181525050600360055461148e9190612969565b816003815181106114a2576114a1612c3c565b5b602002602001018181525050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6c884dc8483856040518463ffffffff1660e01b815260040161150d9392919061262b565b600060405180830381600087803b15801561152757600080fd5b505af115801561153b573d6000803e3d6000fd5b50505050505050505050565b60095481565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690612734565b60405180910390fd5b60055482101580156115ff575060036005546115fb9190612969565b8211155b61163e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163590612734565b60405180910390fd5b60076005548361164e9190612a19565b8154811061165f5761165e612c3c565b5b90600052602060002001805461167490612b03565b80601f01602080910402602001604051908101604052809291908181526020018280546116a090612b03565b80156116ed5780601f106116c2576101008083540402835291602001916116ed565b820191906000526020600020905b8154815290600101906020018083116116d057829003601f168201915b5050505050905092915050565b611702611978565b73ffffffffffffffffffffffffffffffffffffffff16611720610dc2565b73ffffffffffffffffffffffffffffffffffffffff1614611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176d90612794565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dd906126f4565b60405180910390fd5b6117ef81611a0f565b50565b3373ffffffffffffffffffffffffffffffffffffffff16611811610dc2565b73ffffffffffffffffffffffffffffffffffffffff16148061184357506118423360016118ce90919063ffffffff16565b5b611882576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611879906127b4565b60405180910390fd5b81600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806004819055505050565b60006118f6836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611ad3565b905092915050565b60007f553e757e000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611971575061197082611af6565b5b9050919050565b600033905090565b60006119a8836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611b60565b905092915050565b60006119be82600001611c74565b9050919050565b60006119d48360000183611c85565b60001c905092915050565b6000611a07836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611cb0565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008083600101600084815260200190815260200160002054905060008114611c68576000600182611b929190612a19565b9050600060018660000180549050611baa9190612a19565b9050818114611c19576000866000018281548110611bcb57611bca612c3c565b5b9060005260206000200154905080876000018481548110611bef57611bee612c3c565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611c2d57611c2c612c0d565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611c6e565b60009150505b92915050565b600081600001805490509050919050565b6000826000018281548110611c9d57611c9c612c3c565b5b9060005260206000200154905092915050565b6000611cbc8383611ad3565b611d15578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611d1a565b600090505b92915050565b828054611d2c90612b03565b90600052602060002090601f016020900481019282611d4e5760008555611d95565b82601f10611d6757805160ff1916838001178555611d95565b82800160010185558215611d95579182015b82811115611d94578251825591602001919060010190611d79565b5b509050611da29190611da6565b5090565b5b80821115611dbf576000816000905550600101611da7565b5090565b6000611dd6611dd184612834565b61280f565b90508083825260208201905082856020860282011115611df957611df8612c9f565b5b60005b85811015611e295781611e0f8882611f25565b845260208401935060208301925050600181019050611dfc565b5050509392505050565b6000611e46611e4184612860565b61280f565b905082815260208101848484011115611e6257611e61612ca4565b5b611e6d848285612ac1565b509392505050565b600081359050611e8481612ed0565b92915050565b600082601f830112611e9f57611e9e612c9a565b5b8151611eaf848260208601611dc3565b91505092915050565b600081519050611ec781612ee7565b92915050565b600081359050611edc81612efe565b92915050565b600082601f830112611ef757611ef6612c9a565b5b8135611f07848260208601611e33565b91505092915050565b600081359050611f1f81612f15565b92915050565b600081519050611f3481612f15565b92915050565b600060208284031215611f5057611f4f612cae565b5b6000611f5e84828501611e75565b91505092915050565b60008060408385031215611f7e57611f7d612cae565b5b6000611f8c85828601611e75565b9250506020611f9d85828601611f10565b9150509250929050565b600060208284031215611fbd57611fbc612cae565b5b600082015167ffffffffffffffff811115611fdb57611fda612ca9565b5b611fe784828501611e8a565b91505092915050565b60006020828403121561200657612005612cae565b5b600061201484828501611eb8565b91505092915050565b60006020828403121561203357612032612cae565b5b600061204184828501611ecd565b91505092915050565b6000806000806080858703121561206457612063612cae565b5b600085013567ffffffffffffffff81111561208257612081612ca9565b5b61208e87828801611ee2565b945050602085013567ffffffffffffffff8111156120af576120ae612ca9565b5b6120bb87828801611ee2565b935050604085013567ffffffffffffffff8111156120dc576120db612ca9565b5b6120e887828801611ee2565b925050606085013567ffffffffffffffff81111561210957612108612ca9565b5b61211587828801611ee2565b91505092959194509250565b60006020828403121561213757612136612cae565b5b600061214584828501611f10565b91505092915050565b60006020828403121561216457612163612cae565b5b600061217284828501611f25565b91505092915050565b600061218783836121bf565b60208301905092915050565b600061219f838361231d565b905092915050565b60006121b383836124ed565b60208301905092915050565b6121c881612a4d565b82525050565b6121d781612a4d565b82525050565b60006121e8826128c1565b6121f28185612914565b93506121fd83612891565b8060005b8381101561222e578151612215888261217b565b9750612220836128ed565b925050600181019050612201565b5085935050505092915050565b6000612246826128cc565b6122508185612925565b935083602082028501612262856128a1565b8060005b8581101561229e578484038952815161227f8582612193565b945061228a836128fa565b925060208a01995050600181019050612266565b50829750879550505050505092915050565b60006122bb826128d7565b6122c58185612936565b93506122d0836128b1565b8060005b838110156123015781516122e888826121a7565b97506122f383612907565b9250506001810190506122d4565b5085935050505092915050565b61231781612a5f565b82525050565b6000612328826128e2565b6123328185612947565b9350612342818560208601612ad0565b61234b81612cb3565b840191505092915050565b6000612361826128e2565b61236b8185612958565b935061237b818560208601612ad0565b61238481612cb3565b840191505092915050565b600061239c601383612958565b91506123a782612cc4565b602082019050919050565b60006123bf603783612958565b91506123ca82612ced565b604082019050919050565b60006123e2602683612958565b91506123ed82612d3c565b604082019050919050565b6000612405601883612958565b915061241082612d8b565b602082019050919050565b6000612428600d83612958565b915061243382612db4565b602082019050919050565b600061244b600883612958565b915061245682612ddd565b602082019050919050565b600061246e600483612958565b915061247982612e06565b602082019050919050565b6000612491602083612958565b915061249c82612e2f565b602082019050919050565b60006124b4602483612958565b91506124bf82612e58565b604082019050919050565b60006124d7600b83612958565b91506124e282612ea7565b602082019050919050565b6124f681612ab7565b82525050565b61250581612ab7565b82525050565b600060208201905061252060008301846121ce565b92915050565b600060408201905061253b60008301856121ce565b61254860208301846121ce565b9392505050565b600060608201905061256460008301866121ce565b818103602083015261257681856122b0565b9050818103604083015261258a81846122b0565b9050949350505050565b60006040820190506125a960008301856121ce565b6125b660208301846124fc565b9392505050565b600060208201905081810360008301526125d781846121dd565b905092915050565b600060608201905081810360008301526125f981866121dd565b9050818103602083015261260d81856122b0565b90508181036040830152612621818461223b565b9050949350505050565b6000606082019050818103600083015261264581866121dd565b9050818103602083015261265981856122b0565b9050818103604083015261266d81846122b0565b9050949350505050565b600060208201905061268c600083018461230e565b92915050565b600060208201905081810360008301526126ac8184612356565b905092915050565b600060208201905081810360008301526126cd8161238f565b9050919050565b600060208201905081810360008301526126ed816123b2565b9050919050565b6000602082019050818103600083015261270d816123d5565b9050919050565b6000602082019050818103600083015261272d816123f8565b9050919050565b6000602082019050818103600083015261274d8161241b565b9050919050565b6000602082019050818103600083015261276d8161243e565b9050919050565b6000602082019050818103600083015261278d81612461565b9050919050565b600060208201905081810360008301526127ad81612484565b9050919050565b600060208201905081810360008301526127cd816124a7565b9050919050565b600060208201905081810360008301526127ed816124ca565b9050919050565b600060208201905061280960008301846124fc565b92915050565b600061281961282a565b90506128258282612b35565b919050565b6000604051905090565b600067ffffffffffffffff82111561284f5761284e612c6b565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561287b5761287a612c6b565b5b61288482612cb3565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061297482612ab7565b915061297f83612ab7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156129b4576129b3612baf565b5b828201905092915050565b60006129ca82612ab7565b91506129d583612ab7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612a0e57612a0d612baf565b5b828202905092915050565b6000612a2482612ab7565b9150612a2f83612ab7565b925082821015612a4257612a41612baf565b5b828203905092915050565b6000612a5882612a97565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612aee578082015181840152602081019050612ad3565b83811115612afd576000848401525b50505050565b60006002820490506001821680612b1b57607f821691505b60208210811415612b2f57612b2e612bde565b5b50919050565b612b3e82612cb3565b810181811067ffffffffffffffff82111715612b5d57612b5c612c6b565b5b80604052505050565b6000612b7182612ab7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ba457612ba3612baf565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d757374206f776e20313078204b697373657300000000000000000000000000600082015250565b7f4275726e52656465656d3a20436f6e7472616374206d7573742062652067697660008201527f656e20617070726f76616c20746f206275726e204e4654000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4275726e52656465656d3a204275726e206661696c7572650000000000000000600082015250565b7f496e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b7f496e616374697665000000000000000000000000000000000000000000000000600082015250565b7f4e6f6e6500000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160008201527f646d696e00000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a6564000000000000000000000000000000000000000000600082015250565b612ed981612a4d565b8114612ee457600080fd5b50565b612ef081612a5f565b8114612efb57600080fd5b50565b612f0781612a6b565b8114612f1257600080fd5b50565b612f1e81612ab7565b8114612f2957600080fd5b5056fea2646970667358221220713755e9d853675255073286551673f057d0f29567f0b1bd63433ae601bcdc6d64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008887ce34f6f1a4de4e8eb2a9195eeb261c413365
-----Decoded View---------------
Arg [0] : creator (address): 0x8887cE34F6f1a4de4E8EB2A9195eEb261C413365
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008887ce34f6f1a4de4e8eb2a9195eeb261c413365
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.