Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15094601 | 754 days ago | IN | 0 ETH | 0.05376895 |
Loading...
Loading
Contract Name:
MetaborgDistributionERC1155
Compiler Version
v0.8.3+commit.8d00100c
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.3; import '@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol'; import '@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol'; contract MetaborgDistributionERC1155 is ERC1155Upgradeable { using SafeMathUpgradeable for uint256; uint private randomizerIndex; uint public mangaDistributionIndex; address public owner; uint private ownerBalance; string public name = "Metaborg by Giovanni Motta"; // collection name on Opensea struct mangaDistributionStruct { mapping(address => uint) allowedAddressToMint; uint price; uint diamondSupply; uint goldSupply; uint originalSupply; uint diamondAssigned; uint goldAssigned; uint originalAssigned; mapping(uint => uint) ERC1155MangaIDs; } enum mangaVersion { NULL, ORIGINAL, GOLD, DIAMOND } event createDistributionEvent(uint IDDistribution, address indexed creator, uint diamondSupply, uint goldSupply, uint originalSupply, uint ERC1155DiamondID, uint ERC1155GoldID, uint ERC1155OriginalID); event withdrawOwnerBalanceEvent(address indexed to, uint amount); mapping(uint => mangaDistributionStruct) mangaDistribution; mapping(uint => string) IPFSOverrideConnectionURI; modifier onlyOwner { require(owner == msg.sender, "ONLY_OWNER_CAN_RUN_THIS_FUNCTION"); _; } function initialize() initializer public { __ERC1155_init("#"); owner = msg.sender; mangaDistributionIndex = uint(1); } // OPENSEA COMPATIBILITY OVERRIDE function uri(uint256 _tokenId) override public view returns (string memory) { return IPFSOverrideConnectionURI[_tokenId]; } // DISTRIBUTION LOGIC function bytesToUint(bytes32 b) public pure returns (uint256){ uint256 number; for(uint i=uint(0);i<b.length;i++){ number = number + uint8(b[i]); } return number; } function getRandom(uint _externalMax) private returns(uint){ uint internalMax = uint(8160); uint randomNumber = bytesToUint(bytes32(keccak256(abi.encodePacked(msg.sender, block.timestamp, block.number, address(this), randomizerIndex++)))); return randomNumber.mul(_externalMax).div(internalMax); } function thresoldMappingMangaVersion(uint _value, uint _diamondSupply, uint _goldSupply, uint _diamondAssigned, uint _goldAssigned) private pure returns(uint){ uint returnValue; uint diamondDynamicThresold = _diamondSupply.sub(_diamondAssigned); uint goldDynamicThresold = _goldSupply.sub(_goldAssigned); if(_value < diamondDynamicThresold){ returnValue = uint(mangaVersion.DIAMOND); } if(diamondDynamicThresold <= _value && _value < goldDynamicThresold){ returnValue = uint(mangaVersion.GOLD); } if(goldDynamicThresold <= _value){ returnValue = uint(mangaVersion.ORIGINAL); } return returnValue; } function getRandomMangaVersion(uint _mangaDistributionID) private returns(uint){ uint diamondSupply = mangaDistribution[_mangaDistributionID].diamondSupply; uint goldSupply = mangaDistribution[_mangaDistributionID].goldSupply; uint originalSupply = mangaDistribution[_mangaDistributionID].originalSupply; uint diamondAssigned = mangaDistribution[_mangaDistributionID].diamondAssigned; uint goldAssigned = mangaDistribution[_mangaDistributionID].goldAssigned; uint originalAssigned = mangaDistribution[_mangaDistributionID].originalAssigned; uint totalSupply = diamondSupply.add(goldSupply).add(originalSupply); uint netSupply = totalSupply.sub(diamondAssigned).sub(goldAssigned).sub(originalAssigned); uint randomMangaVersionID = thresoldMappingMangaVersion(getRandom(netSupply.sub(uint(1))), diamondSupply, goldSupply, diamondAssigned, goldAssigned); if(randomMangaVersionID == uint(mangaVersion.DIAMOND)) { mangaDistribution[_mangaDistributionID].diamondAssigned = diamondAssigned.add(uint(1)); } if(randomMangaVersionID == uint(mangaVersion.GOLD)) { mangaDistribution[_mangaDistributionID].goldAssigned = goldAssigned.add(uint(1)); } if(randomMangaVersionID == uint(mangaVersion.ORIGINAL)) { mangaDistribution[_mangaDistributionID].originalAssigned = originalAssigned.add(uint(1)); } return randomMangaVersionID; } function createMangaDistribution(uint _price, uint _diamondSupply, uint _goldSupply, uint _originalSupply, address[] memory _allowedAddressToMint, uint[] memory _quantityList, uint _ERC1155DiamondID, uint _ERC1155GoldID, uint _ERC1155OriginalID, string[] memory IPFSOverrideConnectionList) public onlyOwner returns(uint){ uint totalSupply = _diamondSupply.add(_goldSupply).add(_originalSupply); require(totalSupply > uint(0), "CANT_SET_NULL_DISTRIBUTION"); require(_allowedAddressToMint.length == _quantityList.length, "DATA_LENGTH_DISMATCH"); uint sumQuantity = uint(0); for(uint quantityIndex = uint(0); quantityIndex < _quantityList.length; quantityIndex++){ sumQuantity = sumQuantity.add(_quantityList[quantityIndex]); } require(sumQuantity == totalSupply, "QUANTITY_LENGTH_DISMATCH"); uint mangaDistributionID = mangaDistributionIndex; mangaDistribution[mangaDistributionID].price = _price; // with decimals mangaDistribution[mangaDistributionID].diamondSupply = _diamondSupply; mangaDistribution[mangaDistributionID].goldSupply = _goldSupply; mangaDistribution[mangaDistributionID].originalSupply = _originalSupply; mangaDistribution[mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.DIAMOND)] = _ERC1155DiamondID; mangaDistribution[mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.GOLD)] = _ERC1155GoldID; mangaDistribution[mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.ORIGINAL)] = _ERC1155OriginalID; for(uint index = uint(0); index < _allowedAddressToMint.length; index++){ mangaDistribution[mangaDistributionID].allowedAddressToMint[_allowedAddressToMint[index]] = _quantityList[index]; } if(bytes(IPFSOverrideConnectionURI[_ERC1155DiamondID]).length == uint(0)) { IPFSOverrideConnectionURI[_ERC1155DiamondID] = IPFSOverrideConnectionList[0]; } if(bytes(IPFSOverrideConnectionURI[_ERC1155GoldID]).length == uint(0)) { IPFSOverrideConnectionURI[_ERC1155GoldID] = IPFSOverrideConnectionList[1]; } if(bytes(IPFSOverrideConnectionURI[_ERC1155OriginalID]).length == uint(0)) { IPFSOverrideConnectionURI[_ERC1155OriginalID] = IPFSOverrideConnectionList[2]; } mangaDistributionIndex = mangaDistributionID.add(1); emit createDistributionEvent(mangaDistributionID, msg.sender, _diamondSupply, _goldSupply, _originalSupply, _ERC1155DiamondID, _ERC1155GoldID, _ERC1155OriginalID); return mangaDistributionID; } function mintRandomManga(uint _mangaDistributionID) public payable returns(uint){ uint price = mangaDistribution[_mangaDistributionID].price; require(msg.value == price, "PRICE_DISMATCH"); ownerBalance = ownerBalance.add(price); uint allowedMangaToMint = mangaDistribution[_mangaDistributionID].allowedAddressToMint[msg.sender]; require(allowedMangaToMint > uint(0), "MINT_NOT_ALLOWED"); mangaDistribution[_mangaDistributionID].allowedAddressToMint[msg.sender] = allowedMangaToMint.sub(uint(1)); uint mangaIDToAssign = getRandomMangaVersion(_mangaDistributionID); _mint(msg.sender, uint(mangaDistribution[_mangaDistributionID].ERC1155MangaIDs[mangaIDToAssign]), uint(1), bytes("0")); return mangaIDToAssign; } function withdrawOwnerBalance(address payable _to) public onlyOwner returns(bool){ uint balance = ownerBalance; ownerBalance = uint(0); (bool sent, ) = _to.call{value : balance}(""); require(sent, "ETHERS_NOT_SENT"); emit withdrawOwnerBalanceEvent(_to, balance); return true; } function batchDistribution(uint _mangaDistributionID, uint _mangaVersion, address[] memory _addressList, uint[] memory _quantityList) public onlyOwner returns(bool){ require(mangaDistributionIndex >= _mangaDistributionID, "INVALID_ID_REF"); require(uint(0) < _mangaVersion && _mangaVersion <= uint(mangaVersion.DIAMOND), "INVALID_MANGA_VERSION"); require(_addressList.length == _quantityList.length, "DATA_LENGTH_DISMATCH"); uint assigned; uint supply; uint total = uint(0); for(uint index = uint(0); index < _quantityList.length; index++){ require(_quantityList[index] > 0, "CANT_SET_ZERO_ELEMENTS"); total = total.add(_quantityList[index]); } if(_mangaVersion == uint(mangaVersion.ORIGINAL)) { supply = mangaDistribution[_mangaDistributionID].originalSupply; assigned = mangaDistribution[_mangaDistributionID].originalAssigned; mangaDistribution[_mangaDistributionID].originalAssigned = assigned.add(total); } if(_mangaVersion == uint(mangaVersion.GOLD)) { supply = mangaDistribution[_mangaDistributionID].goldSupply; assigned = mangaDistribution[_mangaDistributionID].goldAssigned; mangaDistribution[_mangaDistributionID].goldAssigned = assigned.add(total); } if(_mangaVersion == uint(mangaVersion.DIAMOND)) { supply = mangaDistribution[_mangaDistributionID].diamondSupply; assigned = mangaDistribution[_mangaDistributionID].diamondAssigned; mangaDistribution[_mangaDistributionID].diamondAssigned = assigned.add(total); } require(total <= supply.sub(assigned), "NOT_ENOUGH_MANGA"); uint allowedMint; uint[] memory tmpERC1155MangaIDsArray = new uint[](uint(3)); tmpERC1155MangaIDsArray[uint(mangaVersion.DIAMOND).sub(uint(1))] = mangaDistribution[_mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.DIAMOND)]; tmpERC1155MangaIDsArray[uint(mangaVersion.GOLD).sub(uint(1))] = mangaDistribution[_mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.GOLD)]; tmpERC1155MangaIDsArray[uint(mangaVersion.ORIGINAL).sub(uint(1))] = mangaDistribution[_mangaDistributionID].ERC1155MangaIDs[uint(mangaVersion.ORIGINAL)]; for(uint index = uint(0); index < _addressList.length; index++){ allowedMint = mangaDistribution[_mangaDistributionID].allowedAddressToMint[_addressList[index]]; require(allowedMint >= _quantityList[index], "NOT_ENOUGH_ALLOWED_MINT_FOR_SPECIFIC_ADDRESS"); mangaDistribution[_mangaDistributionID].allowedAddressToMint[_addressList[index]] = allowedMint.sub(_quantityList[index]); _mint(_addressList[index], tmpERC1155MangaIDsArray[_mangaVersion.sub(1)], _quantityList[index], bytes("0")); } return true; } function getDistributionMetaData(uint _mangaDistributionID) public view returns(uint, uint, uint, uint, uint, uint, uint){ return (mangaDistribution[_mangaDistributionID].price, mangaDistribution[_mangaDistributionID].diamondSupply, mangaDistribution[_mangaDistributionID].goldSupply, mangaDistribution[_mangaDistributionID].originalSupply, mangaDistribution[_mangaDistributionID].diamondAssigned, mangaDistribution[_mangaDistributionID].goldAssigned, mangaDistribution[_mangaDistributionID].originalAssigned); } function getAvailableMints(uint _mangaDistributionID, address _address) public view returns(uint){ return mangaDistribution[_mangaDistributionID].allowedAddressToMint[_address]; } function getERC1155MangaID(uint _mangaDistributionID, uint _mangaVersion) public view returns(uint){ return mangaDistribution[_mangaDistributionID].ERC1155MangaIDs[_mangaVersion]; } function deleteListOfDistribution(uint[] memory _distributionIDList) public onlyOwner returns(bool){ for(uint index = uint(0); index < _distributionIDList.length; index++){ delete mangaDistribution[_distributionIDList[index]]; } return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"IDDistribution","type":"uint256"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"diamondSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"goldSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"originalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ERC1155DiamondID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ERC1155GoldID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ERC1155OriginalID","type":"uint256"}],"name":"createDistributionEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawOwnerBalanceEvent","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mangaDistributionID","type":"uint256"},{"internalType":"uint256","name":"_mangaVersion","type":"uint256"},{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint256[]","name":"_quantityList","type":"uint256[]"}],"name":"batchDistribution","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"b","type":"bytes32"}],"name":"bytesToUint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_diamondSupply","type":"uint256"},{"internalType":"uint256","name":"_goldSupply","type":"uint256"},{"internalType":"uint256","name":"_originalSupply","type":"uint256"},{"internalType":"address[]","name":"_allowedAddressToMint","type":"address[]"},{"internalType":"uint256[]","name":"_quantityList","type":"uint256[]"},{"internalType":"uint256","name":"_ERC1155DiamondID","type":"uint256"},{"internalType":"uint256","name":"_ERC1155GoldID","type":"uint256"},{"internalType":"uint256","name":"_ERC1155OriginalID","type":"uint256"},{"internalType":"string[]","name":"IPFSOverrideConnectionList","type":"string[]"}],"name":"createMangaDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_distributionIDList","type":"uint256[]"}],"name":"deleteListOfDistribution","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mangaDistributionID","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getAvailableMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mangaDistributionID","type":"uint256"}],"name":"getDistributionMetaData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mangaDistributionID","type":"uint256"},{"internalType":"uint256","name":"_mangaVersion","type":"uint256"}],"name":"getERC1155MangaID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mangaDistributionIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mangaDistributionID","type":"uint256"}],"name":"mintRandomManga","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawOwnerBalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280601a81526020017f4d657461626f72672062792047696f76616e6e69204d6f747461000000000000815250609b90805190602001906200005192919062000066565b503480156200005f57600080fd5b506200017b565b828054620000749062000116565b90600052602060002090601f016020900481019282620000985760008555620000e4565b82601f10620000b357805160ff1916838001178555620000e4565b82800160010185558215620000e4579182015b82811115620000e3578251825591602001919060010190620000c6565b5b509050620000f39190620000f7565b5090565b5b8082111562000112576000816000905550600101620000f8565b5090565b600060028204905060018216806200012f57607f821691505b602082108114156200014657620001456200014c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615bfd806200018b6000396000f3fe6080604052600436106101295760003560e01c806367478a35116100ab5780638da5cb5b1161006f5780638da5cb5b1461045c578063a22cb46514610487578063cfc5a969146104b0578063e985e9c5146104ed578063f242432a1461052a578063f983edbd1461055357610129565b806367478a351461035d5780636cdd418c1461039a578063727b1897146103d75780638129fc1c1461041a578063832266ed1461043157610129565b80631e652d73116100f25780631e652d731461024d578063285a388f1461028a5780632eb2c2d6146102ba5780634e1273f4146102e357806350efd0f21461032057610129565b8062fdd58e1461012e57806301ffc9a71461016b57806306fdde03146101a85780630e89341c146101d35780631bc4491c14610210575b600080fd5b34801561013a57600080fd5b50610155600480360381019061015091906140a0565b610590565b6040516101629190614e6c565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d91906141b2565b61065a565b60405161019f9190614af4565b60405180910390f35b3480156101b457600080fd5b506101bd61073c565b6040516101ca9190614b2a565b60405180910390f35b3480156101df57600080fd5b506101fa60048036038101906101f59190614204565b6107ca565b6040516102079190614b2a565b60405180910390f35b34801561021c57600080fd5b5061023760048036038101906102329190614148565b61086f565b6040516102449190614af4565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190614269565b6109b9565b6040516102819190614e6c565b60405180910390f35b6102a4600480360381019061029f9190614204565b6109eb565b6040516102b19190614e6c565b60405180910390f35b3480156102c657600080fd5b506102e160048036038101906102dc9190613f16565b610beb565b005b3480156102ef57600080fd5b5061030a600480360381019061030591906140dc565b610c8c565b6040516103179190614a9b565b60405180910390f35b34801561032c57600080fd5b5061034760048036038101906103429190614338565b610e3d565b6040516103549190614e6c565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190613eb1565b61150e565b6040516103919190614af4565b60405180910390f35b3480156103a657600080fd5b506103c160048036038101906103bc919061422d565b6116b4565b6040516103ce9190614e6c565b60405180910390f35b3480156103e357600080fd5b506103fe60048036038101906103f99190614204565b611712565b6040516104119796959493929190614eb0565b60405180910390f35b34801561042657600080fd5b5061042f6117d7565b005b34801561043d57600080fd5b506104466118ea565b6040516104539190614e6c565b60405180910390f35b34801561046857600080fd5b506104716118f0565b60405161047e91906149be565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190614064565b611916565b005b3480156104bc57600080fd5b506104d760048036038101906104d29190614189565b61192c565b6040516104e49190614e6c565b60405180910390f35b3480156104f957600080fd5b50610514600480360381019061050f9190613eda565b6119ab565b6040516105219190614af4565b60405180910390f35b34801561053657600080fd5b50610551600480360381019061054c9190613fd5565b611a3f565b005b34801561055f57600080fd5b5061057a600480360381019061057591906142a5565b611ae0565b6040516105879190614af4565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f890614c0c565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610735575061073482612645565b5b9050919050565b609b8054610749906152ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610775906152ac565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b505050505081565b6060609d600083815260200190815260200160002080546107ea906152ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610816906152ac565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b50505050509050919050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f890614ccc565b60405180910390fd5b60005b82518110156109af57609c600084838151811061094a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006001820160009055600282016000905560038201600090556004820160009055600582016000905560068201600090556007820160009055505080806109a79061530f565b915050610904565b5060019050919050565b6000609c6000848152602001908152602001600020600801600083815260200190815260200160002054905092915050565b600080609c6000848152602001908152602001600020600101549050803414610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090614c2c565b60405180910390fd5b610a5e81609a546126af90919063ffffffff16565b609a819055506000609c600085815260200190815260200160002060000160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690614b6c565b60405180910390fd5b610b136001826126c590919063ffffffff16565b609c600086815260200190815260200160002060000160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000610b75856126db565b9050610be033609c600088815260200190815260200160002060080160008481526020019081526020016000205460016040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525061296e565b809350505050919050565b610bf3612b20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c395750610c3885610c33612b20565b6119ab565b5b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90614cac565b60405180910390fd5b610c858585858585612b28565b5050505050565b60608151835114610cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc990614e0c565b60405180910390fd5b6000835167ffffffffffffffff811115610d15577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d435781602001602082028036833780820191505090505b50905060005b8451811015610e3257610ddc858281518110610d8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610dcf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610590565b828281518110610e15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610e2b9061530f565b9050610d49565b508091505092915050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec690614ccc565b60405180910390fd5b6000610ef689610ee88c8e6126af90919063ffffffff16565b6126af90919063ffffffff16565b905060008111610f3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3290614cec565b60405180910390fd5b8651885114610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7690614bac565b60405180910390fd5b6000805b8851811015610ff457610fdf898281518110610fc8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151836126af90919063ffffffff16565b91508080610fec9061530f565b915050610f83565b50818114611037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102e90614dac565b60405180910390fd5b600060985490508d609c6000838152602001908152602001600020600101819055508c609c6000838152602001908152602001600020600201819055508b609c6000838152602001908152602001600020600301819055508a609c60008381526020019081526020016000206004018190555087609c600083815260200190815260200160002060080160006003808111156110fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555086609c6000838152602001908152602001600020600801600060026003811115611161577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555085609c60008381526020019081526020016000206008016000600160038111156111c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555060005b8a518110156112cf5789818151811061121d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609c600084815260200190815260200160002060000160008d8481518110611276577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806112c79061530f565b9150506111db565b506000609d60008a815260200190815260200160002080546112f0906152ac565b905014156113625784600081518110611332577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d60008a81526020019081526020016000209080519060200190611360929190613af8565b505b6000609d60008981526020019081526020016000208054611382906152ac565b905014156113f457846001815181106113c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d600089815260200190815260200160002090805190602001906113f2929190613af8565b505b6000609d60008881526020019081526020016000208054611414906152ac565b905014156114865784600281518110611456577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d60008881526020019081526020016000209080519060200190611484929190613af8565b505b61149a6001826126af90919063ffffffff16565b6098819055503373ffffffffffffffffffffffffffffffffffffffff167f284b4cc67078c87359dd1d52e338fcb293dec415ab4aa691893340ed25257cde828f8f8f8d8d8d6040516114f29796959493929190614eb0565b60405180910390a28093505050509a9950505050505050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159790614ccc565b60405180910390fd5b6000609a5490506000609a8190555060008373ffffffffffffffffffffffffffffffffffffffff16826040516115d5906149a9565b60006040518083038185875af1925050503d8060008114611612576040519150601f19603f3d011682016040523d82523d6000602084013e611617565b606091505b505090508061165b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165290614bec565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff167f883358c690ec4db7ac22c3d968b82161d86afa6eac861ecbea27d5f2676232ce836040516116a19190614e6c565b60405180910390a2600192505050919050565b6000609c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000806000806000609c600089815260200190815260200160002060010154609c60008a815260200190815260200160002060020154609c60008b815260200190815260200160002060030154609c60008c815260200190815260200160002060040154609c60008d815260200190815260200160002060050154609c60008e815260200190815260200160002060060154609c60008f8152602001908152602001600020600701549650965096509650965096509650919395979092949650565b60006117e36001612e99565b90508015611807576001600060016101000a81548160ff0219169083151502179055505b6118456040518060400160405280600181526020017f2300000000000000000000000000000000000000000000000000000000000000815250612f89565b33609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160988190555080156118e75760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516118de9190614b0f565b60405180910390a15b50565b60985481565b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611928611921612b20565b8383612fe4565b5050565b60008060005b602060ff168110156119a157838160208110611977577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff168261198c91906150a6565b915080806119999061530f565b915050611932565b5080915050919050565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a47612b20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a8d5750611a8c85611a87612b20565b6119ab565b5b611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac390614c4c565b60405180910390fd5b611ad98585858585613151565b5050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6990614ccc565b60405180910390fd5b846098541015611bb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bae90614c6c565b60405180910390fd5b836000108015611bff5750600380811115611bfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8411155b611c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3590614bcc565b60405180910390fd5b8151835114611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7990614bac565b60405180910390fd5b6000806000805b8551811015611d7d576000868281518110611ccd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015111611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614d6c565b60405180910390fd5b611d68868281518110611d51577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151836126af90919063ffffffff16565b91508080611d759061530f565b915050611c89565b5060016003811115611db8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611e1f57609c6000898152602001908152602001600020600401549150609c6000898152602001908152602001600020600701549250611e0481846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600701819055505b60026003811115611e59577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611ec057609c6000898152602001908152602001600020600301549150609c6000898152602001908152602001600020600601549250611ea581846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600601819055505b600380811115611ef9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611f6057609c6000898152602001908152602001600020600201549150609c6000898152602001908152602001600020600501549250611f4581846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600501819055505b611f7383836126c590919063ffffffff16565b811115611fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fac90614dcc565b60405180910390fd5b600080600367ffffffffffffffff811115611ff9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120275781602001602082028036833780820191505090505b509050609c60008b8152602001908152602001600020600801600060038081111561207b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816120d760016003808111156120c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b8151811061210e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050609c60008b815260200190815260200160002060080160006002600381111561216c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816121c96001600260038111156121bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b81518110612200577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050609c60008b815260200190815260200160002060080160006001600381111561225e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816122ba60018060038111156122ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b815181106122f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505060005b885181101561263357609c60008c815260200190815260200160002060000160008a838151811061235a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205492508781815181106123d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151831015612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990614d4c565b60405180910390fd5b61247588828151811061245e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151846126c590919063ffffffff16565b609c60008d815260200190815260200160002060000160008b84815181106124c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612620898281518110612548577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518361256560018e6126c590919063ffffffff16565b8151811061259c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518a84815181106125dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525061296e565b808061262b9061530f565b915050612300565b50600195505050505050949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081836126bd91906150a6565b905092915050565b600081836126d39190615187565b905092915050565b600080609c60008481526020019081526020016000206002015490506000609c60008581526020019081526020016000206003015490506000609c60008681526020019081526020016000206004015490506000609c60008781526020019081526020016000206005015490506000609c60008881526020019081526020016000206006015490506000609c600089815260200190815260200160002060070154905060006127a585612797888a6126af90919063ffffffff16565b6126af90919063ffffffff16565b905060006127e0836127d2866127c489876126c590919063ffffffff16565b6126c590919063ffffffff16565b6126c590919063ffffffff16565b9050600061280c6128036127fe6001856126c590919063ffffffff16565b6133f0565b8a8a8989613477565b9050600380811115612847577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81141561287d576128626001876126af90919063ffffffff16565b609c60008d8152602001908152602001600020600501819055505b600260038111156128b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8114156128ed576128d26001866126af90919063ffffffff16565b609c60008d8152602001908152602001600020600601819055505b60016003811115612927577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81141561295d576129426001856126af90919063ffffffff16565b609c60008d8152602001908152602001600020600701819055505b809950505050505050505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590614e4c565b60405180910390fd5b60006129e8612b20565b905060006129f585613590565b90506000612a0285613590565b9050612a1383600089858589613656565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a7391906150a6565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612af1929190614e87565b60405180910390a4612b088360008985858961365e565b612b1783600089898989613666565b50505050505050565b600033905090565b8151835114612b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6390614e2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390614c8c565b60405180910390fd5b6000612be6612b20565b9050612bf6818787878787613656565b60005b8451811015612df6576000858281518110612c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110612c82577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1b90614d2c565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ddb91906150a6565b9250508190555050505080612def9061530f565b9050612bf9565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e6d929190614abd565b60405180910390a4612e8381878787878761365e565b612e9181878787878761384d565b505050505050565b60008060019054906101000a900460ff1615612f105760018260ff16148015612ec85750612ec630613a34565b155b612f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efe90614d0c565b60405180910390fd5b60009050612f84565b8160ff1660008054906101000a900460ff1660ff1610612f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5c90614d0c565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff16612fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcf90614d8c565b60405180910390fd5b612fe181613a57565b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304a90614dec565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131449190614af4565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156131c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b890614c8c565b60405180910390fd5b60006131cb612b20565b905060006131d885613590565b905060006131e585613590565b90506131f5838989858589613656565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561328d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328490614d2c565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334491906150a6565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516133c1929190614e87565b60405180910390a46133d7848a8a86868a61365e565b6133e5848a8a8a8a8a613666565b505050505050505050565b600080611fe09050600061344733424330609760008154809291906134149061530f565b9190505560405160200161342c95949392919061494a565b6040516020818303038152906040528051906020012061192c565b905061346e826134608684613ab290919063ffffffff16565b613ac890919063ffffffff16565b92505050919050565b600080600061348f85886126c590919063ffffffff16565b905060006134a685886126c590919063ffffffff16565b9050818910156134ec576003808111156134e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b8882111580156134fb57508089105b1561353d576002600381111561353a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b888111613581576001600381111561357e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b82935050505095945050505050565b60606000600167ffffffffffffffff8111156135d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156136035781602001602082028036833780820191505090505b5090508281600081518110613641577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6136858473ffffffffffffffffffffffffffffffffffffffff16613a34565b15613845578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016136cb959493929190614a41565b602060405180830381600087803b1580156136e557600080fd5b505af192505050801561371657506040513d601f19601f8201168201806040525081019061371391906141db565b60015b6137bc57613722615442565b806308c379a0141561377f5750613737615aa7565b806137425750613781565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137769190614b2a565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b390614b4c565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383a90614b8c565b60405180910390fd5b505b505050505050565b61386c8473ffffffffffffffffffffffffffffffffffffffff16613a34565b15613a2c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016138b29594939291906149d9565b602060405180830381600087803b1580156138cc57600080fd5b505af19250505080156138fd57506040513d601f19601f820116820180604052508101906138fa91906141db565b60015b6139a357613909615442565b806308c379a01415613966575061391e615aa7565b806139295750613968565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395d9190614b2a565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399a90614b4c565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a2190614b8c565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9d90614d8c565b60405180910390fd5b613aaf81613ade565b50565b60008183613ac0919061512d565b905092915050565b60008183613ad691906150fc565b905092915050565b8060679080519060200190613af4929190613af8565b5050565b828054613b04906152ac565b90600052602060002090601f016020900481019282613b265760008555613b6d565b82601f10613b3f57805160ff1916838001178555613b6d565b82800160010185558215613b6d579182015b82811115613b6c578251825591602001919060010190613b51565b5b509050613b7a9190613b7e565b5090565b5b80821115613b97576000816000905550600101613b7f565b5090565b6000613bae613ba984614f44565b614f1f565b90508083825260208201905082856020860282011115613bcd57600080fd5b60005b85811015613bfd5781613be38882613d4c565b845260208401935060208301925050600181019050613bd0565b5050509392505050565b6000613c1a613c1584614f70565b614f1f565b9050808382526020820190508260005b85811015613c5a5781358501613c408882613e72565b845260208401935060208301925050600181019050613c2a565b5050509392505050565b6000613c77613c7284614f9c565b614f1f565b90508083825260208201905082856020860282011115613c9657600080fd5b60005b85811015613cc65781613cac8882613e9c565b845260208401935060208301925050600181019050613c99565b5050509392505050565b6000613ce3613cde84614fc8565b614f1f565b905082815260208101848484011115613cfb57600080fd5b613d0684828561526a565b509392505050565b6000613d21613d1c84614ff9565b614f1f565b905082815260208101848484011115613d3957600080fd5b613d4484828561526a565b509392505050565b600081359050613d5b81615b3d565b92915050565b600081359050613d7081615b54565b92915050565b600082601f830112613d8757600080fd5b8135613d97848260208601613b9b565b91505092915050565b600082601f830112613db157600080fd5b8135613dc1848260208601613c07565b91505092915050565b600082601f830112613ddb57600080fd5b8135613deb848260208601613c64565b91505092915050565b600081359050613e0381615b6b565b92915050565b600081359050613e1881615b82565b92915050565b600081359050613e2d81615b99565b92915050565b600081519050613e4281615b99565b92915050565b600082601f830112613e5957600080fd5b8135613e69848260208601613cd0565b91505092915050565b600082601f830112613e8357600080fd5b8135613e93848260208601613d0e565b91505092915050565b600081359050613eab81615bb0565b92915050565b600060208284031215613ec357600080fd5b6000613ed184828501613d61565b91505092915050565b60008060408385031215613eed57600080fd5b6000613efb85828601613d4c565b9250506020613f0c85828601613d4c565b9150509250929050565b600080600080600060a08688031215613f2e57600080fd5b6000613f3c88828901613d4c565b9550506020613f4d88828901613d4c565b945050604086013567ffffffffffffffff811115613f6a57600080fd5b613f7688828901613dca565b935050606086013567ffffffffffffffff811115613f9357600080fd5b613f9f88828901613dca565b925050608086013567ffffffffffffffff811115613fbc57600080fd5b613fc888828901613e48565b9150509295509295909350565b600080600080600060a08688031215613fed57600080fd5b6000613ffb88828901613d4c565b955050602061400c88828901613d4c565b945050604061401d88828901613e9c565b935050606061402e88828901613e9c565b925050608086013567ffffffffffffffff81111561404b57600080fd5b61405788828901613e48565b9150509295509295909350565b6000806040838503121561407757600080fd5b600061408585828601613d4c565b925050602061409685828601613df4565b9150509250929050565b600080604083850312156140b357600080fd5b60006140c185828601613d4c565b92505060206140d285828601613e9c565b9150509250929050565b600080604083850312156140ef57600080fd5b600083013567ffffffffffffffff81111561410957600080fd5b61411585828601613d76565b925050602083013567ffffffffffffffff81111561413257600080fd5b61413e85828601613dca565b9150509250929050565b60006020828403121561415a57600080fd5b600082013567ffffffffffffffff81111561417457600080fd5b61418084828501613dca565b91505092915050565b60006020828403121561419b57600080fd5b60006141a984828501613e09565b91505092915050565b6000602082840312156141c457600080fd5b60006141d284828501613e1e565b91505092915050565b6000602082840312156141ed57600080fd5b60006141fb84828501613e33565b91505092915050565b60006020828403121561421657600080fd5b600061422484828501613e9c565b91505092915050565b6000806040838503121561424057600080fd5b600061424e85828601613e9c565b925050602061425f85828601613d4c565b9150509250929050565b6000806040838503121561427c57600080fd5b600061428a85828601613e9c565b925050602061429b85828601613e9c565b9150509250929050565b600080600080608085870312156142bb57600080fd5b60006142c987828801613e9c565b94505060206142da87828801613e9c565b935050604085013567ffffffffffffffff8111156142f757600080fd5b61430387828801613d76565b925050606085013567ffffffffffffffff81111561432057600080fd5b61432c87828801613dca565b91505092959194509250565b6000806000806000806000806000806101408b8d03121561435857600080fd5b60006143668d828e01613e9c565b9a505060206143778d828e01613e9c565b99505060406143888d828e01613e9c565b98505060606143998d828e01613e9c565b97505060808b013567ffffffffffffffff8111156143b657600080fd5b6143c28d828e01613d76565b96505060a08b013567ffffffffffffffff8111156143df57600080fd5b6143eb8d828e01613dca565b95505060c06143fc8d828e01613e9c565b94505060e061440d8d828e01613e9c565b93505061010061441f8d828e01613e9c565b9250506101208b013567ffffffffffffffff81111561443d57600080fd5b6144498d828e01613da0565b9150509295989b9194979a5092959850565b60006144678383614915565b60208301905092915050565b61447c816151bb565b82525050565b61449361448e826151bb565b615358565b82525050565b60006144a48261503a565b6144ae8185615068565b93506144b98361502a565b8060005b838110156144ea5781516144d1888261445b565b97506144dc8361505b565b9250506001810190506144bd565b5085935050505092915050565b614500816151df565b82525050565b600061451182615045565b61451b8185615079565b935061452b818560208601615279565b61453481615464565b840191505092915050565b61454881615258565b82525050565b600061455982615050565b6145638185615095565b9350614573818560208601615279565b61457c81615464565b840191505092915050565b6000614594603483615095565b915061459f8261548f565b604082019050919050565b60006145b7601083615095565b91506145c2826154de565b602082019050919050565b60006145da602883615095565b91506145e582615507565b604082019050919050565b60006145fd601483615095565b915061460882615556565b602082019050919050565b6000614620601583615095565b915061462b8261557f565b602082019050919050565b6000614643600f83615095565b915061464e826155a8565b602082019050919050565b6000614666602b83615095565b9150614671826155d1565b604082019050919050565b6000614689600e83615095565b915061469482615620565b602082019050919050565b60006146ac602983615095565b91506146b782615649565b604082019050919050565b60006146cf600e83615095565b91506146da82615698565b602082019050919050565b60006146f2602583615095565b91506146fd826156c1565b604082019050919050565b6000614715603283615095565b915061472082615710565b604082019050919050565b6000614738602083615095565b91506147438261575f565b602082019050919050565b600061475b601a83615095565b915061476682615788565b602082019050919050565b600061477e602e83615095565b9150614789826157b1565b604082019050919050565b60006147a1602a83615095565b91506147ac82615800565b604082019050919050565b60006147c4602c83615095565b91506147cf8261584f565b604082019050919050565b60006147e7601683615095565b91506147f28261589e565b602082019050919050565b600061480a60008361508a565b9150614815826158c7565b600082019050919050565b600061482d602b83615095565b9150614838826158ca565b604082019050919050565b6000614850601883615095565b915061485b82615919565b602082019050919050565b6000614873601083615095565b915061487e82615942565b602082019050919050565b6000614896602983615095565b91506148a18261596b565b604082019050919050565b60006148b9602983615095565b91506148c4826159ba565b604082019050919050565b60006148dc602883615095565b91506148e782615a09565b604082019050919050565b60006148ff602183615095565b915061490a82615a58565b604082019050919050565b61491e81615241565b82525050565b61492d81615241565b82525050565b61494461493f82615241565b61537c565b82525050565b60006149568288614482565b6014820191506149668287614933565b6020820191506149768286614933565b6020820191506149868285614482565b6014820191506149968284614933565b6020820191508190509695505050505050565b60006149b4826147fd565b9150819050919050565b60006020820190506149d36000830184614473565b92915050565b600060a0820190506149ee6000830188614473565b6149fb6020830187614473565b8181036040830152614a0d8186614499565b90508181036060830152614a218185614499565b90508181036080830152614a358184614506565b90509695505050505050565b600060a082019050614a566000830188614473565b614a636020830187614473565b614a706040830186614924565b614a7d6060830185614924565b8181036080830152614a8f8184614506565b90509695505050505050565b60006020820190508181036000830152614ab58184614499565b905092915050565b60006040820190508181036000830152614ad78185614499565b90508181036020830152614aeb8184614499565b90509392505050565b6000602082019050614b0960008301846144f7565b92915050565b6000602082019050614b24600083018461453f565b92915050565b60006020820190508181036000830152614b44818461454e565b905092915050565b60006020820190508181036000830152614b6581614587565b9050919050565b60006020820190508181036000830152614b85816145aa565b9050919050565b60006020820190508181036000830152614ba5816145cd565b9050919050565b60006020820190508181036000830152614bc5816145f0565b9050919050565b60006020820190508181036000830152614be581614613565b9050919050565b60006020820190508181036000830152614c0581614636565b9050919050565b60006020820190508181036000830152614c2581614659565b9050919050565b60006020820190508181036000830152614c458161467c565b9050919050565b60006020820190508181036000830152614c658161469f565b9050919050565b60006020820190508181036000830152614c85816146c2565b9050919050565b60006020820190508181036000830152614ca5816146e5565b9050919050565b60006020820190508181036000830152614cc581614708565b9050919050565b60006020820190508181036000830152614ce58161472b565b9050919050565b60006020820190508181036000830152614d058161474e565b9050919050565b60006020820190508181036000830152614d2581614771565b9050919050565b60006020820190508181036000830152614d4581614794565b9050919050565b60006020820190508181036000830152614d65816147b7565b9050919050565b60006020820190508181036000830152614d85816147da565b9050919050565b60006020820190508181036000830152614da581614820565b9050919050565b60006020820190508181036000830152614dc581614843565b9050919050565b60006020820190508181036000830152614de581614866565b9050919050565b60006020820190508181036000830152614e0581614889565b9050919050565b60006020820190508181036000830152614e25816148ac565b9050919050565b60006020820190508181036000830152614e45816148cf565b9050919050565b60006020820190508181036000830152614e65816148f2565b9050919050565b6000602082019050614e816000830184614924565b92915050565b6000604082019050614e9c6000830185614924565b614ea96020830184614924565b9392505050565b600060e082019050614ec5600083018a614924565b614ed26020830189614924565b614edf6040830188614924565b614eec6060830187614924565b614ef96080830186614924565b614f0660a0830185614924565b614f1360c0830184614924565b98975050505050505050565b6000614f29614f3a565b9050614f3582826152de565b919050565b6000604051905090565b600067ffffffffffffffff821115614f5f57614f5e615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f8b57614f8a615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614fb757614fb6615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614fe357614fe2615413565b5b614fec82615464565b9050602081019050919050565b600067ffffffffffffffff82111561501457615013615413565b5b61501d82615464565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006150b182615241565b91506150bc83615241565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150f1576150f0615386565b5b828201905092915050565b600061510782615241565b915061511283615241565b925082615122576151216153b5565b5b828204905092915050565b600061513882615241565b915061514383615241565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561517c5761517b615386565b5b828202905092915050565b600061519282615241565b915061519d83615241565b9250828210156151b0576151af615386565b5b828203905092915050565b60006151c682615221565b9050919050565b60006151d882615221565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006152638261524b565b9050919050565b82818337600083830152505050565b60005b8381101561529757808201518184015260208101905061527c565b838111156152a6576000848401525b50505050565b600060028204905060018216806152c457607f821691505b602082108114156152d8576152d76153e4565b5b50919050565b6152e782615464565b810181811067ffffffffffffffff8211171561530657615305615413565b5b80604052505050565b600061531a82615241565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561534d5761534c615386565b5b600182019050919050565b60006153638261536a565b9050919050565b600061537582615475565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156154615760046000803e61545e600051615482565b90505b90565b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4d494e545f4e4f545f414c4c4f57454400000000000000000000000000000000600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f444154415f4c454e4754485f4449534d41544348000000000000000000000000600082015250565b7f494e56414c49445f4d414e47415f56455253494f4e0000000000000000000000600082015250565b7f4554484552535f4e4f545f53454e540000000000000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f50524943455f4449534d41544348000000000000000000000000000000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f494e56414c49445f49445f524546000000000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4f4e4c595f4f574e45525f43414e5f52554e5f544849535f46554e4354494f4e600082015250565b7f43414e545f5345545f4e554c4c5f444953545249425554494f4e000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4e4f545f454e4f5547485f414c4c4f5745445f4d494e545f464f525f5350454360008201527f494649435f414444524553530000000000000000000000000000000000000000602082015250565b7f43414e545f5345545f5a45524f5f454c454d454e545300000000000000000000600082015250565b50565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f5155414e544954595f4c454e4754485f4449534d415443480000000000000000600082015250565b7f4e4f545f454e4f5547485f4d414e474100000000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d1015615ab757615b3a565b615abf614f3a565b60043d036004823e80513d602482011167ffffffffffffffff82111715615ae7575050615b3a565b808201805167ffffffffffffffff811115615b055750505050615b3a565b80602083010160043d038501811115615b22575050505050615b3a565b615b31826020018501866152de565b82955050505050505b90565b615b46816151bb565b8114615b5157600080fd5b50565b615b5d816151cd565b8114615b6857600080fd5b50565b615b74816151df565b8114615b7f57600080fd5b50565b615b8b816151eb565b8114615b9657600080fd5b50565b615ba2816151f5565b8114615bad57600080fd5b50565b615bb981615241565b8114615bc457600080fd5b5056fea264697066735822122010ac0be6dc0c3b6dfb6f7d5b10b3285c85092586ed8e35b55975917debb8837864736f6c63430008030033
Deployed Bytecode
0x6080604052600436106101295760003560e01c806367478a35116100ab5780638da5cb5b1161006f5780638da5cb5b1461045c578063a22cb46514610487578063cfc5a969146104b0578063e985e9c5146104ed578063f242432a1461052a578063f983edbd1461055357610129565b806367478a351461035d5780636cdd418c1461039a578063727b1897146103d75780638129fc1c1461041a578063832266ed1461043157610129565b80631e652d73116100f25780631e652d731461024d578063285a388f1461028a5780632eb2c2d6146102ba5780634e1273f4146102e357806350efd0f21461032057610129565b8062fdd58e1461012e57806301ffc9a71461016b57806306fdde03146101a85780630e89341c146101d35780631bc4491c14610210575b600080fd5b34801561013a57600080fd5b50610155600480360381019061015091906140a0565b610590565b6040516101629190614e6c565b60405180910390f35b34801561017757600080fd5b50610192600480360381019061018d91906141b2565b61065a565b60405161019f9190614af4565b60405180910390f35b3480156101b457600080fd5b506101bd61073c565b6040516101ca9190614b2a565b60405180910390f35b3480156101df57600080fd5b506101fa60048036038101906101f59190614204565b6107ca565b6040516102079190614b2a565b60405180910390f35b34801561021c57600080fd5b5061023760048036038101906102329190614148565b61086f565b6040516102449190614af4565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190614269565b6109b9565b6040516102819190614e6c565b60405180910390f35b6102a4600480360381019061029f9190614204565b6109eb565b6040516102b19190614e6c565b60405180910390f35b3480156102c657600080fd5b506102e160048036038101906102dc9190613f16565b610beb565b005b3480156102ef57600080fd5b5061030a600480360381019061030591906140dc565b610c8c565b6040516103179190614a9b565b60405180910390f35b34801561032c57600080fd5b5061034760048036038101906103429190614338565b610e3d565b6040516103549190614e6c565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190613eb1565b61150e565b6040516103919190614af4565b60405180910390f35b3480156103a657600080fd5b506103c160048036038101906103bc919061422d565b6116b4565b6040516103ce9190614e6c565b60405180910390f35b3480156103e357600080fd5b506103fe60048036038101906103f99190614204565b611712565b6040516104119796959493929190614eb0565b60405180910390f35b34801561042657600080fd5b5061042f6117d7565b005b34801561043d57600080fd5b506104466118ea565b6040516104539190614e6c565b60405180910390f35b34801561046857600080fd5b506104716118f0565b60405161047e91906149be565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190614064565b611916565b005b3480156104bc57600080fd5b506104d760048036038101906104d29190614189565b61192c565b6040516104e49190614e6c565b60405180910390f35b3480156104f957600080fd5b50610514600480360381019061050f9190613eda565b6119ab565b6040516105219190614af4565b60405180910390f35b34801561053657600080fd5b50610551600480360381019061054c9190613fd5565b611a3f565b005b34801561055f57600080fd5b5061057a600480360381019061057591906142a5565b611ae0565b6040516105879190614af4565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610601576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f890614c0c565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610735575061073482612645565b5b9050919050565b609b8054610749906152ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610775906152ac565b80156107c25780601f10610797576101008083540402835291602001916107c2565b820191906000526020600020905b8154815290600101906020018083116107a557829003601f168201915b505050505081565b6060609d600083815260200190815260200160002080546107ea906152ac565b80601f0160208091040260200160405190810160405280929190818152602001828054610816906152ac565b80156108635780601f1061083857610100808354040283529160200191610863565b820191906000526020600020905b81548152906001019060200180831161084657829003601f168201915b50505050509050919050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f890614ccc565b60405180910390fd5b60005b82518110156109af57609c600084838151811061094a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006001820160009055600282016000905560038201600090556004820160009055600582016000905560068201600090556007820160009055505080806109a79061530f565b915050610904565b5060019050919050565b6000609c6000848152602001908152602001600020600801600083815260200190815260200160002054905092915050565b600080609c6000848152602001908152602001600020600101549050803414610a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4090614c2c565b60405180910390fd5b610a5e81609a546126af90919063ffffffff16565b609a819055506000609c600085815260200190815260200160002060000160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690614b6c565b60405180910390fd5b610b136001826126c590919063ffffffff16565b609c600086815260200190815260200160002060000160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000610b75856126db565b9050610be033609c600088815260200190815260200160002060080160008481526020019081526020016000205460016040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525061296e565b809350505050919050565b610bf3612b20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c395750610c3885610c33612b20565b6119ab565b5b610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90614cac565b60405180910390fd5b610c858585858585612b28565b5050505050565b60608151835114610cd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc990614e0c565b60405180910390fd5b6000835167ffffffffffffffff811115610d15577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d435781602001602082028036833780820191505090505b50905060005b8451811015610e3257610ddc858281518110610d8e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610dcf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610590565b828281518110610e15577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610e2b9061530f565b9050610d49565b508091505092915050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec690614ccc565b60405180910390fd5b6000610ef689610ee88c8e6126af90919063ffffffff16565b6126af90919063ffffffff16565b905060008111610f3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3290614cec565b60405180910390fd5b8651885114610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7690614bac565b60405180910390fd5b6000805b8851811015610ff457610fdf898281518110610fc8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151836126af90919063ffffffff16565b91508080610fec9061530f565b915050610f83565b50818114611037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102e90614dac565b60405180910390fd5b600060985490508d609c6000838152602001908152602001600020600101819055508c609c6000838152602001908152602001600020600201819055508b609c6000838152602001908152602001600020600301819055508a609c60008381526020019081526020016000206004018190555087609c600083815260200190815260200160002060080160006003808111156110fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555086609c6000838152602001908152602001600020600801600060026003811115611161577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555085609c60008381526020019081526020016000206008016000600160038111156111c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81526020019081526020016000208190555060005b8a518110156112cf5789818151811061121d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609c600084815260200190815260200160002060000160008d8481518110611276577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806112c79061530f565b9150506111db565b506000609d60008a815260200190815260200160002080546112f0906152ac565b905014156113625784600081518110611332577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d60008a81526020019081526020016000209080519060200190611360929190613af8565b505b6000609d60008981526020019081526020016000208054611382906152ac565b905014156113f457846001815181106113c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d600089815260200190815260200160002090805190602001906113f2929190613af8565b505b6000609d60008881526020019081526020016000208054611414906152ac565b905014156114865784600281518110611456577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151609d60008881526020019081526020016000209080519060200190611484929190613af8565b505b61149a6001826126af90919063ffffffff16565b6098819055503373ffffffffffffffffffffffffffffffffffffffff167f284b4cc67078c87359dd1d52e338fcb293dec415ab4aa691893340ed25257cde828f8f8f8d8d8d6040516114f29796959493929190614eb0565b60405180910390a28093505050509a9950505050505050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159790614ccc565b60405180910390fd5b6000609a5490506000609a8190555060008373ffffffffffffffffffffffffffffffffffffffff16826040516115d5906149a9565b60006040518083038185875af1925050503d8060008114611612576040519150601f19603f3d011682016040523d82523d6000602084013e611617565b606091505b505090508061165b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165290614bec565b60405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff167f883358c690ec4db7ac22c3d968b82161d86afa6eac861ecbea27d5f2676232ce836040516116a19190614e6c565b60405180910390a2600192505050919050565b6000609c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000806000806000609c600089815260200190815260200160002060010154609c60008a815260200190815260200160002060020154609c60008b815260200190815260200160002060030154609c60008c815260200190815260200160002060040154609c60008d815260200190815260200160002060050154609c60008e815260200190815260200160002060060154609c60008f8152602001908152602001600020600701549650965096509650965096509650919395979092949650565b60006117e36001612e99565b90508015611807576001600060016101000a81548160ff0219169083151502179055505b6118456040518060400160405280600181526020017f2300000000000000000000000000000000000000000000000000000000000000815250612f89565b33609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160988190555080156118e75760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516118de9190614b0f565b60405180910390a15b50565b60985481565b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611928611921612b20565b8383612fe4565b5050565b60008060005b602060ff168110156119a157838160208110611977577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b60f81c60ff168261198c91906150a6565b915080806119999061530f565b915050611932565b5080915050919050565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a47612b20565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611a8d5750611a8c85611a87612b20565b6119ab565b5b611acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac390614c4c565b60405180910390fd5b611ad98585858585613151565b5050505050565b60003373ffffffffffffffffffffffffffffffffffffffff16609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6990614ccc565b60405180910390fd5b846098541015611bb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bae90614c6c565b60405180910390fd5b836000108015611bff5750600380811115611bfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8411155b611c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3590614bcc565b60405180910390fd5b8151835114611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7990614bac565b60405180910390fd5b6000806000805b8551811015611d7d576000868281518110611ccd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015111611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614d6c565b60405180910390fd5b611d68868281518110611d51577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151836126af90919063ffffffff16565b91508080611d759061530f565b915050611c89565b5060016003811115611db8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611e1f57609c6000898152602001908152602001600020600401549150609c6000898152602001908152602001600020600701549250611e0481846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600701819055505b60026003811115611e59577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611ec057609c6000898152602001908152602001600020600301549150609c6000898152602001908152602001600020600601549250611ea581846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600601819055505b600380811115611ef9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b871415611f6057609c6000898152602001908152602001600020600201549150609c6000898152602001908152602001600020600501549250611f4581846126af90919063ffffffff16565b609c60008a8152602001908152602001600020600501819055505b611f7383836126c590919063ffffffff16565b811115611fb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fac90614dcc565b60405180910390fd5b600080600367ffffffffffffffff811115611ff9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156120275781602001602082028036833780820191505090505b509050609c60008b8152602001908152602001600020600801600060038081111561207b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816120d760016003808111156120c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b8151811061210e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050609c60008b815260200190815260200160002060080160006002600381111561216c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816121c96001600260038111156121bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b81518110612200577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050609c60008b815260200190815260200160002060080160006001600381111561225e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054816122ba60018060038111156122ac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6126c590919063ffffffff16565b815181106122f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505060005b885181101561263357609c60008c815260200190815260200160002060000160008a838151811061235a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205492508781815181106123d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151831015612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990614d4c565b60405180910390fd5b61247588828151811061245e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151846126c590919063ffffffff16565b609c60008d815260200190815260200160002060000160008b84815181106124c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612620898281518110612548577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518361256560018e6126c590919063ffffffff16565b8151811061259c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518a84815181106125dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525061296e565b808061262b9061530f565b915050612300565b50600195505050505050949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081836126bd91906150a6565b905092915050565b600081836126d39190615187565b905092915050565b600080609c60008481526020019081526020016000206002015490506000609c60008581526020019081526020016000206003015490506000609c60008681526020019081526020016000206004015490506000609c60008781526020019081526020016000206005015490506000609c60008881526020019081526020016000206006015490506000609c600089815260200190815260200160002060070154905060006127a585612797888a6126af90919063ffffffff16565b6126af90919063ffffffff16565b905060006127e0836127d2866127c489876126c590919063ffffffff16565b6126c590919063ffffffff16565b6126c590919063ffffffff16565b9050600061280c6128036127fe6001856126c590919063ffffffff16565b6133f0565b8a8a8989613477565b9050600380811115612847577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81141561287d576128626001876126af90919063ffffffff16565b609c60008d8152602001908152602001600020600501819055505b600260038111156128b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8114156128ed576128d26001866126af90919063ffffffff16565b609c60008d8152602001908152602001600020600601819055505b60016003811115612927577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81141561295d576129426001856126af90919063ffffffff16565b609c60008d8152602001908152602001600020600701819055505b809950505050505050505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590614e4c565b60405180910390fd5b60006129e8612b20565b905060006129f585613590565b90506000612a0285613590565b9050612a1383600089858589613656565b846065600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a7391906150a6565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612af1929190614e87565b60405180910390a4612b088360008985858961365e565b612b1783600089898989613666565b50505050505050565b600033905090565b8151835114612b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6390614e2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390614c8c565b60405180910390fd5b6000612be6612b20565b9050612bf6818787878787613656565b60005b8451811015612df6576000858281518110612c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110612c82577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1b90614d2c565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ddb91906150a6565b9250508190555050505080612def9061530f565b9050612bf9565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e6d929190614abd565b60405180910390a4612e8381878787878761365e565b612e9181878787878761384d565b505050505050565b60008060019054906101000a900460ff1615612f105760018260ff16148015612ec85750612ec630613a34565b155b612f07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efe90614d0c565b60405180910390fd5b60009050612f84565b8160ff1660008054906101000a900460ff1660ff1610612f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5c90614d0c565b60405180910390fd5b816000806101000a81548160ff021916908360ff160217905550600190505b919050565b600060019054906101000a900460ff16612fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcf90614d8c565b60405180910390fd5b612fe181613a57565b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304a90614dec565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131449190614af4565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156131c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131b890614c8c565b60405180910390fd5b60006131cb612b20565b905060006131d885613590565b905060006131e585613590565b90506131f5838989858589613656565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561328d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161328490614d2c565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461334491906150a6565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516133c1929190614e87565b60405180910390a46133d7848a8a86868a61365e565b6133e5848a8a8a8a8a613666565b505050505050505050565b600080611fe09050600061344733424330609760008154809291906134149061530f565b9190505560405160200161342c95949392919061494a565b6040516020818303038152906040528051906020012061192c565b905061346e826134608684613ab290919063ffffffff16565b613ac890919063ffffffff16565b92505050919050565b600080600061348f85886126c590919063ffffffff16565b905060006134a685886126c590919063ffffffff16565b9050818910156134ec576003808111156134e9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b8882111580156134fb57508089105b1561353d576002600381111561353a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b888111613581576001600381111561357e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b92505b82935050505095945050505050565b60606000600167ffffffffffffffff8111156135d5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156136035781602001602082028036833780820191505090505b5090508281600081518110613641577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6136858473ffffffffffffffffffffffffffffffffffffffff16613a34565b15613845578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016136cb959493929190614a41565b602060405180830381600087803b1580156136e557600080fd5b505af192505050801561371657506040513d601f19601f8201168201806040525081019061371391906141db565b60015b6137bc57613722615442565b806308c379a0141561377f5750613737615aa7565b806137425750613781565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137769190614b2a565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b390614b4c565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383a90614b8c565b60405180910390fd5b505b505050505050565b61386c8473ffffffffffffffffffffffffffffffffffffffff16613a34565b15613a2c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016138b29594939291906149d9565b602060405180830381600087803b1580156138cc57600080fd5b505af19250505080156138fd57506040513d601f19601f820116820180604052508101906138fa91906141db565b60015b6139a357613909615442565b806308c379a01415613966575061391e615aa7565b806139295750613968565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395d9190614b2a565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399a90614b4c565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a2190614b8c565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16613aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9d90614d8c565b60405180910390fd5b613aaf81613ade565b50565b60008183613ac0919061512d565b905092915050565b60008183613ad691906150fc565b905092915050565b8060679080519060200190613af4929190613af8565b5050565b828054613b04906152ac565b90600052602060002090601f016020900481019282613b265760008555613b6d565b82601f10613b3f57805160ff1916838001178555613b6d565b82800160010185558215613b6d579182015b82811115613b6c578251825591602001919060010190613b51565b5b509050613b7a9190613b7e565b5090565b5b80821115613b97576000816000905550600101613b7f565b5090565b6000613bae613ba984614f44565b614f1f565b90508083825260208201905082856020860282011115613bcd57600080fd5b60005b85811015613bfd5781613be38882613d4c565b845260208401935060208301925050600181019050613bd0565b5050509392505050565b6000613c1a613c1584614f70565b614f1f565b9050808382526020820190508260005b85811015613c5a5781358501613c408882613e72565b845260208401935060208301925050600181019050613c2a565b5050509392505050565b6000613c77613c7284614f9c565b614f1f565b90508083825260208201905082856020860282011115613c9657600080fd5b60005b85811015613cc65781613cac8882613e9c565b845260208401935060208301925050600181019050613c99565b5050509392505050565b6000613ce3613cde84614fc8565b614f1f565b905082815260208101848484011115613cfb57600080fd5b613d0684828561526a565b509392505050565b6000613d21613d1c84614ff9565b614f1f565b905082815260208101848484011115613d3957600080fd5b613d4484828561526a565b509392505050565b600081359050613d5b81615b3d565b92915050565b600081359050613d7081615b54565b92915050565b600082601f830112613d8757600080fd5b8135613d97848260208601613b9b565b91505092915050565b600082601f830112613db157600080fd5b8135613dc1848260208601613c07565b91505092915050565b600082601f830112613ddb57600080fd5b8135613deb848260208601613c64565b91505092915050565b600081359050613e0381615b6b565b92915050565b600081359050613e1881615b82565b92915050565b600081359050613e2d81615b99565b92915050565b600081519050613e4281615b99565b92915050565b600082601f830112613e5957600080fd5b8135613e69848260208601613cd0565b91505092915050565b600082601f830112613e8357600080fd5b8135613e93848260208601613d0e565b91505092915050565b600081359050613eab81615bb0565b92915050565b600060208284031215613ec357600080fd5b6000613ed184828501613d61565b91505092915050565b60008060408385031215613eed57600080fd5b6000613efb85828601613d4c565b9250506020613f0c85828601613d4c565b9150509250929050565b600080600080600060a08688031215613f2e57600080fd5b6000613f3c88828901613d4c565b9550506020613f4d88828901613d4c565b945050604086013567ffffffffffffffff811115613f6a57600080fd5b613f7688828901613dca565b935050606086013567ffffffffffffffff811115613f9357600080fd5b613f9f88828901613dca565b925050608086013567ffffffffffffffff811115613fbc57600080fd5b613fc888828901613e48565b9150509295509295909350565b600080600080600060a08688031215613fed57600080fd5b6000613ffb88828901613d4c565b955050602061400c88828901613d4c565b945050604061401d88828901613e9c565b935050606061402e88828901613e9c565b925050608086013567ffffffffffffffff81111561404b57600080fd5b61405788828901613e48565b9150509295509295909350565b6000806040838503121561407757600080fd5b600061408585828601613d4c565b925050602061409685828601613df4565b9150509250929050565b600080604083850312156140b357600080fd5b60006140c185828601613d4c565b92505060206140d285828601613e9c565b9150509250929050565b600080604083850312156140ef57600080fd5b600083013567ffffffffffffffff81111561410957600080fd5b61411585828601613d76565b925050602083013567ffffffffffffffff81111561413257600080fd5b61413e85828601613dca565b9150509250929050565b60006020828403121561415a57600080fd5b600082013567ffffffffffffffff81111561417457600080fd5b61418084828501613dca565b91505092915050565b60006020828403121561419b57600080fd5b60006141a984828501613e09565b91505092915050565b6000602082840312156141c457600080fd5b60006141d284828501613e1e565b91505092915050565b6000602082840312156141ed57600080fd5b60006141fb84828501613e33565b91505092915050565b60006020828403121561421657600080fd5b600061422484828501613e9c565b91505092915050565b6000806040838503121561424057600080fd5b600061424e85828601613e9c565b925050602061425f85828601613d4c565b9150509250929050565b6000806040838503121561427c57600080fd5b600061428a85828601613e9c565b925050602061429b85828601613e9c565b9150509250929050565b600080600080608085870312156142bb57600080fd5b60006142c987828801613e9c565b94505060206142da87828801613e9c565b935050604085013567ffffffffffffffff8111156142f757600080fd5b61430387828801613d76565b925050606085013567ffffffffffffffff81111561432057600080fd5b61432c87828801613dca565b91505092959194509250565b6000806000806000806000806000806101408b8d03121561435857600080fd5b60006143668d828e01613e9c565b9a505060206143778d828e01613e9c565b99505060406143888d828e01613e9c565b98505060606143998d828e01613e9c565b97505060808b013567ffffffffffffffff8111156143b657600080fd5b6143c28d828e01613d76565b96505060a08b013567ffffffffffffffff8111156143df57600080fd5b6143eb8d828e01613dca565b95505060c06143fc8d828e01613e9c565b94505060e061440d8d828e01613e9c565b93505061010061441f8d828e01613e9c565b9250506101208b013567ffffffffffffffff81111561443d57600080fd5b6144498d828e01613da0565b9150509295989b9194979a5092959850565b60006144678383614915565b60208301905092915050565b61447c816151bb565b82525050565b61449361448e826151bb565b615358565b82525050565b60006144a48261503a565b6144ae8185615068565b93506144b98361502a565b8060005b838110156144ea5781516144d1888261445b565b97506144dc8361505b565b9250506001810190506144bd565b5085935050505092915050565b614500816151df565b82525050565b600061451182615045565b61451b8185615079565b935061452b818560208601615279565b61453481615464565b840191505092915050565b61454881615258565b82525050565b600061455982615050565b6145638185615095565b9350614573818560208601615279565b61457c81615464565b840191505092915050565b6000614594603483615095565b915061459f8261548f565b604082019050919050565b60006145b7601083615095565b91506145c2826154de565b602082019050919050565b60006145da602883615095565b91506145e582615507565b604082019050919050565b60006145fd601483615095565b915061460882615556565b602082019050919050565b6000614620601583615095565b915061462b8261557f565b602082019050919050565b6000614643600f83615095565b915061464e826155a8565b602082019050919050565b6000614666602b83615095565b9150614671826155d1565b604082019050919050565b6000614689600e83615095565b915061469482615620565b602082019050919050565b60006146ac602983615095565b91506146b782615649565b604082019050919050565b60006146cf600e83615095565b91506146da82615698565b602082019050919050565b60006146f2602583615095565b91506146fd826156c1565b604082019050919050565b6000614715603283615095565b915061472082615710565b604082019050919050565b6000614738602083615095565b91506147438261575f565b602082019050919050565b600061475b601a83615095565b915061476682615788565b602082019050919050565b600061477e602e83615095565b9150614789826157b1565b604082019050919050565b60006147a1602a83615095565b91506147ac82615800565b604082019050919050565b60006147c4602c83615095565b91506147cf8261584f565b604082019050919050565b60006147e7601683615095565b91506147f28261589e565b602082019050919050565b600061480a60008361508a565b9150614815826158c7565b600082019050919050565b600061482d602b83615095565b9150614838826158ca565b604082019050919050565b6000614850601883615095565b915061485b82615919565b602082019050919050565b6000614873601083615095565b915061487e82615942565b602082019050919050565b6000614896602983615095565b91506148a18261596b565b604082019050919050565b60006148b9602983615095565b91506148c4826159ba565b604082019050919050565b60006148dc602883615095565b91506148e782615a09565b604082019050919050565b60006148ff602183615095565b915061490a82615a58565b604082019050919050565b61491e81615241565b82525050565b61492d81615241565b82525050565b61494461493f82615241565b61537c565b82525050565b60006149568288614482565b6014820191506149668287614933565b6020820191506149768286614933565b6020820191506149868285614482565b6014820191506149968284614933565b6020820191508190509695505050505050565b60006149b4826147fd565b9150819050919050565b60006020820190506149d36000830184614473565b92915050565b600060a0820190506149ee6000830188614473565b6149fb6020830187614473565b8181036040830152614a0d8186614499565b90508181036060830152614a218185614499565b90508181036080830152614a358184614506565b90509695505050505050565b600060a082019050614a566000830188614473565b614a636020830187614473565b614a706040830186614924565b614a7d6060830185614924565b8181036080830152614a8f8184614506565b90509695505050505050565b60006020820190508181036000830152614ab58184614499565b905092915050565b60006040820190508181036000830152614ad78185614499565b90508181036020830152614aeb8184614499565b90509392505050565b6000602082019050614b0960008301846144f7565b92915050565b6000602082019050614b24600083018461453f565b92915050565b60006020820190508181036000830152614b44818461454e565b905092915050565b60006020820190508181036000830152614b6581614587565b9050919050565b60006020820190508181036000830152614b85816145aa565b9050919050565b60006020820190508181036000830152614ba5816145cd565b9050919050565b60006020820190508181036000830152614bc5816145f0565b9050919050565b60006020820190508181036000830152614be581614613565b9050919050565b60006020820190508181036000830152614c0581614636565b9050919050565b60006020820190508181036000830152614c2581614659565b9050919050565b60006020820190508181036000830152614c458161467c565b9050919050565b60006020820190508181036000830152614c658161469f565b9050919050565b60006020820190508181036000830152614c85816146c2565b9050919050565b60006020820190508181036000830152614ca5816146e5565b9050919050565b60006020820190508181036000830152614cc581614708565b9050919050565b60006020820190508181036000830152614ce58161472b565b9050919050565b60006020820190508181036000830152614d058161474e565b9050919050565b60006020820190508181036000830152614d2581614771565b9050919050565b60006020820190508181036000830152614d4581614794565b9050919050565b60006020820190508181036000830152614d65816147b7565b9050919050565b60006020820190508181036000830152614d85816147da565b9050919050565b60006020820190508181036000830152614da581614820565b9050919050565b60006020820190508181036000830152614dc581614843565b9050919050565b60006020820190508181036000830152614de581614866565b9050919050565b60006020820190508181036000830152614e0581614889565b9050919050565b60006020820190508181036000830152614e25816148ac565b9050919050565b60006020820190508181036000830152614e45816148cf565b9050919050565b60006020820190508181036000830152614e65816148f2565b9050919050565b6000602082019050614e816000830184614924565b92915050565b6000604082019050614e9c6000830185614924565b614ea96020830184614924565b9392505050565b600060e082019050614ec5600083018a614924565b614ed26020830189614924565b614edf6040830188614924565b614eec6060830187614924565b614ef96080830186614924565b614f0660a0830185614924565b614f1360c0830184614924565b98975050505050505050565b6000614f29614f3a565b9050614f3582826152de565b919050565b6000604051905090565b600067ffffffffffffffff821115614f5f57614f5e615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f8b57614f8a615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614fb757614fb6615413565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614fe357614fe2615413565b5b614fec82615464565b9050602081019050919050565b600067ffffffffffffffff82111561501457615013615413565b5b61501d82615464565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006150b182615241565b91506150bc83615241565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156150f1576150f0615386565b5b828201905092915050565b600061510782615241565b915061511283615241565b925082615122576151216153b5565b5b828204905092915050565b600061513882615241565b915061514383615241565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561517c5761517b615386565b5b828202905092915050565b600061519282615241565b915061519d83615241565b9250828210156151b0576151af615386565b5b828203905092915050565b60006151c682615221565b9050919050565b60006151d882615221565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006152638261524b565b9050919050565b82818337600083830152505050565b60005b8381101561529757808201518184015260208101905061527c565b838111156152a6576000848401525b50505050565b600060028204905060018216806152c457607f821691505b602082108114156152d8576152d76153e4565b5b50919050565b6152e782615464565b810181811067ffffffffffffffff8211171561530657615305615413565b5b80604052505050565b600061531a82615241565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561534d5761534c615386565b5b600182019050919050565b60006153638261536a565b9050919050565b600061537582615475565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156154615760046000803e61545e600051615482565b90505b90565b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4d494e545f4e4f545f414c4c4f57454400000000000000000000000000000000600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f444154415f4c454e4754485f4449534d41544348000000000000000000000000600082015250565b7f494e56414c49445f4d414e47415f56455253494f4e0000000000000000000000600082015250565b7f4554484552535f4e4f545f53454e540000000000000000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f50524943455f4449534d41544348000000000000000000000000000000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f494e56414c49445f49445f524546000000000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f4f4e4c595f4f574e45525f43414e5f52554e5f544849535f46554e4354494f4e600082015250565b7f43414e545f5345545f4e554c4c5f444953545249425554494f4e000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4e4f545f454e4f5547485f414c4c4f5745445f4d494e545f464f525f5350454360008201527f494649435f414444524553530000000000000000000000000000000000000000602082015250565b7f43414e545f5345545f5a45524f5f454c454d454e545300000000000000000000600082015250565b50565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f5155414e544954595f4c454e4754485f4449534d415443480000000000000000600082015250565b7f4e4f545f454e4f5547485f4d414e474100000000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d1015615ab757615b3a565b615abf614f3a565b60043d036004823e80513d602482011167ffffffffffffffff82111715615ae7575050615b3a565b808201805167ffffffffffffffff811115615b055750505050615b3a565b80602083010160043d038501811115615b22575050505050615b3a565b615b31826020018501866152de565b82955050505050505b90565b615b46816151bb565b8114615b5157600080fd5b50565b615b5d816151cd565b8114615b6857600080fd5b50565b615b74816151df565b8114615b7f57600080fd5b50565b615b8b816151eb565b8114615b9657600080fd5b50565b615ba2816151f5565b8114615bad57600080fd5b50565b615bb981615241565b8114615bc457600080fd5b5056fea264697066735822122010ac0be6dc0c3b6dfb6f7d5b10b3285c85092586ed8e35b55975917debb8837864736f6c63430008030033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.