ERC-721
Overview
Max Total Supply
213 PLMB
Holders
117
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 PLMBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PaletteMarbles
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Tradable.sol"; interface OpenPaletteInterface { function ownerOf(uint256 tokenId) external view returns (address owner); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); function balanceOf(address owner) external view returns (uint256); } contract PaletteMarbles is ERC721Tradable { using Counters for Counters.Counter; // OpenPalette address private openPaletteAddress; mapping(uint256 => bool) private _avatarExists; uint256 public constant MULTI_MINT_AMOUNT = 5; uint256 public mintStart_timestamp = 1632661200; // Sunday, 26 Sep 2021 13:00:00.000000000 UTC +00:00 uint256 public freeMintEnd_timestamp = 1632920400; // Wed, 29 Sep 2021 13:00:00.000000000 UTC +00:00 uint256 public constant PRICE = 20000000000000000; // 0.02 ETH constructor(address _proxyRegistryAddress, address _openPaletteAddress) ERC721Tradable("PaletteMarbles", "PLMB", _proxyRegistryAddress) { openPaletteAddress = _openPaletteAddress; } function requirePalettePrerequisites(uint256 _tokenId, address _to) private view{ require( OpenPaletteInterface(openPaletteAddress).ownerOf(_tokenId) == _to, "Palette not owned" ); require(_tokenId >= 0 && _tokenId < 10000, "Token ID invalid"); require(!_avatarExists[_tokenId], "This marble already exists"); } function requireMintPrerequisites(uint256 count) private { require(block.timestamp >= mintStart_timestamp, "Mint not active"); if(block.timestamp > freeMintEnd_timestamp) { require( PRICE * count <= msg.value, "Insufficient payment, 0.02 ETH per item" ); } require(_marblesCounter.current() + count - 1 < MAX_TOKENS, "Exceeds max supply"); } /** * @dev Mint * @param _tokenId Token ID to mint * @param _to Address to receive the token */ function mint(uint256 _tokenId, address _to) external payable { requireMintPrerequisites(1); requirePalettePrerequisites(_tokenId, _to); _safeMint(_to, _tokenId); _avatarExists[_tokenId] = true; _marblesCounter.increment(); } function multiMintWithPalettes(uint256[] calldata paletteIds, address _to) public payable { uint256 count = paletteIds.length; require(count <= MULTI_MINT_AMOUNT, "Multimint max is 5"); requireMintPrerequisites(count); for (uint256 i = 0; i < count; i++) { requirePalettePrerequisites(paletteIds[i], _to); } for (uint256 i = 0; i < count; i++) { _safeMint(_to, paletteIds[i]); _avatarExists[paletteIds[i]] = true; _marblesCounter.increment(); } } function baseTokenURI() override public pure returns (string memory) { return "https://ipfs.io/ipfs/QmTQFqFqi4fk9SBgW1KjWcjytDmJBd2ibEm5Us2PvgSR2H/"; } function tokenURI(uint256 _tokenId) override public pure returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId), ".json")); } function withdraw(address _account, uint256 _balance) private { payable(_account).transfer(_balance); } address public constant devAddress = 0xE69Eb4946188c5085f38e683b61b892a96c27124; function withdrawAll() public payable onlyOwner { uint256 contractBalance = address(this).balance; require(contractBalance > 0); uint256 share = contractBalance / 2; withdraw(devAddress, share); withdraw(owner(), share); } // Open Palettes function palettesOf(address _owner) public view returns(uint256[] memory) { uint256 balance = OpenPaletteInterface(openPaletteAddress).balanceOf(_owner); uint256[] memory palettes = new uint256[](balance); for(uint256 i = 0; i < balance; i++) { uint256 tokenId = OpenPaletteInterface(openPaletteAddress).tokenOfOwnerByIndex(_owner, i); palettes[i] = tokenId; } return palettes; } function isMinted(uint256 _tokenId) public view returns (bool) { return _avatarExists[_tokenId]; } // Tokens count uint256 public constant MAX_TOKENS = 2000; Counters.Counter private _marblesCounter; function getPaletteMarblesMintCount() public view returns (uint256) { return _marblesCounter.current(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) public onlyOwner { uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); _incrementTokenId(); } /** * @dev calculates the next token ID based on value of _currentTokenId * @return uint256 for the next token ID */ function _getNextTokenId() private view returns (uint256) { return _currentTokenId.add(1); } /** * @dev increments the value of _currentTokenId */ function _incrementTokenId() private { _currentTokenId++; } function baseTokenURI() virtual public pure returns (string memory); /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT 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 no longer needed starting with Solidity 0.8. 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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 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 pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_openPaletteAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTI_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeMintEnd_timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPaletteMarblesMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStart_timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"paletteIds","type":"uint256[]"},{"internalType":"address","name":"_to","type":"address"}],"name":"multiMintWithPalettes","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"palettesOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff0219169083151502179055506000600f556361506ed060125563615463506013553480156200004157600080fd5b5060405162005a6738038062005a67833981810160405281019062000067919062000562565b6040518060400160405280600e81526020017f50616c657474654d6172626c65730000000000000000000000000000000000008152506040518060400160405280600481526020017f504c4d42000000000000000000000000000000000000000000000000000000008152508382828160009080519060200190620000ee9291906200049b565b508060019080519060200190620001079291906200049b565b5050506200012a6200011e620001c860201b60201c565b620001e460201b60201c565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200017c83620002aa60201b60201c565b50505080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506200076d565b6000620001df6200032c60201b62001c961760201c565b905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a60009054906101000a900460ff1615620002fd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f4906200064f565b60405180910390fd5b6200030e81620003df60201b60201c565b6001600a60006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415620003d857600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050620003dc565b3390505b90565b6040518060800160405280604f815260200162005a18604f91398051906020012081805190602001206040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152508051906020012030620004566200048e60201b60201c565b60001b6040516020016200046f959493929190620005f2565b60405160208183030381529060405280519060200120600b8190555050565b6000804690508091505090565b828054620004a990620006c0565b90600052602060002090601f016020900481019282620004cd576000855562000519565b82601f10620004e857805160ff191683800117855562000519565b8280016001018555821562000519579182015b8281111562000518578251825591602001919060010190620004fb565b5b5090506200052891906200052c565b5090565b5b80821115620005475760008160009055506001016200052d565b5090565b6000815190506200055c8162000753565b92915050565b600080604083850312156200057c576200057b62000725565b5b60006200058c858286016200054b565b92505060206200059f858286016200054b565b9150509250929050565b620005b48162000682565b82525050565b620005c58162000696565b82525050565b6000620005da600e8362000671565b9150620005e7826200072a565b602082019050919050565b600060a082019050620006096000830188620005ba565b620006186020830187620005ba565b620006276040830186620005ba565b620006366060830185620005a9565b620006456080830184620005ba565b9695505050505050565b600060208201905081810360008301526200066a81620005cb565b9050919050565b600082825260208201905092915050565b60006200068f82620006a0565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620006d957607f821691505b60208210811415620006f057620006ef620006f6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b7f616c726561647920696e69746564000000000000000000000000000000000000600082015250565b6200075e8162000682565b81146200076a57600080fd5b50565b61529b806200077d6000396000f3fe6080604052600436106102255760003560e01c8063715018a611610123578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c51461080f578063ece8a39a1461084c578063f2fde38b14610877578063f47c84c5146108a0578063fcb057cc146108cb57610225565b8063b88d4fde14610725578063b8f828f31461074e578063c87b56dd1461076a578063cf29dc41146107a7578063d547cfb7146107e457610225565b80638da5cb5b116100f25780638da5cb5b1461065f57806394bf804d1461068a57806395d89b41146106a6578063a22cb465146106d1578063b268ceb4146106fa57610225565b8063715018a6146105ea578063755edd1714610601578063853828b61461062a5780638d859f3e1461063457610225565b80632a408c20116101b15780633ad10ef6116101755780633ad10ef6146104df57806342842e0e1461050a5780634f6ccce7146105335780636352211e1461057057806370a08231146105ad57610225565b80632a408c20146103d25780632d0335ab146103fd5780632f745c591461043a57806333c41a90146104775780633408e470146104b457610225565b80630c53c51c116101f85780630c53c51c146102f85780630f7e59701461032857806318160ddd1461035357806320379ee51461037e57806323b872dd146103a957610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137e7565b6108f6565b60405161025e9190614075565b60405180910390f35b34801561027357600080fd5b5061027c610970565b6040516102899190614157565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b4919061386e565b610a02565b6040516102c69190613f85565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190613747565b610a87565b005b610312600480360381019061030d91906136b0565b610b9f565b60405161031f9190614135565b60405180910390f35b34801561033457600080fd5b5061033d610e11565b60405161034a9190614157565b60405180910390f35b34801561035f57600080fd5b50610368610e4a565b60405161037591906144d9565b60405180910390f35b34801561038a57600080fd5b50610393610e57565b6040516103a09190614090565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb919061359a565b610e61565b005b3480156103de57600080fd5b506103e7610ec1565b6040516103f491906144d9565b60405180910390f35b34801561040957600080fd5b50610424600480360381019061041f9190613500565b610ed2565b60405161043191906144d9565b60405180910390f35b34801561044657600080fd5b50610461600480360381019061045c9190613747565b610f1b565b60405161046e91906144d9565b60405180910390f35b34801561048357600080fd5b5061049e6004803603810190610499919061386e565b610fc0565b6040516104ab9190614075565b60405180910390f35b3480156104c057600080fd5b506104c9610fea565b6040516104d691906144d9565b60405180910390f35b3480156104eb57600080fd5b506104f4610ff7565b6040516105019190613f85565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c919061359a565b61100f565b005b34801561053f57600080fd5b5061055a6004803603810190610555919061386e565b61102f565b60405161056791906144d9565b60405180910390f35b34801561057c57600080fd5b506105976004803603810190610592919061386e565b6110a0565b6040516105a49190613f85565b60405180910390f35b3480156105b957600080fd5b506105d460048036038101906105cf9190613500565b611152565b6040516105e191906144d9565b60405180910390f35b3480156105f657600080fd5b506105ff61120a565b005b34801561060d57600080fd5b5061062860048036038101906106239190613500565b611292565b005b610632611330565b005b34801561064057600080fd5b50610649611402565b60405161065691906144d9565b60405180910390f35b34801561066b57600080fd5b5061067461140d565b6040516106819190613f85565b60405180910390f35b6106a4600480360381019061069f91906138c8565b611437565b005b3480156106b257600080fd5b506106bb61148f565b6040516106c89190614157565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f39190613670565b611521565b005b34801561070657600080fd5b5061070f6116a2565b60405161071c91906144d9565b60405180910390f35b34801561073157600080fd5b5061074c600480360381019061074791906135ed565b6116a8565b005b61076860048036038101906107639190613787565b61170a565b005b34801561077657600080fd5b50610791600480360381019061078c919061386e565b611838565b60405161079e9190614157565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c99190613500565b611872565b6040516107db9190614053565b60405180910390f35b3480156107f057600080fd5b506107f9611a6b565b6040516108069190614157565b60405180910390f35b34801561081b57600080fd5b506108366004803603810190610831919061355a565b611a8b565b6040516108439190614075565b60405180910390f35b34801561085857600080fd5b50610861611b8d565b60405161086e91906144d9565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190613500565b611b93565b005b3480156108ac57600080fd5b506108b5611c8b565b6040516108c291906144d9565b60405180910390f35b3480156108d757600080fd5b506108e0611c91565b6040516108ed91906144d9565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610969575061096882611d47565b5b9050919050565b60606000805461097f906147d7565b80601f01602080910402602001604051908101604052809291908181526020018280546109ab906147d7565b80156109f85780601f106109cd576101008083540402835291602001916109f8565b820191906000526020600020905b8154815290600101906020018083116109db57829003601f168201915b5050505050905090565b6000610a0d82611e29565b610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390614399565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a92826110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afa90614439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b22611e95565b73ffffffffffffffffffffffffffffffffffffffff161480610b515750610b5081610b4b611e95565b611a8b565b5b610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b87906142f9565b60405180910390fd5b610b9a8383611ea4565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610c228782878787611f5d565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5890614419565b60405180910390fd5b610cb46001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461206690919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610d2a93929190613fa0565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d5f929190613ef7565b604051602081830303815290604052604051610d7b9190613ee0565b6000604051808303816000865af19150503d8060008114610db8576040519150601f19603f3d011682016040523d82523d6000602084013e610dbd565b606091505b509150915081610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df9906141d9565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610e72610e6c611e95565b8261207c565b610eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea890614459565b60405180910390fd5b610ebc83838361215a565b505050565b6000610ecd60146123b6565b905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610f2683611152565b8210610f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5e90614179565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006011600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000804690508091505090565b73e69eb4946188c5085f38e683b61b892a96c2712481565b61102a838383604051806020016040528060008152506116a8565b505050565b6000611039610e4a565b821061107a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107190614479565b60405180910390fd5b6008828154811061108e5761108d61499e565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114090614339565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614319565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611212611e95565b73ffffffffffffffffffffffffffffffffffffffff1661123061140d565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d906143b9565b60405180910390fd5b61129060006123c4565b565b61129a611e95565b73ffffffffffffffffffffffffffffffffffffffff166112b861140d565b73ffffffffffffffffffffffffffffffffffffffff161461130e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611305906143b9565b60405180910390fd5b600061131861248a565b905061132482826124a7565b61132c612675565b5050565b611338611e95565b73ffffffffffffffffffffffffffffffffffffffff1661135661140d565b73ffffffffffffffffffffffffffffffffffffffff16146113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a3906143b9565b60405180910390fd5b6000479050600081116113be57600080fd5b60006002826113cd9190614627565b90506113ed73e69eb4946188c5085f38e683b61b892a96c271248261268f565b6113fe6113f861140d565b8261268f565b5050565b66470de4df82000081565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61144160016126da565b61144b82826127e6565b61145581836129b4565b60016011600084815260200190815260200160002060006101000a81548160ff02191690831515021790555061148b60146129d2565b5050565b60606001805461149e906147d7565b80601f01602080910402602001604051908101604052809291908181526020018280546114ca906147d7565b80156115175780601f106114ec57610100808354040283529160200191611517565b820191906000526020600020905b8154815290600101906020018083116114fa57829003601f168201915b5050505050905090565b611529611e95565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90614299565b60405180910390fd5b80600560006115a4611e95565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611651611e95565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116969190614075565b60405180910390a35050565b60135481565b6116b96116b3611e95565b8361207c565b6116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef90614459565b60405180910390fd5b611704848484846129e8565b50505050565b60008383905090506005811115611756576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174d90614239565b60405180910390fd5b61175f816126da565b60005b818110156117a05761178d8585838181106117805761177f61499e565b5b90506020020135846127e6565b80806117989061483a565b915050611762565b5060005b81811015611831576117cf838686848181106117c3576117c261499e565b5b905060200201356129b4565b6001601160008787858181106117e8576117e761499e565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061181e60146129d2565b80806118299061483a565b9150506117a4565b5050505050565b6060611842611a6b565b61184b83612a44565b60405160200161185c929190613f1f565b6040516020818303038152906040529050919050565b60606000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016118d19190613f85565b60206040518083038186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611921919061389b565b905060008167ffffffffffffffff81111561193f5761193e6149cd565b5b60405190808252806020026020018201604052801561196d5781602001602082028036833780820191505090505b50905060005b82811015611a60576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b81526004016119da92919061402a565b60206040518083038186803b1580156119f257600080fd5b505afa158015611a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2a919061389b565b905080838381518110611a4057611a3f61499e565b5b602002602001018181525050508080611a589061483a565b915050611973565b508092505050919050565b606060405180608001604052806044815260200161522260449139905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611b039190613f85565b60206040518083038186803b158015611b1b57600080fd5b505afa158015611b2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b539190613841565b73ffffffffffffffffffffffffffffffffffffffff161415611b79576001915050611b87565b611b838484612ba5565b9150505b92915050565b60125481565b611b9b611e95565b73ffffffffffffffffffffffffffffffffffffffff16611bb961140d565b73ffffffffffffffffffffffffffffffffffffffff1614611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c06906143b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c76906141b9565b60405180910390fd5b611c88816123c4565b50565b6107d081565b600581565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d4057600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611d44565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e1257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611e225750611e2182612c39565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611e9f611c96565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f17836110a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc5906142d9565b60405180910390fd5b6001611fe1611fdc87612ca3565b612d0b565b8386866040516000815260200160405260405161200194939291906140f0565b6020604051602081039080840390855afa158015612023573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361207491906145d1565b905092915050565b600061208782611e29565b6120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd906142b9565b60405180910390fd5b60006120d1836110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061214057508373ffffffffffffffffffffffffffffffffffffffff1661212884610a02565b73ffffffffffffffffffffffffffffffffffffffff16145b8061215157506121508185611a8b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661217a826110a0565b73ffffffffffffffffffffffffffffffffffffffff16146121d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c7906143f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223790614279565b60405180910390fd5b61224b838383612d44565b612256600082611ea4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122a691906146b2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122fd91906145d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600081600001549050919050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006124a26001600f5461206690919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250e90614379565b60405180910390fd5b61252081611e29565b15612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255790614219565b60405180910390fd5b61256c60008383612d44565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125bc91906145d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f60008154809291906126889061483a565b9190505550565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156126d5573d6000803e3d6000fd5b505050565b60125442101561271f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271690614259565b60405180910390fd5b60135442111561277f57348166470de4df82000061273d9190614658565b111561277e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612775906144b9565b60405180910390fd5b5b6107d060018261278f60146123b6565b61279991906145d1565b6127a391906146b2565b106127e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127da90614359565b60405180910390fd5b50565b8073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161285891906144d9565b60206040518083038186803b15801561287057600080fd5b505afa158015612884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a8919061352d565b73ffffffffffffffffffffffffffffffffffffffff16146128fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f590614499565b60405180910390fd5b60008210158015612910575061271082105b61294f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612946906143d9565b60405180910390fd5b6011600083815260200190815260200160002060009054906101000a900460ff16156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a7906141f9565b60405180910390fd5b5050565b6129ce828260405180602001604052806000815250612e58565b5050565b6001816000016000828254019250508190555050565b6129f384848461215a565b6129ff84848484612eb3565b612a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3590614199565b60405180910390fd5b50505050565b60606000821415612a8c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ba0565b600082905060005b60008214612abe578080612aa79061483a565b915050600a82612ab79190614627565b9150612a94565b60008167ffffffffffffffff811115612ada57612ad96149cd565b5b6040519080825280601f01601f191660200182016040528015612b0c5781602001600182028036833780820191505090505b5090505b60008514612b9957600182612b2591906146b2565b9150600a85612b3491906148b1565b6030612b4091906145d1565b60f81b818381518110612b5657612b5561499e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b929190614627565b9450612b10565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006040518060800160405280604381526020016151df604391398051906020012082600001518360200151846040015180519060200120604051602001612cee94939291906140ab565b604051602081830303815290604052805190602001209050919050565b6000612d15610e57565b82604051602001612d27929190613f4e565b604051602081830303815290604052805190602001209050919050565b612d4f83838361304a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d9257612d8d8161304f565b612dd1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612dd057612dcf8382613098565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e1457612e0f81613205565b612e53565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5257612e5182826132d6565b5b5b505050565b612e6283836124a7565b612e6f6000848484612eb3565b612eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea590614199565b60405180910390fd5b505050565b6000612ed48473ffffffffffffffffffffffffffffffffffffffff16613355565b1561303d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612efd611e95565b8786866040518563ffffffff1660e01b8152600401612f1f9493929190613fde565b602060405180830381600087803b158015612f3957600080fd5b505af1925050508015612f6a57506040513d601f19601f82011682018060405250810190612f679190613814565b60015b612fed573d8060008114612f9a576040519150601f19603f3d011682016040523d82523d6000602084013e612f9f565b606091505b50600081511415612fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdc90614199565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613042565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016130a584611152565b6130af91906146b2565b9050600060076000848152602001908152602001600020549050818114613194576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061321991906146b2565b90506000600960008481526020019081526020016000205490506000600883815481106132495761324861499e565b5b90600052602060002001549050806008838154811061326b5761326a61499e565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806132ba576132b961496f565b5b6001900381819060005260206000200160009055905550505050565b60006132e183611152565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b600061337b61337684614519565b6144f4565b90508281526020810184848401111561339757613396614a0b565b5b6133a2848285614795565b509392505050565b6000813590506133b98161513d565b92915050565b6000815190506133ce8161513d565b92915050565b60008083601f8401126133ea576133e9614a01565b5b8235905067ffffffffffffffff811115613407576134066149fc565b5b60208301915083602082028301111561342357613422614a06565b5b9250929050565b60008135905061343981615154565b92915050565b60008135905061344e8161516b565b92915050565b60008135905061346381615182565b92915050565b60008151905061347881615182565b92915050565b600082601f83011261349357613492614a01565b5b81356134a3848260208601613368565b91505092915050565b6000815190506134bb81615199565b92915050565b6000813590506134d0816151b0565b92915050565b6000815190506134e5816151b0565b92915050565b6000813590506134fa816151c7565b92915050565b60006020828403121561351657613515614a15565b5b6000613524848285016133aa565b91505092915050565b60006020828403121561354357613542614a15565b5b6000613551848285016133bf565b91505092915050565b6000806040838503121561357157613570614a15565b5b600061357f858286016133aa565b9250506020613590858286016133aa565b9150509250929050565b6000806000606084860312156135b3576135b2614a15565b5b60006135c1868287016133aa565b93505060206135d2868287016133aa565b92505060406135e3868287016134c1565b9150509250925092565b6000806000806080858703121561360757613606614a15565b5b6000613615878288016133aa565b9450506020613626878288016133aa565b9350506040613637878288016134c1565b925050606085013567ffffffffffffffff81111561365857613657614a10565b5b6136648782880161347e565b91505092959194509250565b6000806040838503121561368757613686614a15565b5b6000613695858286016133aa565b92505060206136a68582860161342a565b9150509250929050565b600080600080600060a086880312156136cc576136cb614a15565b5b60006136da888289016133aa565b955050602086013567ffffffffffffffff8111156136fb576136fa614a10565b5b6137078882890161347e565b94505060406137188882890161343f565b93505060606137298882890161343f565b925050608061373a888289016134eb565b9150509295509295909350565b6000806040838503121561375e5761375d614a15565b5b600061376c858286016133aa565b925050602061377d858286016134c1565b9150509250929050565b6000806000604084860312156137a05761379f614a15565b5b600084013567ffffffffffffffff8111156137be576137bd614a10565b5b6137ca868287016133d4565b935093505060206137dd868287016133aa565b9150509250925092565b6000602082840312156137fd576137fc614a15565b5b600061380b84828501613454565b91505092915050565b60006020828403121561382a57613829614a15565b5b600061383884828501613469565b91505092915050565b60006020828403121561385757613856614a15565b5b6000613865848285016134ac565b91505092915050565b60006020828403121561388457613883614a15565b5b6000613892848285016134c1565b91505092915050565b6000602082840312156138b1576138b0614a15565b5b60006138bf848285016134d6565b91505092915050565b600080604083850312156138df576138de614a15565b5b60006138ed858286016134c1565b92505060206138fe858286016133aa565b9150509250929050565b60006139148383613eb3565b60208301905092915050565b613929816146f8565b82525050565b613938816146e6565b82525050565b61394f61394a826146e6565b614883565b82525050565b60006139608261455a565b61396a8185614588565b93506139758361454a565b8060005b838110156139a657815161398d8882613908565b97506139988361457b565b925050600181019050613979565b5085935050505092915050565b6139bc8161470a565b82525050565b6139cb81614716565b82525050565b6139e26139dd82614716565b614895565b82525050565b60006139f382614565565b6139fd8185614599565b9350613a0d8185602086016147a4565b613a1681614a1a565b840191505092915050565b6000613a2c82614565565b613a3681856145aa565b9350613a468185602086016147a4565b80840191505092915050565b6000613a5d82614570565b613a6781856145b5565b9350613a778185602086016147a4565b613a8081614a1a565b840191505092915050565b6000613a9682614570565b613aa081856145c6565b9350613ab08185602086016147a4565b80840191505092915050565b6000613ac9602b836145b5565b9150613ad482614a38565b604082019050919050565b6000613aec6032836145b5565b9150613af782614a87565b604082019050919050565b6000613b0f6026836145b5565b9150613b1a82614ad6565b604082019050919050565b6000613b32601c836145b5565b9150613b3d82614b25565b602082019050919050565b6000613b55601a836145b5565b9150613b6082614b4e565b602082019050919050565b6000613b78601c836145b5565b9150613b8382614b77565b602082019050919050565b6000613b9b6002836145c6565b9150613ba682614ba0565b600282019050919050565b6000613bbe6012836145b5565b9150613bc982614bc9565b602082019050919050565b6000613be1600f836145b5565b9150613bec82614bf2565b602082019050919050565b6000613c046024836145b5565b9150613c0f82614c1b565b604082019050919050565b6000613c276019836145b5565b9150613c3282614c6a565b602082019050919050565b6000613c4a602c836145b5565b9150613c5582614c93565b604082019050919050565b6000613c6d6025836145b5565b9150613c7882614ce2565b604082019050919050565b6000613c906038836145b5565b9150613c9b82614d31565b604082019050919050565b6000613cb3602a836145b5565b9150613cbe82614d80565b604082019050919050565b6000613cd66029836145b5565b9150613ce182614dcf565b604082019050919050565b6000613cf96012836145b5565b9150613d0482614e1e565b602082019050919050565b6000613d1c6020836145b5565b9150613d2782614e47565b602082019050919050565b6000613d3f602c836145b5565b9150613d4a82614e70565b604082019050919050565b6000613d626005836145c6565b9150613d6d82614ebf565b600582019050919050565b6000613d856020836145b5565b9150613d9082614ee8565b602082019050919050565b6000613da86010836145b5565b9150613db382614f11565b602082019050919050565b6000613dcb6029836145b5565b9150613dd682614f3a565b604082019050919050565b6000613dee6021836145b5565b9150613df982614f89565b604082019050919050565b6000613e116021836145b5565b9150613e1c82614fd8565b604082019050919050565b6000613e346031836145b5565b9150613e3f82615027565b604082019050919050565b6000613e57602c836145b5565b9150613e6282615076565b604082019050919050565b6000613e7a6011836145b5565b9150613e85826150c5565b602082019050919050565b6000613e9d6027836145b5565b9150613ea8826150ee565b604082019050919050565b613ebc8161477e565b82525050565b613ecb8161477e565b82525050565b613eda81614788565b82525050565b6000613eec8284613a21565b915081905092915050565b6000613f038285613a21565b9150613f0f828461393e565b6014820191508190509392505050565b6000613f2b8285613a8b565b9150613f378284613a8b565b9150613f4282613d55565b91508190509392505050565b6000613f5982613b8e565b9150613f6582856139d1565b602082019150613f7582846139d1565b6020820191508190509392505050565b6000602082019050613f9a600083018461392f565b92915050565b6000606082019050613fb5600083018661392f565b613fc26020830185613920565b8181036040830152613fd481846139e8565b9050949350505050565b6000608082019050613ff3600083018761392f565b614000602083018661392f565b61400d6040830185613ec2565b818103606083015261401f81846139e8565b905095945050505050565b600060408201905061403f600083018561392f565b61404c6020830184613ec2565b9392505050565b6000602082019050818103600083015261406d8184613955565b905092915050565b600060208201905061408a60008301846139b3565b92915050565b60006020820190506140a560008301846139c2565b92915050565b60006080820190506140c060008301876139c2565b6140cd6020830186613ec2565b6140da604083018561392f565b6140e760608301846139c2565b95945050505050565b600060808201905061410560008301876139c2565b6141126020830186613ed1565b61411f60408301856139c2565b61412c60608301846139c2565b95945050505050565b6000602082019050818103600083015261414f81846139e8565b905092915050565b600060208201905081810360008301526141718184613a52565b905092915050565b6000602082019050818103600083015261419281613abc565b9050919050565b600060208201905081810360008301526141b281613adf565b9050919050565b600060208201905081810360008301526141d281613b02565b9050919050565b600060208201905081810360008301526141f281613b25565b9050919050565b6000602082019050818103600083015261421281613b48565b9050919050565b6000602082019050818103600083015261423281613b6b565b9050919050565b6000602082019050818103600083015261425281613bb1565b9050919050565b6000602082019050818103600083015261427281613bd4565b9050919050565b6000602082019050818103600083015261429281613bf7565b9050919050565b600060208201905081810360008301526142b281613c1a565b9050919050565b600060208201905081810360008301526142d281613c3d565b9050919050565b600060208201905081810360008301526142f281613c60565b9050919050565b6000602082019050818103600083015261431281613c83565b9050919050565b6000602082019050818103600083015261433281613ca6565b9050919050565b6000602082019050818103600083015261435281613cc9565b9050919050565b6000602082019050818103600083015261437281613cec565b9050919050565b6000602082019050818103600083015261439281613d0f565b9050919050565b600060208201905081810360008301526143b281613d32565b9050919050565b600060208201905081810360008301526143d281613d78565b9050919050565b600060208201905081810360008301526143f281613d9b565b9050919050565b6000602082019050818103600083015261441281613dbe565b9050919050565b6000602082019050818103600083015261443281613de1565b9050919050565b6000602082019050818103600083015261445281613e04565b9050919050565b6000602082019050818103600083015261447281613e27565b9050919050565b6000602082019050818103600083015261449281613e4a565b9050919050565b600060208201905081810360008301526144b281613e6d565b9050919050565b600060208201905081810360008301526144d281613e90565b9050919050565b60006020820190506144ee6000830184613ec2565b92915050565b60006144fe61450f565b905061450a8282614809565b919050565b6000604051905090565b600067ffffffffffffffff821115614534576145336149cd565b5b61453d82614a1a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006145dc8261477e565b91506145e78361477e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561461c5761461b6148e2565b5b828201905092915050565b60006146328261477e565b915061463d8361477e565b92508261464d5761464c614911565b5b828204905092915050565b60006146638261477e565b915061466e8361477e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146a7576146a66148e2565b5b828202905092915050565b60006146bd8261477e565b91506146c88361477e565b9250828210156146db576146da6148e2565b5b828203905092915050565b60006146f18261475e565b9050919050565b60006147038261475e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614757826146e6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156147c25780820151818401526020810190506147a7565b838111156147d1576000848401525b50505050565b600060028204905060018216806147ef57607f821691505b6020821081141561480357614802614940565b5b50919050565b61481282614a1a565b810181811067ffffffffffffffff82111715614831576148306149cd565b5b80604052505050565b60006148458261477e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614878576148776148e2565b5b600182019050919050565b600061488e8261489f565b9050919050565b6000819050919050565b60006148aa82614a2b565b9050919050565b60006148bc8261477e565b91506148c78361477e565b9250826148d7576148d6614911565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f54686973206d6172626c6520616c726561647920657869737473000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4d756c74696d696e74206d617820697320350000000000000000000000000000600082015250565b7f4d696e74206e6f74206163746976650000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546f6b656e20494420696e76616c696400000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50616c65747465206e6f74206f776e6564000000000000000000000000000000600082015250565b7f496e73756666696369656e74207061796d656e742c20302e303220455448207060008201527f6572206974656d00000000000000000000000000000000000000000000000000602082015250565b615146816146e6565b811461515157600080fd5b50565b61515d8161470a565b811461516857600080fd5b50565b61517481614716565b811461517f57600080fd5b50565b61518b81614720565b811461519657600080fd5b50565b6151a28161474c565b81146151ad57600080fd5b50565b6151b98161477e565b81146151c457600080fd5b50565b6151d081614788565b81146151db57600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f697066732e696f2f697066732f516d5451467146716934666b3953426757314b6a57636a7974446d4a4264326962456d35557332507667535232482fa2646970667358221220192ef31e1a559b4c8f2940bfae3874ff376210af5b8f46c798a68779f7ad5a1f64736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000001308c158e60d7c4565e369df2a86ebd853eef2fb
Deployed Bytecode
0x6080604052600436106102255760003560e01c8063715018a611610123578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c51461080f578063ece8a39a1461084c578063f2fde38b14610877578063f47c84c5146108a0578063fcb057cc146108cb57610225565b8063b88d4fde14610725578063b8f828f31461074e578063c87b56dd1461076a578063cf29dc41146107a7578063d547cfb7146107e457610225565b80638da5cb5b116100f25780638da5cb5b1461065f57806394bf804d1461068a57806395d89b41146106a6578063a22cb465146106d1578063b268ceb4146106fa57610225565b8063715018a6146105ea578063755edd1714610601578063853828b61461062a5780638d859f3e1461063457610225565b80632a408c20116101b15780633ad10ef6116101755780633ad10ef6146104df57806342842e0e1461050a5780634f6ccce7146105335780636352211e1461057057806370a08231146105ad57610225565b80632a408c20146103d25780632d0335ab146103fd5780632f745c591461043a57806333c41a90146104775780633408e470146104b457610225565b80630c53c51c116101f85780630c53c51c146102f85780630f7e59701461032857806318160ddd1461035357806320379ee51461037e57806323b872dd146103a957610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137e7565b6108f6565b60405161025e9190614075565b60405180910390f35b34801561027357600080fd5b5061027c610970565b6040516102899190614157565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b4919061386e565b610a02565b6040516102c69190613f85565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190613747565b610a87565b005b610312600480360381019061030d91906136b0565b610b9f565b60405161031f9190614135565b60405180910390f35b34801561033457600080fd5b5061033d610e11565b60405161034a9190614157565b60405180910390f35b34801561035f57600080fd5b50610368610e4a565b60405161037591906144d9565b60405180910390f35b34801561038a57600080fd5b50610393610e57565b6040516103a09190614090565b60405180910390f35b3480156103b557600080fd5b506103d060048036038101906103cb919061359a565b610e61565b005b3480156103de57600080fd5b506103e7610ec1565b6040516103f491906144d9565b60405180910390f35b34801561040957600080fd5b50610424600480360381019061041f9190613500565b610ed2565b60405161043191906144d9565b60405180910390f35b34801561044657600080fd5b50610461600480360381019061045c9190613747565b610f1b565b60405161046e91906144d9565b60405180910390f35b34801561048357600080fd5b5061049e6004803603810190610499919061386e565b610fc0565b6040516104ab9190614075565b60405180910390f35b3480156104c057600080fd5b506104c9610fea565b6040516104d691906144d9565b60405180910390f35b3480156104eb57600080fd5b506104f4610ff7565b6040516105019190613f85565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c919061359a565b61100f565b005b34801561053f57600080fd5b5061055a6004803603810190610555919061386e565b61102f565b60405161056791906144d9565b60405180910390f35b34801561057c57600080fd5b506105976004803603810190610592919061386e565b6110a0565b6040516105a49190613f85565b60405180910390f35b3480156105b957600080fd5b506105d460048036038101906105cf9190613500565b611152565b6040516105e191906144d9565b60405180910390f35b3480156105f657600080fd5b506105ff61120a565b005b34801561060d57600080fd5b5061062860048036038101906106239190613500565b611292565b005b610632611330565b005b34801561064057600080fd5b50610649611402565b60405161065691906144d9565b60405180910390f35b34801561066b57600080fd5b5061067461140d565b6040516106819190613f85565b60405180910390f35b6106a4600480360381019061069f91906138c8565b611437565b005b3480156106b257600080fd5b506106bb61148f565b6040516106c89190614157565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f39190613670565b611521565b005b34801561070657600080fd5b5061070f6116a2565b60405161071c91906144d9565b60405180910390f35b34801561073157600080fd5b5061074c600480360381019061074791906135ed565b6116a8565b005b61076860048036038101906107639190613787565b61170a565b005b34801561077657600080fd5b50610791600480360381019061078c919061386e565b611838565b60405161079e9190614157565b60405180910390f35b3480156107b357600080fd5b506107ce60048036038101906107c99190613500565b611872565b6040516107db9190614053565b60405180910390f35b3480156107f057600080fd5b506107f9611a6b565b6040516108069190614157565b60405180910390f35b34801561081b57600080fd5b506108366004803603810190610831919061355a565b611a8b565b6040516108439190614075565b60405180910390f35b34801561085857600080fd5b50610861611b8d565b60405161086e91906144d9565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190613500565b611b93565b005b3480156108ac57600080fd5b506108b5611c8b565b6040516108c291906144d9565b60405180910390f35b3480156108d757600080fd5b506108e0611c91565b6040516108ed91906144d9565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610969575061096882611d47565b5b9050919050565b60606000805461097f906147d7565b80601f01602080910402602001604051908101604052809291908181526020018280546109ab906147d7565b80156109f85780601f106109cd576101008083540402835291602001916109f8565b820191906000526020600020905b8154815290600101906020018083116109db57829003601f168201915b5050505050905090565b6000610a0d82611e29565b610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390614399565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a92826110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afa90614439565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b22611e95565b73ffffffffffffffffffffffffffffffffffffffff161480610b515750610b5081610b4b611e95565b611a8b565b5b610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b87906142f9565b60405180910390fd5b610b9a8383611ea4565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610c228782878787611f5d565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5890614419565b60405180910390fd5b610cb46001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461206690919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610d2a93929190613fa0565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d5f929190613ef7565b604051602081830303815290604052604051610d7b9190613ee0565b6000604051808303816000865af19150503d8060008114610db8576040519150601f19603f3d011682016040523d82523d6000602084013e610dbd565b606091505b509150915081610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df9906141d9565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b6000600b54905090565b610e72610e6c611e95565b8261207c565b610eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea890614459565b60405180910390fd5b610ebc83838361215a565b505050565b6000610ecd60146123b6565b905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610f2683611152565b8210610f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5e90614179565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006011600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000804690508091505090565b73e69eb4946188c5085f38e683b61b892a96c2712481565b61102a838383604051806020016040528060008152506116a8565b505050565b6000611039610e4a565b821061107a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107190614479565b60405180910390fd5b6008828154811061108e5761108d61499e565b5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114090614339565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ba90614319565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611212611e95565b73ffffffffffffffffffffffffffffffffffffffff1661123061140d565b73ffffffffffffffffffffffffffffffffffffffff1614611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d906143b9565b60405180910390fd5b61129060006123c4565b565b61129a611e95565b73ffffffffffffffffffffffffffffffffffffffff166112b861140d565b73ffffffffffffffffffffffffffffffffffffffff161461130e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611305906143b9565b60405180910390fd5b600061131861248a565b905061132482826124a7565b61132c612675565b5050565b611338611e95565b73ffffffffffffffffffffffffffffffffffffffff1661135661140d565b73ffffffffffffffffffffffffffffffffffffffff16146113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a3906143b9565b60405180910390fd5b6000479050600081116113be57600080fd5b60006002826113cd9190614627565b90506113ed73e69eb4946188c5085f38e683b61b892a96c271248261268f565b6113fe6113f861140d565b8261268f565b5050565b66470de4df82000081565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61144160016126da565b61144b82826127e6565b61145581836129b4565b60016011600084815260200190815260200160002060006101000a81548160ff02191690831515021790555061148b60146129d2565b5050565b60606001805461149e906147d7565b80601f01602080910402602001604051908101604052809291908181526020018280546114ca906147d7565b80156115175780601f106114ec57610100808354040283529160200191611517565b820191906000526020600020905b8154815290600101906020018083116114fa57829003601f168201915b5050505050905090565b611529611e95565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90614299565b60405180910390fd5b80600560006115a4611e95565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611651611e95565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116969190614075565b60405180910390a35050565b60135481565b6116b96116b3611e95565b8361207c565b6116f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ef90614459565b60405180910390fd5b611704848484846129e8565b50505050565b60008383905090506005811115611756576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174d90614239565b60405180910390fd5b61175f816126da565b60005b818110156117a05761178d8585838181106117805761177f61499e565b5b90506020020135846127e6565b80806117989061483a565b915050611762565b5060005b81811015611831576117cf838686848181106117c3576117c261499e565b5b905060200201356129b4565b6001601160008787858181106117e8576117e761499e565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061181e60146129d2565b80806118299061483a565b9150506117a4565b5050505050565b6060611842611a6b565b61184b83612a44565b60405160200161185c929190613f1f565b6040516020818303038152906040529050919050565b60606000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016118d19190613f85565b60206040518083038186803b1580156118e957600080fd5b505afa1580156118fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611921919061389b565b905060008167ffffffffffffffff81111561193f5761193e6149cd565b5b60405190808252806020026020018201604052801561196d5781602001602082028036833780820191505090505b50905060005b82811015611a60576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b81526004016119da92919061402a565b60206040518083038186803b1580156119f257600080fd5b505afa158015611a06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2a919061389b565b905080838381518110611a4057611a3f61499e565b5b602002602001018181525050508080611a589061483a565b915050611973565b508092505050919050565b606060405180608001604052806044815260200161522260449139905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611b039190613f85565b60206040518083038186803b158015611b1b57600080fd5b505afa158015611b2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b539190613841565b73ffffffffffffffffffffffffffffffffffffffff161415611b79576001915050611b87565b611b838484612ba5565b9150505b92915050565b60125481565b611b9b611e95565b73ffffffffffffffffffffffffffffffffffffffff16611bb961140d565b73ffffffffffffffffffffffffffffffffffffffff1614611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c06906143b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c76906141b9565b60405180910390fd5b611c88816123c4565b50565b6107d081565b600581565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415611d4057600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff818301511692505050611d44565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e1257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611e225750611e2182612c39565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000611e9f611c96565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f17836110a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415611fce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc5906142d9565b60405180910390fd5b6001611fe1611fdc87612ca3565b612d0b565b8386866040516000815260200160405260405161200194939291906140f0565b6020604051602081039080840390855afa158015612023573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b6000818361207491906145d1565b905092915050565b600061208782611e29565b6120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd906142b9565b60405180910390fd5b60006120d1836110a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061214057508373ffffffffffffffffffffffffffffffffffffffff1661212884610a02565b73ffffffffffffffffffffffffffffffffffffffff16145b8061215157506121508185611a8b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661217a826110a0565b73ffffffffffffffffffffffffffffffffffffffff16146121d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c7906143f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223790614279565b60405180910390fd5b61224b838383612d44565b612256600082611ea4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122a691906146b2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122fd91906145d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600081600001549050919050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006124a26001600f5461206690919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250e90614379565b60405180910390fd5b61252081611e29565b15612560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255790614219565b60405180910390fd5b61256c60008383612d44565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125bc91906145d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f60008154809291906126889061483a565b9190505550565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156126d5573d6000803e3d6000fd5b505050565b60125442101561271f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271690614259565b60405180910390fd5b60135442111561277f57348166470de4df82000061273d9190614658565b111561277e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612775906144b9565b60405180910390fd5b5b6107d060018261278f60146123b6565b61279991906145d1565b6127a391906146b2565b106127e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127da90614359565b60405180910390fd5b50565b8073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161285891906144d9565b60206040518083038186803b15801561287057600080fd5b505afa158015612884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128a8919061352d565b73ffffffffffffffffffffffffffffffffffffffff16146128fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f590614499565b60405180910390fd5b60008210158015612910575061271082105b61294f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612946906143d9565b60405180910390fd5b6011600083815260200190815260200160002060009054906101000a900460ff16156129b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a7906141f9565b60405180910390fd5b5050565b6129ce828260405180602001604052806000815250612e58565b5050565b6001816000016000828254019250508190555050565b6129f384848461215a565b6129ff84848484612eb3565b612a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3590614199565b60405180910390fd5b50505050565b60606000821415612a8c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ba0565b600082905060005b60008214612abe578080612aa79061483a565b915050600a82612ab79190614627565b9150612a94565b60008167ffffffffffffffff811115612ada57612ad96149cd565b5b6040519080825280601f01601f191660200182016040528015612b0c5781602001600182028036833780820191505090505b5090505b60008514612b9957600182612b2591906146b2565b9150600a85612b3491906148b1565b6030612b4091906145d1565b60f81b818381518110612b5657612b5561499e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b929190614627565b9450612b10565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006040518060800160405280604381526020016151df604391398051906020012082600001518360200151846040015180519060200120604051602001612cee94939291906140ab565b604051602081830303815290604052805190602001209050919050565b6000612d15610e57565b82604051602001612d27929190613f4e565b604051602081830303815290604052805190602001209050919050565b612d4f83838361304a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d9257612d8d8161304f565b612dd1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612dd057612dcf8382613098565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e1457612e0f81613205565b612e53565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5257612e5182826132d6565b5b5b505050565b612e6283836124a7565b612e6f6000848484612eb3565b612eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea590614199565b60405180910390fd5b505050565b6000612ed48473ffffffffffffffffffffffffffffffffffffffff16613355565b1561303d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612efd611e95565b8786866040518563ffffffff1660e01b8152600401612f1f9493929190613fde565b602060405180830381600087803b158015612f3957600080fd5b505af1925050508015612f6a57506040513d601f19601f82011682018060405250810190612f679190613814565b60015b612fed573d8060008114612f9a576040519150601f19603f3d011682016040523d82523d6000602084013e612f9f565b606091505b50600081511415612fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdc90614199565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613042565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016130a584611152565b6130af91906146b2565b9050600060076000848152602001908152602001600020549050818114613194576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061321991906146b2565b90506000600960008481526020019081526020016000205490506000600883815481106132495761324861499e565b5b90600052602060002001549050806008838154811061326b5761326a61499e565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806132ba576132b961496f565b5b6001900381819060005260206000200160009055905550505050565b60006132e183611152565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b600061337b61337684614519565b6144f4565b90508281526020810184848401111561339757613396614a0b565b5b6133a2848285614795565b509392505050565b6000813590506133b98161513d565b92915050565b6000815190506133ce8161513d565b92915050565b60008083601f8401126133ea576133e9614a01565b5b8235905067ffffffffffffffff811115613407576134066149fc565b5b60208301915083602082028301111561342357613422614a06565b5b9250929050565b60008135905061343981615154565b92915050565b60008135905061344e8161516b565b92915050565b60008135905061346381615182565b92915050565b60008151905061347881615182565b92915050565b600082601f83011261349357613492614a01565b5b81356134a3848260208601613368565b91505092915050565b6000815190506134bb81615199565b92915050565b6000813590506134d0816151b0565b92915050565b6000815190506134e5816151b0565b92915050565b6000813590506134fa816151c7565b92915050565b60006020828403121561351657613515614a15565b5b6000613524848285016133aa565b91505092915050565b60006020828403121561354357613542614a15565b5b6000613551848285016133bf565b91505092915050565b6000806040838503121561357157613570614a15565b5b600061357f858286016133aa565b9250506020613590858286016133aa565b9150509250929050565b6000806000606084860312156135b3576135b2614a15565b5b60006135c1868287016133aa565b93505060206135d2868287016133aa565b92505060406135e3868287016134c1565b9150509250925092565b6000806000806080858703121561360757613606614a15565b5b6000613615878288016133aa565b9450506020613626878288016133aa565b9350506040613637878288016134c1565b925050606085013567ffffffffffffffff81111561365857613657614a10565b5b6136648782880161347e565b91505092959194509250565b6000806040838503121561368757613686614a15565b5b6000613695858286016133aa565b92505060206136a68582860161342a565b9150509250929050565b600080600080600060a086880312156136cc576136cb614a15565b5b60006136da888289016133aa565b955050602086013567ffffffffffffffff8111156136fb576136fa614a10565b5b6137078882890161347e565b94505060406137188882890161343f565b93505060606137298882890161343f565b925050608061373a888289016134eb565b9150509295509295909350565b6000806040838503121561375e5761375d614a15565b5b600061376c858286016133aa565b925050602061377d858286016134c1565b9150509250929050565b6000806000604084860312156137a05761379f614a15565b5b600084013567ffffffffffffffff8111156137be576137bd614a10565b5b6137ca868287016133d4565b935093505060206137dd868287016133aa565b9150509250925092565b6000602082840312156137fd576137fc614a15565b5b600061380b84828501613454565b91505092915050565b60006020828403121561382a57613829614a15565b5b600061383884828501613469565b91505092915050565b60006020828403121561385757613856614a15565b5b6000613865848285016134ac565b91505092915050565b60006020828403121561388457613883614a15565b5b6000613892848285016134c1565b91505092915050565b6000602082840312156138b1576138b0614a15565b5b60006138bf848285016134d6565b91505092915050565b600080604083850312156138df576138de614a15565b5b60006138ed858286016134c1565b92505060206138fe858286016133aa565b9150509250929050565b60006139148383613eb3565b60208301905092915050565b613929816146f8565b82525050565b613938816146e6565b82525050565b61394f61394a826146e6565b614883565b82525050565b60006139608261455a565b61396a8185614588565b93506139758361454a565b8060005b838110156139a657815161398d8882613908565b97506139988361457b565b925050600181019050613979565b5085935050505092915050565b6139bc8161470a565b82525050565b6139cb81614716565b82525050565b6139e26139dd82614716565b614895565b82525050565b60006139f382614565565b6139fd8185614599565b9350613a0d8185602086016147a4565b613a1681614a1a565b840191505092915050565b6000613a2c82614565565b613a3681856145aa565b9350613a468185602086016147a4565b80840191505092915050565b6000613a5d82614570565b613a6781856145b5565b9350613a778185602086016147a4565b613a8081614a1a565b840191505092915050565b6000613a9682614570565b613aa081856145c6565b9350613ab08185602086016147a4565b80840191505092915050565b6000613ac9602b836145b5565b9150613ad482614a38565b604082019050919050565b6000613aec6032836145b5565b9150613af782614a87565b604082019050919050565b6000613b0f6026836145b5565b9150613b1a82614ad6565b604082019050919050565b6000613b32601c836145b5565b9150613b3d82614b25565b602082019050919050565b6000613b55601a836145b5565b9150613b6082614b4e565b602082019050919050565b6000613b78601c836145b5565b9150613b8382614b77565b602082019050919050565b6000613b9b6002836145c6565b9150613ba682614ba0565b600282019050919050565b6000613bbe6012836145b5565b9150613bc982614bc9565b602082019050919050565b6000613be1600f836145b5565b9150613bec82614bf2565b602082019050919050565b6000613c046024836145b5565b9150613c0f82614c1b565b604082019050919050565b6000613c276019836145b5565b9150613c3282614c6a565b602082019050919050565b6000613c4a602c836145b5565b9150613c5582614c93565b604082019050919050565b6000613c6d6025836145b5565b9150613c7882614ce2565b604082019050919050565b6000613c906038836145b5565b9150613c9b82614d31565b604082019050919050565b6000613cb3602a836145b5565b9150613cbe82614d80565b604082019050919050565b6000613cd66029836145b5565b9150613ce182614dcf565b604082019050919050565b6000613cf96012836145b5565b9150613d0482614e1e565b602082019050919050565b6000613d1c6020836145b5565b9150613d2782614e47565b602082019050919050565b6000613d3f602c836145b5565b9150613d4a82614e70565b604082019050919050565b6000613d626005836145c6565b9150613d6d82614ebf565b600582019050919050565b6000613d856020836145b5565b9150613d9082614ee8565b602082019050919050565b6000613da86010836145b5565b9150613db382614f11565b602082019050919050565b6000613dcb6029836145b5565b9150613dd682614f3a565b604082019050919050565b6000613dee6021836145b5565b9150613df982614f89565b604082019050919050565b6000613e116021836145b5565b9150613e1c82614fd8565b604082019050919050565b6000613e346031836145b5565b9150613e3f82615027565b604082019050919050565b6000613e57602c836145b5565b9150613e6282615076565b604082019050919050565b6000613e7a6011836145b5565b9150613e85826150c5565b602082019050919050565b6000613e9d6027836145b5565b9150613ea8826150ee565b604082019050919050565b613ebc8161477e565b82525050565b613ecb8161477e565b82525050565b613eda81614788565b82525050565b6000613eec8284613a21565b915081905092915050565b6000613f038285613a21565b9150613f0f828461393e565b6014820191508190509392505050565b6000613f2b8285613a8b565b9150613f378284613a8b565b9150613f4282613d55565b91508190509392505050565b6000613f5982613b8e565b9150613f6582856139d1565b602082019150613f7582846139d1565b6020820191508190509392505050565b6000602082019050613f9a600083018461392f565b92915050565b6000606082019050613fb5600083018661392f565b613fc26020830185613920565b8181036040830152613fd481846139e8565b9050949350505050565b6000608082019050613ff3600083018761392f565b614000602083018661392f565b61400d6040830185613ec2565b818103606083015261401f81846139e8565b905095945050505050565b600060408201905061403f600083018561392f565b61404c6020830184613ec2565b9392505050565b6000602082019050818103600083015261406d8184613955565b905092915050565b600060208201905061408a60008301846139b3565b92915050565b60006020820190506140a560008301846139c2565b92915050565b60006080820190506140c060008301876139c2565b6140cd6020830186613ec2565b6140da604083018561392f565b6140e760608301846139c2565b95945050505050565b600060808201905061410560008301876139c2565b6141126020830186613ed1565b61411f60408301856139c2565b61412c60608301846139c2565b95945050505050565b6000602082019050818103600083015261414f81846139e8565b905092915050565b600060208201905081810360008301526141718184613a52565b905092915050565b6000602082019050818103600083015261419281613abc565b9050919050565b600060208201905081810360008301526141b281613adf565b9050919050565b600060208201905081810360008301526141d281613b02565b9050919050565b600060208201905081810360008301526141f281613b25565b9050919050565b6000602082019050818103600083015261421281613b48565b9050919050565b6000602082019050818103600083015261423281613b6b565b9050919050565b6000602082019050818103600083015261425281613bb1565b9050919050565b6000602082019050818103600083015261427281613bd4565b9050919050565b6000602082019050818103600083015261429281613bf7565b9050919050565b600060208201905081810360008301526142b281613c1a565b9050919050565b600060208201905081810360008301526142d281613c3d565b9050919050565b600060208201905081810360008301526142f281613c60565b9050919050565b6000602082019050818103600083015261431281613c83565b9050919050565b6000602082019050818103600083015261433281613ca6565b9050919050565b6000602082019050818103600083015261435281613cc9565b9050919050565b6000602082019050818103600083015261437281613cec565b9050919050565b6000602082019050818103600083015261439281613d0f565b9050919050565b600060208201905081810360008301526143b281613d32565b9050919050565b600060208201905081810360008301526143d281613d78565b9050919050565b600060208201905081810360008301526143f281613d9b565b9050919050565b6000602082019050818103600083015261441281613dbe565b9050919050565b6000602082019050818103600083015261443281613de1565b9050919050565b6000602082019050818103600083015261445281613e04565b9050919050565b6000602082019050818103600083015261447281613e27565b9050919050565b6000602082019050818103600083015261449281613e4a565b9050919050565b600060208201905081810360008301526144b281613e6d565b9050919050565b600060208201905081810360008301526144d281613e90565b9050919050565b60006020820190506144ee6000830184613ec2565b92915050565b60006144fe61450f565b905061450a8282614809565b919050565b6000604051905090565b600067ffffffffffffffff821115614534576145336149cd565b5b61453d82614a1a565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006145dc8261477e565b91506145e78361477e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561461c5761461b6148e2565b5b828201905092915050565b60006146328261477e565b915061463d8361477e565b92508261464d5761464c614911565b5b828204905092915050565b60006146638261477e565b915061466e8361477e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146a7576146a66148e2565b5b828202905092915050565b60006146bd8261477e565b91506146c88361477e565b9250828210156146db576146da6148e2565b5b828203905092915050565b60006146f18261475e565b9050919050565b60006147038261475e565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614757826146e6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156147c25780820151818401526020810190506147a7565b838111156147d1576000848401525b50505050565b600060028204905060018216806147ef57607f821691505b6020821081141561480357614802614940565b5b50919050565b61481282614a1a565b810181811067ffffffffffffffff82111715614831576148306149cd565b5b80604052505050565b60006148458261477e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614878576148776148e2565b5b600182019050919050565b600061488e8261489f565b9050919050565b6000819050919050565b60006148aa82614a2b565b9050919050565b60006148bc8261477e565b91506148c78361477e565b9250826148d7576148d6614911565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b7f54686973206d6172626c6520616c726561647920657869737473000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f4d756c74696d696e74206d617820697320350000000000000000000000000000600082015250565b7f4d696e74206e6f74206163746976650000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546f6b656e20494420696e76616c696400000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50616c65747465206e6f74206f776e6564000000000000000000000000000000600082015250565b7f496e73756666696369656e74207061796d656e742c20302e303220455448207060008201527f6572206974656d00000000000000000000000000000000000000000000000000602082015250565b615146816146e6565b811461515157600080fd5b50565b61515d8161470a565b811461516857600080fd5b50565b61517481614716565b811461517f57600080fd5b50565b61518b81614720565b811461519657600080fd5b50565b6151a28161474c565b81146151ad57600080fd5b50565b6151b98161477e565b81146151c457600080fd5b50565b6151d081614788565b81146151db57600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f697066732e696f2f697066732f516d5451467146716934666b3953426757314b6a57636a7974446d4a4264326962456d35557332507667535232482fa2646970667358221220192ef31e1a559b4c8f2940bfae3874ff376210af5b8f46c798a68779f7ad5a1f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000001308c158e60d7c4565e369df2a86ebd853eef2fb
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _openPaletteAddress (address): 0x1308c158e60D7C4565e369Df2A86eBD853EeF2FB
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000001308c158e60d7c4565e369df2a86ebd853eef2fb
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.