More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 143,556 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 21123683 | 28 hrs ago | IN | 0 ETH | 0.00068971 | ||||
Safe Transfer Fr... | 21078483 | 7 days ago | IN | 0 ETH | 0.00053574 | ||||
Set Approval For... | 21059356 | 10 days ago | IN | 0 ETH | 0.00013815 | ||||
Set Approval For... | 20959724 | 24 days ago | IN | 0 ETH | 0.00041675 | ||||
Set Approval For... | 20959696 | 24 days ago | IN | 0 ETH | 0.00042531 | ||||
Set Approval For... | 20958271 | 24 days ago | IN | 0 ETH | 0.00051523 | ||||
Set Approval For... | 20948740 | 25 days ago | IN | 0 ETH | 0.00043029 | ||||
Set Approval For... | 20913037 | 30 days ago | IN | 0 ETH | 0.0002348 | ||||
Set Approval For... | 20884178 | 34 days ago | IN | 0 ETH | 0.00027887 | ||||
Set Approval For... | 20846065 | 39 days ago | IN | 0 ETH | 0.00018846 | ||||
Set Approval For... | 20806817 | 45 days ago | IN | 0 ETH | 0.00060928 | ||||
Set Approval For... | 20786095 | 48 days ago | IN | 0 ETH | 0.00094782 | ||||
Set Approval For... | 20783807 | 48 days ago | IN | 0 ETH | 0.00087151 | ||||
Set Approval For... | 20727073 | 56 days ago | IN | 0 ETH | 0.00004902 | ||||
Set Approval For... | 20631669 | 69 days ago | IN | 0 ETH | 0.00005703 | ||||
Set Approval For... | 20595449 | 74 days ago | IN | 0 ETH | 0.0000619 | ||||
Set Approval For... | 20571926 | 78 days ago | IN | 0 ETH | 0.00007593 | ||||
Set Approval For... | 20551139 | 81 days ago | IN | 0 ETH | 0.00002556 | ||||
Set Approval For... | 20551138 | 81 days ago | IN | 0 ETH | 0.00002499 | ||||
Set Approval For... | 20551136 | 81 days ago | IN | 0 ETH | 0.0000237 | ||||
Set Approval For... | 20551134 | 81 days ago | IN | 0 ETH | 0.00002433 | ||||
Set Approval For... | 20551132 | 81 days ago | IN | 0 ETH | 0.00002556 | ||||
Set Approval For... | 20551131 | 81 days ago | IN | 0 ETH | 0.00002229 | ||||
Set Approval For... | 20550680 | 81 days ago | IN | 0 ETH | 0.00004613 | ||||
Safe Transfer Fr... | 20550626 | 81 days ago | IN | 0 ETH | 0.00004932 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LDRToken
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; /** * @title LDRToken */ contract LDRToken is ERC1155, ReentrancyGuard, Pausable, AccessControl { using SignatureChecker for address; // Wallet who will be the backend signer address public signer; bytes32 public constant REDEEMER_ROLE = keccak256("REDEEMER_ROLE"); // mapping of hash of address + category -> bool. mapping(bytes32 => bool) private categoriesMinted; event LDRTokenRedeemed(address _sender, uint256 _categoryId); string public name; string public symbol; /** * @dev Creates an instance of `LDRToken`. * * 'msg.sender' gets the Admin role. * */ constructor( string memory _uri, string memory _name, string memory _symbol ) ERC1155(_uri) { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); name = _name; symbol = _symbol; } /** * @dev It mints/creates 1 LDR Token calling `_mint()` from ERC1155 OpenZeppelin implementation. * Each address can only mint one token per category. * @param _category LDR Token category * @param _data Additional data with no specified format * @param _signature Signature authorizing the mint */ function mint( uint256 _category, bytes memory _data, bytes memory _signature ) external nonReentrant whenNotPaused { require(isSignatureValid(_category, _signature), "LDRT: Invalid signature"); require(_category >= 1, "LDRT: Invalid category. It is less than 1."); require(_category <= 9, "LDRT: Invalid category. It is greater than 9."); bytes32 hashAdrrCategory = keccak256(abi.encodePacked(msg.sender, _category)); bool hasMinted = categoriesMinted[hashAdrrCategory]; require( !hasMinted, "LDRT: Address already has token for that category." ); categoriesMinted[hashAdrrCategory] = true; // 1 is because it will mint 1 token for that category _mint(msg.sender, _category, 1, _data); } /// @dev Returns if signature is valid function isSignatureValid(uint256 _category, bytes memory _signature) internal view returns (bool) { bytes32 result = keccak256(abi.encodePacked(msg.sender, _category)); bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result)); return signer.isValidSignatureNow(hash, _signature); } function burnBatch( address _account, uint256[] memory _ids, uint256[] memory _amounts ) external onlyRole(REDEEMER_ROLE) { _burnBatch(_account, _ids, _amounts); } /** * @dev It burns 1 LDR Token. To be called by another smart contract or wallet with the REDEEMER_ROLE role. * * Emits a {LDRTokenRedeemed} event. * * @param _account Token owner address - cannot be the zero address. * @param _category LDR Token category */ function redeem(address _account, uint256 _category) external onlyRole(REDEEMER_ROLE) { require(balanceOf(_account, _category) >= 1, "LDRT: No LDR Token."); _burn(_account, _category, 1); emit LDRTokenRedeemed(_account, _category); } /** * @dev Sets a new URI for all token categories */ function setURI(string memory _newuri) external onlyRole(DEFAULT_ADMIN_ROLE) { _setURI(_newuri); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Sets new signer address. Only Admin can call this function. * * @param _signer The account address to sign licenses requests */ function updateSigner(address _signer) external onlyRole(DEFAULT_ADMIN_ROLE) { signer = _signer; } /// @dev Pause function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } /// @dev Unpause function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; import "../Address.sol"; import "../../interfaces/IERC1271.sol"; /** * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like * Argent and Gnosis Safe. * * _Available since v4.1._ */ library SignatureChecker { /** * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature); if (error == ECDSA.RecoverError.NoError && recovered == signer) { return true; } (bool success, bytes memory result) = signer.staticcall( abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature) ); return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.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 IERC1155MetadataURI is IERC1155 { /** * @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.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * 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 v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.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 ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address 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}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).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: balance query for the zero address"); 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 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: transfer caller is not 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(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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); _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); _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(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * 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(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); 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); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * 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); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "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 `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 _beforeTokenTransfer( 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 IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.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 IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Pausable is Context { /** * @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. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { 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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271 { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// 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 IAccessControl { /** * @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.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.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 AccessControl is Context, IAccessControl, ERC165 { 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, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).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 `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 ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.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. */ 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. */ 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`. */ 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. * * [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. */ 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. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "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
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"_sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_categoryId","type":"uint256"}],"name":"LDRTokenRedeemed","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REDEEMER_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":"address","name":"_account","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_category","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_category","type":"uint256"}],"name":"redeem","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":"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":"string","name":"_newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620055b9380380620055b98339818101604052810190620000379190620004a1565b826200004981620000bd60201b60201c565b5060016003819055506000600460006101000a81548160ff021916908315150217905550620000826000801b33620000d960201b60201c565b81600890805190602001906200009a92919062000254565b508060099080519060200190620000b392919062000254565b50505050620005be565b8060029080519060200190620000d592919062000254565b5050565b620000eb8282620000ef60201b60201c565b5050565b620001018282620001e160201b60201c565b620001dd5760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001826200024c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b828054620002629062000589565b90600052602060002090601f016020900481019282620002865760008555620002d2565b82601f10620002a157805160ff1916838001178555620002d2565b82800160010185558215620002d2579182015b82811115620002d1578251825591602001919060010190620002b4565b5b509050620002e19190620002e5565b5090565b5b8082111562000300576000816000905550600101620002e6565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200036d8262000322565b810181811067ffffffffffffffff821117156200038f576200038e62000333565b5b80604052505050565b6000620003a462000304565b9050620003b2828262000362565b919050565b600067ffffffffffffffff821115620003d557620003d462000333565b5b620003e08262000322565b9050602081019050919050565b60005b838110156200040d578082015181840152602081019050620003f0565b838111156200041d576000848401525b50505050565b60006200043a6200043484620003b7565b62000398565b9050828152602081018484840111156200045957620004586200031d565b5b62000466848285620003ed565b509392505050565b600082601f83011262000486576200048562000318565b5b81516200049884826020860162000423565b91505092915050565b600080600060608486031215620004bd57620004bc6200030e565b5b600084015167ffffffffffffffff811115620004de57620004dd62000313565b5b620004ec868287016200046e565b935050602084015167ffffffffffffffff81111562000510576200050f62000313565b5b6200051e868287016200046e565b925050604084015167ffffffffffffffff81111562000542576200054162000313565b5b62000550868287016200046e565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005a257607f821691505b602082108103620005b857620005b76200055a565b5b50919050565b614feb80620005ce6000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80635c975abb116100de578063a217fddf11610097578063a7ecd37e11610071578063a7ecd37e1461045a578063d547741f14610476578063e985e9c514610492578063f242432a146104c25761018d565b8063a217fddf14610404578063a22cb46514610422578063a3cba09a1461043e5761018d565b80635c975abb146103545780636b20c454146103725780637fa46ab41461038e5780638456cb59146103ac57806391d14854146103b657806395d89b41146103e65761018d565b8063238ac9331161014b5780632f2ff15d116101255780632f2ff15d146102e257806336568abe146102fe5780633f4ba83a1461031a5780634e1273f4146103245761018d565b8063238ac93314610278578063248a9ca3146102965780632eb2c2d6146102c65761018d565b8062fdd58e1461019257806301ffc9a7146101c257806302fe5305146101f257806306fdde031461020e5780630e89341c1461022c5780631e9a69501461025c575b600080fd5b6101ac60048036038101906101a79190613057565b6104de565b6040516101b991906130a6565b60405180910390f35b6101dc60048036038101906101d79190613119565b6105a6565b6040516101e99190613161565b60405180910390f35b61020c600480360381019061020791906132c2565b610688565b005b6102166106aa565b6040516102239190613393565b60405180910390f35b610246600480360381019061024191906133b5565b610738565b6040516102539190613393565b60405180910390f35b61027660048036038101906102719190613057565b6107cc565b005b610280610895565b60405161028d91906133f1565b60405180910390f35b6102b060048036038101906102ab9190613442565b6108bb565b6040516102bd919061347e565b60405180910390f35b6102e060048036038101906102db9190613602565b6108db565b005b6102fc60048036038101906102f791906136d1565b61097c565b005b610318600480360381019061031391906136d1565b6109a5565b005b610322610a28565b005b61033e600480360381019061033991906137d4565b610a48565b60405161034b919061390a565b60405180910390f35b61035c610b61565b6040516103699190613161565b60405180910390f35b61038c6004803603810190610387919061392c565b610b78565b005b610396610bbb565b6040516103a3919061347e565b60405180910390f35b6103b4610bdf565b005b6103d060048036038101906103cb91906136d1565b610bff565b6040516103dd9190613161565b60405180910390f35b6103ee610c6a565b6040516103fb9190613393565b60405180910390f35b61040c610cf8565b604051610419919061347e565b60405180910390f35b61043c600480360381019061043791906139e3565b610cff565b005b61045860048036038101906104539190613a23565b610d15565b005b610474600480360381019061046f9190613aae565b610f56565b005b610490600480360381019061048b91906136d1565b610fb0565b005b6104ac60048036038101906104a79190613adb565b610fd9565b6040516104b99190613161565b60405180910390f35b6104dc60048036038101906104d79190613b1b565b61106d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361054e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054590613c24565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061068157506106808261110e565b5b9050919050565b6000801b61069d81610698611188565b611190565b6106a68261122d565b5050565b600880546106b790613c73565b80601f01602080910402602001604051908101604052809291908181526020018280546106e390613c73565b80156107305780601f1061070557610100808354040283529160200191610730565b820191906000526020600020905b81548152906001019060200180831161071357829003601f168201915b505050505081565b60606002805461074790613c73565b80601f016020809104026020016040519081016040528092919081815260200182805461077390613c73565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b50505050509050919050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc6107fe816107f9611188565b611190565b600161080a84846104de565b101561084b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084290613cf0565b60405180910390fd5b61085783836001611247565b7f2abc937037181c5932f62247303a19f4f4def574be9ebf9ed5d317f9a13d51458383604051610888929190613d10565b60405180910390a1505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060056000838152602001908152602001600020600101549050919050565b6108e3611188565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610929575061092885610923611188565b610fd9565b5b610968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095f90613dab565b60405180910390fd5b6109758585858585611463565b5050505050565b610985826108bb565b61099681610991611188565b611190565b6109a08383611776565b505050565b6109ad611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1190613e3d565b60405180910390fd5b610a248282611857565b5050565b6000801b610a3d81610a38611188565b611190565b610a45611939565b50565b60608151835114610a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8590613ecf565b60405180910390fd5b6000835167ffffffffffffffff811115610aab57610aaa613197565b5b604051908082528060200260200182016040528015610ad95781602001602082028036833780820191505090505b50905060005b8451811015610b5657610b26858281518110610afe57610afd613eef565b5b6020026020010151858381518110610b1957610b18613eef565b5b60200260200101516104de565b828281518110610b3957610b38613eef565b5b60200260200101818152505080610b4f90613f4d565b9050610adf565b508091505092915050565b6000600460009054906101000a900460ff16905090565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc610baa81610ba5611188565b611190565b610bb58484846119db565b50505050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b6000801b610bf481610bef611188565b611190565b610bfc611c8b565b50565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60098054610c7790613c73565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca390613c73565b8015610cf05780601f10610cc557610100808354040283529160200191610cf0565b820191906000526020600020905b815481529060010190602001808311610cd357829003601f168201915b505050505081565b6000801b81565b610d11610d0a611188565b8383611d2e565b5050565b600260035403610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5190613fe1565b60405180910390fd5b6002600381905550610d6a610b61565b15610daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da19061404d565b60405180910390fd5b610db48382611e9a565b610df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dea906140b9565b60405180910390fd5b6001831015610e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2e9061414b565b60405180910390fd5b6009831115610e7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e72906141dd565b60405180910390fd5b60003384604051602001610e90929190614266565b60405160208183030381529060405280519060200120905060006007600083815260200190815260200160002060009054906101000a900460ff1690508015610f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0590614304565b60405180910390fd5b60016007600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610f473386600187611f4a565b50506001600381905550505050565b6000801b610f6b81610f66611188565b611190565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610fb9826108bb565b610fca81610fc5611188565b611190565b610fd48383611857565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611075611188565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110bb57506110ba856110b5611188565b610fd9565b5b6110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f190614396565b60405180910390fd5b61110785858585856120df565b5050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611181575061118082612360565b5b9050919050565b600033905090565b61119a8282610bff565b611229576111bf8173ffffffffffffffffffffffffffffffffffffffff166014612442565b6111cd8360001c6020612442565b6040516020016111de92919061448a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112209190613393565b60405180910390fd5b5050565b8060029080519060200190611243929190612f0c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90614536565b60405180910390fd5b60006112c0611188565b90506112f0818560006112d28761267e565b6112db8761267e565b604051806020016040528060008152506126f8565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137e906145c8565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516114549291906145e8565b60405180910390a45050505050565b81518351146114a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149e90614683565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150d90614715565b60405180910390fd5b6000611520611188565b90506115308187878787876126f8565b60005b84518110156116e157600085828151811061155157611550613eef565b5b6020026020010151905060008583815181106115705761156f613eef565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611608906147a7565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116c691906147c7565b92505081905550505050806116da90613f4d565b9050611533565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161175892919061481d565b60405180910390a461176e818787878787612700565b505050505050565b6117808282610bff565b6118535760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117f8611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118618282610bff565b156119355760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118da611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611941610b61565b611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906148a0565b60405180910390fd5b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6119c4611188565b6040516119d191906133f1565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4190614536565b60405180910390fd5b8051825114611a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8590614683565b60405180910390fd5b6000611a98611188565b9050611ab8818560008686604051806020016040528060008152506126f8565b60005b8351811015611c05576000848281518110611ad957611ad8613eef565b5b602002602001015190506000848381518110611af857611af7613eef565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b90906145c8565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611bfd90613f4d565b915050611abb565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611c7d92919061481d565b60405180910390a450505050565b611c93610b61565b15611cd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cca9061404d565b60405180910390fd5b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d17611188565b604051611d2491906133f1565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9390614932565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e8d9190613161565b60405180910390a3505050565b6000803384604051602001611eb0929190614266565b604051602081830303815290604052805190602001209050600081604051602001611edb91906149bf565b604051602081830303815290604052805190602001209050611f408185600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128d79092919063ffffffff16565b9250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090614a57565b60405180910390fd5b6000611fc3611188565b9050611fe481600087611fd58861267e565b611fde8861267e565b876126f8565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461204391906147c7565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516120c19291906145e8565b60405180910390a46120d881600087878787612abc565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614715565b60405180910390fd5b6000612158611188565b90506121788187876121698861267e565b6121728861267e565b876126f8565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561220f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612206906147a7565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122c491906147c7565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516123419291906145e8565b60405180910390a4612357828888888888612abc565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061242b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061243b575061243a82612c93565b5b9050919050565b6060600060028360026124559190614a77565b61245f91906147c7565b67ffffffffffffffff81111561247857612477613197565b5b6040519080825280601f01601f1916602001820160405280156124aa5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106124e2576124e1613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061254657612545613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125869190614a77565b61259091906147c7565b90505b6001811115612630577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125d2576125d1613eef565b5b1a60f81b8282815181106125e9576125e8613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061262990614ad1565b9050612593565b5060008414612674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266b90614b46565b60405180910390fd5b8091505092915050565b60606000600167ffffffffffffffff81111561269d5761269c613197565b5b6040519080825280602002602001820160405280156126cb5781602001602082028036833780820191505090505b50905082816000815181106126e3576126e2613eef565b5b60200260200101818152505080915050919050565b505050505050565b61271f8473ffffffffffffffffffffffffffffffffffffffff16612cfd565b156128cf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612765959493929190614bbb565b6020604051808303816000875af19250505080156127a157506040513d601f19601f8201168201806040525081019061279e9190614c38565b60015b612846576127ad614c72565b806308c379a00361280957506127c1614c94565b806127cc575061280b565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128009190613393565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283d90614d96565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146128cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c490614e28565b60405180910390fd5b505b505050505050565b60008060006128e68585612d20565b91509150600060048111156128fe576128fd614e48565b5b81600481111561291157612910614e48565b5b14801561294957508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561295957600192505050612ab5565b6000808773ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b888860405160240161298e929190614e77565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516129f89190614ee3565b600060405180830381855afa9150503d8060008114612a33576040519150601f19603f3d011682016040523d82523d6000602084013e612a38565b606091505b5091509150818015612a4b575060208151145b8015612aae5750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190612a8d9190614c38565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9450505050505b9392505050565b612adb8473ffffffffffffffffffffffffffffffffffffffff16612cfd565b15612c8b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612b21959493929190614efa565b6020604051808303816000875af1925050508015612b5d57506040513d601f19601f82011682018060405250810190612b5a9190614c38565b60015b612c0257612b69614c72565b806308c379a003612bc55750612b7d614c94565b80612b885750612bc7565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbc9190613393565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf990614d96565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8090614e28565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000806041835103612d615760008060006020860151925060408601519150606086015160001a9050612d5587828585612da1565b94509450505050612d9a565b6040835103612d91576000806020850151915060408501519050612d86868383612ead565b935093505050612d9a565b60006002915091505b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612ddc576000600391509150612ea4565b601b8560ff1614158015612df45750601c8560ff1614155b15612e06576000600491509150612ea4565b600060018787878760405160008152602001604052604051612e2b9493929190614f70565b6020604051602081039080840390855afa158015612e4d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612e9b57600060019250925050612ea4565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c612ef091906147c7565b9050612efe87828885612da1565b935093505050935093915050565b828054612f1890613c73565b90600052602060002090601f016020900481019282612f3a5760008555612f81565b82601f10612f5357805160ff1916838001178555612f81565b82800160010185558215612f81579182015b82811115612f80578251825591602001919060010190612f65565b5b509050612f8e9190612f92565b5090565b5b80821115612fab576000816000905550600101612f93565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fee82612fc3565b9050919050565b612ffe81612fe3565b811461300957600080fd5b50565b60008135905061301b81612ff5565b92915050565b6000819050919050565b61303481613021565b811461303f57600080fd5b50565b6000813590506130518161302b565b92915050565b6000806040838503121561306e5761306d612fb9565b5b600061307c8582860161300c565b925050602061308d85828601613042565b9150509250929050565b6130a081613021565b82525050565b60006020820190506130bb6000830184613097565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130f6816130c1565b811461310157600080fd5b50565b600081359050613113816130ed565b92915050565b60006020828403121561312f5761312e612fb9565b5b600061313d84828501613104565b91505092915050565b60008115159050919050565b61315b81613146565b82525050565b60006020820190506131766000830184613152565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131cf82613186565b810181811067ffffffffffffffff821117156131ee576131ed613197565b5b80604052505050565b6000613201612faf565b905061320d82826131c6565b919050565b600067ffffffffffffffff82111561322d5761322c613197565b5b61323682613186565b9050602081019050919050565b82818337600083830152505050565b600061326561326084613212565b6131f7565b90508281526020810184848401111561328157613280613181565b5b61328c848285613243565b509392505050565b600082601f8301126132a9576132a861317c565b5b81356132b9848260208601613252565b91505092915050565b6000602082840312156132d8576132d7612fb9565b5b600082013567ffffffffffffffff8111156132f6576132f5612fbe565b5b61330284828501613294565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561334557808201518184015260208101905061332a565b83811115613354576000848401525b50505050565b60006133658261330b565b61336f8185613316565b935061337f818560208601613327565b61338881613186565b840191505092915050565b600060208201905081810360008301526133ad818461335a565b905092915050565b6000602082840312156133cb576133ca612fb9565b5b60006133d984828501613042565b91505092915050565b6133eb81612fe3565b82525050565b600060208201905061340660008301846133e2565b92915050565b6000819050919050565b61341f8161340c565b811461342a57600080fd5b50565b60008135905061343c81613416565b92915050565b60006020828403121561345857613457612fb9565b5b60006134668482850161342d565b91505092915050565b6134788161340c565b82525050565b6000602082019050613493600083018461346f565b92915050565b600067ffffffffffffffff8211156134b4576134b3613197565b5b602082029050602081019050919050565b600080fd5b60006134dd6134d884613499565b6131f7565b90508083825260208201905060208402830185811115613500576134ff6134c5565b5b835b8181101561352957806135158882613042565b845260208401935050602081019050613502565b5050509392505050565b600082601f8301126135485761354761317c565b5b81356135588482602086016134ca565b91505092915050565b600067ffffffffffffffff82111561357c5761357b613197565b5b61358582613186565b9050602081019050919050565b60006135a56135a084613561565b6131f7565b9050828152602081018484840111156135c1576135c0613181565b5b6135cc848285613243565b509392505050565b600082601f8301126135e9576135e861317c565b5b81356135f9848260208601613592565b91505092915050565b600080600080600060a0868803121561361e5761361d612fb9565b5b600061362c8882890161300c565b955050602061363d8882890161300c565b945050604086013567ffffffffffffffff81111561365e5761365d612fbe565b5b61366a88828901613533565b935050606086013567ffffffffffffffff81111561368b5761368a612fbe565b5b61369788828901613533565b925050608086013567ffffffffffffffff8111156136b8576136b7612fbe565b5b6136c4888289016135d4565b9150509295509295909350565b600080604083850312156136e8576136e7612fb9565b5b60006136f68582860161342d565b92505060206137078582860161300c565b9150509250929050565b600067ffffffffffffffff82111561372c5761372b613197565b5b602082029050602081019050919050565b600061375061374b84613711565b6131f7565b90508083825260208201905060208402830185811115613773576137726134c5565b5b835b8181101561379c5780613788888261300c565b845260208401935050602081019050613775565b5050509392505050565b600082601f8301126137bb576137ba61317c565b5b81356137cb84826020860161373d565b91505092915050565b600080604083850312156137eb576137ea612fb9565b5b600083013567ffffffffffffffff81111561380957613808612fbe565b5b613815858286016137a6565b925050602083013567ffffffffffffffff81111561383657613835612fbe565b5b61384285828601613533565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61388181613021565b82525050565b60006138938383613878565b60208301905092915050565b6000602082019050919050565b60006138b78261384c565b6138c18185613857565b93506138cc83613868565b8060005b838110156138fd5781516138e48882613887565b97506138ef8361389f565b9250506001810190506138d0565b5085935050505092915050565b6000602082019050818103600083015261392481846138ac565b905092915050565b60008060006060848603121561394557613944612fb9565b5b60006139538682870161300c565b935050602084013567ffffffffffffffff81111561397457613973612fbe565b5b61398086828701613533565b925050604084013567ffffffffffffffff8111156139a1576139a0612fbe565b5b6139ad86828701613533565b9150509250925092565b6139c081613146565b81146139cb57600080fd5b50565b6000813590506139dd816139b7565b92915050565b600080604083850312156139fa576139f9612fb9565b5b6000613a088582860161300c565b9250506020613a19858286016139ce565b9150509250929050565b600080600060608486031215613a3c57613a3b612fb9565b5b6000613a4a86828701613042565b935050602084013567ffffffffffffffff811115613a6b57613a6a612fbe565b5b613a77868287016135d4565b925050604084013567ffffffffffffffff811115613a9857613a97612fbe565b5b613aa4868287016135d4565b9150509250925092565b600060208284031215613ac457613ac3612fb9565b5b6000613ad28482850161300c565b91505092915050565b60008060408385031215613af257613af1612fb9565b5b6000613b008582860161300c565b9250506020613b118582860161300c565b9150509250929050565b600080600080600060a08688031215613b3757613b36612fb9565b5b6000613b458882890161300c565b9550506020613b568882890161300c565b9450506040613b6788828901613042565b9350506060613b7888828901613042565b925050608086013567ffffffffffffffff811115613b9957613b98612fbe565b5b613ba5888289016135d4565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613c0e602b83613316565b9150613c1982613bb2565b604082019050919050565b60006020820190508181036000830152613c3d81613c01565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c8b57607f821691505b602082108103613c9e57613c9d613c44565b5b50919050565b7f4c4452543a204e6f204c445220546f6b656e2e00000000000000000000000000600082015250565b6000613cda601383613316565b9150613ce582613ca4565b602082019050919050565b60006020820190508181036000830152613d0981613ccd565b9050919050565b6000604082019050613d2560008301856133e2565b613d326020830184613097565b9392505050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613d95603283613316565b9150613da082613d39565b604082019050919050565b60006020820190508181036000830152613dc481613d88565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613e27602f83613316565b9150613e3282613dcb565b604082019050919050565b60006020820190508181036000830152613e5681613e1a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613eb9602983613316565b9150613ec482613e5d565b604082019050919050565b60006020820190508181036000830152613ee881613eac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f5882613021565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f8a57613f89613f1e565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613fcb601f83613316565b9150613fd682613f95565b602082019050919050565b60006020820190508181036000830152613ffa81613fbe565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614037601083613316565b915061404282614001565b602082019050919050565b600060208201905081810360008301526140668161402a565b9050919050565b7f4c4452543a20496e76616c6964207369676e6174757265000000000000000000600082015250565b60006140a3601783613316565b91506140ae8261406d565b602082019050919050565b600060208201905081810360008301526140d281614096565b9050919050565b7f4c4452543a20496e76616c69642063617465676f72792e204974206973206c6560008201527f7373207468616e20312e00000000000000000000000000000000000000000000602082015250565b6000614135602a83613316565b9150614140826140d9565b604082019050919050565b6000602082019050818103600083015261416481614128565b9050919050565b7f4c4452543a20496e76616c69642063617465676f72792e20497420697320677260008201527f6561746572207468616e20392e00000000000000000000000000000000000000602082015250565b60006141c7602d83613316565b91506141d28261416b565b604082019050919050565b600060208201905081810360008301526141f6816141ba565b9050919050565b60008160601b9050919050565b6000614215826141fd565b9050919050565b60006142278261420a565b9050919050565b61423f61423a82612fe3565b61421c565b82525050565b6000819050919050565b61426061425b82613021565b614245565b82525050565b6000614272828561422e565b601482019150614282828461424f565b6020820191508190509392505050565b7f4c4452543a204164647265737320616c72656164792068617320746f6b656e2060008201527f666f7220746861742063617465676f72792e0000000000000000000000000000602082015250565b60006142ee603283613316565b91506142f982614292565b604082019050919050565b6000602082019050818103600083015261431d816142e1565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b6000614380602983613316565b915061438b82614324565b604082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006143f76017836143b6565b9150614402826143c1565b601782019050919050565b60006144188261330b565b61442281856143b6565b9350614432818560208601613327565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006144746011836143b6565b915061447f8261443e565b601182019050919050565b6000614495826143ea565b91506144a1828561440d565b91506144ac82614467565b91506144b8828461440d565b91508190509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614520602383613316565b915061452b826144c4565b604082019050919050565b6000602082019050818103600083015261454f81614513565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006145b2602483613316565b91506145bd82614556565b604082019050919050565b600060208201905081810360008301526145e1816145a5565b9050919050565b60006040820190506145fd6000830185613097565b61460a6020830184613097565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061466d602883613316565b915061467882614611565b604082019050919050565b6000602082019050818103600083015261469c81614660565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006146ff602583613316565b915061470a826146a3565b604082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614791602a83613316565b915061479c82614735565b604082019050919050565b600060208201905081810360008301526147c081614784565b9050919050565b60006147d282613021565b91506147dd83613021565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561481257614811613f1e565b5b828201905092915050565b6000604082019050818103600083015261483781856138ac565b9050818103602083015261484b81846138ac565b90509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061488a601483613316565b915061489582614854565b602082019050919050565b600060208201905081810360008301526148b98161487d565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061491c602983613316565b9150614927826148c0565b604082019050919050565b6000602082019050818103600083015261494b8161490f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614988601c836143b6565b915061499382614952565b601c82019050919050565b6000819050919050565b6149b96149b48261340c565b61499e565b82525050565b60006149ca8261497b565b91506149d682846149a8565b60208201915081905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a41602183613316565b9150614a4c826149e5565b604082019050919050565b60006020820190508181036000830152614a7081614a34565b9050919050565b6000614a8282613021565b9150614a8d83613021565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac657614ac5613f1e565b5b828202905092915050565b6000614adc82613021565b915060008203614aef57614aee613f1e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614b30602083613316565b9150614b3b82614afa565b602082019050919050565b60006020820190508181036000830152614b5f81614b23565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b8d82614b66565b614b978185614b71565b9350614ba7818560208601613327565b614bb081613186565b840191505092915050565b600060a082019050614bd060008301886133e2565b614bdd60208301876133e2565b8181036040830152614bef81866138ac565b90508181036060830152614c0381856138ac565b90508181036080830152614c178184614b82565b90509695505050505050565b600081519050614c32816130ed565b92915050565b600060208284031215614c4e57614c4d612fb9565b5b6000614c5c84828501614c23565b91505092915050565b60008160e01c9050919050565b600060033d1115614c915760046000803e614c8e600051614c65565b90505b90565b600060443d10614d2157614ca6612faf565b60043d036004823e80513d602482011167ffffffffffffffff82111715614cce575050614d21565b808201805167ffffffffffffffff811115614cec5750505050614d21565b80602083010160043d038501811115614d09575050505050614d21565b614d18826020018501866131c6565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614d80603483613316565b9150614d8b82614d24565b604082019050919050565b60006020820190508181036000830152614daf81614d73565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614e12602883613316565b9150614e1d82614db6565b604082019050919050565b60006020820190508181036000830152614e4181614e05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604082019050614e8c600083018561346f565b8181036020830152614e9e8184614b82565b90509392505050565b600081905092915050565b6000614ebd82614b66565b614ec78185614ea7565b9350614ed7818560208601613327565b80840191505092915050565b6000614eef8284614eb2565b915081905092915050565b600060a082019050614f0f60008301886133e2565b614f1c60208301876133e2565b614f296040830186613097565b614f366060830185613097565b8181036080830152614f488184614b82565b90509695505050505050565b600060ff82169050919050565b614f6a81614f54565b82525050565b6000608082019050614f85600083018761346f565b614f926020830186614f61565b614f9f604083018561346f565b614fac606083018461346f565b9594505050505056fea264697066735822122043f04d88ce2d34bf3550b33fdb5a11aecef292386baaf742bbc790d0c695424164736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b697066733a2f2f7465737400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000144c6f76652c204465617468202b20526f626f747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c44520000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80635c975abb116100de578063a217fddf11610097578063a7ecd37e11610071578063a7ecd37e1461045a578063d547741f14610476578063e985e9c514610492578063f242432a146104c25761018d565b8063a217fddf14610404578063a22cb46514610422578063a3cba09a1461043e5761018d565b80635c975abb146103545780636b20c454146103725780637fa46ab41461038e5780638456cb59146103ac57806391d14854146103b657806395d89b41146103e65761018d565b8063238ac9331161014b5780632f2ff15d116101255780632f2ff15d146102e257806336568abe146102fe5780633f4ba83a1461031a5780634e1273f4146103245761018d565b8063238ac93314610278578063248a9ca3146102965780632eb2c2d6146102c65761018d565b8062fdd58e1461019257806301ffc9a7146101c257806302fe5305146101f257806306fdde031461020e5780630e89341c1461022c5780631e9a69501461025c575b600080fd5b6101ac60048036038101906101a79190613057565b6104de565b6040516101b991906130a6565b60405180910390f35b6101dc60048036038101906101d79190613119565b6105a6565b6040516101e99190613161565b60405180910390f35b61020c600480360381019061020791906132c2565b610688565b005b6102166106aa565b6040516102239190613393565b60405180910390f35b610246600480360381019061024191906133b5565b610738565b6040516102539190613393565b60405180910390f35b61027660048036038101906102719190613057565b6107cc565b005b610280610895565b60405161028d91906133f1565b60405180910390f35b6102b060048036038101906102ab9190613442565b6108bb565b6040516102bd919061347e565b60405180910390f35b6102e060048036038101906102db9190613602565b6108db565b005b6102fc60048036038101906102f791906136d1565b61097c565b005b610318600480360381019061031391906136d1565b6109a5565b005b610322610a28565b005b61033e600480360381019061033991906137d4565b610a48565b60405161034b919061390a565b60405180910390f35b61035c610b61565b6040516103699190613161565b60405180910390f35b61038c6004803603810190610387919061392c565b610b78565b005b610396610bbb565b6040516103a3919061347e565b60405180910390f35b6103b4610bdf565b005b6103d060048036038101906103cb91906136d1565b610bff565b6040516103dd9190613161565b60405180910390f35b6103ee610c6a565b6040516103fb9190613393565b60405180910390f35b61040c610cf8565b604051610419919061347e565b60405180910390f35b61043c600480360381019061043791906139e3565b610cff565b005b61045860048036038101906104539190613a23565b610d15565b005b610474600480360381019061046f9190613aae565b610f56565b005b610490600480360381019061048b91906136d1565b610fb0565b005b6104ac60048036038101906104a79190613adb565b610fd9565b6040516104b99190613161565b60405180910390f35b6104dc60048036038101906104d79190613b1b565b61106d565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361054e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054590613c24565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061067157507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061068157506106808261110e565b5b9050919050565b6000801b61069d81610698611188565b611190565b6106a68261122d565b5050565b600880546106b790613c73565b80601f01602080910402602001604051908101604052809291908181526020018280546106e390613c73565b80156107305780601f1061070557610100808354040283529160200191610730565b820191906000526020600020905b81548152906001019060200180831161071357829003601f168201915b505050505081565b60606002805461074790613c73565b80601f016020809104026020016040519081016040528092919081815260200182805461077390613c73565b80156107c05780601f10610795576101008083540402835291602001916107c0565b820191906000526020600020905b8154815290600101906020018083116107a357829003601f168201915b50505050509050919050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc6107fe816107f9611188565b611190565b600161080a84846104de565b101561084b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084290613cf0565b60405180910390fd5b61085783836001611247565b7f2abc937037181c5932f62247303a19f4f4def574be9ebf9ed5d317f9a13d51458383604051610888929190613d10565b60405180910390a1505050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060056000838152602001908152602001600020600101549050919050565b6108e3611188565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610929575061092885610923611188565b610fd9565b5b610968576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095f90613dab565b60405180910390fd5b6109758585858585611463565b5050505050565b610985826108bb565b61099681610991611188565b611190565b6109a08383611776565b505050565b6109ad611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1190613e3d565b60405180910390fd5b610a248282611857565b5050565b6000801b610a3d81610a38611188565b611190565b610a45611939565b50565b60608151835114610a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8590613ecf565b60405180910390fd5b6000835167ffffffffffffffff811115610aab57610aaa613197565b5b604051908082528060200260200182016040528015610ad95781602001602082028036833780820191505090505b50905060005b8451811015610b5657610b26858281518110610afe57610afd613eef565b5b6020026020010151858381518110610b1957610b18613eef565b5b60200260200101516104de565b828281518110610b3957610b38613eef565b5b60200260200101818152505080610b4f90613f4d565b9050610adf565b508091505092915050565b6000600460009054906101000a900460ff16905090565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc610baa81610ba5611188565b611190565b610bb58484846119db565b50505050565b7f44ac9762eec3a11893fefb11d028bb3102560094137c3ed4518712475b2577cc81565b6000801b610bf481610bef611188565b611190565b610bfc611c8b565b50565b60006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60098054610c7790613c73565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca390613c73565b8015610cf05780601f10610cc557610100808354040283529160200191610cf0565b820191906000526020600020905b815481529060010190602001808311610cd357829003601f168201915b505050505081565b6000801b81565b610d11610d0a611188565b8383611d2e565b5050565b600260035403610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5190613fe1565b60405180910390fd5b6002600381905550610d6a610b61565b15610daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da19061404d565b60405180910390fd5b610db48382611e9a565b610df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dea906140b9565b60405180910390fd5b6001831015610e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2e9061414b565b60405180910390fd5b6009831115610e7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e72906141dd565b60405180910390fd5b60003384604051602001610e90929190614266565b60405160208183030381529060405280519060200120905060006007600083815260200190815260200160002060009054906101000a900460ff1690508015610f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0590614304565b60405180910390fd5b60016007600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610f473386600187611f4a565b50506001600381905550505050565b6000801b610f6b81610f66611188565b611190565b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b610fb9826108bb565b610fca81610fc5611188565b611190565b610fd48383611857565b505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611075611188565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110bb57506110ba856110b5611188565b610fd9565b5b6110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f190614396565b60405180910390fd5b61110785858585856120df565b5050505050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611181575061118082612360565b5b9050919050565b600033905090565b61119a8282610bff565b611229576111bf8173ffffffffffffffffffffffffffffffffffffffff166014612442565b6111cd8360001c6020612442565b6040516020016111de92919061448a565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112209190613393565b60405180910390fd5b5050565b8060029080519060200190611243929190612f0c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90614536565b60405180910390fd5b60006112c0611188565b90506112f0818560006112d28761267e565b6112db8761267e565b604051806020016040528060008152506126f8565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137e906145c8565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516114549291906145e8565b60405180910390a45050505050565b81518351146114a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149e90614683565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150d90614715565b60405180910390fd5b6000611520611188565b90506115308187878787876126f8565b60005b84518110156116e157600085828151811061155157611550613eef565b5b6020026020010151905060008583815181106115705761156f613eef565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611608906147a7565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116c691906147c7565b92505081905550505050806116da90613f4d565b9050611533565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161175892919061481d565b60405180910390a461176e818787878787612700565b505050505050565b6117808282610bff565b6118535760016005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117f8611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118618282610bff565b156119355760006005600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506118da611188565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611941610b61565b611980576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611977906148a0565b60405180910390fd5b6000600460006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6119c4611188565b6040516119d191906133f1565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4190614536565b60405180910390fd5b8051825114611a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8590614683565b60405180910390fd5b6000611a98611188565b9050611ab8818560008686604051806020016040528060008152506126f8565b60005b8351811015611c05576000848281518110611ad957611ad8613eef565b5b602002602001015190506000848381518110611af857611af7613eef565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b90906145c8565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080611bfd90613f4d565b915050611abb565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611c7d92919061481d565b60405180910390a450505050565b611c93610b61565b15611cd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cca9061404d565b60405180910390fd5b6001600460006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d17611188565b604051611d2491906133f1565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9390614932565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e8d9190613161565b60405180910390a3505050565b6000803384604051602001611eb0929190614266565b604051602081830303815290604052805190602001209050600081604051602001611edb91906149bf565b604051602081830303815290604052805190602001209050611f408185600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128d79092919063ffffffff16565b9250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090614a57565b60405180910390fd5b6000611fc3611188565b9050611fe481600087611fd58861267e565b611fde8861267e565b876126f8565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461204391906147c7565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6287876040516120c19291906145e8565b60405180910390a46120d881600087878787612abc565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614715565b60405180910390fd5b6000612158611188565b90506121788187876121698861267e565b6121728861267e565b876126f8565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508381101561220f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612206906147a7565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122c491906147c7565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516123419291906145e8565b60405180910390a4612357828888888888612abc565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061242b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061243b575061243a82612c93565b5b9050919050565b6060600060028360026124559190614a77565b61245f91906147c7565b67ffffffffffffffff81111561247857612477613197565b5b6040519080825280601f01601f1916602001820160405280156124aa5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106124e2576124e1613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061254657612545613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125869190614a77565b61259091906147c7565b90505b6001811115612630577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106125d2576125d1613eef565b5b1a60f81b8282815181106125e9576125e8613eef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061262990614ad1565b9050612593565b5060008414612674576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266b90614b46565b60405180910390fd5b8091505092915050565b60606000600167ffffffffffffffff81111561269d5761269c613197565b5b6040519080825280602002602001820160405280156126cb5781602001602082028036833780820191505090505b50905082816000815181106126e3576126e2613eef565b5b60200260200101818152505080915050919050565b505050505050565b61271f8473ffffffffffffffffffffffffffffffffffffffff16612cfd565b156128cf578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612765959493929190614bbb565b6020604051808303816000875af19250505080156127a157506040513d601f19601f8201168201806040525081019061279e9190614c38565b60015b612846576127ad614c72565b806308c379a00361280957506127c1614c94565b806127cc575061280b565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128009190613393565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283d90614d96565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146128cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c490614e28565b60405180910390fd5b505b505050505050565b60008060006128e68585612d20565b91509150600060048111156128fe576128fd614e48565b5b81600481111561291157612910614e48565b5b14801561294957508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561295957600192505050612ab5565b6000808773ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b888860405160240161298e929190614e77565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516129f89190614ee3565b600060405180830381855afa9150503d8060008114612a33576040519150601f19603f3d011682016040523d82523d6000602084013e612a38565b606091505b5091509150818015612a4b575060208151145b8015612aae5750631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051810190612a8d9190614c38565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9450505050505b9392505050565b612adb8473ffffffffffffffffffffffffffffffffffffffff16612cfd565b15612c8b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612b21959493929190614efa565b6020604051808303816000875af1925050508015612b5d57506040513d601f19601f82011682018060405250810190612b5a9190614c38565b60015b612c0257612b69614c72565b806308c379a003612bc55750612b7d614c94565b80612b885750612bc7565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbc9190613393565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf990614d96565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8090614e28565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000806041835103612d615760008060006020860151925060408601519150606086015160001a9050612d5587828585612da1565b94509450505050612d9a565b6040835103612d91576000806020850151915060408501519050612d86868383612ead565b935093505050612d9a565b60006002915091505b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612ddc576000600391509150612ea4565b601b8560ff1614158015612df45750601c8560ff1614155b15612e06576000600491509150612ea4565b600060018787878760405160008152602001604052604051612e2b9493929190614f70565b6020604051602081039080840390855afa158015612e4d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612e9b57600060019250925050612ea4565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c612ef091906147c7565b9050612efe87828885612da1565b935093505050935093915050565b828054612f1890613c73565b90600052602060002090601f016020900481019282612f3a5760008555612f81565b82601f10612f5357805160ff1916838001178555612f81565b82800160010185558215612f81579182015b82811115612f80578251825591602001919060010190612f65565b5b509050612f8e9190612f92565b5090565b5b80821115612fab576000816000905550600101612f93565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fee82612fc3565b9050919050565b612ffe81612fe3565b811461300957600080fd5b50565b60008135905061301b81612ff5565b92915050565b6000819050919050565b61303481613021565b811461303f57600080fd5b50565b6000813590506130518161302b565b92915050565b6000806040838503121561306e5761306d612fb9565b5b600061307c8582860161300c565b925050602061308d85828601613042565b9150509250929050565b6130a081613021565b82525050565b60006020820190506130bb6000830184613097565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130f6816130c1565b811461310157600080fd5b50565b600081359050613113816130ed565b92915050565b60006020828403121561312f5761312e612fb9565b5b600061313d84828501613104565b91505092915050565b60008115159050919050565b61315b81613146565b82525050565b60006020820190506131766000830184613152565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131cf82613186565b810181811067ffffffffffffffff821117156131ee576131ed613197565b5b80604052505050565b6000613201612faf565b905061320d82826131c6565b919050565b600067ffffffffffffffff82111561322d5761322c613197565b5b61323682613186565b9050602081019050919050565b82818337600083830152505050565b600061326561326084613212565b6131f7565b90508281526020810184848401111561328157613280613181565b5b61328c848285613243565b509392505050565b600082601f8301126132a9576132a861317c565b5b81356132b9848260208601613252565b91505092915050565b6000602082840312156132d8576132d7612fb9565b5b600082013567ffffffffffffffff8111156132f6576132f5612fbe565b5b61330284828501613294565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561334557808201518184015260208101905061332a565b83811115613354576000848401525b50505050565b60006133658261330b565b61336f8185613316565b935061337f818560208601613327565b61338881613186565b840191505092915050565b600060208201905081810360008301526133ad818461335a565b905092915050565b6000602082840312156133cb576133ca612fb9565b5b60006133d984828501613042565b91505092915050565b6133eb81612fe3565b82525050565b600060208201905061340660008301846133e2565b92915050565b6000819050919050565b61341f8161340c565b811461342a57600080fd5b50565b60008135905061343c81613416565b92915050565b60006020828403121561345857613457612fb9565b5b60006134668482850161342d565b91505092915050565b6134788161340c565b82525050565b6000602082019050613493600083018461346f565b92915050565b600067ffffffffffffffff8211156134b4576134b3613197565b5b602082029050602081019050919050565b600080fd5b60006134dd6134d884613499565b6131f7565b90508083825260208201905060208402830185811115613500576134ff6134c5565b5b835b8181101561352957806135158882613042565b845260208401935050602081019050613502565b5050509392505050565b600082601f8301126135485761354761317c565b5b81356135588482602086016134ca565b91505092915050565b600067ffffffffffffffff82111561357c5761357b613197565b5b61358582613186565b9050602081019050919050565b60006135a56135a084613561565b6131f7565b9050828152602081018484840111156135c1576135c0613181565b5b6135cc848285613243565b509392505050565b600082601f8301126135e9576135e861317c565b5b81356135f9848260208601613592565b91505092915050565b600080600080600060a0868803121561361e5761361d612fb9565b5b600061362c8882890161300c565b955050602061363d8882890161300c565b945050604086013567ffffffffffffffff81111561365e5761365d612fbe565b5b61366a88828901613533565b935050606086013567ffffffffffffffff81111561368b5761368a612fbe565b5b61369788828901613533565b925050608086013567ffffffffffffffff8111156136b8576136b7612fbe565b5b6136c4888289016135d4565b9150509295509295909350565b600080604083850312156136e8576136e7612fb9565b5b60006136f68582860161342d565b92505060206137078582860161300c565b9150509250929050565b600067ffffffffffffffff82111561372c5761372b613197565b5b602082029050602081019050919050565b600061375061374b84613711565b6131f7565b90508083825260208201905060208402830185811115613773576137726134c5565b5b835b8181101561379c5780613788888261300c565b845260208401935050602081019050613775565b5050509392505050565b600082601f8301126137bb576137ba61317c565b5b81356137cb84826020860161373d565b91505092915050565b600080604083850312156137eb576137ea612fb9565b5b600083013567ffffffffffffffff81111561380957613808612fbe565b5b613815858286016137a6565b925050602083013567ffffffffffffffff81111561383657613835612fbe565b5b61384285828601613533565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61388181613021565b82525050565b60006138938383613878565b60208301905092915050565b6000602082019050919050565b60006138b78261384c565b6138c18185613857565b93506138cc83613868565b8060005b838110156138fd5781516138e48882613887565b97506138ef8361389f565b9250506001810190506138d0565b5085935050505092915050565b6000602082019050818103600083015261392481846138ac565b905092915050565b60008060006060848603121561394557613944612fb9565b5b60006139538682870161300c565b935050602084013567ffffffffffffffff81111561397457613973612fbe565b5b61398086828701613533565b925050604084013567ffffffffffffffff8111156139a1576139a0612fbe565b5b6139ad86828701613533565b9150509250925092565b6139c081613146565b81146139cb57600080fd5b50565b6000813590506139dd816139b7565b92915050565b600080604083850312156139fa576139f9612fb9565b5b6000613a088582860161300c565b9250506020613a19858286016139ce565b9150509250929050565b600080600060608486031215613a3c57613a3b612fb9565b5b6000613a4a86828701613042565b935050602084013567ffffffffffffffff811115613a6b57613a6a612fbe565b5b613a77868287016135d4565b925050604084013567ffffffffffffffff811115613a9857613a97612fbe565b5b613aa4868287016135d4565b9150509250925092565b600060208284031215613ac457613ac3612fb9565b5b6000613ad28482850161300c565b91505092915050565b60008060408385031215613af257613af1612fb9565b5b6000613b008582860161300c565b9250506020613b118582860161300c565b9150509250929050565b600080600080600060a08688031215613b3757613b36612fb9565b5b6000613b458882890161300c565b9550506020613b568882890161300c565b9450506040613b6788828901613042565b9350506060613b7888828901613042565b925050608086013567ffffffffffffffff811115613b9957613b98612fbe565b5b613ba5888289016135d4565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613c0e602b83613316565b9150613c1982613bb2565b604082019050919050565b60006020820190508181036000830152613c3d81613c01565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c8b57607f821691505b602082108103613c9e57613c9d613c44565b5b50919050565b7f4c4452543a204e6f204c445220546f6b656e2e00000000000000000000000000600082015250565b6000613cda601383613316565b9150613ce582613ca4565b602082019050919050565b60006020820190508181036000830152613d0981613ccd565b9050919050565b6000604082019050613d2560008301856133e2565b613d326020830184613097565b9392505050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000613d95603283613316565b9150613da082613d39565b604082019050919050565b60006020820190508181036000830152613dc481613d88565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613e27602f83613316565b9150613e3282613dcb565b604082019050919050565b60006020820190508181036000830152613e5681613e1a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613eb9602983613316565b9150613ec482613e5d565b604082019050919050565b60006020820190508181036000830152613ee881613eac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f5882613021565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f8a57613f89613f1e565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613fcb601f83613316565b9150613fd682613f95565b602082019050919050565b60006020820190508181036000830152613ffa81613fbe565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614037601083613316565b915061404282614001565b602082019050919050565b600060208201905081810360008301526140668161402a565b9050919050565b7f4c4452543a20496e76616c6964207369676e6174757265000000000000000000600082015250565b60006140a3601783613316565b91506140ae8261406d565b602082019050919050565b600060208201905081810360008301526140d281614096565b9050919050565b7f4c4452543a20496e76616c69642063617465676f72792e204974206973206c6560008201527f7373207468616e20312e00000000000000000000000000000000000000000000602082015250565b6000614135602a83613316565b9150614140826140d9565b604082019050919050565b6000602082019050818103600083015261416481614128565b9050919050565b7f4c4452543a20496e76616c69642063617465676f72792e20497420697320677260008201527f6561746572207468616e20392e00000000000000000000000000000000000000602082015250565b60006141c7602d83613316565b91506141d28261416b565b604082019050919050565b600060208201905081810360008301526141f6816141ba565b9050919050565b60008160601b9050919050565b6000614215826141fd565b9050919050565b60006142278261420a565b9050919050565b61423f61423a82612fe3565b61421c565b82525050565b6000819050919050565b61426061425b82613021565b614245565b82525050565b6000614272828561422e565b601482019150614282828461424f565b6020820191508190509392505050565b7f4c4452543a204164647265737320616c72656164792068617320746f6b656e2060008201527f666f7220746861742063617465676f72792e0000000000000000000000000000602082015250565b60006142ee603283613316565b91506142f982614292565b604082019050919050565b6000602082019050818103600083015261431d816142e1565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b6000614380602983613316565b915061438b82614324565b604082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006143f76017836143b6565b9150614402826143c1565b601782019050919050565b60006144188261330b565b61442281856143b6565b9350614432818560208601613327565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006144746011836143b6565b915061447f8261443e565b601182019050919050565b6000614495826143ea565b91506144a1828561440d565b91506144ac82614467565b91506144b8828461440d565b91508190509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614520602383613316565b915061452b826144c4565b604082019050919050565b6000602082019050818103600083015261454f81614513565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006145b2602483613316565b91506145bd82614556565b604082019050919050565b600060208201905081810360008301526145e1816145a5565b9050919050565b60006040820190506145fd6000830185613097565b61460a6020830184613097565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061466d602883613316565b915061467882614611565b604082019050919050565b6000602082019050818103600083015261469c81614660565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006146ff602583613316565b915061470a826146a3565b604082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614791602a83613316565b915061479c82614735565b604082019050919050565b600060208201905081810360008301526147c081614784565b9050919050565b60006147d282613021565b91506147dd83613021565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561481257614811613f1e565b5b828201905092915050565b6000604082019050818103600083015261483781856138ac565b9050818103602083015261484b81846138ac565b90509392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061488a601483613316565b915061489582614854565b602082019050919050565b600060208201905081810360008301526148b98161487d565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061491c602983613316565b9150614927826148c0565b604082019050919050565b6000602082019050818103600083015261494b8161490f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614988601c836143b6565b915061499382614952565b601c82019050919050565b6000819050919050565b6149b96149b48261340c565b61499e565b82525050565b60006149ca8261497b565b91506149d682846149a8565b60208201915081905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a41602183613316565b9150614a4c826149e5565b604082019050919050565b60006020820190508181036000830152614a7081614a34565b9050919050565b6000614a8282613021565b9150614a8d83613021565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ac657614ac5613f1e565b5b828202905092915050565b6000614adc82613021565b915060008203614aef57614aee613f1e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614b30602083613316565b9150614b3b82614afa565b602082019050919050565b60006020820190508181036000830152614b5f81614b23565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b8d82614b66565b614b978185614b71565b9350614ba7818560208601613327565b614bb081613186565b840191505092915050565b600060a082019050614bd060008301886133e2565b614bdd60208301876133e2565b8181036040830152614bef81866138ac565b90508181036060830152614c0381856138ac565b90508181036080830152614c178184614b82565b90509695505050505050565b600081519050614c32816130ed565b92915050565b600060208284031215614c4e57614c4d612fb9565b5b6000614c5c84828501614c23565b91505092915050565b60008160e01c9050919050565b600060033d1115614c915760046000803e614c8e600051614c65565b90505b90565b600060443d10614d2157614ca6612faf565b60043d036004823e80513d602482011167ffffffffffffffff82111715614cce575050614d21565b808201805167ffffffffffffffff811115614cec5750505050614d21565b80602083010160043d038501811115614d09575050505050614d21565b614d18826020018501866131c6565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614d80603483613316565b9150614d8b82614d24565b604082019050919050565b60006020820190508181036000830152614daf81614d73565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614e12602883613316565b9150614e1d82614db6565b604082019050919050565b60006020820190508181036000830152614e4181614e05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604082019050614e8c600083018561346f565b8181036020830152614e9e8184614b82565b90509392505050565b600081905092915050565b6000614ebd82614b66565b614ec78185614ea7565b9350614ed7818560208601613327565b80840191505092915050565b6000614eef8284614eb2565b915081905092915050565b600060a082019050614f0f60008301886133e2565b614f1c60208301876133e2565b614f296040830186613097565b614f366060830185613097565b8181036080830152614f488184614b82565b90509695505050505050565b600060ff82169050919050565b614f6a81614f54565b82525050565b6000608082019050614f85600083018761346f565b614f926020830186614f61565b614f9f604083018561346f565b614fac606083018461346f565b9594505050505056fea264697066735822122043f04d88ce2d34bf3550b33fdb5a11aecef292386baaf742bbc790d0c695424164736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b697066733a2f2f7465737400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000144c6f76652c204465617468202b20526f626f747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000034c44520000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): ipfs://test
Arg [1] : _name (string): Love, Death + Robots
Arg [2] : _symbol (string): LDR
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 697066733a2f2f74657374000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [6] : 4c6f76652c204465617468202b20526f626f7473000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4c44520000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
Nine Love, Death + Robots QR-Coded Artworks have been strewn across the digital and physical world. Each piece of special, limited edition imagery reflects Love, Death + Robots’ unique collective of visual perspectives and creative storytelling from Volume 3. To collect them a...Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.