Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
DMC_Exoplanets
Compiler Version
v0.8.17+commit.8df45f5f
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.4; import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol"; // ░█▀▀▄ ▀█▀ ░█▀▀█ ▀█▀ ▀▀█▀▀ ─█▀▀█ ░█─── ░█▀▄▀█ ░█▀▀▀█ ░█▄─░█ ░█─▄▀ ░█▀▀▀ ░█──░█ ░█▀▀█ ░█▀▀█ ░█▀▀▀ ░█──░█ // ░█─░█ ░█─ ░█─▄▄ ░█─ ─░█── ░█▄▄█ ░█─── ░█░█░█ ░█──░█ ░█░█░█ ░█▀▄─ ░█▀▀▀ ░█▄▄▄█ ░█─── ░█▄▄▀ ░█▀▀▀ ░█░█░█ // ░█▄▄▀ ▄█▄ ░█▄▄█ ▄█▄ ─░█── ░█─░█ ░█▄▄█ ░█──░█ ░█▄▄▄█ ░█──▀█ ░█─░█ ░█▄▄▄ ──░█── ░█▄▄█ ░█─░█ ░█▄▄▄ ░█▄▀▄█ contract DMC_Exoplanets is Initializable, ERC1155Upgradeable, AccessControlUpgradeable, PausableUpgradeable, ERC1155SupplyUpgradeable, UUPSUpgradeable, IERC2981Upgradeable { bytes32 public constant URI_SETTER_ROLE = keccak256("URI_SETTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant UPGRADER_ROLE = keccak256("UPGRADER_ROLE"); uint256 private _nftCount; // This correspond to the ERC2981 variables struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; // This correspond to the Ownable variables address private _owner; function setURI(string memory newuri) public onlyRole(URI_SETTER_ROLE) { _setURI(newuri); } function pause() public onlyRole(PAUSER_ROLE) { _pause(); } function unpause() public onlyRole(PAUSER_ROLE) { _unpause(); } function mint(address account, uint256 id, uint256 amount, bytes memory data) public onlyRole(MINTER_ROLE) { _mint(account, id, amount, data); _nftCount++; } function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public onlyRole(MINTER_ROLE) { _mintBatch(to, ids, amounts, data); // Update nftCount; for ( uint256 i = 0; i < ids.length; i++){ _nftCount++; } } function mintNewTokens( uint256 quantities ) public onlyRole(MINTER_ROLE) { // @dev: Initialize variables uint256 startToken = _nftCount + 1 ; // @dev: Do all the check regarding if the function can be executed require(!exists(startToken), "The start token id is already minted !"); // @dev: Prepare variable to use the inhereted _mintBatch function from OpenZeppelin uint256[] memory tokenIds = new uint[](quantities); uint256[] memory tokenAmounts = new uint[](quantities); for( uint256 i = 0; i < quantities; i++ ){ tokenIds[i] = startToken + i; tokenAmounts[i] = 1; _nftCount++; } _mintBatch(msg.sender, tokenIds, tokenAmounts, ""); } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal whenNotPaused override(ERC1155Upgradeable, ERC1155SupplyUpgradeable) { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } function _authorizeUpgrade(address newImplementation) internal onlyRole(UPGRADER_ROLE) override {} // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC1155Upgradeable, AccessControlUpgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } function getCount() public view returns (uint256) { return _nftCount; } // The following part implement the ERC2981 standard. /** * @inheritdoc IERC2981Upgradeable */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } function deleteDefaultRoyalty() internal virtual onlyRole(DEFAULT_ADMIN_ROLE) { _deleteDefaultRoyalty(); } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual onlyRole(DEFAULT_ADMIN_ROLE) { _setTokenRoyalty(tokenId, receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } function resetTokenRoyalty(uint256 tokenId) internal virtual onlyRole(DEFAULT_ADMIN_ROLE) { _resetTokenRoyalty(tokenId); } // The following part implement the Ownable standard. event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 onlyRole(DEFAULT_ADMIN_ROLE) { 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[48] private __gap; }
// 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 IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-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 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155Upgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155SupplyUpgradeable is Initializable, ERC1155Upgradeable { function __ERC1155Supply_init() internal onlyInitializing { } function __ERC1155Supply_init_unchained() internal onlyInitializing { } mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155SupplyUpgradeable.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 supply = _totalSupply[id]; require(supply >= amount, "ERC1155: burn amount exceeds totalSupply"); unchecked { _totalSupply[id] = supply - amount; } } } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable { /** * @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 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `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 memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - 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[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../ERC1967/ERC1967UpgradeUpgradeable.sol"; import "./Initializable.sol"; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate that the this implementation remains valid after an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeTo(address newImplementation) external virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeaconUpgradeable.sol"; import "../../interfaces/draft-IERC1822Upgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/StorageSlotUpgradeable.sol"; import "../utils/Initializable.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ * * @custom:oz-upgrades-unsafe-allow delegatecall */ abstract contract ERC1967UpgradeUpgradeable is Initializable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall( address newImplementation, bytes memory data, bool forceCall ) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { _functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS( address newImplementation, bytes memory data, bool forceCall ) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Emitted when the beacon is upgraded. */ event BeaconUpgraded(address indexed beacon); /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall( address newBeacon, bytes memory data, bool forceCall ) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data); } } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) { require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed"); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981Upgradeable is IERC165Upgradeable { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(uint160(account), 20), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"URI_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantities","type":"uint256"}],"name":"mintNewTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff1681525034801561004357600080fd5b50608051615ebf6200007c60003960008181611029015281816110b7015281816112ff0152818161138d01526114510152615ebf6000f3fe60806040526004361061020e5760003560e01c80635c975abb11610118578063a87d942c116100a0578063e63ab1e91161006f578063e63ab1e91461078a578063e985e9c5146107b5578063f242432a146107f2578063f2fde38b1461081b578063f72c0d8b146108445761020e565b8063a87d942c146106ce578063bd85b039146106f9578063d539139314610736578063d547741f146107615761020e565b80638456cb59116100e75780638456cb59146105fb5780638da5cb5b1461061257806391d148541461063d578063a217fddf1461067a578063a22cb465146106a55761020e565b80635c975abb14610565578063715018a614610590578063731133e9146105a75780637f345710146105d05761020e565b80632f2ff15d1161019b5780633f4ba83a1161016a5780633f4ba83a1461048d5780634e1273f4146104a45780634f1ef286146104e15780634f558e79146104fd57806352d1902d1461053a5761020e565b80632f2ff15d146103e9578063310c62261461041257806336568abe1461043b5780633659cfe6146104645761020e565b80630e89341c116101e25780630e89341c146102df5780631f7fdffa1461031c578063248a9ca3146103455780632a55205a146103825780632eb2c2d6146103c05761020e565b8062fdd58e1461021357806301ffc9a71461025057806302fe53051461028d57806304634d8d146102b6575b600080fd5b34801561021f57600080fd5b5061023a60048036038101906102359190613a59565b61086f565b6040516102479190613aa8565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190613b1b565b610938565b6040516102849190613b63565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190613cc4565b6109b2565b005b3480156102c257600080fd5b506102dd60048036038101906102d89190613d51565b6109e9565b005b3480156102eb57600080fd5b5061030660048036038101906103019190613d91565b610a05565b6040516103139190613e3d565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e9190613fc8565b610a99565b005b34801561035157600080fd5b5061036c600480360381019061036791906140b9565b610b0f565b60405161037991906140f5565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190614110565b610b2f565b6040516103b792919061415f565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e29190614188565b610d1b565b005b3480156103f557600080fd5b50610410600480360381019061040b9190614257565b610dbc565b005b34801561041e57600080fd5b5061043960048036038101906104349190613d91565b610ddd565b005b34801561044757600080fd5b50610462600480360381019061045d9190614257565b610fa4565b005b34801561047057600080fd5b5061048b60048036038101906104869190614297565b611027565b005b34801561049957600080fd5b506104a26111af565b005b3480156104b057600080fd5b506104cb60048036038101906104c69190614387565b6111e4565b6040516104d891906144bd565b60405180910390f35b6104fb60048036038101906104f691906144df565b6112fd565b005b34801561050957600080fd5b50610524600480360381019061051f9190613d91565b611439565b6040516105319190613b63565b60405180910390f35b34801561054657600080fd5b5061054f61144d565b60405161055c91906140f5565b60405180910390f35b34801561057157600080fd5b5061057a611506565b6040516105879190613b63565b60405180910390f35b34801561059c57600080fd5b506105a561151d565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061453b565b611531565b005b3480156105dc57600080fd5b506105e5611587565b6040516105f291906140f5565b60405180910390f35b34801561060757600080fd5b506106106115ab565b005b34801561061e57600080fd5b506106276115e0565b60405161063491906145be565b60405180910390f35b34801561064957600080fd5b50610664600480360381019061065f9190614257565b61160b565b6040516106719190613b63565b60405180910390f35b34801561068657600080fd5b5061068f611676565b60405161069c91906140f5565b60405180910390f35b3480156106b157600080fd5b506106cc60048036038101906106c79190614605565b61167d565b005b3480156106da57600080fd5b506106e3611693565b6040516106f09190613aa8565b60405180910390f35b34801561070557600080fd5b50610720600480360381019061071b9190613d91565b61169e565b60405161072d9190613aa8565b60405180910390f35b34801561074257600080fd5b5061074b6116bb565b60405161075891906140f5565b60405180910390f35b34801561076d57600080fd5b5061078860048036038101906107839190614257565b6116df565b005b34801561079657600080fd5b5061079f611700565b6040516107ac91906140f5565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d79190614645565b611724565b6040516107e99190613b63565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614685565b6117b8565b005b34801561082757600080fd5b50610842600480360381019061083d9190614297565b611859565b005b34801561085057600080fd5b506108596118e2565b60405161086691906140f5565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d69061478e565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ab57506109aa82611906565b5b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6109dc81611980565b6109e582611994565b5050565b6000801b6109f681611980565b610a0083836119a7565b505050565b606060678054610a14906147dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a40906147dd565b8015610a8d5780601f10610a6257610100808354040283529160200191610a8d565b820191906000526020600020905b815481529060010190602001808311610a7057829003601f168201915b50505050509050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ac381611980565b610acf85858585611b3d565b60005b8451811015610b07576101916000815480929190610aef9061483d565b91905055508080610aff9061483d565b915050610ad2565b505050505050565b600060976000838152602001908152602001600020600101549050919050565b600080600061019360008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cc6576101926040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cd0611d6a565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610cfc9190614885565b610d0691906148f6565b90508160000151819350935050509250929050565b610d23611d74565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610d695750610d6885610d63611d74565b611724565b5b610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f90614999565b60405180910390fd5b610db58585858585611d7c565b5050505050565b610dc582610b0f565b610dce81611980565b610dd883836120a0565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e0781611980565b6000600161019154610e1991906149b9565b9050610e2481611439565b15610e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5b90614a5f565b60405180910390fd5b60008367ffffffffffffffff811115610e8057610e7f613b99565b5b604051908082528060200260200182016040528015610eae5781602001602082028036833780820191505090505b50905060008467ffffffffffffffff811115610ecd57610ecc613b99565b5b604051908082528060200260200182016040528015610efb5781602001602082028036833780820191505090505b50905060005b85811015610f81578084610f1591906149b9565b838281518110610f2857610f27614a7f565b5b6020026020010181815250506001828281518110610f4957610f48614a7f565b5b6020026020010181815250506101916000815480929190610f699061483d565b91905055508080610f799061483d565b915050610f01565b50610f9d33838360405180602001604052806000815250611b3d565b5050505050565b610fac611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101090614b20565b60405180910390fd5b6110238282612181565b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16036110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ac90614bb2565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166110f4612263565b73ffffffffffffffffffffffffffffffffffffffff161461114a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114190614c44565b60405180910390fd5b611153816122ba565b6111ac81600067ffffffffffffffff81111561117257611171613b99565b5b6040519080825280601f01601f1916602001820160405280156111a45781602001600182028036833780820191505090505b5060006122e8565b50565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6111d981611980565b6111e1612456565b50565b6060815183511461122a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122190614cd6565b60405180910390fd5b6000835167ffffffffffffffff81111561124757611246613b99565b5b6040519080825280602002602001820160405280156112755781602001602082028036833780820191505090505b50905060005b84518110156112f2576112c285828151811061129a57611299614a7f565b5b60200260200101518583815181106112b5576112b4614a7f565b5b602002602001015161086f565b8282815181106112d5576112d4614a7f565b5b602002602001018181525050806112eb9061483d565b905061127b565b508091505092915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138290614bb2565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166113ca612263565b73ffffffffffffffffffffffffffffffffffffffff1614611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790614c44565b60405180910390fd5b611429826122ba565b611435828260016122e8565b5050565b6000806114458361169e565b119050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146114dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d490614d68565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060c960009054906101000a900460ff16905090565b6115256124b9565b61152f6000612537565b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661155b81611980565b611567858585856125ff565b610191600081548092919061157b9061483d565b91905055505050505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6115d581611980565b6115dd6127b0565b50565b600061019460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61168f611688611d74565b8383612813565b5050565b600061019154905090565b600060fb6000838152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6116e882610b0f565b6116f181611980565b6116fb8383612181565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117c0611d74565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611806575061180585611800611d74565b611724565b5b611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c90614999565b60405180910390fd5b611852858585858561297f565b5050505050565b6000801b61186681611980565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cc90614dfa565b60405180910390fd5b6118de82612537565b5050565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e381565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611979575061197882612c1d565b5b9050919050565b6119918161198c611d74565b612cff565b50565b80606790816119a39190614fc6565b5050565b6119af611d6a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a049061510a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7390615176565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff1681525061019260008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390615208565b60405180910390fd5b8151835114611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be79061529a565b60405180910390fd5b6000611bfa611d74565b9050611c0b81600087878787612d9c565b60005b8451811015611cc557838181518110611c2a57611c29614a7f565b5b602002602001015160656000878481518110611c4957611c48614a7f565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cab91906149b9565b925050819055508080611cbd9061483d565b915050611c0e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d3d9291906152ba565b60405180910390a4611d5481600087878787612dba565b611d6381600087878787612dc2565b5050505050565b6000612710905090565b600033905090565b8151835114611dc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db79061529a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2690615363565b60405180910390fd5b6000611e39611d74565b9050611e49818787878787612d9c565b60005b8451811015611ffd576000858281518110611e6a57611e69614a7f565b5b602002602001015190506000858381518110611e8957611e88614a7f565b5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f22906153f5565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe291906149b9565b9250508190555050505080611ff69061483d565b9050611e4c565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120749291906152ba565b60405180910390a461208a818787878787612dba565b612098818787878787612dc2565b505050505050565b6120aa828261160b565b61217d5760016097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612122611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61218b828261160b565b1561225f5760006097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612204611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006122917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612f99565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e36122e481611980565b5050565b6123147f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612fa3565b60000160009054906101000a900460ff16156123385761233383612fad565b612451565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156123a057506040513d601f19601f8201168201806040525081019061239d919061542a565b60015b6123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d6906154c9565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b9061555b565b60405180910390fd5b50612450838383613066565b5b505050565b61245e613092565b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6124a2611d74565b6040516124af91906145be565b60405180910390a1565b6124c1611d74565b73ffffffffffffffffffffffffffffffffffffffff166124df6115e0565b73ffffffffffffffffffffffffffffffffffffffff1614612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252c906155c7565b60405180910390fd5b565b600061019460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508161019460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361266e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266590615208565b60405180910390fd5b6000612678611d74565b90506000612685856130db565b90506000612692856130db565b90506126a383600089858589612d9c565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461270391906149b9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516127819291906155e7565b60405180910390a461279883600089858589612dba565b6127a783600089898989613155565b50505050505050565b6127b861332c565b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127fc611d74565b60405161280991906145be565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890615682565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129729190613b63565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e590615363565b60405180910390fd5b60006129f8611d74565b90506000612a05856130db565b90506000612a12856130db565b9050612a22838989858589612d9c565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab1906153f5565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b7191906149b9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612bee9291906155e7565b60405180910390a4612c04848a8a86868a612dba565b612c12848a8a8a8a8a613155565b505050505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ce857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612cf85750612cf782613376565b5b9050919050565b612d09828261160b565b612d9857612d2e8173ffffffffffffffffffffffffffffffffffffffff1660146133e0565b612d3c8360001c60206133e0565b604051602001612d4d929190615776565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f9190613e3d565b60405180910390fd5b5050565b612da461332c565b612db286868686868661361c565b505050505050565b505050505050565b612de18473ffffffffffffffffffffffffffffffffffffffff166137ec565b15612f91578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612e27959493929190615805565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e609190615882565b60015b612f0857612e6f6158bc565b806308c379a003612ecb5750612e836158de565b80612e8e5750612ecd565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec29190613e3d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eff906159e0565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8690615a72565b60405180910390fd5b505b505050505050565b6000819050919050565b6000819050919050565b612fb6816137ec565b612ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fec90615b04565b60405180910390fd5b806130227f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612f99565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61306f8361380f565b60008251118061307c5750805b1561308d5761308b838361385e565b505b505050565b61309a611506565b6130d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d090615b70565b60405180910390fd5b565b60606000600167ffffffffffffffff8111156130fa576130f9613b99565b5b6040519080825280602002602001820160405280156131285781602001602082028036833780820191505090505b50905082816000815181106131405761313f614a7f565b5b60200260200101818152505080915050919050565b6131748473ffffffffffffffffffffffffffffffffffffffff166137ec565b15613324578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131ba959493929190615b90565b6020604051808303816000875af19250505080156131f657506040513d601f19601f820116820180604052508101906131f39190615882565b60015b61329b576132026158bc565b806308c379a00361325e57506132166158de565b806132215750613260565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132559190613e3d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613292906159e0565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615a72565b60405180910390fd5b505b505050505050565b613334611506565b15613374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336b90615c36565b60405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026133f39190614885565b6133fd91906149b9565b67ffffffffffffffff81111561341657613415613b99565b5b6040519080825280601f01601f1916602001820160405280156134485781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106134805761347f614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134e4576134e3614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026135249190614885565b61352e91906149b9565b90505b60018111156135ce577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106135705761356f614a7f565b5b1a60f81b82828151811061358757613586614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135c790615c56565b9050613531565b5060008414613612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360990615ccb565b60405180910390fd5b8091505092915050565b61362a868686868686613942565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036136db5760005b83518110156136d95782818151811061367d5761367c614a7f565b5b602002602001015160fb600086848151811061369c5761369b614a7f565b5b6020026020010151815260200190815260200160002060008282546136c191906149b9565b92505081905550806136d29061483d565b9050613661565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036137e45760005b83518110156137e25760008482815181106137305761372f614a7f565b5b60200260200101519050600084838151811061374f5761374e614a7f565b5b60200260200101519050600060fb6000848152602001908152602001600020549050818110156137b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ab90615d5d565b60405180910390fd5b81810360fb600085815260200190815260200160002081905550505050806137db9061483d565b9050613712565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b61381881612fad565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613869836137ec565b6138a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389f90615def565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516138d09190615e4b565b600060405180830381855af49150503d806000811461390b576040519150601f19603f3d011682016040523d82523d6000602084013e613910565b606091505b50915091506139388282604051806060016040528060278152602001615e636027913961394a565b9250505092915050565b505050505050565b6060831561395a578290506139aa565b60008351111561396d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a19190613e3d565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139f0826139c5565b9050919050565b613a00816139e5565b8114613a0b57600080fd5b50565b600081359050613a1d816139f7565b92915050565b6000819050919050565b613a3681613a23565b8114613a4157600080fd5b50565b600081359050613a5381613a2d565b92915050565b60008060408385031215613a7057613a6f6139bb565b5b6000613a7e85828601613a0e565b9250506020613a8f85828601613a44565b9150509250929050565b613aa281613a23565b82525050565b6000602082019050613abd6000830184613a99565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613af881613ac3565b8114613b0357600080fd5b50565b600081359050613b1581613aef565b92915050565b600060208284031215613b3157613b306139bb565b5b6000613b3f84828501613b06565b91505092915050565b60008115159050919050565b613b5d81613b48565b82525050565b6000602082019050613b786000830184613b54565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bd182613b88565b810181811067ffffffffffffffff82111715613bf057613bef613b99565b5b80604052505050565b6000613c036139b1565b9050613c0f8282613bc8565b919050565b600067ffffffffffffffff821115613c2f57613c2e613b99565b5b613c3882613b88565b9050602081019050919050565b82818337600083830152505050565b6000613c67613c6284613c14565b613bf9565b905082815260208101848484011115613c8357613c82613b83565b5b613c8e848285613c45565b509392505050565b600082601f830112613cab57613caa613b7e565b5b8135613cbb848260208601613c54565b91505092915050565b600060208284031215613cda57613cd96139bb565b5b600082013567ffffffffffffffff811115613cf857613cf76139c0565b5b613d0484828501613c96565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613d2e81613d0d565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b60008060408385031215613d6857613d676139bb565b5b6000613d7685828601613a0e565b9250506020613d8785828601613d3c565b9150509250929050565b600060208284031215613da757613da66139bb565b5b6000613db584828501613a44565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613df8578082015181840152602081019050613ddd565b60008484015250505050565b6000613e0f82613dbe565b613e198185613dc9565b9350613e29818560208601613dda565b613e3281613b88565b840191505092915050565b60006020820190508181036000830152613e578184613e04565b905092915050565b600067ffffffffffffffff821115613e7a57613e79613b99565b5b602082029050602081019050919050565b600080fd5b6000613ea3613e9e84613e5f565b613bf9565b90508083825260208201905060208402830185811115613ec657613ec5613e8b565b5b835b81811015613eef5780613edb8882613a44565b845260208401935050602081019050613ec8565b5050509392505050565b600082601f830112613f0e57613f0d613b7e565b5b8135613f1e848260208601613e90565b91505092915050565b600067ffffffffffffffff821115613f4257613f41613b99565b5b613f4b82613b88565b9050602081019050919050565b6000613f6b613f6684613f27565b613bf9565b905082815260208101848484011115613f8757613f86613b83565b5b613f92848285613c45565b509392505050565b600082601f830112613faf57613fae613b7e565b5b8135613fbf848260208601613f58565b91505092915050565b60008060008060808587031215613fe257613fe16139bb565b5b6000613ff087828801613a0e565b945050602085013567ffffffffffffffff811115614011576140106139c0565b5b61401d87828801613ef9565b935050604085013567ffffffffffffffff81111561403e5761403d6139c0565b5b61404a87828801613ef9565b925050606085013567ffffffffffffffff81111561406b5761406a6139c0565b5b61407787828801613f9a565b91505092959194509250565b6000819050919050565b61409681614083565b81146140a157600080fd5b50565b6000813590506140b38161408d565b92915050565b6000602082840312156140cf576140ce6139bb565b5b60006140dd848285016140a4565b91505092915050565b6140ef81614083565b82525050565b600060208201905061410a60008301846140e6565b92915050565b60008060408385031215614127576141266139bb565b5b600061413585828601613a44565b925050602061414685828601613a44565b9150509250929050565b614159816139e5565b82525050565b60006040820190506141746000830185614150565b6141816020830184613a99565b9392505050565b600080600080600060a086880312156141a4576141a36139bb565b5b60006141b288828901613a0e565b95505060206141c388828901613a0e565b945050604086013567ffffffffffffffff8111156141e4576141e36139c0565b5b6141f088828901613ef9565b935050606086013567ffffffffffffffff811115614211576142106139c0565b5b61421d88828901613ef9565b925050608086013567ffffffffffffffff81111561423e5761423d6139c0565b5b61424a88828901613f9a565b9150509295509295909350565b6000806040838503121561426e5761426d6139bb565b5b600061427c858286016140a4565b925050602061428d85828601613a0e565b9150509250929050565b6000602082840312156142ad576142ac6139bb565b5b60006142bb84828501613a0e565b91505092915050565b600067ffffffffffffffff8211156142df576142de613b99565b5b602082029050602081019050919050565b60006143036142fe846142c4565b613bf9565b9050808382526020820190506020840283018581111561432657614325613e8b565b5b835b8181101561434f578061433b8882613a0e565b845260208401935050602081019050614328565b5050509392505050565b600082601f83011261436e5761436d613b7e565b5b813561437e8482602086016142f0565b91505092915050565b6000806040838503121561439e5761439d6139bb565b5b600083013567ffffffffffffffff8111156143bc576143bb6139c0565b5b6143c885828601614359565b925050602083013567ffffffffffffffff8111156143e9576143e86139c0565b5b6143f585828601613ef9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61443481613a23565b82525050565b6000614446838361442b565b60208301905092915050565b6000602082019050919050565b600061446a826143ff565b614474818561440a565b935061447f8361441b565b8060005b838110156144b0578151614497888261443a565b97506144a283614452565b925050600181019050614483565b5085935050505092915050565b600060208201905081810360008301526144d7818461445f565b905092915050565b600080604083850312156144f6576144f56139bb565b5b600061450485828601613a0e565b925050602083013567ffffffffffffffff811115614525576145246139c0565b5b61453185828601613f9a565b9150509250929050565b60008060008060808587031215614555576145546139bb565b5b600061456387828801613a0e565b945050602061457487828801613a44565b935050604061458587828801613a44565b925050606085013567ffffffffffffffff8111156145a6576145a56139c0565b5b6145b287828801613f9a565b91505092959194509250565b60006020820190506145d36000830184614150565b92915050565b6145e281613b48565b81146145ed57600080fd5b50565b6000813590506145ff816145d9565b92915050565b6000806040838503121561461c5761461b6139bb565b5b600061462a85828601613a0e565b925050602061463b858286016145f0565b9150509250929050565b6000806040838503121561465c5761465b6139bb565b5b600061466a85828601613a0e565b925050602061467b85828601613a0e565b9150509250929050565b600080600080600060a086880312156146a1576146a06139bb565b5b60006146af88828901613a0e565b95505060206146c088828901613a0e565b94505060406146d188828901613a44565b93505060606146e288828901613a44565b925050608086013567ffffffffffffffff811115614703576147026139c0565b5b61470f88828901613f9a565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614778602a83613dc9565b91506147838261471c565b604082019050919050565b600060208201905081810360008301526147a78161476b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147f557607f821691505b602082108103614808576148076147ae565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061484882613a23565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487a5761487961480e565b5b600182019050919050565b600061489082613a23565b915061489b83613a23565b92508282026148a981613a23565b915082820484148315176148c0576148bf61480e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061490182613a23565b915061490c83613a23565b92508261491c5761491b6148c7565b5b828204905092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000614983602f83613dc9565b915061498e82614927565b604082019050919050565b600060208201905081810360008301526149b281614976565b9050919050565b60006149c482613a23565b91506149cf83613a23565b92508282019050808211156149e7576149e661480e565b5b92915050565b7f54686520737461727420746f6b656e20696420697320616c7265616479206d6960008201527f6e74656420210000000000000000000000000000000000000000000000000000602082015250565b6000614a49602683613dc9565b9150614a54826149ed565b604082019050919050565b60006020820190508181036000830152614a7881614a3c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b0a602f83613dc9565b9150614b1582614aae565b604082019050919050565b60006020820190508181036000830152614b3981614afd565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000614b9c602c83613dc9565b9150614ba782614b40565b604082019050919050565b60006020820190508181036000830152614bcb81614b8f565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614c2e602c83613dc9565b9150614c3982614bd2565b604082019050919050565b60006020820190508181036000830152614c5d81614c21565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614cc0602983613dc9565b9150614ccb82614c64565b604082019050919050565b60006020820190508181036000830152614cef81614cb3565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000614d52603883613dc9565b9150614d5d82614cf6565b604082019050919050565b60006020820190508181036000830152614d8181614d45565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614de4602683613dc9565b9150614def82614d88565b604082019050919050565b60006020820190508181036000830152614e1381614dd7565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e7c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614e3f565b614e868683614e3f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614ec3614ebe614eb984613a23565b614e9e565b613a23565b9050919050565b6000819050919050565b614edd83614ea8565b614ef1614ee982614eca565b848454614e4c565b825550505050565b600090565b614f06614ef9565b614f11818484614ed4565b505050565b5b81811015614f3557614f2a600082614efe565b600181019050614f17565b5050565b601f821115614f7a57614f4b81614e1a565b614f5484614e2f565b81016020851015614f63578190505b614f77614f6f85614e2f565b830182614f16565b50505b505050565b600082821c905092915050565b6000614f9d60001984600802614f7f565b1980831691505092915050565b6000614fb68383614f8c565b9150826002028217905092915050565b614fcf82613dbe565b67ffffffffffffffff811115614fe857614fe7613b99565b5b614ff282546147dd565b614ffd828285614f39565b600060209050601f831160018114615030576000841561501e578287015190505b6150288582614faa565b865550615090565b601f19841661503e86614e1a565b60005b8281101561506657848901518255600182019150602085019450602081019050615041565b86831015615083578489015161507f601f891682614f8c565b8355505b6001600288020188555050505b505050505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006150f4602a83613dc9565b91506150ff82615098565b604082019050919050565b60006020820190508181036000830152615123816150e7565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615160601983613dc9565b915061516b8261512a565b602082019050919050565b6000602082019050818103600083015261518f81615153565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006151f2602183613dc9565b91506151fd82615196565b604082019050919050565b60006020820190508181036000830152615221816151e5565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615284602883613dc9565b915061528f82615228565b604082019050919050565b600060208201905081810360008301526152b381615277565b9050919050565b600060408201905081810360008301526152d4818561445f565b905081810360208301526152e8818461445f565b90509392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061534d602583613dc9565b9150615358826152f1565b604082019050919050565b6000602082019050818103600083015261537c81615340565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006153df602a83613dc9565b91506153ea82615383565b604082019050919050565b6000602082019050818103600083015261540e816153d2565b9050919050565b6000815190506154248161408d565b92915050565b6000602082840312156154405761543f6139bb565b5b600061544e84828501615415565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b60006154b3602e83613dc9565b91506154be82615457565b604082019050919050565b600060208201905081810360008301526154e2816154a6565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b6000615545602983613dc9565b9150615550826154e9565b604082019050919050565b6000602082019050818103600083015261557481615538565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155b1602083613dc9565b91506155bc8261557b565b602082019050919050565b600060208201905081810360008301526155e0816155a4565b9050919050565b60006040820190506155fc6000830185613a99565b6156096020830184613a99565b9392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061566c602983613dc9565b915061567782615610565b604082019050919050565b6000602082019050818103600083015261569b8161565f565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006156e36017836156a2565b91506156ee826156ad565b601782019050919050565b600061570482613dbe565b61570e81856156a2565b935061571e818560208601613dda565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006157606011836156a2565b915061576b8261572a565b601182019050919050565b6000615781826156d6565b915061578d82856156f9565b915061579882615753565b91506157a482846156f9565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006157d7826157b0565b6157e181856157bb565b93506157f1818560208601613dda565b6157fa81613b88565b840191505092915050565b600060a08201905061581a6000830188614150565b6158276020830187614150565b8181036040830152615839818661445f565b9050818103606083015261584d818561445f565b9050818103608083015261586181846157cc565b90509695505050505050565b60008151905061587c81613aef565b92915050565b600060208284031215615898576158976139bb565b5b60006158a68482850161586d565b91505092915050565b60008160e01c9050919050565b600060033d11156158db5760046000803e6158d86000516158af565b90505b90565b600060443d1061596b576158f06139b1565b60043d036004823e80513d602482011167ffffffffffffffff8211171561591857505061596b565b808201805167ffffffffffffffff811115615936575050505061596b565b80602083010160043d03850181111561595357505050505061596b565b61596282602001850186613bc8565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006159ca603483613dc9565b91506159d58261596e565b604082019050919050565b600060208201905081810360008301526159f9816159bd565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615a5c602883613dc9565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000615aee602d83613dc9565b9150615af982615a92565b604082019050919050565b60006020820190508181036000830152615b1d81615ae1565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615b5a601483613dc9565b9150615b6582615b24565b602082019050919050565b60006020820190508181036000830152615b8981615b4d565b9050919050565b600060a082019050615ba56000830188614150565b615bb26020830187614150565b615bbf6040830186613a99565b615bcc6060830185613a99565b8181036080830152615bde81846157cc565b90509695505050505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615c20601083613dc9565b9150615c2b82615bea565b602082019050919050565b60006020820190508181036000830152615c4f81615c13565b9050919050565b6000615c6182613a23565b915060008203615c7457615c7361480e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615cb5602083613dc9565b9150615cc082615c7f565b602082019050919050565b60006020820190508181036000830152615ce481615ca8565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b6000615d47602883613dc9565b9150615d5282615ceb565b604082019050919050565b60006020820190508181036000830152615d7681615d3a565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000615dd9602683613dc9565b9150615de482615d7d565b604082019050919050565b60006020820190508181036000830152615e0881615dcc565b9050919050565b600081905092915050565b6000615e25826157b0565b615e2f8185615e0f565b9350615e3f818560208601613dda565b80840191505092915050565b6000615e578284615e1a565b91508190509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122019aed6bfd8ee26cbce55ef91d5c1145fb32d8ed10934a3762a3167d7cd8e2cde64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061020e5760003560e01c80635c975abb11610118578063a87d942c116100a0578063e63ab1e91161006f578063e63ab1e91461078a578063e985e9c5146107b5578063f242432a146107f2578063f2fde38b1461081b578063f72c0d8b146108445761020e565b8063a87d942c146106ce578063bd85b039146106f9578063d539139314610736578063d547741f146107615761020e565b80638456cb59116100e75780638456cb59146105fb5780638da5cb5b1461061257806391d148541461063d578063a217fddf1461067a578063a22cb465146106a55761020e565b80635c975abb14610565578063715018a614610590578063731133e9146105a75780637f345710146105d05761020e565b80632f2ff15d1161019b5780633f4ba83a1161016a5780633f4ba83a1461048d5780634e1273f4146104a45780634f1ef286146104e15780634f558e79146104fd57806352d1902d1461053a5761020e565b80632f2ff15d146103e9578063310c62261461041257806336568abe1461043b5780633659cfe6146104645761020e565b80630e89341c116101e25780630e89341c146102df5780631f7fdffa1461031c578063248a9ca3146103455780632a55205a146103825780632eb2c2d6146103c05761020e565b8062fdd58e1461021357806301ffc9a71461025057806302fe53051461028d57806304634d8d146102b6575b600080fd5b34801561021f57600080fd5b5061023a60048036038101906102359190613a59565b61086f565b6040516102479190613aa8565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190613b1b565b610938565b6040516102849190613b63565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190613cc4565b6109b2565b005b3480156102c257600080fd5b506102dd60048036038101906102d89190613d51565b6109e9565b005b3480156102eb57600080fd5b5061030660048036038101906103019190613d91565b610a05565b6040516103139190613e3d565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e9190613fc8565b610a99565b005b34801561035157600080fd5b5061036c600480360381019061036791906140b9565b610b0f565b60405161037991906140f5565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190614110565b610b2f565b6040516103b792919061415f565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e29190614188565b610d1b565b005b3480156103f557600080fd5b50610410600480360381019061040b9190614257565b610dbc565b005b34801561041e57600080fd5b5061043960048036038101906104349190613d91565b610ddd565b005b34801561044757600080fd5b50610462600480360381019061045d9190614257565b610fa4565b005b34801561047057600080fd5b5061048b60048036038101906104869190614297565b611027565b005b34801561049957600080fd5b506104a26111af565b005b3480156104b057600080fd5b506104cb60048036038101906104c69190614387565b6111e4565b6040516104d891906144bd565b60405180910390f35b6104fb60048036038101906104f691906144df565b6112fd565b005b34801561050957600080fd5b50610524600480360381019061051f9190613d91565b611439565b6040516105319190613b63565b60405180910390f35b34801561054657600080fd5b5061054f61144d565b60405161055c91906140f5565b60405180910390f35b34801561057157600080fd5b5061057a611506565b6040516105879190613b63565b60405180910390f35b34801561059c57600080fd5b506105a561151d565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061453b565b611531565b005b3480156105dc57600080fd5b506105e5611587565b6040516105f291906140f5565b60405180910390f35b34801561060757600080fd5b506106106115ab565b005b34801561061e57600080fd5b506106276115e0565b60405161063491906145be565b60405180910390f35b34801561064957600080fd5b50610664600480360381019061065f9190614257565b61160b565b6040516106719190613b63565b60405180910390f35b34801561068657600080fd5b5061068f611676565b60405161069c91906140f5565b60405180910390f35b3480156106b157600080fd5b506106cc60048036038101906106c79190614605565b61167d565b005b3480156106da57600080fd5b506106e3611693565b6040516106f09190613aa8565b60405180910390f35b34801561070557600080fd5b50610720600480360381019061071b9190613d91565b61169e565b60405161072d9190613aa8565b60405180910390f35b34801561074257600080fd5b5061074b6116bb565b60405161075891906140f5565b60405180910390f35b34801561076d57600080fd5b5061078860048036038101906107839190614257565b6116df565b005b34801561079657600080fd5b5061079f611700565b6040516107ac91906140f5565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d79190614645565b611724565b6040516107e99190613b63565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614685565b6117b8565b005b34801561082757600080fd5b50610842600480360381019061083d9190614297565b611859565b005b34801561085057600080fd5b506108596118e2565b60405161086691906140f5565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d69061478e565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ab57506109aa82611906565b5b9050919050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c6109dc81611980565b6109e582611994565b5050565b6000801b6109f681611980565b610a0083836119a7565b505050565b606060678054610a14906147dd565b80601f0160208091040260200160405190810160405280929190818152602001828054610a40906147dd565b8015610a8d5780601f10610a6257610100808354040283529160200191610a8d565b820191906000526020600020905b815481529060010190602001808311610a7057829003601f168201915b50505050509050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ac381611980565b610acf85858585611b3d565b60005b8451811015610b07576101916000815480929190610aef9061483d565b91905055508080610aff9061483d565b915050610ad2565b505050505050565b600060976000838152602001908152602001600020600101549050919050565b600080600061019360008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cc6576101926040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cd0611d6a565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610cfc9190614885565b610d0691906148f6565b90508160000151819350935050509250929050565b610d23611d74565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610d695750610d6885610d63611d74565b611724565b5b610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f90614999565b60405180910390fd5b610db58585858585611d7c565b5050505050565b610dc582610b0f565b610dce81611980565b610dd883836120a0565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610e0781611980565b6000600161019154610e1991906149b9565b9050610e2481611439565b15610e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5b90614a5f565b60405180910390fd5b60008367ffffffffffffffff811115610e8057610e7f613b99565b5b604051908082528060200260200182016040528015610eae5781602001602082028036833780820191505090505b50905060008467ffffffffffffffff811115610ecd57610ecc613b99565b5b604051908082528060200260200182016040528015610efb5781602001602082028036833780820191505090505b50905060005b85811015610f81578084610f1591906149b9565b838281518110610f2857610f27614a7f565b5b6020026020010181815250506001828281518110610f4957610f48614a7f565b5b6020026020010181815250506101916000815480929190610f699061483d565b91905055508080610f799061483d565b915050610f01565b50610f9d33838360405180602001604052806000815250611b3d565b5050505050565b610fac611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101090614b20565b60405180910390fd5b6110238282612181565b5050565b7f0000000000000000000000007db8e9b41fda676cbb73857f7ade8f5b86831f5d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16036110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ac90614bb2565b60405180910390fd5b7f0000000000000000000000007db8e9b41fda676cbb73857f7ade8f5b86831f5d73ffffffffffffffffffffffffffffffffffffffff166110f4612263565b73ffffffffffffffffffffffffffffffffffffffff161461114a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114190614c44565b60405180910390fd5b611153816122ba565b6111ac81600067ffffffffffffffff81111561117257611171613b99565b5b6040519080825280601f01601f1916602001820160405280156111a45781602001600182028036833780820191505090505b5060006122e8565b50565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6111d981611980565b6111e1612456565b50565b6060815183511461122a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122190614cd6565b60405180910390fd5b6000835167ffffffffffffffff81111561124757611246613b99565b5b6040519080825280602002602001820160405280156112755781602001602082028036833780820191505090505b50905060005b84518110156112f2576112c285828151811061129a57611299614a7f565b5b60200260200101518583815181106112b5576112b4614a7f565b5b602002602001015161086f565b8282815181106112d5576112d4614a7f565b5b602002602001018181525050806112eb9061483d565b905061127b565b508091505092915050565b7f0000000000000000000000007db8e9b41fda676cbb73857f7ade8f5b86831f5d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff160361138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138290614bb2565b60405180910390fd5b7f0000000000000000000000007db8e9b41fda676cbb73857f7ade8f5b86831f5d73ffffffffffffffffffffffffffffffffffffffff166113ca612263565b73ffffffffffffffffffffffffffffffffffffffff1614611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790614c44565b60405180910390fd5b611429826122ba565b611435828260016122e8565b5050565b6000806114458361169e565b119050919050565b60007f0000000000000000000000007db8e9b41fda676cbb73857f7ade8f5b86831f5d73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16146114dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d490614d68565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600060c960009054906101000a900460ff16905090565b6115256124b9565b61152f6000612537565b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661155b81611980565b611567858585856125ff565b610191600081548092919061157b9061483d565b91905055505050505050565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6115d581611980565b6115dd6127b0565b50565b600061019460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b61168f611688611d74565b8383612813565b5050565b600061019154905090565b600060fb6000838152602001908152602001600020549050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6116e882610b0f565b6116f181611980565b6116fb8383612181565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117c0611d74565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611806575061180585611800611d74565b611724565b5b611845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183c90614999565b60405180910390fd5b611852858585858561297f565b5050505050565b6000801b61186681611980565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cc90614dfa565b60405180910390fd5b6118de82612537565b5050565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e381565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611979575061197882612c1d565b5b9050919050565b6119918161198c611d74565b612cff565b50565b80606790816119a39190614fc6565b5050565b6119af611d6a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a049061510a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7390615176565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff1681525061019260008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390615208565b60405180910390fd5b8151835114611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be79061529a565b60405180910390fd5b6000611bfa611d74565b9050611c0b81600087878787612d9c565b60005b8451811015611cc557838181518110611c2a57611c29614a7f565b5b602002602001015160656000878481518110611c4957611c48614a7f565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cab91906149b9565b925050819055508080611cbd9061483d565b915050611c0e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d3d9291906152ba565b60405180910390a4611d5481600087878787612dba565b611d6381600087878787612dc2565b5050505050565b6000612710905090565b600033905090565b8151835114611dc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db79061529a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2690615363565b60405180910390fd5b6000611e39611d74565b9050611e49818787878787612d9c565b60005b8451811015611ffd576000858281518110611e6a57611e69614a7f565b5b602002602001015190506000858381518110611e8957611e88614a7f565b5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f22906153f5565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe291906149b9565b9250508190555050505080611ff69061483d565b9050611e4c565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120749291906152ba565b60405180910390a461208a818787878787612dba565b612098818787878787612dc2565b505050505050565b6120aa828261160b565b61217d5760016097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612122611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61218b828261160b565b1561225f5760006097600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612204611d74565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006122917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612f99565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e36122e481611980565b5050565b6123147f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd914360001b612fa3565b60000160009054906101000a900460ff16156123385761233383612fad565b612451565b8273ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156123a057506040513d601f19601f8201168201806040525081019061239d919061542a565b60015b6123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d6906154c9565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114612444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243b9061555b565b60405180910390fd5b50612450838383613066565b5b505050565b61245e613092565b600060c960006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6124a2611d74565b6040516124af91906145be565b60405180910390a1565b6124c1611d74565b73ffffffffffffffffffffffffffffffffffffffff166124df6115e0565b73ffffffffffffffffffffffffffffffffffffffff1614612535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252c906155c7565b60405180910390fd5b565b600061019460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508161019460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361266e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266590615208565b60405180910390fd5b6000612678611d74565b90506000612685856130db565b90506000612692856130db565b90506126a383600089858589612d9c565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461270391906149b9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516127819291906155e7565b60405180910390a461279883600089858589612dba565b6127a783600089898989613155565b50505050505050565b6127b861332c565b600160c960006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127fc611d74565b60405161280991906145be565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287890615682565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129729190613b63565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036129ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e590615363565b60405180910390fd5b60006129f8611d74565b90506000612a05856130db565b90506000612a12856130db565b9050612a22838989858589612d9c565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab1906153f5565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b7191906149b9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612bee9291906155e7565b60405180910390a4612c04848a8a86868a612dba565b612c12848a8a8a8a8a613155565b505050505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ce857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612cf85750612cf782613376565b5b9050919050565b612d09828261160b565b612d9857612d2e8173ffffffffffffffffffffffffffffffffffffffff1660146133e0565b612d3c8360001c60206133e0565b604051602001612d4d929190615776565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f9190613e3d565b60405180910390fd5b5050565b612da461332c565b612db286868686868661361c565b505050505050565b505050505050565b612de18473ffffffffffffffffffffffffffffffffffffffff166137ec565b15612f91578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612e27959493929190615805565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e609190615882565b60015b612f0857612e6f6158bc565b806308c379a003612ecb5750612e836158de565b80612e8e5750612ecd565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec29190613e3d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eff906159e0565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8690615a72565b60405180910390fd5b505b505050505050565b6000819050919050565b6000819050919050565b612fb6816137ec565b612ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fec90615b04565b60405180910390fd5b806130227f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b612f99565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61306f8361380f565b60008251118061307c5750805b1561308d5761308b838361385e565b505b505050565b61309a611506565b6130d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d090615b70565b60405180910390fd5b565b60606000600167ffffffffffffffff8111156130fa576130f9613b99565b5b6040519080825280602002602001820160405280156131285781602001602082028036833780820191505090505b50905082816000815181106131405761313f614a7f565b5b60200260200101818152505080915050919050565b6131748473ffffffffffffffffffffffffffffffffffffffff166137ec565b15613324578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016131ba959493929190615b90565b6020604051808303816000875af19250505080156131f657506040513d601f19601f820116820180604052508101906131f39190615882565b60015b61329b576132026158bc565b806308c379a00361325e57506132166158de565b806132215750613260565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132559190613e3d565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613292906159e0565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613322576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615a72565b60405180910390fd5b505b505050505050565b613334611506565b15613374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336b90615c36565b60405180910390fd5b565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600060028360026133f39190614885565b6133fd91906149b9565b67ffffffffffffffff81111561341657613415613b99565b5b6040519080825280601f01601f1916602001820160405280156134485781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106134805761347f614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134e4576134e3614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026135249190614885565b61352e91906149b9565b90505b60018111156135ce577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106135705761356f614a7f565b5b1a60f81b82828151811061358757613586614a7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135c790615c56565b9050613531565b5060008414613612576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360990615ccb565b60405180910390fd5b8091505092915050565b61362a868686868686613942565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036136db5760005b83518110156136d95782818151811061367d5761367c614a7f565b5b602002602001015160fb600086848151811061369c5761369b614a7f565b5b6020026020010151815260200190815260200160002060008282546136c191906149b9565b92505081905550806136d29061483d565b9050613661565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036137e45760005b83518110156137e25760008482815181106137305761372f614a7f565b5b60200260200101519050600084838151811061374f5761374e614a7f565b5b60200260200101519050600060fb6000848152602001908152602001600020549050818110156137b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ab90615d5d565b60405180910390fd5b81810360fb600085815260200190815260200160002081905550505050806137db9061483d565b9050613712565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b61381881612fad565b8073ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a250565b6060613869836137ec565b6138a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389f90615def565b60405180910390fd5b6000808473ffffffffffffffffffffffffffffffffffffffff16846040516138d09190615e4b565b600060405180830381855af49150503d806000811461390b576040519150601f19603f3d011682016040523d82523d6000602084013e613910565b606091505b50915091506139388282604051806060016040528060278152602001615e636027913961394a565b9250505092915050565b505050505050565b6060831561395a578290506139aa565b60008351111561396d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a19190613e3d565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139f0826139c5565b9050919050565b613a00816139e5565b8114613a0b57600080fd5b50565b600081359050613a1d816139f7565b92915050565b6000819050919050565b613a3681613a23565b8114613a4157600080fd5b50565b600081359050613a5381613a2d565b92915050565b60008060408385031215613a7057613a6f6139bb565b5b6000613a7e85828601613a0e565b9250506020613a8f85828601613a44565b9150509250929050565b613aa281613a23565b82525050565b6000602082019050613abd6000830184613a99565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613af881613ac3565b8114613b0357600080fd5b50565b600081359050613b1581613aef565b92915050565b600060208284031215613b3157613b306139bb565b5b6000613b3f84828501613b06565b91505092915050565b60008115159050919050565b613b5d81613b48565b82525050565b6000602082019050613b786000830184613b54565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bd182613b88565b810181811067ffffffffffffffff82111715613bf057613bef613b99565b5b80604052505050565b6000613c036139b1565b9050613c0f8282613bc8565b919050565b600067ffffffffffffffff821115613c2f57613c2e613b99565b5b613c3882613b88565b9050602081019050919050565b82818337600083830152505050565b6000613c67613c6284613c14565b613bf9565b905082815260208101848484011115613c8357613c82613b83565b5b613c8e848285613c45565b509392505050565b600082601f830112613cab57613caa613b7e565b5b8135613cbb848260208601613c54565b91505092915050565b600060208284031215613cda57613cd96139bb565b5b600082013567ffffffffffffffff811115613cf857613cf76139c0565b5b613d0484828501613c96565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613d2e81613d0d565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b60008060408385031215613d6857613d676139bb565b5b6000613d7685828601613a0e565b9250506020613d8785828601613d3c565b9150509250929050565b600060208284031215613da757613da66139bb565b5b6000613db584828501613a44565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613df8578082015181840152602081019050613ddd565b60008484015250505050565b6000613e0f82613dbe565b613e198185613dc9565b9350613e29818560208601613dda565b613e3281613b88565b840191505092915050565b60006020820190508181036000830152613e578184613e04565b905092915050565b600067ffffffffffffffff821115613e7a57613e79613b99565b5b602082029050602081019050919050565b600080fd5b6000613ea3613e9e84613e5f565b613bf9565b90508083825260208201905060208402830185811115613ec657613ec5613e8b565b5b835b81811015613eef5780613edb8882613a44565b845260208401935050602081019050613ec8565b5050509392505050565b600082601f830112613f0e57613f0d613b7e565b5b8135613f1e848260208601613e90565b91505092915050565b600067ffffffffffffffff821115613f4257613f41613b99565b5b613f4b82613b88565b9050602081019050919050565b6000613f6b613f6684613f27565b613bf9565b905082815260208101848484011115613f8757613f86613b83565b5b613f92848285613c45565b509392505050565b600082601f830112613faf57613fae613b7e565b5b8135613fbf848260208601613f58565b91505092915050565b60008060008060808587031215613fe257613fe16139bb565b5b6000613ff087828801613a0e565b945050602085013567ffffffffffffffff811115614011576140106139c0565b5b61401d87828801613ef9565b935050604085013567ffffffffffffffff81111561403e5761403d6139c0565b5b61404a87828801613ef9565b925050606085013567ffffffffffffffff81111561406b5761406a6139c0565b5b61407787828801613f9a565b91505092959194509250565b6000819050919050565b61409681614083565b81146140a157600080fd5b50565b6000813590506140b38161408d565b92915050565b6000602082840312156140cf576140ce6139bb565b5b60006140dd848285016140a4565b91505092915050565b6140ef81614083565b82525050565b600060208201905061410a60008301846140e6565b92915050565b60008060408385031215614127576141266139bb565b5b600061413585828601613a44565b925050602061414685828601613a44565b9150509250929050565b614159816139e5565b82525050565b60006040820190506141746000830185614150565b6141816020830184613a99565b9392505050565b600080600080600060a086880312156141a4576141a36139bb565b5b60006141b288828901613a0e565b95505060206141c388828901613a0e565b945050604086013567ffffffffffffffff8111156141e4576141e36139c0565b5b6141f088828901613ef9565b935050606086013567ffffffffffffffff811115614211576142106139c0565b5b61421d88828901613ef9565b925050608086013567ffffffffffffffff81111561423e5761423d6139c0565b5b61424a88828901613f9a565b9150509295509295909350565b6000806040838503121561426e5761426d6139bb565b5b600061427c858286016140a4565b925050602061428d85828601613a0e565b9150509250929050565b6000602082840312156142ad576142ac6139bb565b5b60006142bb84828501613a0e565b91505092915050565b600067ffffffffffffffff8211156142df576142de613b99565b5b602082029050602081019050919050565b60006143036142fe846142c4565b613bf9565b9050808382526020820190506020840283018581111561432657614325613e8b565b5b835b8181101561434f578061433b8882613a0e565b845260208401935050602081019050614328565b5050509392505050565b600082601f83011261436e5761436d613b7e565b5b813561437e8482602086016142f0565b91505092915050565b6000806040838503121561439e5761439d6139bb565b5b600083013567ffffffffffffffff8111156143bc576143bb6139c0565b5b6143c885828601614359565b925050602083013567ffffffffffffffff8111156143e9576143e86139c0565b5b6143f585828601613ef9565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61443481613a23565b82525050565b6000614446838361442b565b60208301905092915050565b6000602082019050919050565b600061446a826143ff565b614474818561440a565b935061447f8361441b565b8060005b838110156144b0578151614497888261443a565b97506144a283614452565b925050600181019050614483565b5085935050505092915050565b600060208201905081810360008301526144d7818461445f565b905092915050565b600080604083850312156144f6576144f56139bb565b5b600061450485828601613a0e565b925050602083013567ffffffffffffffff811115614525576145246139c0565b5b61453185828601613f9a565b9150509250929050565b60008060008060808587031215614555576145546139bb565b5b600061456387828801613a0e565b945050602061457487828801613a44565b935050604061458587828801613a44565b925050606085013567ffffffffffffffff8111156145a6576145a56139c0565b5b6145b287828801613f9a565b91505092959194509250565b60006020820190506145d36000830184614150565b92915050565b6145e281613b48565b81146145ed57600080fd5b50565b6000813590506145ff816145d9565b92915050565b6000806040838503121561461c5761461b6139bb565b5b600061462a85828601613a0e565b925050602061463b858286016145f0565b9150509250929050565b6000806040838503121561465c5761465b6139bb565b5b600061466a85828601613a0e565b925050602061467b85828601613a0e565b9150509250929050565b600080600080600060a086880312156146a1576146a06139bb565b5b60006146af88828901613a0e565b95505060206146c088828901613a0e565b94505060406146d188828901613a44565b93505060606146e288828901613a44565b925050608086013567ffffffffffffffff811115614703576147026139c0565b5b61470f88828901613f9a565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614778602a83613dc9565b91506147838261471c565b604082019050919050565b600060208201905081810360008301526147a78161476b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147f557607f821691505b602082108103614808576148076147ae565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061484882613a23565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487a5761487961480e565b5b600182019050919050565b600061489082613a23565b915061489b83613a23565b92508282026148a981613a23565b915082820484148315176148c0576148bf61480e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061490182613a23565b915061490c83613a23565b92508261491c5761491b6148c7565b5b828204905092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000614983602f83613dc9565b915061498e82614927565b604082019050919050565b600060208201905081810360008301526149b281614976565b9050919050565b60006149c482613a23565b91506149cf83613a23565b92508282019050808211156149e7576149e661480e565b5b92915050565b7f54686520737461727420746f6b656e20696420697320616c7265616479206d6960008201527f6e74656420210000000000000000000000000000000000000000000000000000602082015250565b6000614a49602683613dc9565b9150614a54826149ed565b604082019050919050565b60006020820190508181036000830152614a7881614a3c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614b0a602f83613dc9565b9150614b1582614aae565b604082019050919050565b60006020820190508181036000830152614b3981614afd565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f64656c656761746563616c6c0000000000000000000000000000000000000000602082015250565b6000614b9c602c83613dc9565b9150614ba782614b40565b604082019050919050565b60006020820190508181036000830152614bcb81614b8f565b9050919050565b7f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060008201527f6163746976652070726f78790000000000000000000000000000000000000000602082015250565b6000614c2e602c83613dc9565b9150614c3982614bd2565b604082019050919050565b60006020820190508181036000830152614c5d81614c21565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614cc0602983613dc9565b9150614ccb82614c64565b604082019050919050565b60006020820190508181036000830152614cef81614cb3565b9050919050565b7f555550535570677261646561626c653a206d757374206e6f742062652063616c60008201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000602082015250565b6000614d52603883613dc9565b9150614d5d82614cf6565b604082019050919050565b60006020820190508181036000830152614d8181614d45565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614de4602683613dc9565b9150614def82614d88565b604082019050919050565b60006020820190508181036000830152614e1381614dd7565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614e7c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614e3f565b614e868683614e3f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614ec3614ebe614eb984613a23565b614e9e565b613a23565b9050919050565b6000819050919050565b614edd83614ea8565b614ef1614ee982614eca565b848454614e4c565b825550505050565b600090565b614f06614ef9565b614f11818484614ed4565b505050565b5b81811015614f3557614f2a600082614efe565b600181019050614f17565b5050565b601f821115614f7a57614f4b81614e1a565b614f5484614e2f565b81016020851015614f63578190505b614f77614f6f85614e2f565b830182614f16565b50505b505050565b600082821c905092915050565b6000614f9d60001984600802614f7f565b1980831691505092915050565b6000614fb68383614f8c565b9150826002028217905092915050565b614fcf82613dbe565b67ffffffffffffffff811115614fe857614fe7613b99565b5b614ff282546147dd565b614ffd828285614f39565b600060209050601f831160018114615030576000841561501e578287015190505b6150288582614faa565b865550615090565b601f19841661503e86614e1a565b60005b8281101561506657848901518255600182019150602085019450602081019050615041565b86831015615083578489015161507f601f891682614f8c565b8355505b6001600288020188555050505b505050505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006150f4602a83613dc9565b91506150ff82615098565b604082019050919050565b60006020820190508181036000830152615123816150e7565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615160601983613dc9565b915061516b8261512a565b602082019050919050565b6000602082019050818103600083015261518f81615153565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006151f2602183613dc9565b91506151fd82615196565b604082019050919050565b60006020820190508181036000830152615221816151e5565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615284602883613dc9565b915061528f82615228565b604082019050919050565b600060208201905081810360008301526152b381615277565b9050919050565b600060408201905081810360008301526152d4818561445f565b905081810360208301526152e8818461445f565b90509392505050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061534d602583613dc9565b9150615358826152f1565b604082019050919050565b6000602082019050818103600083015261537c81615340565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006153df602a83613dc9565b91506153ea82615383565b604082019050919050565b6000602082019050818103600083015261540e816153d2565b9050919050565b6000815190506154248161408d565b92915050565b6000602082840312156154405761543f6139bb565b5b600061544e84828501615415565b91505092915050565b7f45524331393637557067726164653a206e657720696d706c656d656e7461746960008201527f6f6e206973206e6f742055555053000000000000000000000000000000000000602082015250565b60006154b3602e83613dc9565b91506154be82615457565b604082019050919050565b600060208201905081810360008301526154e2816154a6565b9050919050565b7f45524331393637557067726164653a20756e737570706f727465642070726f7860008201527f6961626c65555549440000000000000000000000000000000000000000000000602082015250565b6000615545602983613dc9565b9150615550826154e9565b604082019050919050565b6000602082019050818103600083015261557481615538565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006155b1602083613dc9565b91506155bc8261557b565b602082019050919050565b600060208201905081810360008301526155e0816155a4565b9050919050565b60006040820190506155fc6000830185613a99565b6156096020830184613a99565b9392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061566c602983613dc9565b915061567782615610565b604082019050919050565b6000602082019050818103600083015261569b8161565f565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006156e36017836156a2565b91506156ee826156ad565b601782019050919050565b600061570482613dbe565b61570e81856156a2565b935061571e818560208601613dda565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006157606011836156a2565b915061576b8261572a565b601182019050919050565b6000615781826156d6565b915061578d82856156f9565b915061579882615753565b91506157a482846156f9565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006157d7826157b0565b6157e181856157bb565b93506157f1818560208601613dda565b6157fa81613b88565b840191505092915050565b600060a08201905061581a6000830188614150565b6158276020830187614150565b8181036040830152615839818661445f565b9050818103606083015261584d818561445f565b9050818103608083015261586181846157cc565b90509695505050505050565b60008151905061587c81613aef565b92915050565b600060208284031215615898576158976139bb565b5b60006158a68482850161586d565b91505092915050565b60008160e01c9050919050565b600060033d11156158db5760046000803e6158d86000516158af565b90505b90565b600060443d1061596b576158f06139b1565b60043d036004823e80513d602482011167ffffffffffffffff8211171561591857505061596b565b808201805167ffffffffffffffff811115615936575050505061596b565b80602083010160043d03850181111561595357505050505061596b565b61596282602001850186613bc8565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006159ca603483613dc9565b91506159d58261596e565b604082019050919050565b600060208201905081810360008301526159f9816159bd565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615a5c602883613dc9565b9150615a6782615a00565b604082019050919050565b60006020820190508181036000830152615a8b81615a4f565b9050919050565b7f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60008201527f6f74206120636f6e747261637400000000000000000000000000000000000000602082015250565b6000615aee602d83613dc9565b9150615af982615a92565b604082019050919050565b60006020820190508181036000830152615b1d81615ae1565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615b5a601483613dc9565b9150615b6582615b24565b602082019050919050565b60006020820190508181036000830152615b8981615b4d565b9050919050565b600060a082019050615ba56000830188614150565b615bb26020830187614150565b615bbf6040830186613a99565b615bcc6060830185613a99565b8181036080830152615bde81846157cc565b90509695505050505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615c20601083613dc9565b9150615c2b82615bea565b602082019050919050565b60006020820190508181036000830152615c4f81615c13565b9050919050565b6000615c6182613a23565b915060008203615c7457615c7361480e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615cb5602083613dc9565b9150615cc082615c7f565b602082019050919050565b60006020820190508181036000830152615ce481615ca8565b9050919050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b6000615d47602883613dc9565b9150615d5282615ceb565b604082019050919050565b60006020820190508181036000830152615d7681615d3a565b9050919050565b7f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60008201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b6000615dd9602683613dc9565b9150615de482615d7d565b604082019050919050565b60006020820190508181036000830152615e0881615dcc565b9050919050565b600081905092915050565b6000615e25826157b0565b615e2f8185615e0f565b9350615e3f818560208601613dda565b80840191505092915050565b6000615e578284615e1a565b91508190509291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122019aed6bfd8ee26cbce55ef91d5c1145fb32d8ed10934a3762a3167d7cd8e2cde64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.