Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 13764202 | 1077 days ago | IN | 0 ETH | 0.2150939 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
The8102FactoryUpgradeable
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract The8102FactoryUpgradeable is Initializable, ERC1155SupplyUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable, PausableUpgradeable { using SafeMath for uint256; using Strings for uint256; using Counters for Counters.Counter; string public name; string public symbol; Counters.Counter private the8102TokenCounter; mapping(uint256 => The8102Token) public the8102Tokens; event Minted(uint tokenId, address account, uint amount); event Burned(uint tokenId, uint amount); struct The8102Token { bytes32 merkleRoot; bool saleIsOpen; uint256 preSale; uint256 publicSale; uint256 price; uint256 maxSupply; uint256 maxPerWallet; uint256 maxPerTxn; string uri; address contractAddress; mapping(address => uint256) claimedTokens; } /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} function initialize(string memory _name, string memory _symbol) public initializer { __ERC1155Supply_init(); __Pausable_init_unchained(); __Ownable_init_unchained(); __ReentrancyGuard_init_unchained(); name = _name; symbol = _symbol; } function addToken( bytes32 _merkleRoot, uint256 _preSale, uint256 _publicSale, uint256 _price, uint256 _maxSupply, uint256 _maxPerWallet, uint256 _maxPerTxn, string memory _uri, address _contractAddress ) external onlyOwner { The8102Token storage t = the8102Tokens[the8102TokenCounter.current()]; t.saleIsOpen = true; t.merkleRoot = _merkleRoot; t.preSale = _preSale; t.publicSale = _publicSale; t.price = _price; t.maxSupply = _maxSupply; t.maxPerWallet = _maxPerWallet; t.maxPerTxn = _maxPerTxn; t.uri = _uri; t.contractAddress = _contractAddress; the8102TokenCounter.increment(); } function editToken( uint256 _id, uint256 _preSale, uint256 _publicSale, uint256 _price, uint256 _maxSupply, uint256 _maxPerWallet, uint256 _maxPerTxn, string memory _uri ) external onlyOwner { the8102Tokens[_id].preSale = _preSale; the8102Tokens[_id].publicSale = _publicSale; the8102Tokens[_id].price = _price; the8102Tokens[_id].maxPerWallet = _maxPerWallet; the8102Tokens[_id].maxPerTxn = _maxPerTxn; the8102Tokens[_id].uri = _uri; if (totalSupply(_id) == 0) { the8102Tokens[_id].maxSupply = _maxSupply; } } function reserve(uint256 _id, uint256 _amount) external onlyOwner { require(totalSupply(_id) + _amount <= the8102Tokens[_id].maxSupply, "Exceeds max supply"); _mint(msg.sender, _id, _amount, ""); emit Minted(_id, msg.sender, _amount); } function setSaleState(uint256 _id, bool _isSaleOpen) external onlyOwner { the8102Tokens[_id].saleIsOpen = _isSaleOpen; } function setMerkleRoot(uint256 _id, bytes32 _merkleRoot) external onlyOwner { the8102Tokens[_id].merkleRoot = _merkleRoot; } function setContractAddress(uint256 _id, address _contractAddress) external onlyOwner { the8102Tokens[_id].contractAddress = _contractAddress; } function mint(uint256 _amount, uint256 _id, bytes32[] calldata _merkleProof) external payable nonReentrant { require(isValidClaim(_amount, _id, _merkleProof)); the8102Tokens[_id].claimedTokens[msg.sender] = the8102Tokens[_id].claimedTokens[msg.sender].add(_amount); _mint(msg.sender, _id, _amount, ""); emit Minted(_id, msg.sender, _amount); if (totalSupply(_id) >= the8102Tokens[_id].maxSupply) { the8102Tokens[_id].saleIsOpen = false; } } function isValidClaim(uint256 _amount, uint256 _id, bytes32[] calldata _merkleProof) internal view returns (bool) { require(the8102Tokens[_id].saleIsOpen, "Sale is paused"); require(block.timestamp > the8102Tokens[_id].preSale, "Sale not open yet"); require(msg.value >= _amount.mul(the8102Tokens[_id].price), "Eth value incorrect"); require(the8102Tokens[_id].claimedTokens[msg.sender].add(_amount) <= the8102Tokens[_id].maxPerWallet, "Exceeds wallet limit"); require(_amount <= the8102Tokens[_id].maxPerTxn, "Exceeds txn limit"); require(totalSupply(_id) + _amount <= the8102Tokens[_id].maxSupply, "Exceeds max supply"); if (block.timestamp > the8102Tokens[_id].preSale && block.timestamp < the8102Tokens[_id].publicSale) { bool isValid = verifyMerkleProof(_merkleProof, _id, msg.sender); require(isValid, "Invalid merkle proof."); return isValid; } return true; } function verifyMerkleProof(bytes32[] calldata _merkleProof, uint256 _id, address _sender) public view returns (bool) { string memory leaf = string(abi.encodePacked("0x", toAsciiString(_sender))); bytes32 node = keccak256(abi.encodePacked(leaf)); return MerkleProof.verify(_merkleProof, the8102Tokens[_id].merkleRoot, node); } function toAsciiString(address x) internal pure returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2 ** (8 * (19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2 * i] = char(hi); s[2 * i + 1] = char(lo); } return string(s); } function char(bytes1 b) internal pure returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function burn(uint256 _id, uint256 _amount) external { require(msg.sender == the8102Tokens[_id].contractAddress, "Invalid burn address"); _burn(msg.sender, _id, _amount); emit Burned(_id, _amount); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; require(payable(msg.sender).send(balance)); } function uri(uint256 _id) public view override returns (string memory) { require(totalSupply(_id) > 0, "URI: nonexistent token"); return the8102Tokens[_id].uri; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /** @notice Override ERC1155 to prevent token transfers with amount zero. */ function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory data) public override { require(amount > 0, "ERC1155: zero token transfer not allowed"); return super.safeTransferFrom(from, to, id, amount, data); } /** @notice Override ERC1155 to prevent token transfers if contract is paused. */ function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal whenNotPaused override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/ERC1155Supply.sol) pragma solidity ^0.8.0; import "../ERC1155Upgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155SupplyUpgradeable is Initializable, ERC1155Upgradeable { function __ERC1155Supply_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC1155Supply_init_unchained(); } function __ERC1155Supply_init_unchained() internal initializer { } mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155SupplyUpgradeable.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must 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.0 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal initializer { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: 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 IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } uint256[47] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _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; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal initializer { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal initializer { _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()); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_preSale","type":"uint256"},{"internalType":"uint256","name":"_publicSale","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxPerTxn","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_preSale","type":"uint256"},{"internalType":"uint256","name":"_publicSale","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxPerTxn","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"editToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"_amount","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"reserve","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":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_isSaleOpen","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"the8102Tokens","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bool","name":"saleIsOpen","type":"bool"},{"internalType":"uint256","name":"preSale","type":"uint256"},{"internalType":"uint256","name":"publicSale","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTxn","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"}],"name":"verifyMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff16806200002c575060005460ff16155b620000945760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000b7576000805461ffff19166101011790555b8015620000ca576000805461ff00191690555b5061362880620000db6000396000f3fe6080604052600436106101cc5760003560e01c80636620b32c116100f7578063a22cb46511610095578063e6d37b8811610064578063e6d37b8814610541578063e985e9c514610554578063f242432a1461059d578063f2fde38b146105bd57600080fd5b8063a22cb465146104b4578063b390c0ab146104d4578063bb0165b1146104f4578063bd85b0391461051457600080fd5b80638456cb59116100d15780638456cb591461044257806385a222ae146104575780638da5cb5b1461047757806395d89b411461049f57600080fd5b80636620b32c146103d75780636ea63e9b1461040d578063715018a61461042d57600080fd5b80632bc026521161016f5780634cd88b761161013e5780634cd88b76146103425780634e1273f4146103625780634f558e791461038f5780635c975abb146103be57600080fd5b80632bc02652146102d85780632eb2c2d6146102f85780633ccfd60b146103185780633f4ba83a1461032d57600080fd5b80630e89341c116101ab5780630e89341c1461025657806318712c211461027657806324428221146102985780632a805391146102b857600080fd5b8062fdd58e146101d157806301ffc9a71461020457806306fdde0314610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004612aff565b6105dd565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612ce6565b610679565b60405190151581526020016101fb565b34801561024057600080fd5b506102496106c9565b6040516101fb91906130c5565b34801561026257600080fd5b50610249610271366004612d79565b610758565b34801561028257600080fd5b50610296610291366004612dd8565b610852565b005b3480156102a457600080fd5b506102966102b3366004612dd8565b61088f565b3480156102c457600080fd5b506102246102d3366004612bf9565b610986565b3480156102e457600080fd5b506102966102f3366004612c55565b610a37565b34801561030457600080fd5b506102966103133660046129c8565b610b0b565b34801561032457600080fd5b50610296610ba2565b34801561033957600080fd5b50610296610bf6565b34801561034e57600080fd5b5061029661035d366004612d20565b610c2a565b34801561036e57600080fd5b5061038261037d366004612b29565b610ce2565b6040516101fb919061301c565b34801561039b57600080fd5b506102246103aa366004612d79565b600090815260976020526040902054151590565b3480156103ca57600080fd5b5061012d5460ff16610224565b3480156103e357600080fd5b506103f76103f2366004612d79565b610e0b565b6040516101fb9a9998979695949392919061305d565b34801561041957600080fd5b50610296610428366004612e4c565b610ef4565b34801561043957600080fd5b50610296610f9b565b34801561044e57600080fd5b50610296610fcf565b34801561046357600080fd5b50610296610472366004612db5565b611001565b34801561048357600080fd5b5060c9546040516001600160a01b0390911681526020016101fb565b3480156104ab57600080fd5b5061024961104f565b3480156104c057600080fd5b506102966104cf366004612ad5565b61105d565b3480156104e057600080fd5b506102966104ef366004612dd8565b61106c565b34801561050057600080fd5b5061029661050f366004612d92565b61110e565b34801561052057600080fd5b506101f161052f366004612d79565b60009081526097602052604090205490565b61029661054f366004612dfa565b61116a565b34801561056057600080fd5b5061022461056f366004612995565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b3480156105a957600080fd5b506102966105b8366004612a71565b6112c5565b3480156105c957600080fd5b506102966105d836600461297a565b611333565b60006001600160a01b03831661064e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806106aa57506001600160e01b031982166303a24d0760e21b145b8061067357506301ffc9a760e01b6001600160e01b0319831614610673565b61015f80546106d79061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546107039061345d565b80156107505780601f1061072557610100808354040283529160200191610750565b820191906000526020600020905b81548152906001019060200180831161073357829003601f168201915b505050505081565b600081815260976020526040812054606091106107b05760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610645565b60008281526101626020526040902060080180546107cd9061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546107f99061345d565b80156108465780601f1061081b57610100808354040283529160200191610846565b820191906000526020600020905b81548152906001019060200180831161082957829003601f168201915b50505050509050919050565b60c9546001600160a01b0316331461087c5760405162461bcd60e51b8152600401610645906131fd565b6000918252610162602052604090912055565b60c9546001600160a01b031633146108b95760405162461bcd60e51b8152600401610645906131fd565b600082815261016260209081526040808320600501546097909252909120546108e3908390613255565b11156109265760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610645565b610941338383604051806020016040528060008152506113cb565b604080518381523360208201529081018290527fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e39906060015b60405180910390a15050565b600080610992836114dd565b6040516020016109a29190612f4f565b60405160208183030381529060405290506000816040516020016109c69190612f33565b604051602081830303815290604052805190602001209050610a2a87878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152610162602052604090205492508591506116249050565b925050505b949350505050565b60c9546001600160a01b03163314610a615760405162461bcd60e51b8152600401610645906131fd565b60006101626000610a726101615490565b81526020808201929092526040016000206001808201805460ff191690911790558b8155600281018b9055600381018a9055600481018990556005810188905560068101879055600781018690558451909250610ad791600884019190860190612785565b506009810180546001600160a01b0319166001600160a01b0384161790556101618054600101905550505050505050505050565b6001600160a01b038516331480610b275750610b27853361056f565b610b8e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610645565b610b9b858585858561163a565b5050505050565b60c9546001600160a01b03163314610bcc5760405162461bcd60e51b8152600401610645906131fd565b6040514790339082156108fc029083906000818181858888f19350505050610bf357600080fd5b50565b60c9546001600160a01b03163314610c205760405162461bcd60e51b8152600401610645906131fd565b610c28611828565b565b600054610100900460ff1680610c43575060005460ff16155b610c5f5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015610c81576000805461ffff19166101011790555b610c896118bd565b610c91611940565b610c996119b6565b610ca1611a16565b8251610cb59061015f906020860190612785565b508151610cca90610160906020850190612785565b508015610cdd576000805461ff00191690555b505050565b60608151835114610d475760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610645565b600083516001600160401b03811115610d6257610d62613521565b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b8451811015610e0357610dd6858281518110610daf57610daf61350b565b6020026020010151858381518110610dc957610dc961350b565b60200260200101516105dd565b828281518110610de857610de861350b565b6020908102919091010152610dfc816134c4565b9050610d91565b509392505050565b61016260205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889018054989960ff90981698969795969495939492939192610e629061345d565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8e9061345d565b8015610edb5780601f10610eb057610100808354040283529160200191610edb565b820191906000526020600020905b815481529060010190602001808311610ebe57829003601f168201915b505050600990930154919250506001600160a01b03168a565b60c9546001600160a01b03163314610f1e5760405162461bcd60e51b8152600401610645906131fd565b60008881526101626020908152604090912060028101899055600381018890556004810187905560068101859055600781018490558251610f6792600890920191840190612785565b50600088815260976020526040902054610f91576000888152610162602052604090206005018490555b5050505050505050565b60c9546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610645906131fd565b610c286000611a86565b60c9546001600160a01b03163314610ff95760405162461bcd60e51b8152600401610645906131fd565b610c28611ad8565b60c9546001600160a01b0316331461102b5760405162461bcd60e51b8152600401610645906131fd565b60009182526101626020526040909120600101805460ff1916911515919091179055565b61016080546106d79061345d565b611068338383611b55565b5050565b600082815261016260205260409020600901546001600160a01b031633146110cd5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206275726e206164647265737360601b6044820152606401610645565b6110d8338383611c36565b60408051838152602081018390527fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b910161097a565b60c9546001600160a01b031633146111385760405162461bcd60e51b8152600401610645906131fd565b6000918252610162602052604090912060090180546001600160a01b0319166001600160a01b03909216919091179055565b600260fb5414156111bd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610645565b600260fb556111ce84848484611db3565b6111d757600080fd5b600083815261016260209081526040808320338452600a019091529020546111ff9085612094565b60008481526101626020908152604080832033808552600a9091018352818420949094558051918201905290815261123b9190859087906113cb565b604080518481523360208201529081018590527fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e399060600160405180910390a160008381526101626020908152604080832060050154609790925290912054106112ba57600083815261016260205260409020600101805460ff191690555b5050600160fb555050565b600082116113265760405162461bcd60e51b815260206004820152602860248201527f455243313135353a207a65726f20746f6b656e207472616e73666572206e6f7460448201526708185b1b1bddd95960c21b6064820152608401610645565b610b9b85858585856120a7565b60c9546001600160a01b0316331461135d5760405162461bcd60e51b8152600401610645906131fd565b6001600160a01b0381166113c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610645565b610bf381611a86565b6001600160a01b03841661142b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610645565b3361144b8160008761143c8861212e565b6114458861212e565b87612179565b60008481526065602090815260408083206001600160a01b03891684529091528120805485929061147d908490613255565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b9b816000878787876121ce565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561161d57600061151a8260136133f3565b6115259060086133b3565b61153090600261330b565b611543906001600160a01b038716613292565b60f81b9050600060108260f81c61155a91906132a6565b60f81b905060008160f81c601061157191906133d2565b8360f81c61157f919061340a565b60f81b905061158d82612342565b856115998660026133b3565b815181106115a9576115a961350b565b60200101906001600160f81b031916908160001a9053506115c981612342565b856115d58660026133b3565b6115e0906001613255565b815181106115f0576115f061350b565b60200101906001600160f81b031916908160001a9053505050508080611615906134c4565b915050611504565b5092915050565b600082611631858461237d565b14949350505050565b815183511461169c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610645565b6001600160a01b0384166116c25760405162461bcd60e51b815260040161064590613120565b336116d1818787878787612179565b60005b84518110156117ba5760008582815181106116f1576116f161350b565b60200260200101519050600085838151811061170f5761170f61350b565b60209081029190910181015160008481526065835260408082206001600160a01b038e1683529093529190912054909150818110156117605760405162461bcd60e51b8152600401610645906131b3565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061179f908490613255565b92505081905550505050806117b3906134c4565b90506116d4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161180a92919061302f565b60405180910390a4611820818787878787612421565b505050505050565b61012d5460ff166118725760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610645565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16806118d6575060005460ff16155b6118f25760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611914576000805461ffff19166101011790555b61191c6124eb565b6119246124eb565b61192c6124eb565b8015610bf3576000805461ff001916905550565b600054610100900460ff1680611959575060005460ff16155b6119755760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611997576000805461ffff19166101011790555b61012d805460ff191690558015610bf3576000805461ff001916905550565b600054610100900460ff16806119cf575060005460ff16155b6119eb5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611a0d576000805461ffff19166101011790555b61192c33611a86565b600054610100900460ff1680611a2f575060005460ff16155b611a4b5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611a6d576000805461ffff19166101011790555b600160fb558015610bf3576000805461ff001916905550565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61012d5460ff1615611b1f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610645565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118a03390565b816001600160a01b0316836001600160a01b03161415611bc95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610645565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316611c985760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610645565b33611cc781856000611ca98761212e565b611cb28761212e565b60405180602001604052806000815250612179565b60008381526065602090815260408083206001600160a01b038816845290915290205482811015611d465760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610645565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000838152610162602052604081206001015460ff16611e065760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610645565b600084815261016260205260409020600201544211611e5b5760405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081bdc195b881e595d607a1b6044820152606401610645565b60008481526101626020526040902060040154611e79908690612555565b341015611ebe5760405162461bcd60e51b8152602060048201526013602482015272115d1a081d985b1d59481a5b98dbdc9c9958dd606a1b6044820152606401610645565b6000848152610162602090815260408083206006810154338552600a90910190925290912054611eee9087612094565b1115611f335760405162461bcd60e51b8152602060048201526014602482015273115e18d959591cc81dd85b1b195d081b1a5b5a5d60621b6044820152606401610645565b60008481526101626020526040902060070154851115611f895760405162461bcd60e51b8152602060048201526011602482015270115e18d959591cc81d1e1b881b1a5b5a5d607a1b6044820152606401610645565b60008481526101626020908152604080832060050154609790925290912054611fb3908790613255565b1115611ff65760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610645565b600084815261016260205260409020600201544211801561202857506000848152610162602052604090206003015442105b1561208957600061203b84848733610986565b9050806120825760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21036b2b935b63290383937b7b31760591b6044820152606401610645565b9050610a2f565b506001949350505050565b60006120a08284613255565b9392505050565b6001600160a01b0385163314806120c357506120c3853361056f565b6121215760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610645565b610b9b8585858585612561565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106121685761216861350b565b602090810291909101015292915050565b61012d5460ff16156121c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610645565b611820868686868686612679565b6001600160a01b0384163b156118205760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122129089908990889088908890600401612fd7565b602060405180830381600087803b15801561222c57600080fd5b505af192505050801561225c575060408051601f3d908101601f1916820190925261225991810190612d03565b60015b61230957612268613537565b806308c379a014156122a2575061227d613553565b8061228857506122a4565b8060405162461bcd60e51b815260040161064591906130c5565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610645565b6001600160e01b0319811663f23a6e6160e01b146123395760405162461bcd60e51b8152600401610645906130d8565b50505050505050565b6000600a60f883901c10156123695761236060f883901c603061326d565b60f81b92915050565b61236060f883901c605761326d565b919050565b600081815b8451811015610e0357600085828151811061239f5761239f61350b565b602002602001015190508083116123e157604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061240e565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612419816134c4565b915050612382565b6001600160a01b0384163b156118205760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124659089908990889088908890600401612f79565b602060405180830381600087803b15801561247f57600080fd5b505af19250505080156124af575060408051601f3d908101601f191682019092526124ac91810190612d03565b60015b6124bb57612268613537565b6001600160e01b0319811663bc197c8160e01b146123395760405162461bcd60e51b8152600401610645906130d8565b600054610100900460ff1680612504575060005460ff16155b6125205760405162461bcd60e51b815260040161064590613165565b600054610100900460ff1615801561192c576000805461ffff19166101011790558015610bf3576000805461ff001916905550565b60006120a082846133b3565b6001600160a01b0384166125875760405162461bcd60e51b815260040161064590613120565b3361259781878761143c8861212e565b60008481526065602090815260408083206001600160a01b038a168452909152902054838110156125da5760405162461bcd60e51b8152600401610645906131b3565b60008581526065602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612619908490613255565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123398288888888886121ce565b6001600160a01b0385166127005760005b83518110156126fe578281815181106126a5576126a561350b565b6020026020010151609760008684815181106126c3576126c361350b565b6020026020010151815260200190815260200160002060008282546126e89190613255565b909155506126f79050816134c4565b905061268a565b505b6001600160a01b0384166118205760005b83518110156123395782818151811061272c5761272c61350b565b60200260200101516097600086848151811061274a5761274a61350b565b60200260200101518152602001908152602001600020600082825461276f91906133f3565b9091555061277e9050816134c4565b9050612711565b8280546127919061345d565b90600052602060002090601f0160209004810192826127b357600085556127f9565b82601f106127cc57805160ff19168380011785556127f9565b828001600101855582156127f9579182015b828111156127f95782518255916020019190600101906127de565b50612805929150612809565b5090565b5b80821115612805576000815560010161280a565b80356001600160a01b038116811461237857600080fd5b60008083601f84011261284757600080fd5b5081356001600160401b0381111561285e57600080fd5b6020830191508360208260051b850101111561287957600080fd5b9250929050565b600082601f83011261289157600080fd5b8135602061289e82613232565b6040516128ab8282613498565b8381528281019150858301600585901b870184018810156128cb57600080fd5b60005b858110156128ea578135845292840192908401906001016128ce565b5090979650505050505050565b8035801515811461237857600080fd5b600082601f83011261291857600080fd5b81356001600160401b0381111561293157612931613521565b604051612948601f8301601f191660200182613498565b81815284602083860101111561295d57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561298c57600080fd5b6120a08261281e565b600080604083850312156129a857600080fd5b6129b18361281e565b91506129bf6020840161281e565b90509250929050565b600080600080600060a086880312156129e057600080fd5b6129e98661281e565b94506129f76020870161281e565b935060408601356001600160401b0380821115612a1357600080fd5b612a1f89838a01612880565b94506060880135915080821115612a3557600080fd5b612a4189838a01612880565b93506080880135915080821115612a5757600080fd5b50612a6488828901612907565b9150509295509295909350565b600080600080600060a08688031215612a8957600080fd5b612a928661281e565b9450612aa06020870161281e565b9350604086013592506060860135915060808601356001600160401b03811115612ac957600080fd5b612a6488828901612907565b60008060408385031215612ae857600080fd5b612af18361281e565b91506129bf602084016128f7565b60008060408385031215612b1257600080fd5b612b1b8361281e565b946020939093013593505050565b60008060408385031215612b3c57600080fd5b82356001600160401b0380821115612b5357600080fd5b818501915085601f830112612b6757600080fd5b81356020612b7482613232565b604051612b818282613498565b8381528281019150858301600585901b870184018b1015612ba157600080fd5b600096505b84871015612bcb57612bb78161281e565b835260019690960195918301918301612ba6565b5096505086013592505080821115612be257600080fd5b50612bef85828601612880565b9150509250929050565b60008060008060608587031215612c0f57600080fd5b84356001600160401b03811115612c2557600080fd5b612c3187828801612835565b90955093505060208501359150612c4a6040860161281e565b905092959194509250565b60008060008060008060008060006101208a8c031215612c7457600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115612cbb57600080fd5b612cc78c828d01612907565b925050612cd76101008b0161281e565b90509295985092959850929598565b600060208284031215612cf857600080fd5b81356120a0816135dc565b600060208284031215612d1557600080fd5b81516120a0816135dc565b60008060408385031215612d3357600080fd5b82356001600160401b0380821115612d4a57600080fd5b612d5686838701612907565b93506020850135915080821115612d6c57600080fd5b50612bef85828601612907565b600060208284031215612d8b57600080fd5b5035919050565b60008060408385031215612da557600080fd5b823591506129bf6020840161281e565b60008060408385031215612dc857600080fd5b823591506129bf602084016128f7565b60008060408385031215612deb57600080fd5b50508035926020909101359150565b60008060008060608587031215612e1057600080fd5b843593506020850135925060408501356001600160401b03811115612e3457600080fd5b612e4087828801612835565b95989497509550505050565b600080600080600080600080610100898b031215612e6957600080fd5b883597506020890135965060408901359550606089013594506080890135935060a0890135925060c0890135915060e08901356001600160401b03811115612eb057600080fd5b612ebc8b828c01612907565b9150509295985092959890939650565b600081518084526020808501945080840160005b83811015612efc57815187529582019590820190600101612ee0565b509495945050505050565b60008151808452612f1f81602086016020860161342d565b601f01601f19169290920160200192915050565b60008251612f4581846020870161342d565b9190910192915050565b61060f60f31b815260008251612f6c81600285016020870161342d565b9190910160020192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090612fa590830186612ecc565b8281036060840152612fb78186612ecc565b90508281036080840152612fcb8185612f07565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061301190830184612f07565b979650505050505050565b6020815260006120a06020830184612ecc565b6040815260006130426040830185612ecc565b82810360208401526130548185612ecc565b95945050505050565b60006101408c83528b151560208401528a60408401528960608401528860808401528760a08401528660c08401528560e0840152806101008401526130a481840186612f07565b91505060018060a01b0383166101208301529b9a5050505050505050505050565b6020815260006120a06020830184612f07565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b0382111561324b5761324b613521565b5060051b60200190565b60008219821115613268576132686134df565b500190565b600060ff821660ff84168060ff0382111561328a5761328a6134df565b019392505050565b6000826132a1576132a16134f5565b500490565b600060ff8316806132b9576132b96134f5565b8060ff84160491505092915050565b600181815b808511156133035781600019048211156132e9576132e96134df565b808516156132f657918102915b93841c93908002906132cd565b509250929050565b60006120a0838360008261332157506001610673565b8161332e57506000610673565b8160018114613344576002811461334e5761336a565b6001915050610673565b60ff84111561335f5761335f6134df565b50506001821b610673565b5060208310610133831016604e8410600b841016171561338d575081810a610673565b61339783836132c8565b80600019048211156133ab576133ab6134df565b029392505050565b60008160001904831182151516156133cd576133cd6134df565b500290565b600060ff821660ff84168160ff04811182151516156133ab576133ab6134df565b600082821015613405576134056134df565b500390565b600060ff821660ff841680821015613424576134246134df565b90039392505050565b60005b83811015613448578181015183820152602001613430565b83811115613457576000848401525b50505050565b600181811c9082168061347157607f821691505b6020821081141561349257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156134bd576134bd613521565b6040525050565b60006000198214156134d8576134d86134df565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156135505760046000803e5060005160e01c5b90565b600060443d10156135615790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561359057505050505090565b82850191508151818111156135a85750505050505090565b843d87010160208285010111156135c25750505050505090565b6135d160208286010187613498565b509095945050505050565b6001600160e01b031981168114610bf357600080fdfea264697066735822122088941f28b69b90c24a5c52d7fc229a430d7b25bb20c25dd59e0d183248eb136e64736f6c63430008060033
Deployed Bytecode
0x6080604052600436106101cc5760003560e01c80636620b32c116100f7578063a22cb46511610095578063e6d37b8811610064578063e6d37b8814610541578063e985e9c514610554578063f242432a1461059d578063f2fde38b146105bd57600080fd5b8063a22cb465146104b4578063b390c0ab146104d4578063bb0165b1146104f4578063bd85b0391461051457600080fd5b80638456cb59116100d15780638456cb591461044257806385a222ae146104575780638da5cb5b1461047757806395d89b411461049f57600080fd5b80636620b32c146103d75780636ea63e9b1461040d578063715018a61461042d57600080fd5b80632bc026521161016f5780634cd88b761161013e5780634cd88b76146103425780634e1273f4146103625780634f558e791461038f5780635c975abb146103be57600080fd5b80632bc02652146102d85780632eb2c2d6146102f85780633ccfd60b146103185780633f4ba83a1461032d57600080fd5b80630e89341c116101ab5780630e89341c1461025657806318712c211461027657806324428221146102985780632a805391146102b857600080fd5b8062fdd58e146101d157806301ffc9a71461020457806306fdde0314610234575b600080fd5b3480156101dd57600080fd5b506101f16101ec366004612aff565b6105dd565b6040519081526020015b60405180910390f35b34801561021057600080fd5b5061022461021f366004612ce6565b610679565b60405190151581526020016101fb565b34801561024057600080fd5b506102496106c9565b6040516101fb91906130c5565b34801561026257600080fd5b50610249610271366004612d79565b610758565b34801561028257600080fd5b50610296610291366004612dd8565b610852565b005b3480156102a457600080fd5b506102966102b3366004612dd8565b61088f565b3480156102c457600080fd5b506102246102d3366004612bf9565b610986565b3480156102e457600080fd5b506102966102f3366004612c55565b610a37565b34801561030457600080fd5b506102966103133660046129c8565b610b0b565b34801561032457600080fd5b50610296610ba2565b34801561033957600080fd5b50610296610bf6565b34801561034e57600080fd5b5061029661035d366004612d20565b610c2a565b34801561036e57600080fd5b5061038261037d366004612b29565b610ce2565b6040516101fb919061301c565b34801561039b57600080fd5b506102246103aa366004612d79565b600090815260976020526040902054151590565b3480156103ca57600080fd5b5061012d5460ff16610224565b3480156103e357600080fd5b506103f76103f2366004612d79565b610e0b565b6040516101fb9a9998979695949392919061305d565b34801561041957600080fd5b50610296610428366004612e4c565b610ef4565b34801561043957600080fd5b50610296610f9b565b34801561044e57600080fd5b50610296610fcf565b34801561046357600080fd5b50610296610472366004612db5565b611001565b34801561048357600080fd5b5060c9546040516001600160a01b0390911681526020016101fb565b3480156104ab57600080fd5b5061024961104f565b3480156104c057600080fd5b506102966104cf366004612ad5565b61105d565b3480156104e057600080fd5b506102966104ef366004612dd8565b61106c565b34801561050057600080fd5b5061029661050f366004612d92565b61110e565b34801561052057600080fd5b506101f161052f366004612d79565b60009081526097602052604090205490565b61029661054f366004612dfa565b61116a565b34801561056057600080fd5b5061022461056f366004612995565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b3480156105a957600080fd5b506102966105b8366004612a71565b6112c5565b3480156105c957600080fd5b506102966105d836600461297a565b611333565b60006001600160a01b03831661064e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806106aa57506001600160e01b031982166303a24d0760e21b145b8061067357506301ffc9a760e01b6001600160e01b0319831614610673565b61015f80546106d79061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546107039061345d565b80156107505780601f1061072557610100808354040283529160200191610750565b820191906000526020600020905b81548152906001019060200180831161073357829003601f168201915b505050505081565b600081815260976020526040812054606091106107b05760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610645565b60008281526101626020526040902060080180546107cd9061345d565b80601f01602080910402602001604051908101604052809291908181526020018280546107f99061345d565b80156108465780601f1061081b57610100808354040283529160200191610846565b820191906000526020600020905b81548152906001019060200180831161082957829003601f168201915b50505050509050919050565b60c9546001600160a01b0316331461087c5760405162461bcd60e51b8152600401610645906131fd565b6000918252610162602052604090912055565b60c9546001600160a01b031633146108b95760405162461bcd60e51b8152600401610645906131fd565b600082815261016260209081526040808320600501546097909252909120546108e3908390613255565b11156109265760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610645565b610941338383604051806020016040528060008152506113cb565b604080518381523360208201529081018290527fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e39906060015b60405180910390a15050565b600080610992836114dd565b6040516020016109a29190612f4f565b60405160208183030381529060405290506000816040516020016109c69190612f33565b604051602081830303815290604052805190602001209050610a2a87878080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a8152610162602052604090205492508591506116249050565b925050505b949350505050565b60c9546001600160a01b03163314610a615760405162461bcd60e51b8152600401610645906131fd565b60006101626000610a726101615490565b81526020808201929092526040016000206001808201805460ff191690911790558b8155600281018b9055600381018a9055600481018990556005810188905560068101879055600781018690558451909250610ad791600884019190860190612785565b506009810180546001600160a01b0319166001600160a01b0384161790556101618054600101905550505050505050505050565b6001600160a01b038516331480610b275750610b27853361056f565b610b8e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610645565b610b9b858585858561163a565b5050505050565b60c9546001600160a01b03163314610bcc5760405162461bcd60e51b8152600401610645906131fd565b6040514790339082156108fc029083906000818181858888f19350505050610bf357600080fd5b50565b60c9546001600160a01b03163314610c205760405162461bcd60e51b8152600401610645906131fd565b610c28611828565b565b600054610100900460ff1680610c43575060005460ff16155b610c5f5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015610c81576000805461ffff19166101011790555b610c896118bd565b610c91611940565b610c996119b6565b610ca1611a16565b8251610cb59061015f906020860190612785565b508151610cca90610160906020850190612785565b508015610cdd576000805461ff00191690555b505050565b60608151835114610d475760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610645565b600083516001600160401b03811115610d6257610d62613521565b604051908082528060200260200182016040528015610d8b578160200160208202803683370190505b50905060005b8451811015610e0357610dd6858281518110610daf57610daf61350b565b6020026020010151858381518110610dc957610dc961350b565b60200260200101516105dd565b828281518110610de857610de861350b565b6020908102919091010152610dfc816134c4565b9050610d91565b509392505050565b61016260205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889018054989960ff90981698969795969495939492939192610e629061345d565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8e9061345d565b8015610edb5780601f10610eb057610100808354040283529160200191610edb565b820191906000526020600020905b815481529060010190602001808311610ebe57829003601f168201915b505050600990930154919250506001600160a01b03168a565b60c9546001600160a01b03163314610f1e5760405162461bcd60e51b8152600401610645906131fd565b60008881526101626020908152604090912060028101899055600381018890556004810187905560068101859055600781018490558251610f6792600890920191840190612785565b50600088815260976020526040902054610f91576000888152610162602052604090206005018490555b5050505050505050565b60c9546001600160a01b03163314610fc55760405162461bcd60e51b8152600401610645906131fd565b610c286000611a86565b60c9546001600160a01b03163314610ff95760405162461bcd60e51b8152600401610645906131fd565b610c28611ad8565b60c9546001600160a01b0316331461102b5760405162461bcd60e51b8152600401610645906131fd565b60009182526101626020526040909120600101805460ff1916911515919091179055565b61016080546106d79061345d565b611068338383611b55565b5050565b600082815261016260205260409020600901546001600160a01b031633146110cd5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206275726e206164647265737360601b6044820152606401610645565b6110d8338383611c36565b60408051838152602081018390527fcec1bae6e024d929f2929f3478ce70f55f9c636c8ef7b5073a61d7c3a432451b910161097a565b60c9546001600160a01b031633146111385760405162461bcd60e51b8152600401610645906131fd565b6000918252610162602052604090912060090180546001600160a01b0319166001600160a01b03909216919091179055565b600260fb5414156111bd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610645565b600260fb556111ce84848484611db3565b6111d757600080fd5b600083815261016260209081526040808320338452600a019091529020546111ff9085612094565b60008481526101626020908152604080832033808552600a9091018352818420949094558051918201905290815261123b9190859087906113cb565b604080518481523360208201529081018590527fc9d0543a84d3510329c0783b91576878ceb484e8699944cb5610c3436b3b8e399060600160405180910390a160008381526101626020908152604080832060050154609790925290912054106112ba57600083815261016260205260409020600101805460ff191690555b5050600160fb555050565b600082116113265760405162461bcd60e51b815260206004820152602860248201527f455243313135353a207a65726f20746f6b656e207472616e73666572206e6f7460448201526708185b1b1bddd95960c21b6064820152608401610645565b610b9b85858585856120a7565b60c9546001600160a01b0316331461135d5760405162461bcd60e51b8152600401610645906131fd565b6001600160a01b0381166113c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610645565b610bf381611a86565b6001600160a01b03841661142b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610645565b3361144b8160008761143c8861212e565b6114458861212e565b87612179565b60008481526065602090815260408083206001600160a01b03891684529091528120805485929061147d908490613255565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b9b816000878787876121ce565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561161d57600061151a8260136133f3565b6115259060086133b3565b61153090600261330b565b611543906001600160a01b038716613292565b60f81b9050600060108260f81c61155a91906132a6565b60f81b905060008160f81c601061157191906133d2565b8360f81c61157f919061340a565b60f81b905061158d82612342565b856115998660026133b3565b815181106115a9576115a961350b565b60200101906001600160f81b031916908160001a9053506115c981612342565b856115d58660026133b3565b6115e0906001613255565b815181106115f0576115f061350b565b60200101906001600160f81b031916908160001a9053505050508080611615906134c4565b915050611504565b5092915050565b600082611631858461237d565b14949350505050565b815183511461169c5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610645565b6001600160a01b0384166116c25760405162461bcd60e51b815260040161064590613120565b336116d1818787878787612179565b60005b84518110156117ba5760008582815181106116f1576116f161350b565b60200260200101519050600085838151811061170f5761170f61350b565b60209081029190910181015160008481526065835260408082206001600160a01b038e1683529093529190912054909150818110156117605760405162461bcd60e51b8152600401610645906131b3565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061179f908490613255565b92505081905550505050806117b3906134c4565b90506116d4565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161180a92919061302f565b60405180910390a4611820818787878787612421565b505050505050565b61012d5460ff166118725760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610645565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16806118d6575060005460ff16155b6118f25760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611914576000805461ffff19166101011790555b61191c6124eb565b6119246124eb565b61192c6124eb565b8015610bf3576000805461ff001916905550565b600054610100900460ff1680611959575060005460ff16155b6119755760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611997576000805461ffff19166101011790555b61012d805460ff191690558015610bf3576000805461ff001916905550565b600054610100900460ff16806119cf575060005460ff16155b6119eb5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611a0d576000805461ffff19166101011790555b61192c33611a86565b600054610100900460ff1680611a2f575060005460ff16155b611a4b5760405162461bcd60e51b815260040161064590613165565b600054610100900460ff16158015611a6d576000805461ffff19166101011790555b600160fb558015610bf3576000805461ff001916905550565b60c980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61012d5460ff1615611b1f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610645565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118a03390565b816001600160a01b0316836001600160a01b03161415611bc95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610645565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038316611c985760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610645565b33611cc781856000611ca98761212e565b611cb28761212e565b60405180602001604052806000815250612179565b60008381526065602090815260408083206001600160a01b038816845290915290205482811015611d465760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610645565b60008481526065602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6000838152610162602052604081206001015460ff16611e065760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610645565b600084815261016260205260409020600201544211611e5b5760405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081bdc195b881e595d607a1b6044820152606401610645565b60008481526101626020526040902060040154611e79908690612555565b341015611ebe5760405162461bcd60e51b8152602060048201526013602482015272115d1a081d985b1d59481a5b98dbdc9c9958dd606a1b6044820152606401610645565b6000848152610162602090815260408083206006810154338552600a90910190925290912054611eee9087612094565b1115611f335760405162461bcd60e51b8152602060048201526014602482015273115e18d959591cc81dd85b1b195d081b1a5b5a5d60621b6044820152606401610645565b60008481526101626020526040902060070154851115611f895760405162461bcd60e51b8152602060048201526011602482015270115e18d959591cc81d1e1b881b1a5b5a5d607a1b6044820152606401610645565b60008481526101626020908152604080832060050154609790925290912054611fb3908790613255565b1115611ff65760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610645565b600084815261016260205260409020600201544211801561202857506000848152610162602052604090206003015442105b1561208957600061203b84848733610986565b9050806120825760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21036b2b935b63290383937b7b31760591b6044820152606401610645565b9050610a2f565b506001949350505050565b60006120a08284613255565b9392505050565b6001600160a01b0385163314806120c357506120c3853361056f565b6121215760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610645565b610b9b8585858585612561565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106121685761216861350b565b602090810291909101015292915050565b61012d5460ff16156121c05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610645565b611820868686868686612679565b6001600160a01b0384163b156118205760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122129089908990889088908890600401612fd7565b602060405180830381600087803b15801561222c57600080fd5b505af192505050801561225c575060408051601f3d908101601f1916820190925261225991810190612d03565b60015b61230957612268613537565b806308c379a014156122a2575061227d613553565b8061228857506122a4565b8060405162461bcd60e51b815260040161064591906130c5565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610645565b6001600160e01b0319811663f23a6e6160e01b146123395760405162461bcd60e51b8152600401610645906130d8565b50505050505050565b6000600a60f883901c10156123695761236060f883901c603061326d565b60f81b92915050565b61236060f883901c605761326d565b919050565b600081815b8451811015610e0357600085828151811061239f5761239f61350b565b602002602001015190508083116123e157604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061240e565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080612419816134c4565b915050612382565b6001600160a01b0384163b156118205760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906124659089908990889088908890600401612f79565b602060405180830381600087803b15801561247f57600080fd5b505af19250505080156124af575060408051601f3d908101601f191682019092526124ac91810190612d03565b60015b6124bb57612268613537565b6001600160e01b0319811663bc197c8160e01b146123395760405162461bcd60e51b8152600401610645906130d8565b600054610100900460ff1680612504575060005460ff16155b6125205760405162461bcd60e51b815260040161064590613165565b600054610100900460ff1615801561192c576000805461ffff19166101011790558015610bf3576000805461ff001916905550565b60006120a082846133b3565b6001600160a01b0384166125875760405162461bcd60e51b815260040161064590613120565b3361259781878761143c8861212e565b60008481526065602090815260408083206001600160a01b038a168452909152902054838110156125da5760405162461bcd60e51b8152600401610645906131b3565b60008581526065602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612619908490613255565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123398288888888886121ce565b6001600160a01b0385166127005760005b83518110156126fe578281815181106126a5576126a561350b565b6020026020010151609760008684815181106126c3576126c361350b565b6020026020010151815260200190815260200160002060008282546126e89190613255565b909155506126f79050816134c4565b905061268a565b505b6001600160a01b0384166118205760005b83518110156123395782818151811061272c5761272c61350b565b60200260200101516097600086848151811061274a5761274a61350b565b60200260200101518152602001908152602001600020600082825461276f91906133f3565b9091555061277e9050816134c4565b9050612711565b8280546127919061345d565b90600052602060002090601f0160209004810192826127b357600085556127f9565b82601f106127cc57805160ff19168380011785556127f9565b828001600101855582156127f9579182015b828111156127f95782518255916020019190600101906127de565b50612805929150612809565b5090565b5b80821115612805576000815560010161280a565b80356001600160a01b038116811461237857600080fd5b60008083601f84011261284757600080fd5b5081356001600160401b0381111561285e57600080fd5b6020830191508360208260051b850101111561287957600080fd5b9250929050565b600082601f83011261289157600080fd5b8135602061289e82613232565b6040516128ab8282613498565b8381528281019150858301600585901b870184018810156128cb57600080fd5b60005b858110156128ea578135845292840192908401906001016128ce565b5090979650505050505050565b8035801515811461237857600080fd5b600082601f83011261291857600080fd5b81356001600160401b0381111561293157612931613521565b604051612948601f8301601f191660200182613498565b81815284602083860101111561295d57600080fd5b816020850160208301376000918101602001919091529392505050565b60006020828403121561298c57600080fd5b6120a08261281e565b600080604083850312156129a857600080fd5b6129b18361281e565b91506129bf6020840161281e565b90509250929050565b600080600080600060a086880312156129e057600080fd5b6129e98661281e565b94506129f76020870161281e565b935060408601356001600160401b0380821115612a1357600080fd5b612a1f89838a01612880565b94506060880135915080821115612a3557600080fd5b612a4189838a01612880565b93506080880135915080821115612a5757600080fd5b50612a6488828901612907565b9150509295509295909350565b600080600080600060a08688031215612a8957600080fd5b612a928661281e565b9450612aa06020870161281e565b9350604086013592506060860135915060808601356001600160401b03811115612ac957600080fd5b612a6488828901612907565b60008060408385031215612ae857600080fd5b612af18361281e565b91506129bf602084016128f7565b60008060408385031215612b1257600080fd5b612b1b8361281e565b946020939093013593505050565b60008060408385031215612b3c57600080fd5b82356001600160401b0380821115612b5357600080fd5b818501915085601f830112612b6757600080fd5b81356020612b7482613232565b604051612b818282613498565b8381528281019150858301600585901b870184018b1015612ba157600080fd5b600096505b84871015612bcb57612bb78161281e565b835260019690960195918301918301612ba6565b5096505086013592505080821115612be257600080fd5b50612bef85828601612880565b9150509250929050565b60008060008060608587031215612c0f57600080fd5b84356001600160401b03811115612c2557600080fd5b612c3187828801612835565b90955093505060208501359150612c4a6040860161281e565b905092959194509250565b60008060008060008060008060006101208a8c031215612c7457600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115612cbb57600080fd5b612cc78c828d01612907565b925050612cd76101008b0161281e565b90509295985092959850929598565b600060208284031215612cf857600080fd5b81356120a0816135dc565b600060208284031215612d1557600080fd5b81516120a0816135dc565b60008060408385031215612d3357600080fd5b82356001600160401b0380821115612d4a57600080fd5b612d5686838701612907565b93506020850135915080821115612d6c57600080fd5b50612bef85828601612907565b600060208284031215612d8b57600080fd5b5035919050565b60008060408385031215612da557600080fd5b823591506129bf6020840161281e565b60008060408385031215612dc857600080fd5b823591506129bf602084016128f7565b60008060408385031215612deb57600080fd5b50508035926020909101359150565b60008060008060608587031215612e1057600080fd5b843593506020850135925060408501356001600160401b03811115612e3457600080fd5b612e4087828801612835565b95989497509550505050565b600080600080600080600080610100898b031215612e6957600080fd5b883597506020890135965060408901359550606089013594506080890135935060a0890135925060c0890135915060e08901356001600160401b03811115612eb057600080fd5b612ebc8b828c01612907565b9150509295985092959890939650565b600081518084526020808501945080840160005b83811015612efc57815187529582019590820190600101612ee0565b509495945050505050565b60008151808452612f1f81602086016020860161342d565b601f01601f19169290920160200192915050565b60008251612f4581846020870161342d565b9190910192915050565b61060f60f31b815260008251612f6c81600285016020870161342d565b9190910160020192915050565b6001600160a01b0386811682528516602082015260a060408201819052600090612fa590830186612ecc565b8281036060840152612fb78186612ecc565b90508281036080840152612fcb8185612f07565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061301190830184612f07565b979650505050505050565b6020815260006120a06020830184612ecc565b6040815260006130426040830185612ecc565b82810360208401526130548185612ecc565b95945050505050565b60006101408c83528b151560208401528a60408401528960608401528860808401528760a08401528660c08401528560e0840152806101008401526130a481840186612f07565b91505060018060a01b0383166101208301529b9a5050505050505050505050565b6020815260006120a06020830184612f07565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b0382111561324b5761324b613521565b5060051b60200190565b60008219821115613268576132686134df565b500190565b600060ff821660ff84168060ff0382111561328a5761328a6134df565b019392505050565b6000826132a1576132a16134f5565b500490565b600060ff8316806132b9576132b96134f5565b8060ff84160491505092915050565b600181815b808511156133035781600019048211156132e9576132e96134df565b808516156132f657918102915b93841c93908002906132cd565b509250929050565b60006120a0838360008261332157506001610673565b8161332e57506000610673565b8160018114613344576002811461334e5761336a565b6001915050610673565b60ff84111561335f5761335f6134df565b50506001821b610673565b5060208310610133831016604e8410600b841016171561338d575081810a610673565b61339783836132c8565b80600019048211156133ab576133ab6134df565b029392505050565b60008160001904831182151516156133cd576133cd6134df565b500290565b600060ff821660ff84168160ff04811182151516156133ab576133ab6134df565b600082821015613405576134056134df565b500390565b600060ff821660ff841680821015613424576134246134df565b90039392505050565b60005b83811015613448578181015183820152602001613430565b83811115613457576000848401525b50505050565b600181811c9082168061347157607f821691505b6020821081141561349257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156134bd576134bd613521565b6040525050565b60006000198214156134d8576134d86134df565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156135505760046000803e5060005160e01c5b90565b600060443d10156135615790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561359057505050505090565b82850191508151818111156135a85750505050505090565b843d87010160208285010111156135c25750505050505090565b6135d160208286010187613498565b509095945050505050565b6001600160e01b031981168114610bf357600080fdfea264697066735822122088941f28b69b90c24a5c52d7fc229a430d7b25bb20c25dd59e0d183248eb136e64736f6c63430008060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.