ERC-1155
Overview
Max Total Supply
15 AET
Holders
4
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Aether
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; contract Aether is ERC1155, Ownable { string public name; string public symbol; string public contractData; uint[] private availableTokens; uint private collection1; uint[] private collection2; uint private collection3; uint256 public publicCost = 0 ether; uint256 public privateCost = 0 ether; string public mintPhase = "closed"; uint public privateMintAmount = 0; uint public publicMintAmount = 0; address public tokenAddress; address public burnAddress; mapping(address => uint) public addressMintedBalance; mapping(uint => string) public tokenURI; constructor() ERC1155("") { name = "Aether Industries"; symbol = "AET"; } function trade() public payable{ uint _collection1 = ERC1155(tokenAddress).balanceOf(msg.sender, collection1); uint _collection2 = checkCollection2(); uint _collection3 = ERC1155(tokenAddress).balanceOf(msg.sender, collection3); //collection 1 minting if((_collection1 + _collection2) > 0){ _mint(msg.sender, 1, (_collection1 + _collection2), ""); if(_collection1 > 0){ ERC1155(tokenAddress).safeTransferFrom(msg.sender, burnAddress, collection1, _collection1, ""); } if(_collection2 > 0){ burnCollection2(); } } //collection 2 minting if(_collection3 > 0){ _mint(msg.sender, 2, _collection3, ""); ERC1155(tokenAddress).safeTransferFrom(msg.sender, burnAddress, collection3, _collection3, ""); } } function checkCollection2() public view returns(uint){ uint owned = 0; for(uint i = 0; i < collection2.length; i++){ if(ERC1155(tokenAddress).balanceOf(msg.sender, collection2[i]) > 0){ owned = owned + 1; } } return owned; } function burnCollection2() public payable { for(uint i = 0; i < collection2.length; i++){ ERC1155(tokenAddress).safeTransferFrom(msg.sender, burnAddress, collection2[i], 1, ""); } } function mintBatch(uint[] memory _ids, uint[] memory _amounts) public payable { //if mint is closed then give error require(keccak256(abi.encodePacked(mintPhase)) != keccak256(abi.encodePacked("closed")), "Mint phase is closed"); uint mintAmount = 0; for(uint i = 0; i < _ids.length; i++){ require(verifyAvailibility(_ids[i], _amounts[i]), "Token that you wanted to mint is not available"); mintAmount = mintAmount + _amounts[i]; } //if you are the owner you can mint for free if (msg.sender != owner()) { uint ownerMintedCount = addressMintedBalance[msg.sender]; if(keccak256(abi.encodePacked(mintPhase)) == keccak256(abi.encodePacked("private"))){ require(ownerMintedCount + mintAmount <= privateMintAmount, "max NFT per address exceeded"); require(msg.value >= privateCost * mintAmount, "insufficient funds"); } if(keccak256(abi.encodePacked(mintPhase)) == keccak256(abi.encodePacked("public"))){ require(ownerMintedCount + mintAmount <= publicMintAmount, "max NFT per address exceeded"); require(msg.value >= publicCost * mintAmount, "insufficient funds"); } } _mintBatch(msg.sender, _ids, _amounts, ""); addressMintedBalance[msg.sender] = addressMintedBalance[msg.sender] + mintAmount; for(uint i = 0; i < _ids.length; i++){ availableTokens[_ids[i]] = availableTokens[_ids[i]] - _amounts[i]; } } function verifyAvailibility(uint _token, uint _amount) public view returns(bool) { if(availableTokens[_token] >= _amount && availableTokens[_token] != 0){ return true; } return false; } function burn(uint _id, uint _amount) external { _burn(msg.sender, _id, _amount); } function burnBatch(uint[] memory _ids, uint[] memory _amounts) external { _burnBatch(msg.sender, _ids, _amounts); } function burnForMint(address _from, uint[] memory _burnIds, uint[] memory _burnAmounts, uint[] memory _mintIds, uint[] memory _mintAmounts) external onlyOwner { _burnBatch(_from, _burnIds, _burnAmounts); _mintBatch(_from, _mintIds, _mintAmounts, ""); } function setURI(uint _id, string memory _uri) external onlyOwner { tokenURI[_id] = _uri; emit URI(_uri, _id); } function uri(uint _id) public override view returns (string memory) { return tokenURI[_id]; } function setPrivateMintAmount(uint _amount) public onlyOwner { privateMintAmount = _amount; } function setPublicMintAmount(uint _amount) public onlyOwner { publicMintAmount = _amount; } function closeMinting() external onlyOwner { mintPhase = "closed"; } function setPrivateMint() external onlyOwner { mintPhase = "private"; } function setPublicMint() external onlyOwner { mintPhase = "public"; } function setCollection1(uint _token) external onlyOwner { collection1 = _token; } function setCollection2(uint[] memory _collection) public onlyOwner{ collection2 = _collection; } function setCollection3(uint _token) external onlyOwner { collection3 = _token; } function setPublicCost(uint256 _price) external onlyOwner { publicCost = (_price * 10 ** 18) / 100; } function setPrivateCost(uint256 _price) external onlyOwner { privateCost = (_price * 10 ** 18) / 100; } function setAvailableTokens(uint[] memory _tokens) public onlyOwner { availableTokens = _tokens; } function seeTokenAvailability(uint _id) public view onlyOwner returns(uint){ return availableTokens[_id]; } function setTokenAddress(address _address) public onlyOwner { tokenAddress = _address; } function setBurnAddress(address _address) public onlyOwner { burnAddress = _address; } function setContractURI(string memory _data) public onlyOwner { contractData = _data; } function contractURI() public view returns (string memory) { return contractData; } function withdraw() public payable onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); 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 token 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: caller is not token 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}. * * 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 _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` * * Emits a {TransferSingle} event. * * 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}. * * Emits a {TransferBatch} event. * * 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 an {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 `ids` and `amounts` 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 IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must 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.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnCollection2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_burnIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_burnAmounts","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_mintAmounts","type":"uint256[]"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkCollection2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"uint256","name":"_id","type":"uint256"}],"name":"seeTokenAvailability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"}],"name":"setAvailableTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_token","type":"uint256"}],"name":"setCollection1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_collection","type":"uint256[]"}],"name":"setCollection2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_token","type":"uint256"}],"name":"setCollection3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_data","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrivateCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPrivateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPrivateMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setPublicMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trade","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_token","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"verifyAvailibility","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526000600b556000600c556040518060400160405280600681526020017f636c6f7365640000000000000000000000000000000000000000000000000000815250600d90805190602001906200005b92919062000242565b506000600e556000600f553480156200007357600080fd5b506040518060200160405280600081525062000095816200015860201b60201c565b50620000b6620000aa6200017460201b60201c565b6200017c60201b60201c565b6040518060400160405280601181526020017f41657468657220496e6475737472696573000000000000000000000000000000815250600490805190602001906200010392919062000242565b506040518060400160405280600381526020017f4145540000000000000000000000000000000000000000000000000000000000815250600590805190602001906200015192919062000242565b5062000357565b80600290805190602001906200017092919062000242565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200025090620002f2565b90600052602060002090601f016020900481019282620002745760008555620002c0565b82601f106200028f57805160ff1916838001178555620002c0565b82800160010185558215620002c0579182015b82811115620002bf578251825591602001919060010190620002a2565b5b509050620002cf9190620002d3565b5090565b5b80821115620002ee576000816000905550600101620002d4565b5090565b600060028204905060018216806200030b57607f821691505b6020821081141562000322576200032162000328565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6159a080620003676000396000f3fe6080604052600436106102ad5760003560e01c8063640adfef11610175578063938e3d7b116100dc578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d485146109ed578063e985e9c514610a18578063f242432a14610a55578063f2fde38b14610a7e576102ad565b8063c87b56dd1461097d578063d351cfdc146109ba578063d8a2b6db146109d6576102ad565b8063938e3d7b1461088157806395d89b41146108aa5780639d76ea58146108d5578063a22cb46514610900578063ae3c778d14610929578063b390c0ab14610954576102ad565b806383ca4b6f1161012e57806383ca4b6f14610799578063862440e2146107c25780638693da20146107eb57806387491c6014610816578063883fe3a11461082d5780638da5cb5b14610856576102ad565b8063640adfef146106d25780636c109102146106fb5780636fddcaf71461072457806370d5ae051461072e578063715018a614610759578063811d243714610770576102ad565b806326a4e8d211610219578063443309f5116101d2578063443309f5146105b45780634b0e7216146105f15780634ce734e51461061a5780634e1273f4146106435780634f04cdaa14610680578063510f4104146106a9576102ad565b806326a4e8d2146104c75780632713b02c146104f05780632eb2c2d61461052d5780633cca2420146105565780633ccfd60b146105815780634307c4b21461058b576102ad565b80630e89341c1161026b5780630e89341c146103c25780631377f9eb146103ff578063173010041461042a57806317881cbf1461045557806318cae269146104805780631f0ba6c9146104bd576102ad565b8062fdd58e146102b257806301ffc9a7146102ef57806302456aa21461032c57806303c573611461034357806305f1837b1461036e57806306fdde0314610397575b600080fd5b3480156102be57600080fd5b506102d960048036038101906102d49190614098565b610aa7565b6040516102e69190614d78565b60405180910390f35b3480156102fb57600080fd5b5061031660048036038101906103119190614211565b610b70565b6040516103239190614afb565b60405180910390f35b34801561033857600080fd5b50610341610c52565b005b34801561034f57600080fd5b50610358610ca8565b6040516103659190614d78565b60405180910390f35b34801561037a57600080fd5b50610395600480360381019061039091906142b4565b610dbc565b005b3480156103a357600080fd5b506103ac610dce565b6040516103b99190614b16565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906142b4565b610e5c565b6040516103f69190614b16565b60405180910390f35b34801561040b57600080fd5b50610414610f01565b6040516104219190614d78565b60405180910390f35b34801561043657600080fd5b5061043f610f07565b60405161044c9190614d78565b60405180910390f35b34801561046157600080fd5b5061046a610f0d565b6040516104779190614b16565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a29190613d9a565b610f9b565b6040516104b49190614d78565b60405180910390f35b6104c5610fb3565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613d9a565b611314565b005b3480156104fc57600080fd5b506105176004803603810190610512919061436a565b611360565b6040516105249190614afb565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613e07565b6113c8565b005b34801561056257600080fd5b5061056b611469565b6040516105789190614b16565b60405180910390f35b6105896114f7565b005b34801561059757600080fd5b506105b260048036038101906105ad9190614150565b61157f565b005b3480156105c057600080fd5b506105db60048036038101906105d691906142b4565b6115a1565b6040516105e89190614d78565b60405180910390f35b3480156105fd57600080fd5b5061061860048036038101906106139190613d9a565b6115d1565b005b34801561062657600080fd5b50610641600480360381019061063c91906142b4565b61161d565b005b34801561064f57600080fd5b5061066a600480360381019061066591906140d8565b61162f565b6040516106779190614aa2565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a291906142b4565b611748565b005b3480156106b557600080fd5b506106d060048036038101906106cb9190613f6d565b61175a565b005b3480156106de57600080fd5b506106f960048036038101906106f491906142b4565b61178f565b005b34801561070757600080fd5b50610722600480360381019061071d91906142b4565b6117a1565b005b61072c6117d2565b005b34801561073a57600080fd5b506107436118cc565b60405161075091906148ec565b60405180910390f35b34801561076557600080fd5b5061076e6118f2565b005b34801561077c57600080fd5b50610797600480360381019061079291906142b4565b611906565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190614199565b611937565b005b3480156107ce57600080fd5b506107e960048036038101906107e4919061430e565b611946565b005b3480156107f757600080fd5b506108006119b2565b60405161080d9190614d78565b60405180910390f35b34801561082257600080fd5b5061082b6119b8565b005b34801561083957600080fd5b50610854600480360381019061084f9190614150565b611a0e565b005b34801561086257600080fd5b5061086b611a30565b60405161087891906148ec565b60405180910390f35b34801561088d57600080fd5b506108a860048036038101906108a3919061426b565b611a5a565b005b3480156108b657600080fd5b506108bf611a7c565b6040516108cc9190614b16565b60405180910390f35b3480156108e157600080fd5b506108ea611b0a565b6040516108f791906148ec565b60405180910390f35b34801561090c57600080fd5b5061092760048036038101906109229190614058565b611b30565b005b34801561093557600080fd5b5061093e611b46565b60405161094b9190614d78565b60405180910390f35b34801561096057600080fd5b5061097b6004803603810190610976919061436a565b611b4c565b005b34801561098957600080fd5b506109a4600480360381019061099f91906142b4565b611b5b565b6040516109b19190614b16565b60405180910390f35b6109d460048036038101906109cf9190614199565b611bfb565b005b3480156109e257600080fd5b506109eb61211f565b005b3480156109f957600080fd5b50610a02612175565b604051610a0f9190614b16565b60405180910390f35b348015610a2457600080fd5b50610a3f6004803603810190610a3a9190613dc7565b612207565b604051610a4c9190614afb565b60405180910390f35b348015610a6157600080fd5b50610a7c6004803603810190610a779190613ed6565b61229b565b005b348015610a8a57600080fd5b50610aa56004803603810190610aa09190613d9a565b61233c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0f90614bf8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c3b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c4b5750610c4a826123c0565b5b9050919050565b610c5a61242a565b6040518060400160405280600681526020017f7075626c69630000000000000000000000000000000000000000000000000000815250600d9080519060200190610ca5929190613a10565b50565b6000806000905060005b600980549050811015610db4576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e3360098581548110610d1357610d1261524d565b5b90600052602060002001546040518363ffffffff1660e01b8152600401610d3b929190614a79565b60206040518083038186803b158015610d5357600080fd5b505afa158015610d67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8b91906142e1565b1115610da157600182610d9e9190614f37565b91505b8080610dac90615177565b915050610cb2565b508091505090565b610dc461242a565b80600e8190555050565b60048054610ddb90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790615114565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b505050505081565b6060601360008381526020019081526020016000208054610e7c90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea890615114565b8015610ef55780601f10610eca57610100808354040283529160200191610ef5565b820191906000526020600020905b815481529060010190602001808311610ed857829003601f168201915b50505050509050919050565b600c5481565b600e5481565b600d8054610f1a90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4690615114565b8015610f935780601f10610f6857610100808354040283529160200191610f93565b820191906000526020600020905b815481529060010190602001808311610f7657829003601f168201915b505050505081565b60126020528060005260406000206000915090505481565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336008546040518363ffffffff1660e01b8152600401611013929190614a79565b60206040518083038186803b15801561102b57600080fd5b505afa15801561103f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106391906142e1565b9050600061106f610ca8565b90506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33600a546040518363ffffffff1660e01b81526004016110d1929190614a79565b60206040518083038186803b1580156110e957600080fd5b505afa1580156110fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112191906142e1565b9050600082846111319190614f37565b11156112325761115e33600184866111499190614f37565b604051806020016040528060008152506124a8565b600083111561121f57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854876040518563ffffffff1660e01b81526004016111ec9493929190614a21565b600060405180830381600087803b15801561120657600080fd5b505af115801561121a573d6000803e3d6000fd5b505050505b6000821115611231576112306117d2565b5b5b600081111561130f5761125733600283604051806020016040528060008152506124a8565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a54856040518563ffffffff1660e01b81526004016112dc9493929190614a21565b600060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b505050505b505050565b61131c61242a565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600784815481106113775761137661524d565b5b9060005260206000200154101580156113af57506000600784815481106113a1576113a061524d565b5b906000526020600020015414155b156113bd57600190506113c2565b600090505b92915050565b6113d0612659565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611416575061141585611410612659565b612207565b5b611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144c90614b58565b60405180910390fd5b6114628585858585612661565b5050505050565b6006805461147690615114565b80601f01602080910402602001604051908101604052809291908181526020018280546114a290615114565b80156114ef5780601f106114c4576101008083540402835291602001916114ef565b820191906000526020600020905b8154815290600101906020018083116114d257829003601f168201915b505050505081565b6114ff61242a565b6000611509611a30565b73ffffffffffffffffffffffffffffffffffffffff164760405161152c906148d7565b60006040518083038185875af1925050503d8060008114611569576040519150601f19603f3d011682016040523d82523d6000602084013e61156e565b606091505b505090508061157c57600080fd5b50565b61158761242a565b806007908051906020019061159d929190613a96565b5050565b60006115ab61242a565b600782815481106115bf576115be61524d565b5b90600052602060002001549050919050565b6115d961242a565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61162561242a565b80600a8190555050565b60608151835114611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90614cf8565b60405180910390fd5b6000835167ffffffffffffffff8111156116925761169161527c565b5b6040519080825280602002602001820160405280156116c05781602001602082028036833780820191505090505b50905060005b845181101561173d5761170d8582815181106116e5576116e461524d565b5b6020026020010151858381518110611700576116ff61524d565b5b6020026020010151610aa7565b8282815181106117205761171f61524d565b5b6020026020010181815250508061173690615177565b90506116c6565b508091505092915050565b61175061242a565b8060088190555050565b61176261242a565b61176d858585612983565b61178885838360405180602001604052806000815250612c52565b5050505050565b61179761242a565b80600f8190555050565b6117a961242a565b6064670de0b6b3a7640000826117bf9190614fbe565b6117c99190614f8d565b600c8190555050565b60005b6009805490508110156118c957601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600985815481106118585761185761524d565b5b906000526020600020015460016040518563ffffffff1660e01b8152600401611884949392919061496f565b600060405180830381600087803b15801561189e57600080fd5b505af11580156118b2573d6000803e3d6000fd5b5050505080806118c190615177565b9150506117d5565b50565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118fa61242a565b6119046000612e7f565b565b61190e61242a565b6064670de0b6b3a7640000826119249190614fbe565b61192e9190614f8d565b600b8190555050565b611942338383612983565b5050565b61194e61242a565b80601360008481526020019081526020016000209080519060200190611975929190613a10565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516119a69190614b16565b60405180910390a25050565b600b5481565b6119c061242a565b6040518060400160405280600681526020017f636c6f7365640000000000000000000000000000000000000000000000000000815250600d9080519060200190611a0b929190613a10565b50565b611a1661242a565b8060099080519060200190611a2c929190613a96565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a6261242a565b8060069080519060200190611a78929190613a10565b5050565b60058054611a8990615114565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab590615114565b8015611b025780601f10611ad757610100808354040283529160200191611b02565b820191906000526020600020905b815481529060010190602001808311611ae557829003601f168201915b505050505081565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b42611b3b612659565b8383612f45565b5050565b600f5481565b611b573383836130b2565b5050565b60136020528060005260406000206000915090508054611b7a90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba690615114565b8015611bf35780601f10611bc857610100808354040283529160200191611bf3565b820191906000526020600020905b815481529060010190602001808311611bd657829003601f168201915b505050505081565b604051602001611c0a906148ad565b60405160208183030381529060405280519060200120600d604051602001611c329190614881565b604051602081830303815290604052805190602001201415611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614cb8565b60405180910390fd5b6000805b8351811015611d4e57611cd4848281518110611cac57611cab61524d565b5b6020026020010151848381518110611cc757611cc661524d565b5b6020026020010151611360565b611d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0a90614d58565b60405180910390fd5b828181518110611d2657611d2561524d565b5b602002602001015182611d399190614f37565b91508080611d4690615177565b915050611c8d565b50611d57611a30565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fb7576000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050604051602001611ddc906148c2565b60405160208183030381529060405280519060200120600d604051602001611e049190614881565b604051602081830303815290604052805190602001201415611ec157600e548282611e2f9190614f37565b1115611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6790614bd8565b60405180910390fd5b81600c54611e7e9190614fbe565b341015611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb790614c98565b60405180910390fd5b5b604051602001611ed090614898565b60405160208183030381529060405280519060200120600d604051602001611ef89190614881565b604051602081830303815290604052805190602001201415611fb557600f548282611f239190614f37565b1115611f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5b90614bd8565b60405180910390fd5b81600b54611f729190614fbe565b341015611fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fab90614c98565b60405180910390fd5b5b505b611fd233848460405180602001604052806000815250612c52565b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461201d9190614f37565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060005b83518110156121195782818151811061207f5761207e61524d565b5b6020026020010151600785838151811061209c5761209b61524d565b5b6020026020010151815481106120b5576120b461524d565b5b90600052602060002001546120ca9190615018565b60078583815181106120df576120de61524d565b5b6020026020010151815481106120f8576120f761524d565b5b9060005260206000200181905550808061211190615177565b915050612063565b50505050565b61212761242a565b6040518060400160405280600781526020017f7072697661746500000000000000000000000000000000000000000000000000815250600d9080519060200190612172929190613a10565b50565b60606006805461218490615114565b80601f01602080910402602001604051908101604052809291908181526020018280546121b090615114565b80156121fd5780601f106121d2576101008083540402835291602001916121fd565b820191906000526020600020905b8154815290600101906020018083116121e057829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a3612659565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806122e957506122e8856122e3612659565b612207565b5b612328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231f90614b58565b60405180910390fd5b61233585858585856132f9565b5050505050565b61234461242a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ab90614b98565b60405180910390fd5b6123bd81612e7f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612432612659565b73ffffffffffffffffffffffffffffffffffffffff16612450611a30565b73ffffffffffffffffffffffffffffffffffffffff16146124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d90614c78565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250f90614d38565b60405180910390fd5b6000612522612659565b9050600061252f85613595565b9050600061253c85613595565b905061254d8360008985858961360f565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125ac9190614f37565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161262a929190614d93565b60405180910390a461264183600089858589613617565b6126508360008989898961361f565b50505050505050565b600033905090565b81518351146126a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269c90614d18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c90614c18565b60405180910390fd5b600061271f612659565b905061272f81878787878761360f565b60005b84518110156128e05760008582815181106127505761274f61524d565b5b60200260200101519050600085838151811061276f5761276e61524d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280790614c58565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c59190614f37565b92505081905550505050806128d990615177565b9050612732565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612957929190614ac4565b60405180910390a461296d818787878787613617565b61297b818787878787613806565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ea90614c38565b60405180910390fd5b8051825114612a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2e90614d18565b60405180910390fd5b6000612a41612659565b9050612a618185600086866040518060200160405280600081525061360f565b60005b8351811015612bae576000848281518110612a8257612a8161524d565b5b602002602001015190506000848381518110612aa157612aa061524d565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3990614bb8565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612ba690615177565b915050612a64565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612c26929190614ac4565b60405180910390a4612c4c81856000868660405180602001604052806000815250613617565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb990614d38565b60405180910390fd5b8151835114612d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfd90614d18565b60405180910390fd5b6000612d10612659565b9050612d218160008787878761360f565b60005b8451811015612dda57838181518110612d4057612d3f61524d565b5b6020026020010151600080878481518110612d5e57612d5d61524d565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dc09190614f37565b925050819055508080612dd290615177565b915050612d24565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e52929190614ac4565b60405180910390a4612e6981600087878787613617565b612e7881600087878787613806565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fab90614cd8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130a59190614afb565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311990614c38565b60405180910390fd5b600061312c612659565b9050600061313984613595565b9050600061314684613595565b90506131668387600085856040518060200160405280600081525061360f565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156131fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f490614bb8565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516132ca929190614d93565b60405180910390a46132f084886000868660405180602001604052806000815250613617565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336090614c18565b60405180910390fd5b6000613373612659565b9050600061338085613595565b9050600061338d85613595565b905061339d83898985858961360f565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342b90614c58565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134e99190614f37565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613566929190614d93565b60405180910390a461357c848a8a86868a613617565b61358a848a8a8a8a8a61361f565b505050505050505050565b60606000600167ffffffffffffffff8111156135b4576135b361527c565b5b6040519080825280602002602001820160405280156135e25781602001602082028036833780820191505090505b50905082816000815181106135fa576135f961524d565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b61363e8473ffffffffffffffffffffffffffffffffffffffff166139ed565b156137fe578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016136849594939291906149c7565b602060405180830381600087803b15801561369e57600080fd5b505af19250505080156136cf57506040513d601f19601f820116820180604052508101906136cc919061423e565b60015b613775576136db6152ab565b806308c379a0141561373857506136f0615878565b806136fb575061373a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372f9190614b16565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376c90614b38565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146137fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f390614b78565b60405180910390fd5b505b505050505050565b6138258473ffffffffffffffffffffffffffffffffffffffff166139ed565b156139e5578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161386b959493929190614907565b602060405180830381600087803b15801561388557600080fd5b505af19250505080156138b657506040513d601f19601f820116820180604052508101906138b3919061423e565b60015b61395c576138c26152ab565b806308c379a0141561391f57506138d7615878565b806138e25750613921565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139169190614b16565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395390614b38565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146139e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139da90614b78565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613a1c90615114565b90600052602060002090601f016020900481019282613a3e5760008555613a85565b82601f10613a5757805160ff1916838001178555613a85565b82800160010185558215613a85579182015b82811115613a84578251825591602001919060010190613a69565b5b509050613a929190613ae3565b5090565b828054828255906000526020600020908101928215613ad2579160200282015b82811115613ad1578251825591602001919060010190613ab6565b5b509050613adf9190613ae3565b5090565b5b80821115613afc576000816000905550600101613ae4565b5090565b6000613b13613b0e84614de1565b614dbc565b90508083825260208201905082856020860282011115613b3657613b356152d2565b5b60005b85811015613b665781613b4c8882613c64565b845260208401935060208301925050600181019050613b39565b5050509392505050565b6000613b83613b7e84614e0d565b614dbc565b90508083825260208201905082856020860282011115613ba657613ba56152d2565b5b60005b85811015613bd65781613bbc8882613d70565b845260208401935060208301925050600181019050613ba9565b5050509392505050565b6000613bf3613bee84614e39565b614dbc565b905082815260208101848484011115613c0f57613c0e6152d7565b5b613c1a8482856150d2565b509392505050565b6000613c35613c3084614e6a565b614dbc565b905082815260208101848484011115613c5157613c506152d7565b5b613c5c8482856150d2565b509392505050565b600081359050613c738161590e565b92915050565b600082601f830112613c8e57613c8d6152cd565b5b8135613c9e848260208601613b00565b91505092915050565b600082601f830112613cbc57613cbb6152cd565b5b8135613ccc848260208601613b70565b91505092915050565b600081359050613ce481615925565b92915050565b600081359050613cf98161593c565b92915050565b600081519050613d0e8161593c565b92915050565b600082601f830112613d2957613d286152cd565b5b8135613d39848260208601613be0565b91505092915050565b600082601f830112613d5757613d566152cd565b5b8135613d67848260208601613c22565b91505092915050565b600081359050613d7f81615953565b92915050565b600081519050613d9481615953565b92915050565b600060208284031215613db057613daf6152e1565b5b6000613dbe84828501613c64565b91505092915050565b60008060408385031215613dde57613ddd6152e1565b5b6000613dec85828601613c64565b9250506020613dfd85828601613c64565b9150509250929050565b600080600080600060a08688031215613e2357613e226152e1565b5b6000613e3188828901613c64565b9550506020613e4288828901613c64565b945050604086013567ffffffffffffffff811115613e6357613e626152dc565b5b613e6f88828901613ca7565b935050606086013567ffffffffffffffff811115613e9057613e8f6152dc565b5b613e9c88828901613ca7565b925050608086013567ffffffffffffffff811115613ebd57613ebc6152dc565b5b613ec988828901613d14565b9150509295509295909350565b600080600080600060a08688031215613ef257613ef16152e1565b5b6000613f0088828901613c64565b9550506020613f1188828901613c64565b9450506040613f2288828901613d70565b9350506060613f3388828901613d70565b925050608086013567ffffffffffffffff811115613f5457613f536152dc565b5b613f6088828901613d14565b9150509295509295909350565b600080600080600060a08688031215613f8957613f886152e1565b5b6000613f9788828901613c64565b955050602086013567ffffffffffffffff811115613fb857613fb76152dc565b5b613fc488828901613ca7565b945050604086013567ffffffffffffffff811115613fe557613fe46152dc565b5b613ff188828901613ca7565b935050606086013567ffffffffffffffff811115614012576140116152dc565b5b61401e88828901613ca7565b925050608086013567ffffffffffffffff81111561403f5761403e6152dc565b5b61404b88828901613ca7565b9150509295509295909350565b6000806040838503121561406f5761406e6152e1565b5b600061407d85828601613c64565b925050602061408e85828601613cd5565b9150509250929050565b600080604083850312156140af576140ae6152e1565b5b60006140bd85828601613c64565b92505060206140ce85828601613d70565b9150509250929050565b600080604083850312156140ef576140ee6152e1565b5b600083013567ffffffffffffffff81111561410d5761410c6152dc565b5b61411985828601613c79565b925050602083013567ffffffffffffffff81111561413a576141396152dc565b5b61414685828601613ca7565b9150509250929050565b600060208284031215614166576141656152e1565b5b600082013567ffffffffffffffff811115614184576141836152dc565b5b61419084828501613ca7565b91505092915050565b600080604083850312156141b0576141af6152e1565b5b600083013567ffffffffffffffff8111156141ce576141cd6152dc565b5b6141da85828601613ca7565b925050602083013567ffffffffffffffff8111156141fb576141fa6152dc565b5b61420785828601613ca7565b9150509250929050565b600060208284031215614227576142266152e1565b5b600061423584828501613cea565b91505092915050565b600060208284031215614254576142536152e1565b5b600061426284828501613cff565b91505092915050565b600060208284031215614281576142806152e1565b5b600082013567ffffffffffffffff81111561429f5761429e6152dc565b5b6142ab84828501613d42565b91505092915050565b6000602082840312156142ca576142c96152e1565b5b60006142d884828501613d70565b91505092915050565b6000602082840312156142f7576142f66152e1565b5b600061430584828501613d85565b91505092915050565b60008060408385031215614325576143246152e1565b5b600061433385828601613d70565b925050602083013567ffffffffffffffff811115614354576143536152dc565b5b61436085828601613d42565b9150509250929050565b60008060408385031215614381576143806152e1565b5b600061438f85828601613d70565b92505060206143a085828601613d70565b9150509250929050565b60006143b68383614863565b60208301905092915050565b6143cb8161504c565b82525050565b60006143dc82614ec0565b6143e68185614eee565b93506143f183614e9b565b8060005b8381101561442257815161440988826143aa565b975061441483614ee1565b9250506001810190506143f5565b5085935050505092915050565b6144388161505e565b82525050565b600061444982614ecb565b6144538185614eff565b93506144638185602086016150e1565b61446c816152e6565b840191505092915050565b614480816150c0565b82525050565b600061449182614ed6565b61449b8185614f1b565b93506144ab8185602086016150e1565b6144b4816152e6565b840191505092915050565b600081546144cc81615114565b6144d68186614f2c565b945060018216600081146144f1576001811461450257614535565b60ff19831686528186019350614535565b61450b85614eab565b60005b8381101561452d5781548189015260018201915060208101905061450e565b838801955050505b50505092915050565b600061454b603483614f1b565b915061455682615304565b604082019050919050565b600061456e602f83614f1b565b915061457982615353565b604082019050919050565b6000614591602883614f1b565b915061459c826153a2565b604082019050919050565b60006145b4602683614f1b565b91506145bf826153f1565b604082019050919050565b60006145d7602483614f1b565b91506145e282615440565b604082019050919050565b60006145fa600683614f2c565b91506146058261548f565b600682019050919050565b600061461d601c83614f1b565b9150614628826154b8565b602082019050919050565b6000614640602a83614f1b565b915061464b826154e1565b604082019050919050565b6000614663600683614f2c565b915061466e82615530565b600682019050919050565b6000614686602583614f1b565b915061469182615559565b604082019050919050565b60006146a9602383614f1b565b91506146b4826155a8565b604082019050919050565b60006146cc602a83614f1b565b91506146d7826155f7565b604082019050919050565b60006146ef602083614f1b565b91506146fa82615646565b602082019050919050565b6000614712600783614f2c565b915061471d8261566f565b600782019050919050565b6000614735600083614eff565b915061474082615698565b600082019050919050565b6000614758600083614f10565b915061476382615698565b600082019050919050565b600061477b601283614f1b565b91506147868261569b565b602082019050919050565b600061479e601483614f1b565b91506147a9826156c4565b602082019050919050565b60006147c1602983614f1b565b91506147cc826156ed565b604082019050919050565b60006147e4602983614f1b565b91506147ef8261573c565b604082019050919050565b6000614807602883614f1b565b91506148128261578b565b604082019050919050565b600061482a602183614f1b565b9150614835826157da565b604082019050919050565b600061484d602e83614f1b565b915061485882615829565b604082019050919050565b61486c816150b6565b82525050565b61487b816150b6565b82525050565b600061488d82846144bf565b915081905092915050565b60006148a3826145ed565b9150819050919050565b60006148b882614656565b9150819050919050565b60006148cd82614705565b9150819050919050565b60006148e28261474b565b9150819050919050565b600060208201905061490160008301846143c2565b92915050565b600060a08201905061491c60008301886143c2565b61492960208301876143c2565b818103604083015261493b81866143d1565b9050818103606083015261494f81856143d1565b90508181036080830152614963818461443e565b90509695505050505050565b600060a08201905061498460008301876143c2565b61499160208301866143c2565b61499e6040830185614872565b6149ab6060830184614477565b81810360808301526149bc81614728565b905095945050505050565b600060a0820190506149dc60008301886143c2565b6149e960208301876143c2565b6149f66040830186614872565b614a036060830185614872565b8181036080830152614a15818461443e565b90509695505050505050565b600060a082019050614a3660008301876143c2565b614a4360208301866143c2565b614a506040830185614872565b614a5d6060830184614872565b8181036080830152614a6e81614728565b905095945050505050565b6000604082019050614a8e60008301856143c2565b614a9b6020830184614872565b9392505050565b60006020820190508181036000830152614abc81846143d1565b905092915050565b60006040820190508181036000830152614ade81856143d1565b90508181036020830152614af281846143d1565b90509392505050565b6000602082019050614b10600083018461442f565b92915050565b60006020820190508181036000830152614b308184614486565b905092915050565b60006020820190508181036000830152614b518161453e565b9050919050565b60006020820190508181036000830152614b7181614561565b9050919050565b60006020820190508181036000830152614b9181614584565b9050919050565b60006020820190508181036000830152614bb1816145a7565b9050919050565b60006020820190508181036000830152614bd1816145ca565b9050919050565b60006020820190508181036000830152614bf181614610565b9050919050565b60006020820190508181036000830152614c1181614633565b9050919050565b60006020820190508181036000830152614c3181614679565b9050919050565b60006020820190508181036000830152614c518161469c565b9050919050565b60006020820190508181036000830152614c71816146bf565b9050919050565b60006020820190508181036000830152614c91816146e2565b9050919050565b60006020820190508181036000830152614cb18161476e565b9050919050565b60006020820190508181036000830152614cd181614791565b9050919050565b60006020820190508181036000830152614cf1816147b4565b9050919050565b60006020820190508181036000830152614d11816147d7565b9050919050565b60006020820190508181036000830152614d31816147fa565b9050919050565b60006020820190508181036000830152614d518161481d565b9050919050565b60006020820190508181036000830152614d7181614840565b9050919050565b6000602082019050614d8d6000830184614872565b92915050565b6000604082019050614da86000830185614872565b614db56020830184614872565b9392505050565b6000614dc6614dd7565b9050614dd28282615146565b919050565b6000604051905090565b600067ffffffffffffffff821115614dfc57614dfb61527c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614e2857614e2761527c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614e5457614e5361527c565b5b614e5d826152e6565b9050602081019050919050565b600067ffffffffffffffff821115614e8557614e8461527c565b5b614e8e826152e6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f42826150b6565b9150614f4d836150b6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f8257614f816151c0565b5b828201905092915050565b6000614f98826150b6565b9150614fa3836150b6565b925082614fb357614fb26151ef565b5b828204905092915050565b6000614fc9826150b6565b9150614fd4836150b6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561500d5761500c6151c0565b5b828202905092915050565b6000615023826150b6565b915061502e836150b6565b925082821015615041576150406151c0565b5b828203905092915050565b600061505782615096565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006150cb826150b6565b9050919050565b82818337600083830152505050565b60005b838110156150ff5780820151818401526020810190506150e4565b8381111561510e576000848401525b50505050565b6000600282049050600182168061512c57607f821691505b602082108114156151405761513f61521e565b5b50919050565b61514f826152e6565b810181811067ffffffffffffffff8211171561516e5761516d61527c565b5b80604052505050565b6000615182826150b6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151b5576151b46151c0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156152ca5760046000803e6152c76000516152f7565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f7075626c69630000000000000000000000000000000000000000000000000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f636c6f7365640000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7072697661746500000000000000000000000000000000000000000000000000600082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f4d696e7420706861736520697320636c6f736564000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e207468617420796f752077616e74656420746f206d696e7420697360008201527f206e6f7420617661696c61626c65000000000000000000000000000000000000602082015250565b600060443d10156158885761590b565b615890614dd7565b60043d036004823e80513d602482011167ffffffffffffffff821117156158b857505061590b565b808201805167ffffffffffffffff8111156158d6575050505061590b565b80602083010160043d0385018111156158f357505050505061590b565b61590282602001850186615146565b82955050505050505b90565b6159178161504c565b811461592257600080fd5b50565b61592e8161505e565b811461593957600080fd5b50565b6159458161506a565b811461595057600080fd5b50565b61595c816150b6565b811461596757600080fd5b5056fea264697066735822122090da3fc37411ba014839b3a31247d65e222bcd315eeb7e4c97c54acf77e262ee64736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102ad5760003560e01c8063640adfef11610175578063938e3d7b116100dc578063c87b56dd11610095578063e8a3d4851161006f578063e8a3d485146109ed578063e985e9c514610a18578063f242432a14610a55578063f2fde38b14610a7e576102ad565b8063c87b56dd1461097d578063d351cfdc146109ba578063d8a2b6db146109d6576102ad565b8063938e3d7b1461088157806395d89b41146108aa5780639d76ea58146108d5578063a22cb46514610900578063ae3c778d14610929578063b390c0ab14610954576102ad565b806383ca4b6f1161012e57806383ca4b6f14610799578063862440e2146107c25780638693da20146107eb57806387491c6014610816578063883fe3a11461082d5780638da5cb5b14610856576102ad565b8063640adfef146106d25780636c109102146106fb5780636fddcaf71461072457806370d5ae051461072e578063715018a614610759578063811d243714610770576102ad565b806326a4e8d211610219578063443309f5116101d2578063443309f5146105b45780634b0e7216146105f15780634ce734e51461061a5780634e1273f4146106435780634f04cdaa14610680578063510f4104146106a9576102ad565b806326a4e8d2146104c75780632713b02c146104f05780632eb2c2d61461052d5780633cca2420146105565780633ccfd60b146105815780634307c4b21461058b576102ad565b80630e89341c1161026b5780630e89341c146103c25780631377f9eb146103ff578063173010041461042a57806317881cbf1461045557806318cae269146104805780631f0ba6c9146104bd576102ad565b8062fdd58e146102b257806301ffc9a7146102ef57806302456aa21461032c57806303c573611461034357806305f1837b1461036e57806306fdde0314610397575b600080fd5b3480156102be57600080fd5b506102d960048036038101906102d49190614098565b610aa7565b6040516102e69190614d78565b60405180910390f35b3480156102fb57600080fd5b5061031660048036038101906103119190614211565b610b70565b6040516103239190614afb565b60405180910390f35b34801561033857600080fd5b50610341610c52565b005b34801561034f57600080fd5b50610358610ca8565b6040516103659190614d78565b60405180910390f35b34801561037a57600080fd5b50610395600480360381019061039091906142b4565b610dbc565b005b3480156103a357600080fd5b506103ac610dce565b6040516103b99190614b16565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e491906142b4565b610e5c565b6040516103f69190614b16565b60405180910390f35b34801561040b57600080fd5b50610414610f01565b6040516104219190614d78565b60405180910390f35b34801561043657600080fd5b5061043f610f07565b60405161044c9190614d78565b60405180910390f35b34801561046157600080fd5b5061046a610f0d565b6040516104779190614b16565b60405180910390f35b34801561048c57600080fd5b506104a760048036038101906104a29190613d9a565b610f9b565b6040516104b49190614d78565b60405180910390f35b6104c5610fb3565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613d9a565b611314565b005b3480156104fc57600080fd5b506105176004803603810190610512919061436a565b611360565b6040516105249190614afb565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613e07565b6113c8565b005b34801561056257600080fd5b5061056b611469565b6040516105789190614b16565b60405180910390f35b6105896114f7565b005b34801561059757600080fd5b506105b260048036038101906105ad9190614150565b61157f565b005b3480156105c057600080fd5b506105db60048036038101906105d691906142b4565b6115a1565b6040516105e89190614d78565b60405180910390f35b3480156105fd57600080fd5b5061061860048036038101906106139190613d9a565b6115d1565b005b34801561062657600080fd5b50610641600480360381019061063c91906142b4565b61161d565b005b34801561064f57600080fd5b5061066a600480360381019061066591906140d8565b61162f565b6040516106779190614aa2565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a291906142b4565b611748565b005b3480156106b557600080fd5b506106d060048036038101906106cb9190613f6d565b61175a565b005b3480156106de57600080fd5b506106f960048036038101906106f491906142b4565b61178f565b005b34801561070757600080fd5b50610722600480360381019061071d91906142b4565b6117a1565b005b61072c6117d2565b005b34801561073a57600080fd5b506107436118cc565b60405161075091906148ec565b60405180910390f35b34801561076557600080fd5b5061076e6118f2565b005b34801561077c57600080fd5b50610797600480360381019061079291906142b4565b611906565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190614199565b611937565b005b3480156107ce57600080fd5b506107e960048036038101906107e4919061430e565b611946565b005b3480156107f757600080fd5b506108006119b2565b60405161080d9190614d78565b60405180910390f35b34801561082257600080fd5b5061082b6119b8565b005b34801561083957600080fd5b50610854600480360381019061084f9190614150565b611a0e565b005b34801561086257600080fd5b5061086b611a30565b60405161087891906148ec565b60405180910390f35b34801561088d57600080fd5b506108a860048036038101906108a3919061426b565b611a5a565b005b3480156108b657600080fd5b506108bf611a7c565b6040516108cc9190614b16565b60405180910390f35b3480156108e157600080fd5b506108ea611b0a565b6040516108f791906148ec565b60405180910390f35b34801561090c57600080fd5b5061092760048036038101906109229190614058565b611b30565b005b34801561093557600080fd5b5061093e611b46565b60405161094b9190614d78565b60405180910390f35b34801561096057600080fd5b5061097b6004803603810190610976919061436a565b611b4c565b005b34801561098957600080fd5b506109a4600480360381019061099f91906142b4565b611b5b565b6040516109b19190614b16565b60405180910390f35b6109d460048036038101906109cf9190614199565b611bfb565b005b3480156109e257600080fd5b506109eb61211f565b005b3480156109f957600080fd5b50610a02612175565b604051610a0f9190614b16565b60405180910390f35b348015610a2457600080fd5b50610a3f6004803603810190610a3a9190613dc7565b612207565b604051610a4c9190614afb565b60405180910390f35b348015610a6157600080fd5b50610a7c6004803603810190610a779190613ed6565b61229b565b005b348015610a8a57600080fd5b50610aa56004803603810190610aa09190613d9a565b61233c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0f90614bf8565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c3b57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c4b5750610c4a826123c0565b5b9050919050565b610c5a61242a565b6040518060400160405280600681526020017f7075626c69630000000000000000000000000000000000000000000000000000815250600d9080519060200190610ca5929190613a10565b50565b6000806000905060005b600980549050811015610db4576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e3360098581548110610d1357610d1261524d565b5b90600052602060002001546040518363ffffffff1660e01b8152600401610d3b929190614a79565b60206040518083038186803b158015610d5357600080fd5b505afa158015610d67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d8b91906142e1565b1115610da157600182610d9e9190614f37565b91505b8080610dac90615177565b915050610cb2565b508091505090565b610dc461242a565b80600e8190555050565b60048054610ddb90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0790615114565b8015610e545780601f10610e2957610100808354040283529160200191610e54565b820191906000526020600020905b815481529060010190602001808311610e3757829003601f168201915b505050505081565b6060601360008381526020019081526020016000208054610e7c90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea890615114565b8015610ef55780601f10610eca57610100808354040283529160200191610ef5565b820191906000526020600020905b815481529060010190602001808311610ed857829003601f168201915b50505050509050919050565b600c5481565b600e5481565b600d8054610f1a90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054610f4690615114565b8015610f935780601f10610f6857610100808354040283529160200191610f93565b820191906000526020600020905b815481529060010190602001808311610f7657829003601f168201915b505050505081565b60126020528060005260406000206000915090505481565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e336008546040518363ffffffff1660e01b8152600401611013929190614a79565b60206040518083038186803b15801561102b57600080fd5b505afa15801561103f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106391906142e1565b9050600061106f610ca8565b90506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e33600a546040518363ffffffff1660e01b81526004016110d1929190614a79565b60206040518083038186803b1580156110e957600080fd5b505afa1580156110fd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112191906142e1565b9050600082846111319190614f37565b11156112325761115e33600184866111499190614f37565b604051806020016040528060008152506124a8565b600083111561121f57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854876040518563ffffffff1660e01b81526004016111ec9493929190614a21565b600060405180830381600087803b15801561120657600080fd5b505af115801561121a573d6000803e3d6000fd5b505050505b6000821115611231576112306117d2565b5b5b600081111561130f5761125733600283604051806020016040528060008152506124a8565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a54856040518563ffffffff1660e01b81526004016112dc9493929190614a21565b600060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b505050505b505050565b61131c61242a565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600081600784815481106113775761137661524d565b5b9060005260206000200154101580156113af57506000600784815481106113a1576113a061524d565b5b906000526020600020015414155b156113bd57600190506113c2565b600090505b92915050565b6113d0612659565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611416575061141585611410612659565b612207565b5b611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144c90614b58565b60405180910390fd5b6114628585858585612661565b5050505050565b6006805461147690615114565b80601f01602080910402602001604051908101604052809291908181526020018280546114a290615114565b80156114ef5780601f106114c4576101008083540402835291602001916114ef565b820191906000526020600020905b8154815290600101906020018083116114d257829003601f168201915b505050505081565b6114ff61242a565b6000611509611a30565b73ffffffffffffffffffffffffffffffffffffffff164760405161152c906148d7565b60006040518083038185875af1925050503d8060008114611569576040519150601f19603f3d011682016040523d82523d6000602084013e61156e565b606091505b505090508061157c57600080fd5b50565b61158761242a565b806007908051906020019061159d929190613a96565b5050565b60006115ab61242a565b600782815481106115bf576115be61524d565b5b90600052602060002001549050919050565b6115d961242a565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61162561242a565b80600a8190555050565b60608151835114611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90614cf8565b60405180910390fd5b6000835167ffffffffffffffff8111156116925761169161527c565b5b6040519080825280602002602001820160405280156116c05781602001602082028036833780820191505090505b50905060005b845181101561173d5761170d8582815181106116e5576116e461524d565b5b6020026020010151858381518110611700576116ff61524d565b5b6020026020010151610aa7565b8282815181106117205761171f61524d565b5b6020026020010181815250508061173690615177565b90506116c6565b508091505092915050565b61175061242a565b8060088190555050565b61176261242a565b61176d858585612983565b61178885838360405180602001604052806000815250612c52565b5050505050565b61179761242a565b80600f8190555050565b6117a961242a565b6064670de0b6b3a7640000826117bf9190614fbe565b6117c99190614f8d565b600c8190555050565b60005b6009805490508110156118c957601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f242432a33601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600985815481106118585761185761524d565b5b906000526020600020015460016040518563ffffffff1660e01b8152600401611884949392919061496f565b600060405180830381600087803b15801561189e57600080fd5b505af11580156118b2573d6000803e3d6000fd5b5050505080806118c190615177565b9150506117d5565b50565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118fa61242a565b6119046000612e7f565b565b61190e61242a565b6064670de0b6b3a7640000826119249190614fbe565b61192e9190614f8d565b600b8190555050565b611942338383612983565b5050565b61194e61242a565b80601360008481526020019081526020016000209080519060200190611975929190613a10565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516119a69190614b16565b60405180910390a25050565b600b5481565b6119c061242a565b6040518060400160405280600681526020017f636c6f7365640000000000000000000000000000000000000000000000000000815250600d9080519060200190611a0b929190613a10565b50565b611a1661242a565b8060099080519060200190611a2c929190613a96565b5050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a6261242a565b8060069080519060200190611a78929190613a10565b5050565b60058054611a8990615114565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab590615114565b8015611b025780601f10611ad757610100808354040283529160200191611b02565b820191906000526020600020905b815481529060010190602001808311611ae557829003601f168201915b505050505081565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611b42611b3b612659565b8383612f45565b5050565b600f5481565b611b573383836130b2565b5050565b60136020528060005260406000206000915090508054611b7a90615114565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba690615114565b8015611bf35780601f10611bc857610100808354040283529160200191611bf3565b820191906000526020600020905b815481529060010190602001808311611bd657829003601f168201915b505050505081565b604051602001611c0a906148ad565b60405160208183030381529060405280519060200120600d604051602001611c329190614881565b604051602081830303815290604052805190602001201415611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614cb8565b60405180910390fd5b6000805b8351811015611d4e57611cd4848281518110611cac57611cab61524d565b5b6020026020010151848381518110611cc757611cc661524d565b5b6020026020010151611360565b611d13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0a90614d58565b60405180910390fd5b828181518110611d2657611d2561524d565b5b602002602001015182611d399190614f37565b91508080611d4690615177565b915050611c8d565b50611d57611a30565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611fb7576000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050604051602001611ddc906148c2565b60405160208183030381529060405280519060200120600d604051602001611e049190614881565b604051602081830303815290604052805190602001201415611ec157600e548282611e2f9190614f37565b1115611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6790614bd8565b60405180910390fd5b81600c54611e7e9190614fbe565b341015611ec0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb790614c98565b60405180910390fd5b5b604051602001611ed090614898565b60405160208183030381529060405280519060200120600d604051602001611ef89190614881565b604051602081830303815290604052805190602001201415611fb557600f548282611f239190614f37565b1115611f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5b90614bd8565b60405180910390fd5b81600b54611f729190614fbe565b341015611fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fab90614c98565b60405180910390fd5b5b505b611fd233848460405180602001604052806000815250612c52565b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461201d9190614f37565b601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060005b83518110156121195782818151811061207f5761207e61524d565b5b6020026020010151600785838151811061209c5761209b61524d565b5b6020026020010151815481106120b5576120b461524d565b5b90600052602060002001546120ca9190615018565b60078583815181106120df576120de61524d565b5b6020026020010151815481106120f8576120f761524d565b5b9060005260206000200181905550808061211190615177565b915050612063565b50505050565b61212761242a565b6040518060400160405280600781526020017f7072697661746500000000000000000000000000000000000000000000000000815250600d9080519060200190612172929190613a10565b50565b60606006805461218490615114565b80601f01602080910402602001604051908101604052809291908181526020018280546121b090615114565b80156121fd5780601f106121d2576101008083540402835291602001916121fd565b820191906000526020600020905b8154815290600101906020018083116121e057829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a3612659565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806122e957506122e8856122e3612659565b612207565b5b612328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231f90614b58565b60405180910390fd5b61233585858585856132f9565b5050505050565b61234461242a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ab90614b98565b60405180910390fd5b6123bd81612e7f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612432612659565b73ffffffffffffffffffffffffffffffffffffffff16612450611a30565b73ffffffffffffffffffffffffffffffffffffffff16146124a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249d90614c78565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250f90614d38565b60405180910390fd5b6000612522612659565b9050600061252f85613595565b9050600061253c85613595565b905061254d8360008985858961360f565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125ac9190614f37565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161262a929190614d93565b60405180910390a461264183600089858589613617565b6126508360008989898961361f565b50505050505050565b600033905090565b81518351146126a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269c90614d18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c90614c18565b60405180910390fd5b600061271f612659565b905061272f81878787878761360f565b60005b84518110156128e05760008582815181106127505761274f61524d565b5b60200260200101519050600085838151811061276f5761276e61524d565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612810576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280790614c58565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c59190614f37565b92505081905550505050806128d990615177565b9050612732565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612957929190614ac4565b60405180910390a461296d818787878787613617565b61297b818787878787613806565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156129f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ea90614c38565b60405180910390fd5b8051825114612a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2e90614d18565b60405180910390fd5b6000612a41612659565b9050612a618185600086866040518060200160405280600081525061360f565b60005b8351811015612bae576000848281518110612a8257612a8161524d565b5b602002602001015190506000848381518110612aa157612aa061524d565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3990614bb8565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612ba690615177565b915050612a64565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612c26929190614ac4565b60405180910390a4612c4c81856000868660405180602001604052806000815250613617565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612cc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb990614d38565b60405180910390fd5b8151835114612d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfd90614d18565b60405180910390fd5b6000612d10612659565b9050612d218160008787878761360f565b60005b8451811015612dda57838181518110612d4057612d3f61524d565b5b6020026020010151600080878481518110612d5e57612d5d61524d565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dc09190614f37565b925050819055508080612dd290615177565b915050612d24565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612e52929190614ac4565b60405180910390a4612e6981600087878787613617565b612e7881600087878787613806565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fab90614cd8565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130a59190614afb565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613122576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311990614c38565b60405180910390fd5b600061312c612659565b9050600061313984613595565b9050600061314684613595565b90506131668387600085856040518060200160405280600081525061360f565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156131fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f490614bb8565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516132ca929190614d93565b60405180910390a46132f084886000868660405180602001604052806000815250613617565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336090614c18565b60405180910390fd5b6000613373612659565b9050600061338085613595565b9050600061338d85613595565b905061339d83898985858961360f565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015613434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342b90614c58565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134e99190614f37565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051613566929190614d93565b60405180910390a461357c848a8a86868a613617565b61358a848a8a8a8a8a61361f565b505050505050505050565b60606000600167ffffffffffffffff8111156135b4576135b361527c565b5b6040519080825280602002602001820160405280156135e25781602001602082028036833780820191505090505b50905082816000815181106135fa576135f961524d565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b61363e8473ffffffffffffffffffffffffffffffffffffffff166139ed565b156137fe578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016136849594939291906149c7565b602060405180830381600087803b15801561369e57600080fd5b505af19250505080156136cf57506040513d601f19601f820116820180604052508101906136cc919061423e565b60015b613775576136db6152ab565b806308c379a0141561373857506136f0615878565b806136fb575061373a565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372f9190614b16565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376c90614b38565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146137fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f390614b78565b60405180910390fd5b505b505050505050565b6138258473ffffffffffffffffffffffffffffffffffffffff166139ed565b156139e5578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b815260040161386b959493929190614907565b602060405180830381600087803b15801561388557600080fd5b505af19250505080156138b657506040513d601f19601f820116820180604052508101906138b3919061423e565b60015b61395c576138c26152ab565b806308c379a0141561391f57506138d7615878565b806138e25750613921565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139169190614b16565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395390614b38565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146139e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139da90614b78565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613a1c90615114565b90600052602060002090601f016020900481019282613a3e5760008555613a85565b82601f10613a5757805160ff1916838001178555613a85565b82800160010185558215613a85579182015b82811115613a84578251825591602001919060010190613a69565b5b509050613a929190613ae3565b5090565b828054828255906000526020600020908101928215613ad2579160200282015b82811115613ad1578251825591602001919060010190613ab6565b5b509050613adf9190613ae3565b5090565b5b80821115613afc576000816000905550600101613ae4565b5090565b6000613b13613b0e84614de1565b614dbc565b90508083825260208201905082856020860282011115613b3657613b356152d2565b5b60005b85811015613b665781613b4c8882613c64565b845260208401935060208301925050600181019050613b39565b5050509392505050565b6000613b83613b7e84614e0d565b614dbc565b90508083825260208201905082856020860282011115613ba657613ba56152d2565b5b60005b85811015613bd65781613bbc8882613d70565b845260208401935060208301925050600181019050613ba9565b5050509392505050565b6000613bf3613bee84614e39565b614dbc565b905082815260208101848484011115613c0f57613c0e6152d7565b5b613c1a8482856150d2565b509392505050565b6000613c35613c3084614e6a565b614dbc565b905082815260208101848484011115613c5157613c506152d7565b5b613c5c8482856150d2565b509392505050565b600081359050613c738161590e565b92915050565b600082601f830112613c8e57613c8d6152cd565b5b8135613c9e848260208601613b00565b91505092915050565b600082601f830112613cbc57613cbb6152cd565b5b8135613ccc848260208601613b70565b91505092915050565b600081359050613ce481615925565b92915050565b600081359050613cf98161593c565b92915050565b600081519050613d0e8161593c565b92915050565b600082601f830112613d2957613d286152cd565b5b8135613d39848260208601613be0565b91505092915050565b600082601f830112613d5757613d566152cd565b5b8135613d67848260208601613c22565b91505092915050565b600081359050613d7f81615953565b92915050565b600081519050613d9481615953565b92915050565b600060208284031215613db057613daf6152e1565b5b6000613dbe84828501613c64565b91505092915050565b60008060408385031215613dde57613ddd6152e1565b5b6000613dec85828601613c64565b9250506020613dfd85828601613c64565b9150509250929050565b600080600080600060a08688031215613e2357613e226152e1565b5b6000613e3188828901613c64565b9550506020613e4288828901613c64565b945050604086013567ffffffffffffffff811115613e6357613e626152dc565b5b613e6f88828901613ca7565b935050606086013567ffffffffffffffff811115613e9057613e8f6152dc565b5b613e9c88828901613ca7565b925050608086013567ffffffffffffffff811115613ebd57613ebc6152dc565b5b613ec988828901613d14565b9150509295509295909350565b600080600080600060a08688031215613ef257613ef16152e1565b5b6000613f0088828901613c64565b9550506020613f1188828901613c64565b9450506040613f2288828901613d70565b9350506060613f3388828901613d70565b925050608086013567ffffffffffffffff811115613f5457613f536152dc565b5b613f6088828901613d14565b9150509295509295909350565b600080600080600060a08688031215613f8957613f886152e1565b5b6000613f9788828901613c64565b955050602086013567ffffffffffffffff811115613fb857613fb76152dc565b5b613fc488828901613ca7565b945050604086013567ffffffffffffffff811115613fe557613fe46152dc565b5b613ff188828901613ca7565b935050606086013567ffffffffffffffff811115614012576140116152dc565b5b61401e88828901613ca7565b925050608086013567ffffffffffffffff81111561403f5761403e6152dc565b5b61404b88828901613ca7565b9150509295509295909350565b6000806040838503121561406f5761406e6152e1565b5b600061407d85828601613c64565b925050602061408e85828601613cd5565b9150509250929050565b600080604083850312156140af576140ae6152e1565b5b60006140bd85828601613c64565b92505060206140ce85828601613d70565b9150509250929050565b600080604083850312156140ef576140ee6152e1565b5b600083013567ffffffffffffffff81111561410d5761410c6152dc565b5b61411985828601613c79565b925050602083013567ffffffffffffffff81111561413a576141396152dc565b5b61414685828601613ca7565b9150509250929050565b600060208284031215614166576141656152e1565b5b600082013567ffffffffffffffff811115614184576141836152dc565b5b61419084828501613ca7565b91505092915050565b600080604083850312156141b0576141af6152e1565b5b600083013567ffffffffffffffff8111156141ce576141cd6152dc565b5b6141da85828601613ca7565b925050602083013567ffffffffffffffff8111156141fb576141fa6152dc565b5b61420785828601613ca7565b9150509250929050565b600060208284031215614227576142266152e1565b5b600061423584828501613cea565b91505092915050565b600060208284031215614254576142536152e1565b5b600061426284828501613cff565b91505092915050565b600060208284031215614281576142806152e1565b5b600082013567ffffffffffffffff81111561429f5761429e6152dc565b5b6142ab84828501613d42565b91505092915050565b6000602082840312156142ca576142c96152e1565b5b60006142d884828501613d70565b91505092915050565b6000602082840312156142f7576142f66152e1565b5b600061430584828501613d85565b91505092915050565b60008060408385031215614325576143246152e1565b5b600061433385828601613d70565b925050602083013567ffffffffffffffff811115614354576143536152dc565b5b61436085828601613d42565b9150509250929050565b60008060408385031215614381576143806152e1565b5b600061438f85828601613d70565b92505060206143a085828601613d70565b9150509250929050565b60006143b68383614863565b60208301905092915050565b6143cb8161504c565b82525050565b60006143dc82614ec0565b6143e68185614eee565b93506143f183614e9b565b8060005b8381101561442257815161440988826143aa565b975061441483614ee1565b9250506001810190506143f5565b5085935050505092915050565b6144388161505e565b82525050565b600061444982614ecb565b6144538185614eff565b93506144638185602086016150e1565b61446c816152e6565b840191505092915050565b614480816150c0565b82525050565b600061449182614ed6565b61449b8185614f1b565b93506144ab8185602086016150e1565b6144b4816152e6565b840191505092915050565b600081546144cc81615114565b6144d68186614f2c565b945060018216600081146144f1576001811461450257614535565b60ff19831686528186019350614535565b61450b85614eab565b60005b8381101561452d5781548189015260018201915060208101905061450e565b838801955050505b50505092915050565b600061454b603483614f1b565b915061455682615304565b604082019050919050565b600061456e602f83614f1b565b915061457982615353565b604082019050919050565b6000614591602883614f1b565b915061459c826153a2565b604082019050919050565b60006145b4602683614f1b565b91506145bf826153f1565b604082019050919050565b60006145d7602483614f1b565b91506145e282615440565b604082019050919050565b60006145fa600683614f2c565b91506146058261548f565b600682019050919050565b600061461d601c83614f1b565b9150614628826154b8565b602082019050919050565b6000614640602a83614f1b565b915061464b826154e1565b604082019050919050565b6000614663600683614f2c565b915061466e82615530565b600682019050919050565b6000614686602583614f1b565b915061469182615559565b604082019050919050565b60006146a9602383614f1b565b91506146b4826155a8565b604082019050919050565b60006146cc602a83614f1b565b91506146d7826155f7565b604082019050919050565b60006146ef602083614f1b565b91506146fa82615646565b602082019050919050565b6000614712600783614f2c565b915061471d8261566f565b600782019050919050565b6000614735600083614eff565b915061474082615698565b600082019050919050565b6000614758600083614f10565b915061476382615698565b600082019050919050565b600061477b601283614f1b565b91506147868261569b565b602082019050919050565b600061479e601483614f1b565b91506147a9826156c4565b602082019050919050565b60006147c1602983614f1b565b91506147cc826156ed565b604082019050919050565b60006147e4602983614f1b565b91506147ef8261573c565b604082019050919050565b6000614807602883614f1b565b91506148128261578b565b604082019050919050565b600061482a602183614f1b565b9150614835826157da565b604082019050919050565b600061484d602e83614f1b565b915061485882615829565b604082019050919050565b61486c816150b6565b82525050565b61487b816150b6565b82525050565b600061488d82846144bf565b915081905092915050565b60006148a3826145ed565b9150819050919050565b60006148b882614656565b9150819050919050565b60006148cd82614705565b9150819050919050565b60006148e28261474b565b9150819050919050565b600060208201905061490160008301846143c2565b92915050565b600060a08201905061491c60008301886143c2565b61492960208301876143c2565b818103604083015261493b81866143d1565b9050818103606083015261494f81856143d1565b90508181036080830152614963818461443e565b90509695505050505050565b600060a08201905061498460008301876143c2565b61499160208301866143c2565b61499e6040830185614872565b6149ab6060830184614477565b81810360808301526149bc81614728565b905095945050505050565b600060a0820190506149dc60008301886143c2565b6149e960208301876143c2565b6149f66040830186614872565b614a036060830185614872565b8181036080830152614a15818461443e565b90509695505050505050565b600060a082019050614a3660008301876143c2565b614a4360208301866143c2565b614a506040830185614872565b614a5d6060830184614872565b8181036080830152614a6e81614728565b905095945050505050565b6000604082019050614a8e60008301856143c2565b614a9b6020830184614872565b9392505050565b60006020820190508181036000830152614abc81846143d1565b905092915050565b60006040820190508181036000830152614ade81856143d1565b90508181036020830152614af281846143d1565b90509392505050565b6000602082019050614b10600083018461442f565b92915050565b60006020820190508181036000830152614b308184614486565b905092915050565b60006020820190508181036000830152614b518161453e565b9050919050565b60006020820190508181036000830152614b7181614561565b9050919050565b60006020820190508181036000830152614b9181614584565b9050919050565b60006020820190508181036000830152614bb1816145a7565b9050919050565b60006020820190508181036000830152614bd1816145ca565b9050919050565b60006020820190508181036000830152614bf181614610565b9050919050565b60006020820190508181036000830152614c1181614633565b9050919050565b60006020820190508181036000830152614c3181614679565b9050919050565b60006020820190508181036000830152614c518161469c565b9050919050565b60006020820190508181036000830152614c71816146bf565b9050919050565b60006020820190508181036000830152614c91816146e2565b9050919050565b60006020820190508181036000830152614cb18161476e565b9050919050565b60006020820190508181036000830152614cd181614791565b9050919050565b60006020820190508181036000830152614cf1816147b4565b9050919050565b60006020820190508181036000830152614d11816147d7565b9050919050565b60006020820190508181036000830152614d31816147fa565b9050919050565b60006020820190508181036000830152614d518161481d565b9050919050565b60006020820190508181036000830152614d7181614840565b9050919050565b6000602082019050614d8d6000830184614872565b92915050565b6000604082019050614da86000830185614872565b614db56020830184614872565b9392505050565b6000614dc6614dd7565b9050614dd28282615146565b919050565b6000604051905090565b600067ffffffffffffffff821115614dfc57614dfb61527c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614e2857614e2761527c565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614e5457614e5361527c565b5b614e5d826152e6565b9050602081019050919050565b600067ffffffffffffffff821115614e8557614e8461527c565b5b614e8e826152e6565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f42826150b6565b9150614f4d836150b6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f8257614f816151c0565b5b828201905092915050565b6000614f98826150b6565b9150614fa3836150b6565b925082614fb357614fb26151ef565b5b828204905092915050565b6000614fc9826150b6565b9150614fd4836150b6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561500d5761500c6151c0565b5b828202905092915050565b6000615023826150b6565b915061502e836150b6565b925082821015615041576150406151c0565b5b828203905092915050565b600061505782615096565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006150cb826150b6565b9050919050565b82818337600083830152505050565b60005b838110156150ff5780820151818401526020810190506150e4565b8381111561510e576000848401525b50505050565b6000600282049050600182168061512c57607f821691505b602082108114156151405761513f61521e565b5b50919050565b61514f826152e6565b810181811067ffffffffffffffff8211171561516e5761516d61527c565b5b80604052505050565b6000615182826150b6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151b5576151b46151c0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156152ca5760046000803e6152c76000516152f7565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f7075626c69630000000000000000000000000000000000000000000000000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f636c6f7365640000000000000000000000000000000000000000000000000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7072697661746500000000000000000000000000000000000000000000000000600082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f4d696e7420706861736520697320636c6f736564000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e207468617420796f752077616e74656420746f206d696e7420697360008201527f206e6f7420617661696c61626c65000000000000000000000000000000000000602082015250565b600060443d10156158885761590b565b615890614dd7565b60043d036004823e80513d602482011167ffffffffffffffff821117156158b857505061590b565b808201805167ffffffffffffffff8111156158d6575050505061590b565b80602083010160043d0385018111156158f357505050505061590b565b61590282602001850186615146565b82955050505050505b90565b6159178161504c565b811461592257600080fd5b50565b61592e8161505e565b811461593957600080fd5b50565b6159458161506a565b811461595057600080fd5b50565b61595c816150b6565b811461596757600080fd5b5056fea264697066735822122090da3fc37411ba014839b3a31247d65e222bcd315eeb7e4c97c54acf77e262ee64736f6c63430008070033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.