Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60c06040 | 16506335 | 668 days ago | IN | 0 ETH | 0.09187548 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ERC1155Minter
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "../../access/AccessControl.sol"; import "../common/ERC2981PersonalEditions.sol"; import "./extensions/ERC1155Burnable.sol"; import "./extensions/ERC1155URIStorage.sol"; import "./extensions/ERC1155Supply.sol"; /************************************************************* * @title ERC1155Minter * * * * @notice Self-sovreign ERC-1155 minter preset * * * * @dev {ERC1155} token featuring: * * + minting and lazy minting * * + ERC-2981 royalty standard tracking both royalties * * and token market (primary and secondary) * * * * @custom:security-contact [email protected] * ************************************************************/ contract ERC1155Minter is AccessControl, ERC2981PersonalEditions, ERC1155Burnable, ERC1155URIStorage, ERC1155Supply { // EIP-712 bytes32 private DOMAIN_SEPARATOR; bytes32 private immutable VOUCHER_TYPEHASH; // Acces Control bytes32 internal constant MINTER_ROLE = 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6; // keccak256("MINTER_ROLE"); one or more smart contracts allowed to call the mint function, eg. the Marketplace contract address private immutable _FACTORY; // Metadata (OPTIONAL non-standard, see https://eips.ethereum.org/EIPS/eip-1155#metadata-choices) string public name; string public symbol; /** * @param totalValue maximum tokenId editions cap, if unlimited supply use `type(uint256).max` i.e. 2**256 - 1 * @param endTime timestamp for when the signed voucher should expire, * if no expiration is needed, timestamp should be `type(uint256).max` i.e. 2**256 - 1, * or anything above 2^32, i.e. 4294967296, i.e. voucher expires after 2106 (in 83 years time) */ struct Voucher { bytes32 tokenUri; uint256 unitPrice; uint256 totalValue; uint256 endTime; uint256 saleCommissionBps; uint256 marketFeeBps; address saleCommissionRecipient; address marketFeeRecipient; } /*----------------------------------------------------------*| |* # MINTER FUNCTIONS *| |*----------------------------------------------------------*/ /** * @param _tokenId may correspond to an already existing tokenId, if so, the corresponding tokenUri at `_tokenURIs[_tokenId]` MUST equal `voucher.tokenUri`, * or it may be an inexisting tokenId such as 2^256-1 in which case a new token will be minted, provided that `voucher.tokenUri` has never been minted before. * @param _value the amount/supply of `tokenId` to be minted, provided that the total tokenId's circulating supply does not exceed the one (if any) specified in `voucher.totalValue`. * @param _to buyer, needed if using a external payment gateway, so that the minted tokenId value is sent to the address specified insead of `msg.sender` * @param _data data bytes are passed to `onErc1155Received` function if the `_to` address is a contract, for example a marketplace. * `onErc1155Received` is not being called on the minter's address when a new tokenId is minted however, even if it was contract. */ function lazyMint( Voucher calldata voucher, uint256 _tokenId, uint256 _value, address _to, bytes memory _signature, bytes calldata _data ) external payable { /*----------------------------------------------------------*| |* # EIP-712 TYPED DATA SIGNATURE VERIFICATION *| |*----------------------------------------------------------*/ address signer = _recover(voucher, _signature); uint256 sellerAmount = voucher.unitPrice * _value; require( // `msg.value` MUST equal ETH unit price multiplied by token value/amount msg.value == sellerAmount && // voucher MUST not be expired block.timestamp < voucher.endTime && // signer MUST have MINTER_ROLE hasRole(MINTER_ROLE, signer) ); /*----------------------------------------------------------*| |* # MINT *| |*----------------------------------------------------------*/ if (exists(_tokenId)) { /** * @dev since `_tokenId` is a user-supplied parameter it can't be trusted, therefore if increasing supply for an existing token, * the `tokenUri` contained in the `_voucher` MUST match the one stored at `_tokenURIs[_tokenId]`. */ require( voucher.tokenUri == _tokenURIs[_tokenId] && // if the tokenId already exists, increment the array value at _totalSupply[_tokenId] (_totalSupply[_tokenId] += _value) <= voucher.totalValue ); } else { require(_value <= voucher.totalValue); /// @dev since `_tokenId` is user-supplied it MUST be reassigned the correct value for the rest of the function work correctly _tokenId = _totalSupply.length; // if the tokenId doesn't exist yet, push a new value to the corresponding array index _totalSupply.push(_value); _tokenURIs[_tokenId] = voucher.tokenUri; } /*----------------------------------------------------------*| |* # UPDATE BALANCES *| |*----------------------------------------------------------*/ /** * @dev the following is the net state change after tokenId `_value` has been minted and transferred to a buyer, * rather than calling the internal `_mint` function which whould increase balance of minter, followed by `safeTransferFrom`, which would decrease it. * I.e. minter balance is not updated as it would cancel out anyway after sending the newly minted tokenId `_value` to buyer. * Additionally `safeTransferFrom` function has been omitted otherwise `msg.sender` would have to be an authorized operator by the seller/minter. */ unchecked { _balanceOf[_to][_tokenId] += _value; } // event is needed in order to signal to DApps that a mint has occurred emit TransferSingle(msg.sender, address(0), signer, _tokenId, _value); // event is needed in order to signal to DApps that a token transfer has occurred emit TransferSingle(msg.sender, signer, _to, _tokenId, _value); /*----------------------------------------------------------*| |* # PAY MARKET FEES *| |*----------------------------------------------------------*/ uint256 marketFeeAmount = (msg.value * voucher.marketFeeBps) / 10000; sellerAmount -= marketFeeAmount; _sendValue(voucher.marketFeeRecipient, marketFeeAmount); /*----------------------------------------------------------*| |* # CHECK-EFFECTS-INTERACTIONS *| |*----------------------------------------------------------*/ /// @dev perform external calls to untrusted addresses last /*----------------------------------------------------------*| |* # PAY SELLER (AND COMMISSIONS) *| |*----------------------------------------------------------*/ if (voucher.saleCommissionBps > 0) { uint256 commissionAmount = (msg.value * voucher.saleCommissionBps) / 10000; sellerAmount -= commissionAmount; _sendValue(voucher.saleCommissionRecipient, commissionAmount); } _sendValue(signer, sellerAmount); /*----------------------------------------------------------*| |* # SAFE TRANSFER *| |*----------------------------------------------------------*/ /// @dev onERC1155Received is not called on the minter's account if (_to.code.length > 0) require( IERC1155Receiver(_to).onERC1155Received( msg.sender, // operator signer, // from _tokenId, // token id _value, // value _data ) == 0xf23a6e61, // IERC1155Receiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } /** * @dev Creates `amount` new tokens for `to`, of token type `id`. * @param _to if different from msg.sender it is considered an airdrop * @param _tokenURI the ipfs hash of the token, base58 decoded, then the first two bytes "Qm" removed, then hex encoded and in order to fit exactly in 32 bytes (uint256 is 32 bytes). * * const getBytes32FromIpfsHash = hash => { * let bytes = bs58.decode(hash); * bytes = bytes.slice(2, bytes.length); * let hexString = web3.utils.bytesToHex(bytes); * return web3.utils.hexToNumber(hexString); * }; * * See {ERC1155-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`, i.e. only the owner of the collection can mint tokens, not just any artist on Ninfa marketplace. * */ function mint( address _to, bytes32 _tokenURI, uint256 _amount, bytes memory _data ) external onlyRole(MINTER_ROLE) { uint256 tokenId = _totalSupply.length; _mint(_to, tokenId, _amount, _data); _tokenURIs[tokenId] = _tokenURI; _totalSupply.push(_amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ function mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) external onlyRole(MINTER_ROLE) { _mintBatch(to, ids, amounts, data); } /*----------------------------------------------------------*| |* # BURN *| |*----------------------------------------------------------*/ function burn(address _from, uint256 _id, uint256 _value) public override { super.burn(_from, _id, _value); /// @dev since balance has already been decremented without underflow, // `_totalSupply` may be safely decremented. See {ERC1155-_burn} unchecked { _totalSupply[_id] -= _value; } // if all supply has been burned, _tokenURIs[_id] is deleted from storage if (_totalSupply[_id] == 0) delete _tokenURIs[_id]; } /*----------------------------------------------------------*| |* # PRIVATE FUNCTIONS *| |*----------------------------------------------------------*/ function _recover( Voucher calldata _voucher, bytes memory _signature ) private view returns (address _signer) { bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR, keccak256( abi.encode( VOUCHER_TYPEHASH, _voucher.tokenUri, _voucher.unitPrice, _voucher.totalValue, _voucher.endTime, _voucher.saleCommissionBps, _voucher.marketFeeBps, _voucher.saleCommissionRecipient, _voucher.marketFeeRecipient ) ) ) ); bytes32 r; bytes32 s; uint8 v; assembly { r := mload(add(_signature, 0x20)) s := mload(add(_signature, 0x40)) v := byte(0, mload(add(_signature, 0x60))) } _signer = ecrecover(digest, v, r, s); if (_signer == address(0)) revert(); } function _sendValue(address _receiver, uint256 _amount) private { (bool success, ) = payable(_receiver).call{value: _amount}(""); require(success); } /*----------------------------------------------------------*| |* # ERC-165 LOGIC *| |*----------------------------------------------------------*/ function supportsInterface( bytes4 interfaceId ) external pure returns (bool) { return interfaceId == 0x01ffc9a7 || // Interface ID for IERC165 interfaceId == 0xd9b67a26 || // Interface ID for IERC1155 interfaceId == 0x0e89341c || // Interface ID for IERC1155MetadataURI interfaceId == 0x2a55205a || // Interface ID for IERC2981 interfaceId == 0x7965db0b; // Interface ID for IAccessControl } /*----------------------------------------------------------*| |* # ADMIN FUNCTIONS *| |*----------------------------------------------------------*/ function setRoyaltyInfo( address royaltyRecipient_, uint24 royaltyBps_ ) external onlyRole(DEFAULT_ADMIN_ROLE) { _royaltyRecipient = payable(royaltyRecipient_); _royaltyBps = royaltyBps_; } /** * @notice This function is used when the artist decides to set the royalty receiver to an address other than its own. * It adds the artist address to the `artists` mapping in {ERC2981Communal}, in order to use it for access control in `setRoyaltyRecipient()`. This removes the burden of setting this mapping in the `mint()` function as it will rarely be needed. * @param royaltyRecipient_ (likely a payment splitter contract) may be 0x0 although it is not intended as ETH would be burnt if sent to 0x0. If the user only wants to mint it should call mint() instead, so that the roy * * Require: * * - If the `artists` for `_tokenId` mapping is empty, the minter's address is equal to `royaltyRecipients[_tokenId]`. I.e. the caller must correspond to `royaltyRecipients[_tokenId]`, i.e. the token minter/artist * - Else, the caller must correspond to the `_tokenId`'s minter address set in `artists[_tokenId]`, i.e. if `artists[_tokenId]` is not 0x0. Note that the artist address cannot be reset. * * Allow: * * - the minter may (re)set `royaltyRecipients[_tokenId]` to the same address as `artists[_tokenId]`, i.e. the minter/artist. This would be quite useless, but not dangerous. The frontend should disallow it. * */ function setRoyaltyRecipient( address royaltyRecipient_ ) external onlyRole(DEFAULT_ADMIN_ROLE) { _royaltyRecipient = payable(royaltyRecipient_); } function setRoyaltyBps( uint24 royaltyBps_ ) external onlyRole(DEFAULT_ADMIN_ROLE) { _royaltyBps = royaltyBps_; } /*----------------------------------------------------------*| |* # POST-DEPLOYMENT INITIALIZATION *| |*----------------------------------------------------------*/ function initialize(bytes calldata _data) external { require(msg.sender == _FACTORY); address owner; (name, symbol, owner, _royaltyRecipient, _royaltyBps) = abi.decode( _data, (string, string, address, address, uint24) ); /** * @dev The EIP712Domain fields should be the order as above, skipping any absent fields. * Protocol designers only need to include the fields that make sense for their signing domain. Unused fields are left out of the struct type. * @param name the user readable name of signing domain, i.e. the name of the DApp or the protocol. * @param chainId the EIP-155 chain id. The user-agent should refuse signing if it does not match the currently active chain. * @param verifyingContract the address of the contract that will verify the signature. The user-agent may do contract specific phishing prevention. * verifyingContract is the only variable parameter in the DOMAIN_SEPARATOR in order to avoid signature replay across different contracts * therefore the DOMAIN_SEPARATOR MUST be calculated inside of the `initialize` function rather than the constructor. */ DOMAIN_SEPARATOR = keccak256( abi.encode( 0x8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866, //harcoded value for keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)") DOMAIN_TYPEHASH 0xdb3dd9b854cdb7551722584c7e89b5df9798432c0c9ee9bc6f62a8edfed5dac4, //harcoded value for keccak256(bytes("ninfa.io")), block.chainid, address(this) ) ); _grantRole(DEFAULT_ADMIN_ROLE, owner); // DEFAULT_ADMIN_ROLE is by default admin of all other roles, i.e. MINTER_ROLE, meaning it can assign MINTER_ROLE to other addresses _grantRole(MINTER_ROLE, msg.sender); // grant MINTER_ROLE to factory contract _grantRole(MINTER_ROLE, owner); // grant MINTER_ROLE to owner, this way minting requires only checking for MINTER_ROLE rather than also DEFAULT_ADMIN_ROLE. } /** * @notice creates `DOMAIN_SEPARATOR` and `VOUCHER_TYPEHASH` and assigns address to `_FACTORY` * @param factory_ is used for access control on self-sovreign ERC-1155 collection rather than using the `initializer` modifier, * this is cheaper because the clones won't need to write `initialized = true;` to storage each time they are initialized * instead `_FACTORY` is only assigned once in the `constructor` of the master copy therefore it can be read by all clones. */ constructor(address factory_) { VOUCHER_TYPEHASH = keccak256( "Voucher(bytes32 tokenUri,uint256 unitPrice,uint256 totalValue,uint256 endTime,uint256 saleCommissionBps,uint256 marketFeeBps,address saleCommissionRecipient,address marketFeeRecipient)" ); _FACTORY = factory_; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity 0.8.17; /** * @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.17; /// @dev stripped down version of https://github.com/MrChico/verifyIPFS/ library DecodeTokenURI { bytes constant ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; /** * @dev Converts hex string to base 58 */ function toBase58(bytes memory source) internal pure returns (bytes memory) { if (source.length == 0) return new bytes(0); uint8[] memory digits = new uint8[](64); digits[0] = 0; uint8 digitlength = 1; for (uint256 i = 0; i < source.length; ++i) { uint256 carry = uint8(source[i]); for (uint256 j = 0; j < digitlength; ++j) { carry += uint256(digits[j]) * 256; digits[j] = uint8(carry % 58); carry = carry / 58; } while (carry > 0) { digits[digitlength] = uint8(carry % 58); digitlength++; carry = carry / 58; } } return toAlphabet(reverse(truncate(digits, digitlength))); } function toAlphabet(uint8[] memory indices) private pure returns (bytes memory) { bytes memory output = new bytes(indices.length); for (uint256 i = 0; i < indices.length; i++) { output[i] = ALPHABET[indices[i]]; } return output; } function truncate(uint8[] memory array, uint8 length) private pure returns (uint8[] memory) { uint8[] memory output = new uint8[](length); for (uint256 i = 0; i < length; i++) { output[i] = array[i]; } return output; } function reverse(uint8[] memory input) private pure returns (uint8[] memory) { uint8[] memory output = new uint8[](input.length); for (uint256 i = 0; i < input.length; i++) { output[i] = input[input.length - 1 - i]; } return output; } }
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; /************************************************************* * @title ERC2981PersonalEditions * * * * @notice Adds ERC2981 support to {ERC1155} * * * * @dev {ERC2981} royalties for self-sovreign collections * * * * @custom:security-contact [email protected] * ************************************************************/ contract ERC2981PersonalEditions { uint24 private constant TOTAL_SHARES = 10000; // 10,000 = 100% (total sale price) uint24 internal _royaltyBps; /// @notice the royaltyRecipient or contract deployer. address payable internal _royaltyRecipient; /** * @notice Called with the sale price to determine how much royalty * is owed and to whom. * @param _salePrice - the sale price of the NFT asset specified by _tokenId * @return recipient - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for _salePrice */ function royaltyInfo( uint256, uint256 _salePrice ) external view returns (address, uint256) { return (_royaltyRecipient, (_salePrice * _royaltyBps) / TOTAL_SHARES); } }
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "../ERC1155.sol"; import "../../../utils/DecodeTokenURI.sol"; /** * @dev ERC1155 token with storage based token URI management. */ abstract contract ERC1155URIStorage is ERC1155 { using DecodeTokenURI for bytes; /** * @dev _baseURI is hardcoded and cannot be modified, as the expected token URI MUST be an IPFSv1 hash */ string private _baseURI = "ipfs://"; /** * @dev Optional mapping for token URIs. Internal as needs to be read by child implementation * returns bytes32 IPFS hash */ mapping(uint256 => bytes32) internal _tokenURIs; /** * @dev Returns the URI for token type `id`. */ function uri(uint256 tokenId) public view returns (string memory) { require(_tokenURIs[tokenId] != 0x00, "ERC1155: nonexistent token"); return string( // once hex decoded base58 is converted to string, we get the initial IPFS hash abi.encodePacked( _baseURI, abi .encodePacked( // full bytes of base58 + hex encoded IPFS hash example. bytes2(0x1220), // prepending 2 bytes IPFS hash identifier that was removed before storing the hash in order to fit in bytes32. 0x1220 is "Qm" base58 and hex encoded _tokenURIs[tokenId] // bytes32(tokenId) // tokenURI (IPFS hash) with its first 2 bytes truncated, base58 and hex encoded returned as bytes32 ).toBase58() ) ); } }
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. * */ abstract contract ERC1155Supply is ERC1155 { /** * @dev keeps track of per-token id's total supply, as well as overall supply. * also used as a counter when minting, by reading the .length property of the array. * @dev toalSupply MUST be incremented by the implementing contract, as `_beforeTokenTransfer` function * has been removed in order to make normal (non-mint) transfers cheaper. */ uint256[] internal _totalSupply; /** * @dev Total amount of tokens in with a given _id. * @dev > The total value transferred from address 0x0 minus the total value transferred to 0x0 observed via the TransferSingle and TransferBatch events MAY be used by clients and exchanges to determine the “circulating supply” for a given token ID. */ function totalSupply(uint256 _id) public view returns (uint256) { return _totalSupply[_id]; } /** * @dev Amount of unique token ids in this collection, required in order to * enumerate `_totalSupply` (or `_tokenURIs`, see {ERC1155URIStorage-uri}) from a client */ function totalSupply() external view returns (uint256) { return _totalSupply.length; } /** * @dev Indicates whether any token exist with a given _id, or not. * * 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 _id) public view returns (bool) { return _totalSupply.length > _id; } }
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "../ERC1155.sol"; /************************************************************* * @title ERC1155Burnable * * * * @notice ERC-1155 burnable extension * * * * @custom:security-contact [email protected] * ************************************************************/ contract ERC1155Burnable is ERC1155 { function burn(address _from, uint256 _id, uint256 _value) public virtual { require(msg.sender == _from || isApprovedForAll[_from][msg.sender]); _burn(_from, _id, _value); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IERC1155Receiver { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
/*----------------------------------------------------------*| |* ███ ██ ██ ███ ██ ███████ █████ *| |* ████ ██ ██ ████ ██ ██ ██ ██ *| |* ██ ██ ██ ██ ██ ██ ██ █████ ███████ *| |* ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ *| |* ██ ████ ██ ██ ████ ██ ██ ██ *| |*----------------------------------------------------------*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; import "./IERC1155Receiver.sol"; /************************************************************* * @title ERC1155 * * * * @notice Gas efficient standard ERC1155 implementation. * * * * @author Fork of solmate ERC1155 * * https://github.com/Rari-Capital/solmate/ * * * * @dev includes `_totalSupply` array needed in order to * * implement a maxSupply limit for lazy minting * * * * @custom:security-contact [email protected] * ************************************************************/ contract ERC1155 { /*----------------------------------------------------------*| |* # EVENTS *| |*----------------------------------------------------------*/ event TransferSingle( address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value ); event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); event URI(string value, uint256 indexed id); /*----------------------------------------------------------*| |* # ERC-1155 STORAGE LOGIC *| |*----------------------------------------------------------*/ mapping(address => mapping(uint256 => uint256)) internal _balanceOf; mapping(address => mapping(address => bool)) public isApprovedForAll; // Mapping from account to operator approvals /*----------------------------------------------------------*| |* # ERC-1155 LOGIC *| |*----------------------------------------------------------*/ function setApprovalForAll(address operator, bool approved) public { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) public { require( msg.sender == from || isApprovedForAll[from][msg.sender], "ERC1155: NOT_AUTHORIZED" ); _balanceOf[from][id] -= amount; _balanceOf[to][id] += amount; emit TransferSingle(msg.sender, from, to, id, amount); require( to.code.length == 0 ? to != address(0) : IERC1155Receiver(to).onERC1155Received( msg.sender, from, id, amount, data ) == IERC1155Receiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external { require(ids.length == amounts.length, "LENGTH_MISMATCH"); require( msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED" ); // Storing these outside the loop saves ~15 gas per iteration. uint256 id; uint256 amount; for (uint256 i = 0; i < ids.length; ) { id = ids[i]; amount = amounts[i]; _balanceOf[from][id] -= amount; _balanceOf[to][id] += amount; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, from, to, ids, amounts); require( to.code.length == 0 ? to != address(0) : IERC1155Receiver(to).onERC1155BatchReceived( msg.sender, from, ids, amounts, data ) == IERC1155Receiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function balanceOfBatch( address[] calldata owners, uint256[] calldata ids ) external view returns (uint256[] memory balances) { require(owners.length == ids.length, "LENGTH_MISMATCH"); balances = new uint256[](owners.length); // Unchecked because the only math done is incrementing // the array index counter which cannot possibly overflow. unchecked { for (uint256 i = 0; i < owners.length; ++i) { balances[i] = _balanceOf[owners[i]][ids[i]]; } } } function balanceOf( address _owner, uint256 _id ) external view returns (uint256 balance) { balance = _balanceOf[_owner][_id]; } /*----------------------------------------------------------*| |* # INTERNAL MINT/BURN LOGIC *| |*----------------------------------------------------------*/ function _mint( address _to, uint256 _id, uint256 _amount, bytes memory _data ) internal { _balanceOf[_to][_id] += _amount; emit TransferSingle(msg.sender, address(0), _to, _id, _amount); if (_to.code.length > 0) require( IERC1155Receiver(_to).onERC1155Received( msg.sender, address(0), _id, _amount, _data ) == IERC1155Receiver.onERC1155Received.selector, "UNSAFE_RECIPIENT" ); } function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal { uint256 idsLength = ids.length; // Saves MLOADs. require(idsLength == amounts.length, "LENGTH_MISMATCH"); for (uint256 i = 0; i < idsLength; ) { _balanceOf[to][ids[i]] += amounts[i]; // An array can't have a total length // larger than the max uint256 value. unchecked { ++i; } } emit TransferBatch(msg.sender, address(0), to, ids, amounts); require( to.code.length == 0 ? to != address(0) : IERC1155Receiver(to).onERC1155BatchReceived( msg.sender, address(0), ids, amounts, data ) == IERC1155Receiver.onERC1155BatchReceived.selector, "UNSAFE_RECIPIENT" ); } function _burn(address _from, uint256 _id, uint256 _value) internal { // `require(fromBalance >= _value)` is implicitly enforced _balanceOf[_from][_id] -= _value; emit TransferSingle(msg.sender, _from, address(0), _id, _value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity 0.8.17; import "../utils/Strings.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged( bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole ); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted( bytes32 indexed role, address indexed account, address indexed sender ); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked( bytes32 indexed role, address indexed account, address indexed sender ); struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 internal constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, msg.sender); _; } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole( bytes32 role, address account ) external onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole( bytes32 role, address account ) external onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external { require( account == msg.sender, "AccessControl: can only renounce roles for self" ); _revokeRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, msg.sender); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, msg.sender); } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"factory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"tokenUri","type":"bytes32"},{"internalType":"uint256","name":"unitPrice","type":"uint256"},{"internalType":"uint256","name":"totalValue","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"saleCommissionBps","type":"uint256"},{"internalType":"uint256","name":"marketFeeBps","type":"uint256"},{"internalType":"address","name":"saleCommissionRecipient","type":"address"},{"internalType":"address","name":"marketFeeRecipient","type":"address"}],"internalType":"struct ERC1155Minter.Voucher","name":"voucher","type":"tuple"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"lazyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes32","name":"_tokenURI","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"royaltyBps_","type":"uint24"}],"name":"setRoyaltyBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyRecipient_","type":"address"},{"internalType":"uint24","name":"royaltyBps_","type":"uint24"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyRecipient_","type":"address"}],"name":"setRoyaltyRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040526040518060400160405280600781526020017f697066733a2f2f00000000000000000000000000000000000000000000000000815250600490816200004a91906200035b565b503480156200005857600080fd5b506040516200569b3803806200569b83398181016040528101906200007e9190620004ac565b7f820cb0f85939e886ba557a98e62d5d55aaa5e089d02add3635ead5b11faa15ba608081815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505050620004de565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200016357607f821691505b6020821081036200017957620001786200011b565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620001e37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620001a4565b620001ef8683620001a4565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200023c62000236620002308462000207565b62000211565b62000207565b9050919050565b6000819050919050565b62000258836200021b565b62000270620002678262000243565b848454620001b1565b825550505050565b600090565b6200028762000278565b620002948184846200024d565b505050565b5b81811015620002bc57620002b06000826200027d565b6001810190506200029a565b5050565b601f8211156200030b57620002d5816200017f565b620002e08462000194565b81016020851015620002f0578190505b62000308620002ff8562000194565b83018262000299565b50505b505050565b600082821c905092915050565b6000620003306000198460080262000310565b1980831691505092915050565b60006200034b83836200031d565b9150826002028217905092915050565b6200036682620000e1565b67ffffffffffffffff811115620003825762000381620000ec565b5b6200038e82546200014a565b6200039b828285620002c0565b600060209050601f831160018114620003d35760008415620003be578287015190505b620003ca85826200033d565b8655506200043a565b601f198416620003e3866200017f565b60005b828110156200040d57848901518255600182019150602085019450602081019050620003e6565b868310156200042d578489015162000429601f8916826200031d565b8355505b6001600288020188555050505b505050505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004748262000447565b9050919050565b620004868162000467565b81146200049257600080fd5b50565b600081519050620004a6816200047b565b92915050565b600060208284031215620004c557620004c462000442565b5b6000620004d58482850162000495565b91505092915050565b60805160a051615197620005046000396000610f780152600061265f01526151976000f3fe60806040526004361061019b5760003560e01c80634e1273f4116100ec578063bd85b0391161008a578063de26648a11610064578063de26648a146105fd578063e985e9c514610626578063f242432a14610663578063f5298aca1461068c5761019b565b8063bd85b0391461056e578063d3709f2a146105ab578063d547741f146105d45761019b565b806391d14854116100c657806391d14854146104b457806395d89b41146104f1578063a22cb4651461051c578063a7c036b5146105455761019b565b80634e1273f41461041e5780634f558e791461045b5780636f90f9b0146104985761019b565b8063248a9ca3116101595780632f2ff15d116101335780632f2ff15d1461037a57806336568abe146103a357806341e42f30146103cc578063439fab91146103f55761019b565b8063248a9ca3146102d65780632a55205a146103135780632eb2c2d6146103515761019b565b8062fdd58e146101a057806301ffc9a7146101dd57806306fdde031461021a5780630e89341c1461024557806318160ddd146102825780631f7fdffa146102ad575b600080fd5b3480156101ac57600080fd5b506101c760048036038101906101c291906131aa565b6106b5565b6040516101d491906131f9565b60405180910390f35b3480156101e957600080fd5b5061020460048036038101906101ff919061326c565b610710565b60405161021191906132b4565b60405180910390f35b34801561022657600080fd5b5061022f610802565b60405161023c919061335f565b60405180910390f35b34801561025157600080fd5b5061026c60048036038101906102679190613381565b610890565b604051610279919061335f565b60405180910390f35b34801561028e57600080fd5b50610297610955565b6040516102a491906131f9565b60405180910390f35b3480156102b957600080fd5b506102d460048036038101906102cf91906135ab565b610962565b005b3480156102e257600080fd5b506102fd60048036038101906102f8919061369c565b6109a3565b60405161030a91906136d8565b60405180910390f35b34801561031f57600080fd5b5061033a600480360381019061033591906136f3565b6109c2565b604051610348929190613742565b60405180910390f35b34801561035d57600080fd5b506103786004803603810190610373919061381c565b610a27565b005b34801561038657600080fd5b506103a1600480360381019061039c91906138f8565b610e85565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906138f8565b610ea7565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613938565b610f23565b005b34801561040157600080fd5b5061041c60048036038101906104179190613965565b610f76565b005b34801561042a57600080fd5b5061044560048036038101906104409190613a08565b611127565b6040516104529190613b47565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d9190613381565b611291565b60405161048f91906132b4565b60405180910390f35b6104b260048036038101906104ad9190613b8e565b6112a2565b005b3480156104c057600080fd5b506104db60048036038101906104d691906138f8565b611710565b6040516104e891906132b4565b60405180910390f35b3480156104fd57600080fd5b5061050661177a565b604051610513919061335f565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613c8b565b611808565b005b34801561055157600080fd5b5061056c60048036038101906105679190613d06565b611905565b005b34801561057a57600080fd5b5061059560048036038101906105909190613381565b611936565b6040516105a291906131f9565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613d33565b61195e565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906138f8565b6119d1565b005b34801561060957600080fd5b50610624600480360381019061061f9190613d73565b6119f3565b005b34801561063257600080fd5b5061064d60048036038101906106489190613df6565b611a80565b60405161065a91906132b4565b60405180910390f35b34801561066f57600080fd5b5061068a60048036038101906106859190613e36565b611aaf565b005b34801561069857600080fd5b506106b360048036038101906106ae9190613ed0565b611e64565b005b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061076b575063d9b67a2660e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061079b5750630e89341c60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107cb5750632a55205a60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107fb5750637965db0b60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6008805461080f90613f52565b80601f016020809104026020016040519081016040528092919081815260200182805461083b90613f52565b80156108885780601f1061085d57610100808354040283529160200191610888565b820191906000526020600020905b81548152906001019060200180831161086b57829003601f168201915b505050505081565b60606000801b6005600084815260200190815260200160002054036108ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e190613fcf565b60405180910390fd5b600461092e61122060f01b600560008681526020019081526020016000205460405160200161091a92919061405d565b604051602081830303815290604052611ede565b60405160200161093f929190614173565b6040516020818303038152906040529050919050565b6000600680549050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b6109908133612125565b61099c858585856121c2565b5050505050565b6000806000838152602001908152602001600020600101549050919050565b600080600160039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661271062ffffff16600160009054906101000a900462ffffff1662ffffff1685610a1291906141c6565b610a1c9190614237565b915091509250929050565b838390508686905014610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a66906142b4565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610b2f5750600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590614320565b60405180910390fd5b60008060005b88889050811015610c9057888882818110610b9257610b91614340565b5b905060200201359250868682818110610bae57610bad614340565b5b90506020020135915081600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000206000828254610c17919061436f565b9250508190555081600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000206000828254610c7e91906143a3565b92505081905550806001019050610b74565b508873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610d0b9493929190614441565b60405180910390a460008973ffffffffffffffffffffffffffffffffffffffff163b14610e085763bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168973ffffffffffffffffffffffffffffffffffffffff1663bc197c81338d8c8c8c8c8c8c6040518963ffffffff1660e01b8152600401610da09897969594939291906144ba565b6020604051808303816000875af1158015610dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de3919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610e3a565b600073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b610e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e70906145b6565b60405180910390fd5b50505050505050505050565b610e8e826109a3565b610e988133612125565b610ea283836124a4565b505050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c90614648565b60405180910390fd5b610f1f828261257d565b5050565b6000801b610f318133612125565b81600160036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fce57600080fd5b60008282810190610fdf9190614747565b600860006009600060016003600160008891906101000a81548162ffffff021916908362ffffff1602179055508791906101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086995087919050908161105e9190614991565b5086919050908161106f9190614991565b5050505050507f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667fdb3dd9b854cdb7551722584c7e89b5df9798432c0c9ee9bc6f62a8edfed5dac446306040516020016110cc9493929190614ad9565b604051602081830303815290604052805190602001206007819055506110f56000801b826124a4565b6111227f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b826124a4565b505050565b6060828290508585905014611171576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611168906142b4565b60405180910390fd5b8484905067ffffffffffffffff81111561118e5761118d6133b3565b5b6040519080825280602002602001820160405280156111bc5781602001602082028036833780820191505090505b50905060005b8585905081101561128857600260008787848181106111e4576111e3614340565b5b90506020020160208101906111f99190613938565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085858481811061124857611247614340565b5b9050602002013581526020019081526020016000205482828151811061127157611270614340565b5b6020026020010181815250508060010190506111c2565b50949350505050565b600081600680549050119050919050565b60006112ae8885612657565b905060008689602001356112c291906141c6565b905080341480156112d65750886060013542105b801561130b575061130a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b83611710565b5b61131457600080fd5b61131d88611291565b1561138d576005600089815260200190815260200160002054896000013514801561137f575088604001358760068a8154811061135d5761135c614340565b5b90600052602060002001600082825461137691906143a3565b92505081905511155b61138857600080fd5b6113ec565b886040013587111561139e57600080fd5b600680549050975060068790806001815401808255809150506001900390600052602060002001600090919091909150558860000135600560008a8152602001908152602001600020819055505b86600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a8152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b8b6040516114c1929190614b1e565b60405180910390a48573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b8b60405161153f929190614b1e565b60405180910390a460006127108a60a001353461155c91906141c6565b6115669190614237565b90508082611574919061436f565b91506115928a60e001602081019061158c9190613938565b826127ca565b60008a6080013511156115ec5760006127108b60800135346115b491906141c6565b6115be9190614237565b905080836115cc919061436f565b92506115ea8b60c00160208101906115e49190613938565b826127ca565b505b6115f683836127ca565b60008773ffffffffffffffffffffffffffffffffffffffff163b11156117045763f23a6e6160e01b8773ffffffffffffffffffffffffffffffffffffffff1663f23a6e6133868d8d8b8b6040518763ffffffff1660e01b815260040161166196959493929190614b47565b6020604051808303816000875af1158015611680573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a4919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fa906145b6565b60405180910390fd5b5b50505050505050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6009805461178790613f52565b80601f01602080910402602001604051908101604052809291908181526020018280546117b390613f52565b80156118005780601f106117d557610100808354040283529160200191611800565b820191906000526020600020905b8154815290600101906020018083116117e357829003601f168201915b505050505081565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f991906132b4565b60405180910390a35050565b6000801b6119138133612125565b81600160006101000a81548162ffffff021916908362ffffff1602179055505050565b60006006828154811061194c5761194b614340565b5b90600052602060002001549050919050565b6000801b61196c8133612125565b82600160036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548162ffffff021916908362ffffff160217905550505050565b6119da826109a3565b6119e48133612125565b6119ee838361257d565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b611a218133612125565b60006006805490509050611a3786828686612845565b8460056000838152602001908152602001600020819055506006849080600181540180825580915050600190039060005260206000200160009091909190915055505050505050565b60036020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b8573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611b6f5750600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba590614bef565b60405180910390fd5b82600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000828254611c0e919061436f565b9250508190555082600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000828254611c7591906143a3565b925050819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611cf2929190614b1e565b60405180910390a460008573ffffffffffffffffffffffffffffffffffffffff163b14611deb5763f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168573ffffffffffffffffffffffffffffffffffffffff1663f23a6e613389888888886040518763ffffffff1660e01b8152600401611d8396959493929190614b47565b6020604051808303816000875af1158015611da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc6919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611e1d565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e53906145b6565b60405180910390fd5b505050505050565b611e6f838383612a5d565b8060068381548110611e8457611e83614340565b5b9060005260206000200160008282540392505081905550600060068381548110611eb157611eb0614340565b5b906000526020600020015403611ed95760056000838152602001908152602001600020600090555b505050565b60606000825103611f3e57600067ffffffffffffffff811115611f0457611f036133b3565b5b6040519080825280601f01601f191660200182016040528015611f365781602001600182028036833780820191505090505b509050612120565b6000604067ffffffffffffffff811115611f5b57611f5a6133b3565b5b604051908082528060200260200182016040528015611f895781602001602082028036833780820191505090505b509050600081600081518110611fa257611fa1614340565b5b602002602001019060ff16908160ff168152505060006001905060005b8451811015612100576000858281518110611fdd57611fdc614340565b5b602001015160f81c60f81b60f81c60ff16905060005b8360ff1681101561208a5761010085828151811061201457612013614340565b5b602002602001015160ff1661202991906141c6565b8261203491906143a3565b9150603a826120439190614c0f565b85828151811061205657612055614340565b5b602002602001019060ff16908160ff1681525050603a826120779190614237565b91508061208390614c40565b9050611ff3565b505b60008111156120ee57603a816120a29190614c0f565b848460ff16815181106120b8576120b7614340565b5b602002602001019060ff16908160ff168152505082806120d790614c95565b935050603a816120e79190614237565b905061208c565b50806120f990614c40565b9050611fbf565b5061211b6121166121118484612b36565b612bf6565b612cc9565b925050505b919050565b61212f8282611710565b6121be576121548173ffffffffffffffffffffffffffffffffffffffff166014612ddb565b6121628360001c6020612ddb565b604051602001612173929190614d87565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b5919061335f565b60405180910390fd5b5050565b6000835190508251811461220b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612202906142b4565b60405180910390fd5b60005b818110156122bc5783818151811061222957612228614340565b5b6020026020010151600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600087848151811061228557612284614340565b5b6020026020010151815260200190815260200160002060008282546122aa91906143a3565b9250508190555080600101905061220e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612334929190614dc1565b60405180910390a460008573ffffffffffffffffffffffffffffffffffffffff163b1461242c5763bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168573ffffffffffffffffffffffffffffffffffffffff1663bc197c813360008888886040518663ffffffff1660e01b81526004016123c4959493929190614e31565b6020604051808303816000875af11580156123e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612407919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461245e565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b61249d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612494906145b6565b60405180910390fd5b5050505050565b6124ae8282611710565b61257957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125878282611710565b1561265357600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000806007547f0000000000000000000000000000000000000000000000000000000000000000856000013586602001358760400135886060013589608001358a60a001358b60c00160208101906126af9190613938565b8c60e00160208101906126c29190613938565b6040516020016126da99989796959493929190614e99565b60405160208183030381529060405280519060200120604051602001612701929190614f72565b60405160208183030381529060405280519060200120905060008060006020860151925060408601519150606086015160001a9050600184828585604051600081526020016040526040516127599493929190614fb8565b6020604051602081039080840390855afa15801561277b573d6000803e3d6000fd5b505050602060405103519450600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036127c057600080fd5b5050505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516127f090615023565b60006040518083038185875af1925050503d806000811461282d576040519150601f19603f3d011682016040523d82523d6000602084013e612832565b606091505b505090508061284057600080fd5b505050565b81600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060008282546128a591906143a3565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051612923929190614b1e565b60405180910390a460008473ffffffffffffffffffffffffffffffffffffffff163b1115612a575763f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168473ffffffffffffffffffffffffffffffffffffffff1663f23a6e613360008787876040518663ffffffff1660e01b81526004016129b4959493929190615038565b6020604051808303816000875af11580156129d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f7919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4d906145b6565b60405180910390fd5b5b50505050565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b1d5750600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612b2657600080fd5b612b31838383613017565b505050565b606060008260ff1667ffffffffffffffff811115612b5757612b566133b3565b5b604051908082528060200260200182016040528015612b855781602001602082028036833780820191505090505b50905060005b8360ff16811015612beb57848181518110612ba957612ba8614340565b5b6020026020010151828281518110612bc457612bc3614340565b5b602002602001019060ff16908160ff16815250508080612be390614c40565b915050612b8b565b508091505092915050565b60606000825167ffffffffffffffff811115612c1557612c146133b3565b5b604051908082528060200260200182016040528015612c435781602001602082028036833780820191505090505b50905060005b8351811015612cbf57838160018651612c62919061436f565b612c6c919061436f565b81518110612c7d57612c7c614340565b5b6020026020010151828281518110612c9857612c97614340565b5b602002602001019060ff16908160ff16815250508080612cb790614c40565b915050612c49565b5080915050919050565b60606000825167ffffffffffffffff811115612ce857612ce76133b3565b5b6040519080825280601f01601f191660200182016040528015612d1a5781602001600182028036833780820191505090505b50905060005b8351811015612dd1576040518060600160405280603a8152602001615128603a9139848281518110612d5557612d54614340565b5b602002602001015160ff1681518110612d7157612d70614340565b5b602001015160f81c60f81b828281518110612d8f57612d8e614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080612dc990614c40565b915050612d20565b5080915050919050565b606060006002836002612dee91906141c6565b612df891906143a3565b67ffffffffffffffff811115612e1157612e106133b3565b5b6040519080825280601f01601f191660200182016040528015612e435781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e7b57612e7a614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612edf57612ede614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612f1f91906141c6565b612f2991906143a3565b90505b6001811115612fc9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612f6b57612f6a614340565b5b1a60f81b828281518110612f8257612f81614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612fc290615092565b9050612f2c565b506000841461300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300490615107565b60405180910390fd5b8091505092915050565b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254613077919061436f565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516130f5929190614b1e565b60405180910390a4505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314182613116565b9050919050565b61315181613136565b811461315c57600080fd5b50565b60008135905061316e81613148565b92915050565b6000819050919050565b61318781613174565b811461319257600080fd5b50565b6000813590506131a48161317e565b92915050565b600080604083850312156131c1576131c061310c565b5b60006131cf8582860161315f565b92505060206131e085828601613195565b9150509250929050565b6131f381613174565b82525050565b600060208201905061320e60008301846131ea565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61324981613214565b811461325457600080fd5b50565b60008135905061326681613240565b92915050565b6000602082840312156132825761328161310c565b5b600061329084828501613257565b91505092915050565b60008115159050919050565b6132ae81613299565b82525050565b60006020820190506132c960008301846132a5565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133095780820151818401526020810190506132ee565b60008484015250505050565b6000601f19601f8301169050919050565b6000613331826132cf565b61333b81856132da565b935061334b8185602086016132eb565b61335481613315565b840191505092915050565b600060208201905081810360008301526133798184613326565b905092915050565b6000602082840312156133975761339661310c565b5b60006133a584828501613195565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133eb82613315565b810181811067ffffffffffffffff8211171561340a576134096133b3565b5b80604052505050565b600061341d613102565b905061342982826133e2565b919050565b600067ffffffffffffffff821115613449576134486133b3565b5b602082029050602081019050919050565b600080fd5b600061347261346d8461342e565b613413565b905080838252602082019050602084028301858111156134955761349461345a565b5b835b818110156134be57806134aa8882613195565b845260208401935050602081019050613497565b5050509392505050565b600082601f8301126134dd576134dc6133ae565b5b81356134ed84826020860161345f565b91505092915050565b600080fd5b600067ffffffffffffffff821115613516576135156133b3565b5b61351f82613315565b9050602081019050919050565b82818337600083830152505050565b600061354e613549846134fb565b613413565b90508281526020810184848401111561356a576135696134f6565b5b61357584828561352c565b509392505050565b600082601f830112613592576135916133ae565b5b81356135a284826020860161353b565b91505092915050565b600080600080608085870312156135c5576135c461310c565b5b60006135d38782880161315f565b945050602085013567ffffffffffffffff8111156135f4576135f3613111565b5b613600878288016134c8565b935050604085013567ffffffffffffffff81111561362157613620613111565b5b61362d878288016134c8565b925050606085013567ffffffffffffffff81111561364e5761364d613111565b5b61365a8782880161357d565b91505092959194509250565b6000819050919050565b61367981613666565b811461368457600080fd5b50565b60008135905061369681613670565b92915050565b6000602082840312156136b2576136b161310c565b5b60006136c084828501613687565b91505092915050565b6136d281613666565b82525050565b60006020820190506136ed60008301846136c9565b92915050565b6000806040838503121561370a5761370961310c565b5b600061371885828601613195565b925050602061372985828601613195565b9150509250929050565b61373c81613136565b82525050565b60006040820190506137576000830185613733565b61376460208301846131ea565b9392505050565b600080fd5b60008083601f840112613786576137856133ae565b5b8235905067ffffffffffffffff8111156137a3576137a261376b565b5b6020830191508360208202830111156137bf576137be61345a565b5b9250929050565b60008083601f8401126137dc576137db6133ae565b5b8235905067ffffffffffffffff8111156137f9576137f861376b565b5b6020830191508360018202830111156138155761381461345a565b5b9250929050565b60008060008060008060008060a0898b03121561383c5761383b61310c565b5b600061384a8b828c0161315f565b985050602061385b8b828c0161315f565b975050604089013567ffffffffffffffff81111561387c5761387b613111565b5b6138888b828c01613770565b9650965050606089013567ffffffffffffffff8111156138ab576138aa613111565b5b6138b78b828c01613770565b9450945050608089013567ffffffffffffffff8111156138da576138d9613111565b5b6138e68b828c016137c6565b92509250509295985092959890939650565b6000806040838503121561390f5761390e61310c565b5b600061391d85828601613687565b925050602061392e8582860161315f565b9150509250929050565b60006020828403121561394e5761394d61310c565b5b600061395c8482850161315f565b91505092915050565b6000806020838503121561397c5761397b61310c565b5b600083013567ffffffffffffffff81111561399a57613999613111565b5b6139a6858286016137c6565b92509250509250929050565b60008083601f8401126139c8576139c76133ae565b5b8235905067ffffffffffffffff8111156139e5576139e461376b565b5b602083019150836020820283011115613a0157613a0061345a565b5b9250929050565b60008060008060408587031215613a2257613a2161310c565b5b600085013567ffffffffffffffff811115613a4057613a3f613111565b5b613a4c878288016139b2565b9450945050602085013567ffffffffffffffff811115613a6f57613a6e613111565b5b613a7b87828801613770565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613abe81613174565b82525050565b6000613ad08383613ab5565b60208301905092915050565b6000602082019050919050565b6000613af482613a89565b613afe8185613a94565b9350613b0983613aa5565b8060005b83811015613b3a578151613b218882613ac4565b9750613b2c83613adc565b925050600181019050613b0d565b5085935050505092915050565b60006020820190508181036000830152613b618184613ae9565b905092915050565b600080fd5b60006101008284031215613b8557613b84613b69565b5b81905092915050565b60008060008060008060006101a0888a031215613bae57613bad61310c565b5b6000613bbc8a828b01613b6e565b975050610100613bce8a828b01613195565b965050610120613be08a828b01613195565b955050610140613bf28a828b0161315f565b94505061016088013567ffffffffffffffff811115613c1457613c13613111565b5b613c208a828b0161357d565b93505061018088013567ffffffffffffffff811115613c4257613c41613111565b5b613c4e8a828b016137c6565b925092505092959891949750929550565b613c6881613299565b8114613c7357600080fd5b50565b600081359050613c8581613c5f565b92915050565b60008060408385031215613ca257613ca161310c565b5b6000613cb08582860161315f565b9250506020613cc185828601613c76565b9150509250929050565b600062ffffff82169050919050565b613ce381613ccb565b8114613cee57600080fd5b50565b600081359050613d0081613cda565b92915050565b600060208284031215613d1c57613d1b61310c565b5b6000613d2a84828501613cf1565b91505092915050565b60008060408385031215613d4a57613d4961310c565b5b6000613d588582860161315f565b9250506020613d6985828601613cf1565b9150509250929050565b60008060008060808587031215613d8d57613d8c61310c565b5b6000613d9b8782880161315f565b9450506020613dac87828801613687565b9350506040613dbd87828801613195565b925050606085013567ffffffffffffffff811115613dde57613ddd613111565b5b613dea8782880161357d565b91505092959194509250565b60008060408385031215613e0d57613e0c61310c565b5b6000613e1b8582860161315f565b9250506020613e2c8582860161315f565b9150509250929050565b60008060008060008060a08789031215613e5357613e5261310c565b5b6000613e6189828a0161315f565b9650506020613e7289828a0161315f565b9550506040613e8389828a01613195565b9450506060613e9489828a01613195565b935050608087013567ffffffffffffffff811115613eb557613eb4613111565b5b613ec189828a016137c6565b92509250509295509295509295565b600080600060608486031215613ee957613ee861310c565b5b6000613ef78682870161315f565b9350506020613f0886828701613195565b9250506040613f1986828701613195565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f6a57607f821691505b602082108103613f7d57613f7c613f23565b5b50919050565b7f455243313135353a206e6f6e6578697374656e7420746f6b656e000000000000600082015250565b6000613fb9601a836132da565b9150613fc482613f83565b602082019050919050565b60006020820190508181036000830152613fe881613fac565b9050919050565b60007fffff00000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61403661403182613fef565b61401b565b82525050565b6000819050919050565b61405761405282613666565b61403c565b82525050565b60006140698285614025565b6002820191506140798284614046565b6020820191508190509392505050565b600081905092915050565b60008190508160005260206000209050919050565b600081546140b681613f52565b6140c08186614089565b945060018216600081146140db57600181146140f057614123565b60ff1983168652811515820286019350614123565b6140f985614094565b60005b8381101561411b578154818901526001820191506020810190506140fc565b838801955050505b50505092915050565b600081519050919050565b600081905092915050565b600061414d8261412c565b6141578185614137565b93506141678185602086016132eb565b80840191505092915050565b600061417f82856140a9565b915061418b8284614142565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141d182613174565b91506141dc83613174565b92508282026141ea81613174565b9150828204841483151761420157614200614197565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061424282613174565b915061424d83613174565b92508261425d5761425c614208565b5b828204905092915050565b7f4c454e4754485f4d49534d415443480000000000000000000000000000000000600082015250565b600061429e600f836132da565b91506142a982614268565b602082019050919050565b600060208201905081810360008301526142cd81614291565b9050919050565b7f4e4f545f415554484f52495a4544000000000000000000000000000000000000600082015250565b600061430a600e836132da565b9150614315826142d4565b602082019050919050565b60006020820190508181036000830152614339816142fd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061437a82613174565b915061438583613174565b925082820390508181111561439d5761439c614197565b5b92915050565b60006143ae82613174565b91506143b983613174565b92508282019050808211156143d1576143d0614197565b5b92915050565b600080fd5b82818337505050565b60006143f18385613a94565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614424576144236143d7565b5b6020830292506144358385846143dc565b82840190509392505050565b6000604082019050818103600083015261445c8186886143e5565b905081810360208301526144718184866143e5565b905095945050505050565b600082825260208201905092915050565b6000614499838561447c565b93506144a683858461352c565b6144af83613315565b840190509392505050565b600060a0820190506144cf600083018b613733565b6144dc602083018a613733565b81810360408301526144ef81888a6143e5565b905081810360608301526145048186886143e5565b9050818103608083015261451981848661448d565b90509998505050505050505050565b60008151905061453781613240565b92915050565b6000602082840312156145535761455261310c565b5b600061456184828501614528565b91505092915050565b7f554e534146455f524543495049454e5400000000000000000000000000000000600082015250565b60006145a06010836132da565b91506145ab8261456a565b602082019050919050565b600060208201905081810360008301526145cf81614593565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614632602f836132da565b915061463d826145d6565b604082019050919050565b6000602082019050818103600083015261466181614625565b9050919050565b600067ffffffffffffffff821115614683576146826133b3565b5b61468c82613315565b9050602081019050919050565b60006146ac6146a784614668565b613413565b9050828152602081018484840111156146c8576146c76134f6565b5b6146d384828561352c565b509392505050565b600082601f8301126146f0576146ef6133ae565b5b8135614700848260208601614699565b91505092915050565b600061471482613116565b9050919050565b61472481614709565b811461472f57600080fd5b50565b6000813590506147418161471b565b92915050565b600080600080600060a086880312156147635761476261310c565b5b600086013567ffffffffffffffff81111561478157614780613111565b5b61478d888289016146db565b955050602086013567ffffffffffffffff8111156147ae576147ad613111565b5b6147ba888289016146db565b94505060406147cb88828901614732565b93505060606147dc88828901614732565b92505060806147ed88828901613cf1565b9150509295509295909350565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148477fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261480a565b614851868361480a565b95508019841693508086168417925050509392505050565b6000819050919050565b600061488e61488961488484613174565b614869565b613174565b9050919050565b6000819050919050565b6148a883614873565b6148bc6148b482614895565b848454614817565b825550505050565b600090565b6148d16148c4565b6148dc81848461489f565b505050565b5b81811015614900576148f56000826148c9565b6001810190506148e2565b5050565b601f8211156149455761491681614094565b61491f846147fa565b8101602085101561492e578190505b61494261493a856147fa565b8301826148e1565b50505b505050565b600082821c905092915050565b60006149686000198460080261494a565b1980831691505092915050565b60006149818383614957565b9150826002028217905092915050565b61499a826132cf565b67ffffffffffffffff8111156149b3576149b26133b3565b5b6149bd8254613f52565b6149c8828285614904565b600060209050601f8311600181146149fb57600084156149e9578287015190505b6149f38582614975565b865550614a5b565b601f198416614a0986614094565b60005b82811015614a3157848901518255600182019150602085019450602081019050614a0c565b86831015614a4e5784890151614a4a601f891682614957565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6000614a88614a83614a7e84614a63565b614869565b613174565b9050919050565b614a9881614a6d565b82525050565b6000819050919050565b6000614ac3614abe614ab984614a9e565b614869565b613174565b9050919050565b614ad381614aa8565b82525050565b6000608082019050614aee6000830187614a8f565b614afb6020830186614aca565b614b0860408301856131ea565b614b156060830184613733565b95945050505050565b6000604082019050614b3360008301856131ea565b614b4060208301846131ea565b9392505050565b600060a082019050614b5c6000830189613733565b614b696020830188613733565b614b7660408301876131ea565b614b8360608301866131ea565b8181036080830152614b9681848661448d565b9050979650505050505050565b7f455243313135353a204e4f545f415554484f52495a4544000000000000000000600082015250565b6000614bd96017836132da565b9150614be482614ba3565b602082019050919050565b60006020820190508181036000830152614c0881614bcc565b9050919050565b6000614c1a82613174565b9150614c2583613174565b925082614c3557614c34614208565b5b828206905092915050565b6000614c4b82613174565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614c7d57614c7c614197565b5b600182019050919050565b600060ff82169050919050565b6000614ca082614c88565b915060ff8203614cb357614cb2614197565b5b600182019050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614cf4601783614089565b9150614cff82614cbe565b601782019050919050565b6000614d15826132cf565b614d1f8185614089565b9350614d2f8185602086016132eb565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614d71601183614089565b9150614d7c82614d3b565b601182019050919050565b6000614d9282614ce7565b9150614d9e8285614d0a565b9150614da982614d64565b9150614db58284614d0a565b91508190509392505050565b60006040820190508181036000830152614ddb8185613ae9565b90508181036020830152614def8184613ae9565b90509392505050565b6000614e038261412c565b614e0d818561447c565b9350614e1d8185602086016132eb565b614e2681613315565b840191505092915050565b600060a082019050614e466000830188613733565b614e536020830187613733565b8181036040830152614e658186613ae9565b90508181036060830152614e798185613ae9565b90508181036080830152614e8d8184614df8565b90509695505050505050565b600061012082019050614eaf600083018c6136c9565b614ebc602083018b6136c9565b614ec9604083018a6131ea565b614ed660608301896131ea565b614ee360808301886131ea565b614ef060a08301876131ea565b614efd60c08301866131ea565b614f0a60e0830185613733565b614f18610100830184613733565b9a9950505050505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000614f5c600283614089565b9150614f6782614f26565b600282019050919050565b6000614f7d82614f4f565b9150614f898285614046565b602082019150614f998284614046565b6020820191508190509392505050565b614fb281614c88565b82525050565b6000608082019050614fcd60008301876136c9565b614fda6020830186614fa9565b614fe760408301856136c9565b614ff460608301846136c9565b95945050505050565b50565b600061500d600083614137565b915061501882614ffd565b600082019050919050565b600061502e82615000565b9150819050919050565b600060a08201905061504d6000830188613733565b61505a6020830187613733565b61506760408301866131ea565b61507460608301856131ea565b81810360808301526150868184614df8565b90509695505050505050565b600061509d82613174565b9150600082036150b0576150af614197565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006150f16020836132da565b91506150fc826150bb565b602082019050919050565b60006020820190508181036000830152615120816150e4565b905091905056fe31323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa26469706673582212206ae7218e9ae4a696672de26a514a55fbcc583237d53200b2a4dc16db1ff578dd64736f6c6343000811003300000000000000000000000061b98acbfc23326cfe296f380b5aa3e5adcc5238
Deployed Bytecode
0x60806040526004361061019b5760003560e01c80634e1273f4116100ec578063bd85b0391161008a578063de26648a11610064578063de26648a146105fd578063e985e9c514610626578063f242432a14610663578063f5298aca1461068c5761019b565b8063bd85b0391461056e578063d3709f2a146105ab578063d547741f146105d45761019b565b806391d14854116100c657806391d14854146104b457806395d89b41146104f1578063a22cb4651461051c578063a7c036b5146105455761019b565b80634e1273f41461041e5780634f558e791461045b5780636f90f9b0146104985761019b565b8063248a9ca3116101595780632f2ff15d116101335780632f2ff15d1461037a57806336568abe146103a357806341e42f30146103cc578063439fab91146103f55761019b565b8063248a9ca3146102d65780632a55205a146103135780632eb2c2d6146103515761019b565b8062fdd58e146101a057806301ffc9a7146101dd57806306fdde031461021a5780630e89341c1461024557806318160ddd146102825780631f7fdffa146102ad575b600080fd5b3480156101ac57600080fd5b506101c760048036038101906101c291906131aa565b6106b5565b6040516101d491906131f9565b60405180910390f35b3480156101e957600080fd5b5061020460048036038101906101ff919061326c565b610710565b60405161021191906132b4565b60405180910390f35b34801561022657600080fd5b5061022f610802565b60405161023c919061335f565b60405180910390f35b34801561025157600080fd5b5061026c60048036038101906102679190613381565b610890565b604051610279919061335f565b60405180910390f35b34801561028e57600080fd5b50610297610955565b6040516102a491906131f9565b60405180910390f35b3480156102b957600080fd5b506102d460048036038101906102cf91906135ab565b610962565b005b3480156102e257600080fd5b506102fd60048036038101906102f8919061369c565b6109a3565b60405161030a91906136d8565b60405180910390f35b34801561031f57600080fd5b5061033a600480360381019061033591906136f3565b6109c2565b604051610348929190613742565b60405180910390f35b34801561035d57600080fd5b506103786004803603810190610373919061381c565b610a27565b005b34801561038657600080fd5b506103a1600480360381019061039c91906138f8565b610e85565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906138f8565b610ea7565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613938565b610f23565b005b34801561040157600080fd5b5061041c60048036038101906104179190613965565b610f76565b005b34801561042a57600080fd5b5061044560048036038101906104409190613a08565b611127565b6040516104529190613b47565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d9190613381565b611291565b60405161048f91906132b4565b60405180910390f35b6104b260048036038101906104ad9190613b8e565b6112a2565b005b3480156104c057600080fd5b506104db60048036038101906104d691906138f8565b611710565b6040516104e891906132b4565b60405180910390f35b3480156104fd57600080fd5b5061050661177a565b604051610513919061335f565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613c8b565b611808565b005b34801561055157600080fd5b5061056c60048036038101906105679190613d06565b611905565b005b34801561057a57600080fd5b5061059560048036038101906105909190613381565b611936565b6040516105a291906131f9565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613d33565b61195e565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906138f8565b6119d1565b005b34801561060957600080fd5b50610624600480360381019061061f9190613d73565b6119f3565b005b34801561063257600080fd5b5061064d60048036038101906106489190613df6565b611a80565b60405161065a91906132b4565b60405180910390f35b34801561066f57600080fd5b5061068a60048036038101906106859190613e36565b611aaf565b005b34801561069857600080fd5b506106b360048036038101906106ae9190613ed0565b611e64565b005b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061076b575063d9b67a2660e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061079b5750630e89341c60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107cb5750632a55205a60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107fb5750637965db0b60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6008805461080f90613f52565b80601f016020809104026020016040519081016040528092919081815260200182805461083b90613f52565b80156108885780601f1061085d57610100808354040283529160200191610888565b820191906000526020600020905b81548152906001019060200180831161086b57829003601f168201915b505050505081565b60606000801b6005600084815260200190815260200160002054036108ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e190613fcf565b60405180910390fd5b600461092e61122060f01b600560008681526020019081526020016000205460405160200161091a92919061405d565b604051602081830303815290604052611ede565b60405160200161093f929190614173565b6040516020818303038152906040529050919050565b6000600680549050905090565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b6109908133612125565b61099c858585856121c2565b5050505050565b6000806000838152602001908152602001600020600101549050919050565b600080600160039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661271062ffffff16600160009054906101000a900462ffffff1662ffffff1685610a1291906141c6565b610a1c9190614237565b915091509250929050565b838390508686905014610a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a66906142b4565b60405180910390fd5b8773ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610b2f5750600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590614320565b60405180910390fd5b60008060005b88889050811015610c9057888882818110610b9257610b91614340565b5b905060200201359250868682818110610bae57610bad614340565b5b90506020020135915081600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000206000828254610c17919061436f565b9250508190555081600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000206000828254610c7e91906143a3565b92505081905550806001019050610b74565b508873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b604051610d0b9493929190614441565b60405180910390a460008973ffffffffffffffffffffffffffffffffffffffff163b14610e085763bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168973ffffffffffffffffffffffffffffffffffffffff1663bc197c81338d8c8c8c8c8c8c6040518963ffffffff1660e01b8152600401610da09897969594939291906144ba565b6020604051808303816000875af1158015610dbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de3919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610e3a565b600073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b610e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e70906145b6565b60405180910390fd5b50505050505050505050565b610e8e826109a3565b610e988133612125565b610ea283836124a4565b505050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c90614648565b60405180910390fd5b610f1f828261257d565b5050565b6000801b610f318133612125565b81600160036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b7f00000000000000000000000061b98acbfc23326cfe296f380b5aa3e5adcc523873ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fce57600080fd5b60008282810190610fdf9190614747565b600860006009600060016003600160008891906101000a81548162ffffff021916908362ffffff1602179055508791906101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086995087919050908161105e9190614991565b5086919050908161106f9190614991565b5050505050507f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667fdb3dd9b854cdb7551722584c7e89b5df9798432c0c9ee9bc6f62a8edfed5dac446306040516020016110cc9493929190614ad9565b604051602081830303815290604052805190602001206007819055506110f56000801b826124a4565b6111227f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b826124a4565b505050565b6060828290508585905014611171576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611168906142b4565b60405180910390fd5b8484905067ffffffffffffffff81111561118e5761118d6133b3565b5b6040519080825280602002602001820160405280156111bc5781602001602082028036833780820191505090505b50905060005b8585905081101561128857600260008787848181106111e4576111e3614340565b5b90506020020160208101906111f99190613938565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085858481811061124857611247614340565b5b9050602002013581526020019081526020016000205482828151811061127157611270614340565b5b6020026020010181815250508060010190506111c2565b50949350505050565b600081600680549050119050919050565b60006112ae8885612657565b905060008689602001356112c291906141c6565b905080341480156112d65750886060013542105b801561130b575061130a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b83611710565b5b61131457600080fd5b61131d88611291565b1561138d576005600089815260200190815260200160002054896000013514801561137f575088604001358760068a8154811061135d5761135c614340565b5b90600052602060002001600082825461137691906143a3565b92505081905511155b61138857600080fd5b6113ec565b886040013587111561139e57600080fd5b600680549050975060068790806001815401808255809150506001900390600052602060002001600090919091909150558860000135600560008a8152602001908152602001600020819055505b86600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a8152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b8b6040516114c1929190614b1e565b60405180910390a48573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b8b60405161153f929190614b1e565b60405180910390a460006127108a60a001353461155c91906141c6565b6115669190614237565b90508082611574919061436f565b91506115928a60e001602081019061158c9190613938565b826127ca565b60008a6080013511156115ec5760006127108b60800135346115b491906141c6565b6115be9190614237565b905080836115cc919061436f565b92506115ea8b60c00160208101906115e49190613938565b826127ca565b505b6115f683836127ca565b60008773ffffffffffffffffffffffffffffffffffffffff163b11156117045763f23a6e6160e01b8773ffffffffffffffffffffffffffffffffffffffff1663f23a6e6133868d8d8b8b6040518763ffffffff1660e01b815260040161166196959493929190614b47565b6020604051808303816000875af1158015611680573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a4919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611703576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fa906145b6565b60405180910390fd5b5b50505050505050505050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6009805461178790613f52565b80601f01602080910402602001604051908101604052809291908181526020018280546117b390613f52565b80156118005780601f106117d557610100808354040283529160200191611800565b820191906000526020600020905b8154815290600101906020018083116117e357829003601f168201915b505050505081565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f991906132b4565b60405180910390a35050565b6000801b6119138133612125565b81600160006101000a81548162ffffff021916908362ffffff1602179055505050565b60006006828154811061194c5761194b614340565b5b90600052602060002001549050919050565b6000801b61196c8133612125565b82600160036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548162ffffff021916908362ffffff160217905550505050565b6119da826109a3565b6119e48133612125565b6119ee838361257d565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a660001b611a218133612125565b60006006805490509050611a3786828686612845565b8460056000838152602001908152602001600020819055506006849080600181540180825580915050600190039060005260206000200160009091909190915055505050505050565b60036020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b8573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611b6f5750600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba590614bef565b60405180910390fd5b82600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000828254611c0e919061436f565b9250508190555082600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000828254611c7591906143a3565b925050819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611cf2929190614b1e565b60405180910390a460008573ffffffffffffffffffffffffffffffffffffffff163b14611deb5763f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168573ffffffffffffffffffffffffffffffffffffffff1663f23a6e613389888888886040518763ffffffff1660e01b8152600401611d8396959493929190614b47565b6020604051808303816000875af1158015611da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc6919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611e1d565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e53906145b6565b60405180910390fd5b505050505050565b611e6f838383612a5d565b8060068381548110611e8457611e83614340565b5b9060005260206000200160008282540392505081905550600060068381548110611eb157611eb0614340565b5b906000526020600020015403611ed95760056000838152602001908152602001600020600090555b505050565b60606000825103611f3e57600067ffffffffffffffff811115611f0457611f036133b3565b5b6040519080825280601f01601f191660200182016040528015611f365781602001600182028036833780820191505090505b509050612120565b6000604067ffffffffffffffff811115611f5b57611f5a6133b3565b5b604051908082528060200260200182016040528015611f895781602001602082028036833780820191505090505b509050600081600081518110611fa257611fa1614340565b5b602002602001019060ff16908160ff168152505060006001905060005b8451811015612100576000858281518110611fdd57611fdc614340565b5b602001015160f81c60f81b60f81c60ff16905060005b8360ff1681101561208a5761010085828151811061201457612013614340565b5b602002602001015160ff1661202991906141c6565b8261203491906143a3565b9150603a826120439190614c0f565b85828151811061205657612055614340565b5b602002602001019060ff16908160ff1681525050603a826120779190614237565b91508061208390614c40565b9050611ff3565b505b60008111156120ee57603a816120a29190614c0f565b848460ff16815181106120b8576120b7614340565b5b602002602001019060ff16908160ff168152505082806120d790614c95565b935050603a816120e79190614237565b905061208c565b50806120f990614c40565b9050611fbf565b5061211b6121166121118484612b36565b612bf6565b612cc9565b925050505b919050565b61212f8282611710565b6121be576121548173ffffffffffffffffffffffffffffffffffffffff166014612ddb565b6121628360001c6020612ddb565b604051602001612173929190614d87565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b5919061335f565b60405180910390fd5b5050565b6000835190508251811461220b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612202906142b4565b60405180910390fd5b60005b818110156122bc5783818151811061222957612228614340565b5b6020026020010151600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600087848151811061228557612284614340565b5b6020026020010151815260200190815260200160002060008282546122aa91906143a3565b9250508190555080600101905061220e565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612334929190614dc1565b60405180910390a460008573ffffffffffffffffffffffffffffffffffffffff163b1461242c5763bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168573ffffffffffffffffffffffffffffffffffffffff1663bc197c813360008888886040518663ffffffff1660e01b81526004016123c4959493929190614e31565b6020604051808303816000875af11580156123e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612407919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461245e565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b61249d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612494906145b6565b60405180910390fd5b5050505050565b6124ae8282611710565b61257957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6125878282611710565b1561265357600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000806007547f820cb0f85939e886ba557a98e62d5d55aaa5e089d02add3635ead5b11faa15ba856000013586602001358760400135886060013589608001358a60a001358b60c00160208101906126af9190613938565b8c60e00160208101906126c29190613938565b6040516020016126da99989796959493929190614e99565b60405160208183030381529060405280519060200120604051602001612701929190614f72565b60405160208183030381529060405280519060200120905060008060006020860151925060408601519150606086015160001a9050600184828585604051600081526020016040526040516127599493929190614fb8565b6020604051602081039080840390855afa15801561277b573d6000803e3d6000fd5b505050602060405103519450600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036127c057600080fd5b5050505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516127f090615023565b60006040518083038185875af1925050503d806000811461282d576040519150601f19603f3d011682016040523d82523d6000602084013e612832565b606091505b505090508061284057600080fd5b505050565b81600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600085815260200190815260200160002060008282546128a591906143a3565b925050819055508373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051612923929190614b1e565b60405180910390a460008473ffffffffffffffffffffffffffffffffffffffff163b1115612a575763f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168473ffffffffffffffffffffffffffffffffffffffff1663f23a6e613360008787876040518663ffffffff1660e01b81526004016129b4959493929190615038565b6020604051808303816000875af11580156129d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f7919061453d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4d906145b6565b60405180910390fd5b5b50505050565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612b1d5750600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612b2657600080fd5b612b31838383613017565b505050565b606060008260ff1667ffffffffffffffff811115612b5757612b566133b3565b5b604051908082528060200260200182016040528015612b855781602001602082028036833780820191505090505b50905060005b8360ff16811015612beb57848181518110612ba957612ba8614340565b5b6020026020010151828281518110612bc457612bc3614340565b5b602002602001019060ff16908160ff16815250508080612be390614c40565b915050612b8b565b508091505092915050565b60606000825167ffffffffffffffff811115612c1557612c146133b3565b5b604051908082528060200260200182016040528015612c435781602001602082028036833780820191505090505b50905060005b8351811015612cbf57838160018651612c62919061436f565b612c6c919061436f565b81518110612c7d57612c7c614340565b5b6020026020010151828281518110612c9857612c97614340565b5b602002602001019060ff16908160ff16815250508080612cb790614c40565b915050612c49565b5080915050919050565b60606000825167ffffffffffffffff811115612ce857612ce76133b3565b5b6040519080825280601f01601f191660200182016040528015612d1a5781602001600182028036833780820191505090505b50905060005b8351811015612dd1576040518060600160405280603a8152602001615128603a9139848281518110612d5557612d54614340565b5b602002602001015160ff1681518110612d7157612d70614340565b5b602001015160f81c60f81b828281518110612d8f57612d8e614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080612dc990614c40565b915050612d20565b5080915050919050565b606060006002836002612dee91906141c6565b612df891906143a3565b67ffffffffffffffff811115612e1157612e106133b3565b5b6040519080825280601f01601f191660200182016040528015612e435781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e7b57612e7a614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612edf57612ede614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612f1f91906141c6565b612f2991906143a3565b90505b6001811115612fc9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612f6b57612f6a614340565b5b1a60f81b828281518110612f8257612f81614340565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612fc290615092565b9050612f2c565b506000841461300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300490615107565b60405180910390fd5b8091505092915050565b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254613077919061436f565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516130f5929190614b1e565b60405180910390a4505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314182613116565b9050919050565b61315181613136565b811461315c57600080fd5b50565b60008135905061316e81613148565b92915050565b6000819050919050565b61318781613174565b811461319257600080fd5b50565b6000813590506131a48161317e565b92915050565b600080604083850312156131c1576131c061310c565b5b60006131cf8582860161315f565b92505060206131e085828601613195565b9150509250929050565b6131f381613174565b82525050565b600060208201905061320e60008301846131ea565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61324981613214565b811461325457600080fd5b50565b60008135905061326681613240565b92915050565b6000602082840312156132825761328161310c565b5b600061329084828501613257565b91505092915050565b60008115159050919050565b6132ae81613299565b82525050565b60006020820190506132c960008301846132a5565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133095780820151818401526020810190506132ee565b60008484015250505050565b6000601f19601f8301169050919050565b6000613331826132cf565b61333b81856132da565b935061334b8185602086016132eb565b61335481613315565b840191505092915050565b600060208201905081810360008301526133798184613326565b905092915050565b6000602082840312156133975761339661310c565b5b60006133a584828501613195565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133eb82613315565b810181811067ffffffffffffffff8211171561340a576134096133b3565b5b80604052505050565b600061341d613102565b905061342982826133e2565b919050565b600067ffffffffffffffff821115613449576134486133b3565b5b602082029050602081019050919050565b600080fd5b600061347261346d8461342e565b613413565b905080838252602082019050602084028301858111156134955761349461345a565b5b835b818110156134be57806134aa8882613195565b845260208401935050602081019050613497565b5050509392505050565b600082601f8301126134dd576134dc6133ae565b5b81356134ed84826020860161345f565b91505092915050565b600080fd5b600067ffffffffffffffff821115613516576135156133b3565b5b61351f82613315565b9050602081019050919050565b82818337600083830152505050565b600061354e613549846134fb565b613413565b90508281526020810184848401111561356a576135696134f6565b5b61357584828561352c565b509392505050565b600082601f830112613592576135916133ae565b5b81356135a284826020860161353b565b91505092915050565b600080600080608085870312156135c5576135c461310c565b5b60006135d38782880161315f565b945050602085013567ffffffffffffffff8111156135f4576135f3613111565b5b613600878288016134c8565b935050604085013567ffffffffffffffff81111561362157613620613111565b5b61362d878288016134c8565b925050606085013567ffffffffffffffff81111561364e5761364d613111565b5b61365a8782880161357d565b91505092959194509250565b6000819050919050565b61367981613666565b811461368457600080fd5b50565b60008135905061369681613670565b92915050565b6000602082840312156136b2576136b161310c565b5b60006136c084828501613687565b91505092915050565b6136d281613666565b82525050565b60006020820190506136ed60008301846136c9565b92915050565b6000806040838503121561370a5761370961310c565b5b600061371885828601613195565b925050602061372985828601613195565b9150509250929050565b61373c81613136565b82525050565b60006040820190506137576000830185613733565b61376460208301846131ea565b9392505050565b600080fd5b60008083601f840112613786576137856133ae565b5b8235905067ffffffffffffffff8111156137a3576137a261376b565b5b6020830191508360208202830111156137bf576137be61345a565b5b9250929050565b60008083601f8401126137dc576137db6133ae565b5b8235905067ffffffffffffffff8111156137f9576137f861376b565b5b6020830191508360018202830111156138155761381461345a565b5b9250929050565b60008060008060008060008060a0898b03121561383c5761383b61310c565b5b600061384a8b828c0161315f565b985050602061385b8b828c0161315f565b975050604089013567ffffffffffffffff81111561387c5761387b613111565b5b6138888b828c01613770565b9650965050606089013567ffffffffffffffff8111156138ab576138aa613111565b5b6138b78b828c01613770565b9450945050608089013567ffffffffffffffff8111156138da576138d9613111565b5b6138e68b828c016137c6565b92509250509295985092959890939650565b6000806040838503121561390f5761390e61310c565b5b600061391d85828601613687565b925050602061392e8582860161315f565b9150509250929050565b60006020828403121561394e5761394d61310c565b5b600061395c8482850161315f565b91505092915050565b6000806020838503121561397c5761397b61310c565b5b600083013567ffffffffffffffff81111561399a57613999613111565b5b6139a6858286016137c6565b92509250509250929050565b60008083601f8401126139c8576139c76133ae565b5b8235905067ffffffffffffffff8111156139e5576139e461376b565b5b602083019150836020820283011115613a0157613a0061345a565b5b9250929050565b60008060008060408587031215613a2257613a2161310c565b5b600085013567ffffffffffffffff811115613a4057613a3f613111565b5b613a4c878288016139b2565b9450945050602085013567ffffffffffffffff811115613a6f57613a6e613111565b5b613a7b87828801613770565b925092505092959194509250565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613abe81613174565b82525050565b6000613ad08383613ab5565b60208301905092915050565b6000602082019050919050565b6000613af482613a89565b613afe8185613a94565b9350613b0983613aa5565b8060005b83811015613b3a578151613b218882613ac4565b9750613b2c83613adc565b925050600181019050613b0d565b5085935050505092915050565b60006020820190508181036000830152613b618184613ae9565b905092915050565b600080fd5b60006101008284031215613b8557613b84613b69565b5b81905092915050565b60008060008060008060006101a0888a031215613bae57613bad61310c565b5b6000613bbc8a828b01613b6e565b975050610100613bce8a828b01613195565b965050610120613be08a828b01613195565b955050610140613bf28a828b0161315f565b94505061016088013567ffffffffffffffff811115613c1457613c13613111565b5b613c208a828b0161357d565b93505061018088013567ffffffffffffffff811115613c4257613c41613111565b5b613c4e8a828b016137c6565b925092505092959891949750929550565b613c6881613299565b8114613c7357600080fd5b50565b600081359050613c8581613c5f565b92915050565b60008060408385031215613ca257613ca161310c565b5b6000613cb08582860161315f565b9250506020613cc185828601613c76565b9150509250929050565b600062ffffff82169050919050565b613ce381613ccb565b8114613cee57600080fd5b50565b600081359050613d0081613cda565b92915050565b600060208284031215613d1c57613d1b61310c565b5b6000613d2a84828501613cf1565b91505092915050565b60008060408385031215613d4a57613d4961310c565b5b6000613d588582860161315f565b9250506020613d6985828601613cf1565b9150509250929050565b60008060008060808587031215613d8d57613d8c61310c565b5b6000613d9b8782880161315f565b9450506020613dac87828801613687565b9350506040613dbd87828801613195565b925050606085013567ffffffffffffffff811115613dde57613ddd613111565b5b613dea8782880161357d565b91505092959194509250565b60008060408385031215613e0d57613e0c61310c565b5b6000613e1b8582860161315f565b9250506020613e2c8582860161315f565b9150509250929050565b60008060008060008060a08789031215613e5357613e5261310c565b5b6000613e6189828a0161315f565b9650506020613e7289828a0161315f565b9550506040613e8389828a01613195565b9450506060613e9489828a01613195565b935050608087013567ffffffffffffffff811115613eb557613eb4613111565b5b613ec189828a016137c6565b92509250509295509295509295565b600080600060608486031215613ee957613ee861310c565b5b6000613ef78682870161315f565b9350506020613f0886828701613195565b9250506040613f1986828701613195565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f6a57607f821691505b602082108103613f7d57613f7c613f23565b5b50919050565b7f455243313135353a206e6f6e6578697374656e7420746f6b656e000000000000600082015250565b6000613fb9601a836132da565b9150613fc482613f83565b602082019050919050565b60006020820190508181036000830152613fe881613fac565b9050919050565b60007fffff00000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61403661403182613fef565b61401b565b82525050565b6000819050919050565b61405761405282613666565b61403c565b82525050565b60006140698285614025565b6002820191506140798284614046565b6020820191508190509392505050565b600081905092915050565b60008190508160005260206000209050919050565b600081546140b681613f52565b6140c08186614089565b945060018216600081146140db57600181146140f057614123565b60ff1983168652811515820286019350614123565b6140f985614094565b60005b8381101561411b578154818901526001820191506020810190506140fc565b838801955050505b50505092915050565b600081519050919050565b600081905092915050565b600061414d8261412c565b6141578185614137565b93506141678185602086016132eb565b80840191505092915050565b600061417f82856140a9565b915061418b8284614142565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141d182613174565b91506141dc83613174565b92508282026141ea81613174565b9150828204841483151761420157614200614197565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061424282613174565b915061424d83613174565b92508261425d5761425c614208565b5b828204905092915050565b7f4c454e4754485f4d49534d415443480000000000000000000000000000000000600082015250565b600061429e600f836132da565b91506142a982614268565b602082019050919050565b600060208201905081810360008301526142cd81614291565b9050919050565b7f4e4f545f415554484f52495a4544000000000000000000000000000000000000600082015250565b600061430a600e836132da565b9150614315826142d4565b602082019050919050565b60006020820190508181036000830152614339816142fd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061437a82613174565b915061438583613174565b925082820390508181111561439d5761439c614197565b5b92915050565b60006143ae82613174565b91506143b983613174565b92508282019050808211156143d1576143d0614197565b5b92915050565b600080fd5b82818337505050565b60006143f18385613a94565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614424576144236143d7565b5b6020830292506144358385846143dc565b82840190509392505050565b6000604082019050818103600083015261445c8186886143e5565b905081810360208301526144718184866143e5565b905095945050505050565b600082825260208201905092915050565b6000614499838561447c565b93506144a683858461352c565b6144af83613315565b840190509392505050565b600060a0820190506144cf600083018b613733565b6144dc602083018a613733565b81810360408301526144ef81888a6143e5565b905081810360608301526145048186886143e5565b9050818103608083015261451981848661448d565b90509998505050505050505050565b60008151905061453781613240565b92915050565b6000602082840312156145535761455261310c565b5b600061456184828501614528565b91505092915050565b7f554e534146455f524543495049454e5400000000000000000000000000000000600082015250565b60006145a06010836132da565b91506145ab8261456a565b602082019050919050565b600060208201905081810360008301526145cf81614593565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614632602f836132da565b915061463d826145d6565b604082019050919050565b6000602082019050818103600083015261466181614625565b9050919050565b600067ffffffffffffffff821115614683576146826133b3565b5b61468c82613315565b9050602081019050919050565b60006146ac6146a784614668565b613413565b9050828152602081018484840111156146c8576146c76134f6565b5b6146d384828561352c565b509392505050565b600082601f8301126146f0576146ef6133ae565b5b8135614700848260208601614699565b91505092915050565b600061471482613116565b9050919050565b61472481614709565b811461472f57600080fd5b50565b6000813590506147418161471b565b92915050565b600080600080600060a086880312156147635761476261310c565b5b600086013567ffffffffffffffff81111561478157614780613111565b5b61478d888289016146db565b955050602086013567ffffffffffffffff8111156147ae576147ad613111565b5b6147ba888289016146db565b94505060406147cb88828901614732565b93505060606147dc88828901614732565b92505060806147ed88828901613cf1565b9150509295509295909350565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148477fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261480a565b614851868361480a565b95508019841693508086168417925050509392505050565b6000819050919050565b600061488e61488961488484613174565b614869565b613174565b9050919050565b6000819050919050565b6148a883614873565b6148bc6148b482614895565b848454614817565b825550505050565b600090565b6148d16148c4565b6148dc81848461489f565b505050565b5b81811015614900576148f56000826148c9565b6001810190506148e2565b5050565b601f8211156149455761491681614094565b61491f846147fa565b8101602085101561492e578190505b61494261493a856147fa565b8301826148e1565b50505b505050565b600082821c905092915050565b60006149686000198460080261494a565b1980831691505092915050565b60006149818383614957565b9150826002028217905092915050565b61499a826132cf565b67ffffffffffffffff8111156149b3576149b26133b3565b5b6149bd8254613f52565b6149c8828285614904565b600060209050601f8311600181146149fb57600084156149e9578287015190505b6149f38582614975565b865550614a5b565b601f198416614a0986614094565b60005b82811015614a3157848901518255600182019150602085019450602081019050614a0c565b86831015614a4e5784890151614a4a601f891682614957565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6000614a88614a83614a7e84614a63565b614869565b613174565b9050919050565b614a9881614a6d565b82525050565b6000819050919050565b6000614ac3614abe614ab984614a9e565b614869565b613174565b9050919050565b614ad381614aa8565b82525050565b6000608082019050614aee6000830187614a8f565b614afb6020830186614aca565b614b0860408301856131ea565b614b156060830184613733565b95945050505050565b6000604082019050614b3360008301856131ea565b614b4060208301846131ea565b9392505050565b600060a082019050614b5c6000830189613733565b614b696020830188613733565b614b7660408301876131ea565b614b8360608301866131ea565b8181036080830152614b9681848661448d565b9050979650505050505050565b7f455243313135353a204e4f545f415554484f52495a4544000000000000000000600082015250565b6000614bd96017836132da565b9150614be482614ba3565b602082019050919050565b60006020820190508181036000830152614c0881614bcc565b9050919050565b6000614c1a82613174565b9150614c2583613174565b925082614c3557614c34614208565b5b828206905092915050565b6000614c4b82613174565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614c7d57614c7c614197565b5b600182019050919050565b600060ff82169050919050565b6000614ca082614c88565b915060ff8203614cb357614cb2614197565b5b600182019050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614cf4601783614089565b9150614cff82614cbe565b601782019050919050565b6000614d15826132cf565b614d1f8185614089565b9350614d2f8185602086016132eb565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614d71601183614089565b9150614d7c82614d3b565b601182019050919050565b6000614d9282614ce7565b9150614d9e8285614d0a565b9150614da982614d64565b9150614db58284614d0a565b91508190509392505050565b60006040820190508181036000830152614ddb8185613ae9565b90508181036020830152614def8184613ae9565b90509392505050565b6000614e038261412c565b614e0d818561447c565b9350614e1d8185602086016132eb565b614e2681613315565b840191505092915050565b600060a082019050614e466000830188613733565b614e536020830187613733565b8181036040830152614e658186613ae9565b90508181036060830152614e798185613ae9565b90508181036080830152614e8d8184614df8565b90509695505050505050565b600061012082019050614eaf600083018c6136c9565b614ebc602083018b6136c9565b614ec9604083018a6131ea565b614ed660608301896131ea565b614ee360808301886131ea565b614ef060a08301876131ea565b614efd60c08301866131ea565b614f0a60e0830185613733565b614f18610100830184613733565b9a9950505050505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000614f5c600283614089565b9150614f6782614f26565b600282019050919050565b6000614f7d82614f4f565b9150614f898285614046565b602082019150614f998284614046565b6020820191508190509392505050565b614fb281614c88565b82525050565b6000608082019050614fcd60008301876136c9565b614fda6020830186614fa9565b614fe760408301856136c9565b614ff460608301846136c9565b95945050505050565b50565b600061500d600083614137565b915061501882614ffd565b600082019050919050565b600061502e82615000565b9150819050919050565b600060a08201905061504d6000830188613733565b61505a6020830187613733565b61506760408301866131ea565b61507460608301856131ea565b81810360808301526150868184614df8565b90509695505050505050565b600061509d82613174565b9150600082036150b0576150af614197565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006150f16020836132da565b91506150fc826150bb565b602082019050919050565b60006020820190508181036000830152615120816150e4565b905091905056fe31323334353637383941424344454647484a4b4c4d4e505152535455565758595a6162636465666768696a6b6d6e6f707172737475767778797aa26469706673582212206ae7218e9ae4a696672de26a514a55fbcc583237d53200b2a4dc16db1ff578dd64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000061b98acbfc23326cfe296f380b5aa3e5adcc5238
-----Decoded View---------------
Arg [0] : factory_ (address): 0x61b98ACbfc23326Cfe296f380B5aa3e5Adcc5238
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000061b98acbfc23326cfe296f380b5aa3e5adcc5238
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.