Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
96
Holders
19
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:
SpeakerHeadsX
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; /* * MultiToken SpeakerHeadsX contract for managing token drops * * by @prabhu */ contract SpeakerHeadsX is ERC1155, Ownable, ReentrancyGuard { using Strings for string; using SafeMath for uint256; using Counters for Counters.Counter; using EnumerableSet for EnumerableSet.AddressSet; event TokenAdded(uint256 tokenId, string name, string metadataUrl, uint256 maxSupply); struct MultiToken { bool active; uint256 maxSupply; uint256 mintedSupply; string internalName; string metadataUrl; bool restrictSale; uint256 mintWeiPrice; uint256 maxPerWallet; } string public name; mapping(uint256 => MultiToken) public tokens; mapping(uint256 => EnumerableSet.AddressSet) internal tokenAllowList; Counters.Counter private tokenCounter; constructor( string memory _name, string memory _uri )ERC1155(_uri) { name = _name; } function tokenCount() public view returns (uint) { return tokenCounter.current(); } function addToken(bool _active, bool _restrictSale,string memory _name, string memory _metadataUrl, uint256 _maxSupply, uint256 _maxPerWallet, uint256 _mintWeiPrice) public onlyOwner { require(_maxSupply > 0, "Invalid maxSupply"); MultiToken storage token = tokens[tokenCounter.current()]; token.active = _active; token.restrictSale = _restrictSale; token.internalName = _name; token.maxSupply = _maxSupply; token.maxPerWallet = _maxPerWallet; token.metadataUrl = _metadataUrl; token.mintWeiPrice = _mintWeiPrice; EnumerableSet.AddressSet storage tokenWL = tokenAllowList[tokenCounter.current()]; tokenWL.add(msg.sender); emit TokenAdded(tokenCounter.current(), _name, _metadataUrl, _maxSupply); tokenCounter.increment(); } function toggleTokenSaleStatus(uint256 tokenId) public onlyOwner { MultiToken storage token = tokens[tokenId]; token.active = !token.active; } function toggleRestrictSaleStatus(uint256 tokenId) public onlyOwner { MultiToken storage token = tokens[tokenId]; token.restrictSale = !token.restrictSale; } function uri(uint256 _tokenId) public view override returns (string memory output) { //require(exists(_tokenId), "Token doesn't exists"); MultiToken storage token = tokens[_tokenId]; output = token.metadataUrl; } modifier isTokenTransactionValid(uint256 tokenId, uint256 amount, bool isOwner) { MultiToken storage token = tokens[tokenId]; require( token.mintedSupply+amount <= token.maxSupply, "Tokens Sold out"); uint256 alreadyOwn = balanceOf(msg.sender, tokenId); if (!isOwner) { if (token.maxPerWallet != 0 && token.restrictSale) { require(alreadyOwn+amount <= token.maxPerWallet, " Owns more than allowed tokens"); } require(token.active,"This token is not active for sale"); } _; } function airdrop(uint256 _tokenId, address[] calldata _list) public { batchAirdrop(_tokenId,1,_list); } function batchAirdrop(uint256 _tokenId, uint256 _tokenCount, address[] calldata _list) public isTokenTransactionValid(_tokenId, _tokenCount*_list.length, true) onlyOwner { MultiToken storage token = tokens[_tokenId]; for (uint256 i = 0; i < _list.length; i++) { token.mintedSupply = token.mintedSupply+_tokenCount; _mint(_list[i], _tokenId, _tokenCount, ""); } } function ownerMint( uint256 id, uint256 amount, bytes memory data ) public virtual isTokenTransactionValid(id, amount, true) onlyOwner { MultiToken storage token = tokens[id]; token.mintedSupply = token.mintedSupply+amount; _mint(msg.sender, id, amount, data); } function publicMint( uint256 tokenId, uint256 amount, bytes memory data ) public payable nonReentrant isNotContract isTokenTransactionValid(tokenId, amount, false) { MultiToken storage token = tokens[tokenId]; if (token.restrictSale) { require( verifyAllowlist(msg.sender, tokenId) , "Not Whitelisted"); } uint256 totalPrice = amount * token.mintWeiPrice; require(msg.value >= totalPrice, "Insufficient funds"); token.mintedSupply = token.mintedSupply+amount; _mint(msg.sender, tokenId, amount, data); } function withdraw(uint256 amount) public virtual onlyOwner { if (amount == 0) { amount = address(this).balance; } require(payable(owner()).send(amount), "Address cannot receive payment"); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155) returns (bool) { return super.supportsInterface(interfaceId); } modifier isNotContract() { require(msg.sender == tx.origin, "Proxies cannot mint"); _; } function verifyAllowlist(address sender, uint256 tokenIndex) internal view returns (bool) { EnumerableSet.AddressSet storage tokenWL = tokenAllowList[tokenIndex]; return tokenWL.contains(sender); } function revokeFromAllowList(uint256 tokenId, address[] memory revokeList) public onlyOwner { EnumerableSet.AddressSet storage tokenWL = tokenAllowList[tokenId]; for (uint i = 0; i < revokeList.length; i++) { tokenWL.remove(revokeList[i]); } } function appendToAllowList(uint256 tokenId, address[] memory appendList) public onlyOwner { EnumerableSet.AddressSet storage tokenWL = tokenAllowList[tokenId]; for (uint i = 0; i < appendList.length; i++) { tokenWL.add(appendList[i]); } } function getTokenAllowList (uint256 tokenId) external view returns (address[] memory) { return tokenAllowList[tokenId].values(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try 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 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/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 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) (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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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 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 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"metadataUrl","type":"string"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"TokenAdded","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":"bool","name":"_active","type":"bool"},{"internalType":"bool","name":"_restrictSale","type":"bool"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_metadataUrl","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_mintWeiPrice","type":"uint256"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address[]","name":"_list","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"appendList","type":"address[]"}],"name":"appendToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_tokenCount","type":"uint256"},{"internalType":"address[]","name":"_list","type":"address[]"}],"name":"batchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenAllowList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"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":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"revokeList","type":"address[]"}],"name":"revokeFromAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toggleRestrictSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toggleTokenSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintedSupply","type":"uint256"},{"internalType":"string","name":"internalName","type":"string"},{"internalType":"string","name":"metadataUrl","type":"string"},{"internalType":"bool","name":"restrictSale","type":"bool"},{"internalType":"uint256","name":"mintWeiPrice","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"output","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200525c3803806200525c8339818101604052810190620000379190620003ca565b8062000049816200009360201b60201c565b506200006a6200005e620000af60201b60201c565b620000b760201b60201c565b600160048190555081600590805190602001906200008a9291906200017d565b505050620004b4565b8060029080519060200190620000ab9291906200017d565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200018b906200047e565b90600052602060002090601f016020900481019282620001af5760008555620001fb565b82601f10620001ca57805160ff1916838001178555620001fb565b82800160010185558215620001fb579182015b82811115620001fa578251825591602001919060010190620001dd565b5b5090506200020a91906200020e565b5090565b5b80821115620002295760008160009055506001016200020f565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000296826200024b565b810181811067ffffffffffffffff82111715620002b857620002b76200025c565b5b80604052505050565b6000620002cd6200022d565b9050620002db82826200028b565b919050565b600067ffffffffffffffff821115620002fe57620002fd6200025c565b5b62000309826200024b565b9050602081019050919050565b60005b838110156200033657808201518184015260208101905062000319565b8381111562000346576000848401525b50505050565b6000620003636200035d84620002e0565b620002c1565b90508281526020810184848401111562000382576200038162000246565b5b6200038f84828562000316565b509392505050565b600082601f830112620003af57620003ae62000241565b5b8151620003c18482602086016200034c565b91505092915050565b60008060408385031215620003e457620003e362000237565b5b600083015167ffffffffffffffff8111156200040557620004046200023c565b5b620004138582860162000397565b925050602083015167ffffffffffffffff8111156200043757620004366200023c565b5b620004458582860162000397565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049757607f821691505b60208210811415620004ae57620004ad6200044f565b5b50919050565b614d9880620004c46000396000f3fe6080604052600436106101655760003560e01c806366da8eb1116100d1578063a2682b571161008a578063dec66f1e11610064578063dec66f1e1461052d578063e985e9c514610556578063f242432a14610593578063f2fde38b146105bc57610165565b8063a2682b571461049e578063bdf7a8e6146104c7578063cf02d75b146104f057610165565b806366da8eb1146103b6578063715018a6146103df57806378824262146103f65780638da5cb5b1461041f5780639f181b5e1461044a578063a22cb4651461047557610165565b806328e075371161012357806328e07537146102915780632e1a7d4d146102ba5780632eb2c2d6146102e35780634e1273f41461030c5780634f64b2be14610349578063511379991461038d57610165565b8062fdd58e1461016a57806301ffc9a7146101a757806306fdde03146101e4578063081b6a9a1461020f5780630a8bd9e8146102385780630e89341c14610254575b600080fd5b34801561017657600080fd5b50610191600480360381019061018c9190612fd1565b6105e5565b60405161019e9190613020565b60405180910390f35b3480156101b357600080fd5b506101ce60048036038101906101c99190613093565b6106ae565b6040516101db91906130db565b60405180910390f35b3480156101f057600080fd5b506101f96106c0565b604051610206919061318f565b60405180910390f35b34801561021b57600080fd5b5061023660048036038101906102319190613312565b61074e565b005b610252600480360381019061024d919061348d565b610941565b005b34801561026057600080fd5b5061027b600480360381019061027691906134fc565b610c54565b604051610288919061318f565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b39190613589565b610d02565b005b3480156102c657600080fd5b506102e160048036038101906102dc91906134fc565b610f7c565b005b3480156102ef57600080fd5b5061030a600480360381019061030591906136c0565b611083565b005b34801561031857600080fd5b50610333600480360381019061032e9190613852565b611124565b6040516103409190613988565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b91906134fc565b61123d565b6040516103849897969594939291906139aa565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af91906134fc565b6113af565b005b3480156103c257600080fd5b506103dd60048036038101906103d89190613a36565b611474565b005b3480156103eb57600080fd5b506103f461155a565b005b34801561040257600080fd5b5061041d6004803603810190610418919061348d565b6115e2565b005b34801561042b57600080fd5b506104346117f5565b6040516104419190613aa1565b60405180910390f35b34801561045657600080fd5b5061045f61181f565b60405161046c9190613020565b60405180910390f35b34801561048157600080fd5b5061049c60048036038101906104979190613abc565b611830565b005b3480156104aa57600080fd5b506104c560048036038101906104c091906134fc565b611846565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613afc565b61190b565b005b3480156104fc57600080fd5b50610517600480360381019061051291906134fc565b61191d565b6040516105249190613c1a565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613a36565b611941565b005b34801561056257600080fd5b5061057d60048036038101906105789190613c3c565b611a27565b60405161058a91906130db565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613c7c565b611abb565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613d13565b611b5c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064d90613db2565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106b982611c54565b9050919050565b600580546106cd90613e01565b80601f01602080910402602001604051908101604052809291908181526020018280546106f990613e01565b80156107465780601f1061071b57610100808354040283529160200191610746565b820191906000526020600020905b81548152906001019060200180831161072957829003601f168201915b505050505081565b610756611d36565b73ffffffffffffffffffffffffffffffffffffffff166107746117f5565b73ffffffffffffffffffffffffffffffffffffffff16146107ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c190613e7f565b60405180910390fd5b6000831161080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080490613eeb565b60405180910390fd5b60006006600061081d6008611d3e565b81526020019081526020016000209050878160000160006101000a81548160ff021916908315150217905550868160050160006101000a81548160ff0219169083151502179055508581600301908051906020019061087d929190612e86565b50838160010181905550828160070181905550848160040190805190602001906108a8929190612e86565b508181600601819055506000600760006108c26008611d3e565b815260200190815260200160002090506108e53382611d4c90919063ffffffff16565b507fcb6db622591413d81740ea202faf7e884f624276a3bc1c94d0f14e1908c2bc576109116008611d3e565b8888886040516109249493929190613f0b565b60405180910390a16109366008611d7c565b505050505050505050565b60026004541415610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90613faa565b60405180910390fd5b60026004819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f490614016565b60405180910390fd5b82826000806006600085815260200190815260200160002090508060010154838260020154610a2c9190614065565b1115610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490614107565b60405180910390fd5b6000610a7933866105e5565b905082610b4d576000826007015414158015610aa357508160050160009054906101000a900460ff165b15610afb5781600701548482610ab99190614065565b1115610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4390614205565b60405180910390fd5b5b6000600660008a815260200190815260200160002090508060050160009054906101000a900460ff1615610bc557610b85338a611d92565b610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb90614271565b60405180910390fd5b5b6000816006015489610bd79190614291565b905080341015610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390614337565b60405180910390fd5b888260020154610c2c9190614065565b8260020181905550610c40338b8b8b611dc6565b505050505050506001600481905550505050565b60606000600660008481526020019081526020016000209050806004018054610c7c90613e01565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca890613e01565b8015610cf55780601f10610cca57610100808354040283529160200191610cf5565b820191906000526020600020905b815481529060010190602001808311610cd857829003601f168201915b5050505050915050919050565b838282905084610d129190614291565b600160006006600085815260200190815260200160002090508060010154838260020154610d409190614065565b1115610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890614107565b60405180910390fd5b6000610d8d33866105e5565b905082610e61576000826007015414158015610db757508160050160009054906101000a900460ff165b15610e0f5781600701548482610dcd9190614065565b1115610e0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0590614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16610e60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5790614205565b60405180910390fd5b5b610e69611d36565b73ffffffffffffffffffffffffffffffffffffffff16610e876117f5565b73ffffffffffffffffffffffffffffffffffffffff1614610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490613e7f565b60405180910390fd5b6000600660008b8152602001908152602001600020905060005b88889050811015610f6f57898260020154610f129190614065565b8260020181905550610f5c898983818110610f3057610f2f614357565b5b9050602002016020810190610f459190613d13565b8c8c60405180602001604052806000815250611dc6565b8080610f6790614386565b915050610ef7565b5050505050505050505050565b610f84611d36565b73ffffffffffffffffffffffffffffffffffffffff16610fa26117f5565b73ffffffffffffffffffffffffffffffffffffffff1614610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90613e7f565b60405180910390fd5b6000811415611005574790505b61100d6117f5565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050611080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110779061441b565b60405180910390fd5b50565b61108b611d36565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110d157506110d0856110cb611d36565b611a27565b5b611110576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611107906144ad565b60405180910390fd5b61111d8585858585611f5c565b5050505050565b6060815183511461116a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111619061453f565b60405180910390fd5b6000835167ffffffffffffffff811115611187576111866131e7565b5b6040519080825280602002602001820160405280156111b55781602001602082028036833780820191505090505b50905060005b8451811015611232576112028582815181106111da576111d9614357565b5b60200260200101518583815181106111f5576111f4614357565b5b60200260200101516105e5565b82828151811061121557611214614357565b5b6020026020010181815250508061122b90614386565b90506111bb565b508091505092915050565b60066020528060005260406000206000915090508060000160009054906101000a900460ff169080600101549080600201549080600301805461127f90613e01565b80601f01602080910402602001604051908101604052809291908181526020018280546112ab90613e01565b80156112f85780601f106112cd576101008083540402835291602001916112f8565b820191906000526020600020905b8154815290600101906020018083116112db57829003601f168201915b50505050509080600401805461130d90613e01565b80601f016020809104026020016040519081016040528092919081815260200182805461133990613e01565b80156113865780601f1061135b57610100808354040283529160200191611386565b820191906000526020600020905b81548152906001019060200180831161136957829003601f168201915b5050505050908060050160009054906101000a900460ff16908060060154908060070154905088565b6113b7611d36565b73ffffffffffffffffffffffffffffffffffffffff166113d56117f5565b73ffffffffffffffffffffffffffffffffffffffff161461142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290613e7f565b60405180910390fd5b60006006600083815260200190815260200160002090508060000160009054906101000a900460ff16158160000160006101000a81548160ff0219169083151502179055505050565b61147c611d36565b73ffffffffffffffffffffffffffffffffffffffff1661149a6117f5565b73ffffffffffffffffffffffffffffffffffffffff16146114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790613e7f565b60405180910390fd5b600060076000848152602001908152602001600020905060005b82518110156115545761154083828151811061152957611528614357565b5b602002602001015183611d4c90919063ffffffff16565b50808061154c90614386565b91505061150a565b50505050565b611562611d36565b73ffffffffffffffffffffffffffffffffffffffff166115806117f5565b73ffffffffffffffffffffffffffffffffffffffff16146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd90613e7f565b60405180910390fd5b6115e06000612270565b565b82826001600060066000858152602001908152602001600020905080600101548382600201546116129190614065565b1115611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90614107565b60405180910390fd5b600061165f33866105e5565b90508261173357600082600701541415801561168957508160050160009054906101000a900460ff165b156116e1578160070154848261169f9190614065565b11156116e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d790614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16611732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172990614205565b60405180910390fd5b5b61173b611d36565b73ffffffffffffffffffffffffffffffffffffffff166117596117f5565b73ffffffffffffffffffffffffffffffffffffffff16146117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a690613e7f565b60405180910390fd5b6000600660008a815260200190815260200160002090508781600201546117d69190614065565b81600201819055506117ea338a8a8a611dc6565b505050505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061182b6008611d3e565b905090565b61184261183b611d36565b8383612336565b5050565b61184e611d36565b73ffffffffffffffffffffffffffffffffffffffff1661186c6117f5565b73ffffffffffffffffffffffffffffffffffffffff16146118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990613e7f565b60405180910390fd5b60006006600083815260200190815260200160002090508060050160009054906101000a900460ff16158160050160006101000a81548160ff0219169083151502179055505050565b6119188360018484610d02565b505050565b606061193a600760008481526020019081526020016000206124a3565b9050919050565b611949611d36565b73ffffffffffffffffffffffffffffffffffffffff166119676117f5565b73ffffffffffffffffffffffffffffffffffffffff16146119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b490613e7f565b60405180910390fd5b600060076000848152602001908152602001600020905060005b8251811015611a2157611a0d8382815181106119f6576119f5614357565b5b6020026020010151836124c490919063ffffffff16565b508080611a1990614386565b9150506119d7565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ac3611d36565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611b095750611b0885611b03611d36565b611a27565b5b611b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3f906145d1565b60405180910390fd5b611b5585858585856124f4565b5050505050565b611b64611d36565b73ffffffffffffffffffffffffffffffffffffffff16611b826117f5565b73ffffffffffffffffffffffffffffffffffffffff1614611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf90613e7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3f90614663565b60405180910390fd5b611c5181612270565b50565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d1f57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d2f5750611d2e82612776565b5b9050919050565b600033905090565b600081600001549050919050565b6000611d74836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6127e0565b905092915050565b6001816000016000828254019250508190555050565b600080600760008481526020019081526020016000209050611dbd848261285090919063ffffffff16565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2d906146f5565b60405180910390fd5b6000611e40611d36565b9050611e6181600087611e5288612880565b611e5b88612880565b876128fa565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec09190614065565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611f3e929190614715565b60405180910390a4611f5581600087878787612902565b5050505050565b8151835114611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f97906147b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200790614842565b60405180910390fd5b600061201a611d36565b905061202a8187878787876128fa565b60005b84518110156121db57600085828151811061204b5761204a614357565b5b60200260200101519050600085838151811061206a57612069614357565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561210b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612102906148d4565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c09190614065565b92505081905550505050806121d490614386565b905061202d565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122529291906148f4565b60405180910390a4612268818787878787612ae9565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239c9061499d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161249691906130db565b60405180910390a3505050565b606060006124b383600001612cd0565b905060608190508092505050919050565b60006124ec836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612d2c565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255b90614842565b60405180910390fd5b600061256e611d36565b905061258e81878761257f88612880565b61258888612880565b876128fa565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261c906148d4565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126da9190614065565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612757929190614715565b60405180910390a461276d828888888888612902565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006127ec8383612e40565b61284557826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061284a565b600090505b92915050565b6000612878836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612e40565b905092915050565b60606000600167ffffffffffffffff81111561289f5761289e6131e7565b5b6040519080825280602002602001820160405280156128cd5781602001602082028036833780820191505090505b50905082816000815181106128e5576128e4614357565b5b60200260200101818152505080915050919050565b505050505050565b6129218473ffffffffffffffffffffffffffffffffffffffff16612e63565b15612ae1578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612967959493929190614a12565b602060405180830381600087803b15801561298157600080fd5b505af19250505080156129b257506040513d601f19601f820116820180604052508101906129af9190614a81565b60015b612a58576129be614abb565b806308c379a01415612a1b57506129d3614add565b806129de5750612a1d565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a12919061318f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4f90614be5565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad690614c77565b60405180910390fd5b505b505050505050565b612b088473ffffffffffffffffffffffffffffffffffffffff16612e63565b15612cc8578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b4e959493929190614c97565b602060405180830381600087803b158015612b6857600080fd5b505af1925050508015612b9957506040513d601f19601f82011682018060405250810190612b969190614a81565b60015b612c3f57612ba5614abb565b806308c379a01415612c025750612bba614add565b80612bc55750612c04565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf9919061318f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614be5565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbd90614c77565b60405180910390fd5b505b505050505050565b606081600001805480602002602001604051908101604052809291908181526020018280548015612d2057602002820191906000526020600020905b815481526020019060010190808311612d0c575b50505050509050919050565b60008083600101600084815260200190815260200160002054905060008114612e34576000600182612d5e9190614cff565b9050600060018660000180549050612d769190614cff565b9050818114612de5576000866000018281548110612d9757612d96614357565b5b9060005260206000200154905080876000018481548110612dbb57612dba614357565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612df957612df8614d33565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612e3a565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612e9290613e01565b90600052602060002090601f016020900481019282612eb45760008555612efb565b82601f10612ecd57805160ff1916838001178555612efb565b82800160010185558215612efb579182015b82811115612efa578251825591602001919060010190612edf565b5b509050612f089190612f0c565b5090565b5b80821115612f25576000816000905550600101612f0d565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f6882612f3d565b9050919050565b612f7881612f5d565b8114612f8357600080fd5b50565b600081359050612f9581612f6f565b92915050565b6000819050919050565b612fae81612f9b565b8114612fb957600080fd5b50565b600081359050612fcb81612fa5565b92915050565b60008060408385031215612fe857612fe7612f33565b5b6000612ff685828601612f86565b925050602061300785828601612fbc565b9150509250929050565b61301a81612f9b565b82525050565b60006020820190506130356000830184613011565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130708161303b565b811461307b57600080fd5b50565b60008135905061308d81613067565b92915050565b6000602082840312156130a9576130a8612f33565b5b60006130b78482850161307e565b91505092915050565b60008115159050919050565b6130d5816130c0565b82525050565b60006020820190506130f060008301846130cc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613130578082015181840152602081019050613115565b8381111561313f576000848401525b50505050565b6000601f19601f8301169050919050565b6000613161826130f6565b61316b8185613101565b935061317b818560208601613112565b61318481613145565b840191505092915050565b600060208201905081810360008301526131a98184613156565b905092915050565b6131ba816130c0565b81146131c557600080fd5b50565b6000813590506131d7816131b1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61321f82613145565b810181811067ffffffffffffffff8211171561323e5761323d6131e7565b5b80604052505050565b6000613251612f29565b905061325d8282613216565b919050565b600067ffffffffffffffff82111561327d5761327c6131e7565b5b61328682613145565b9050602081019050919050565b82818337600083830152505050565b60006132b56132b084613262565b613247565b9050828152602081018484840111156132d1576132d06131e2565b5b6132dc848285613293565b509392505050565b600082601f8301126132f9576132f86131dd565b5b81356133098482602086016132a2565b91505092915050565b600080600080600080600060e0888a03121561333157613330612f33565b5b600061333f8a828b016131c8565b97505060206133508a828b016131c8565b965050604088013567ffffffffffffffff81111561337157613370612f38565b5b61337d8a828b016132e4565b955050606088013567ffffffffffffffff81111561339e5761339d612f38565b5b6133aa8a828b016132e4565b94505060806133bb8a828b01612fbc565b93505060a06133cc8a828b01612fbc565b92505060c06133dd8a828b01612fbc565b91505092959891949750929550565b600067ffffffffffffffff821115613407576134066131e7565b5b61341082613145565b9050602081019050919050565b600061343061342b846133ec565b613247565b90508281526020810184848401111561344c5761344b6131e2565b5b613457848285613293565b509392505050565b600082601f830112613474576134736131dd565b5b813561348484826020860161341d565b91505092915050565b6000806000606084860312156134a6576134a5612f33565b5b60006134b486828701612fbc565b93505060206134c586828701612fbc565b925050604084013567ffffffffffffffff8111156134e6576134e5612f38565b5b6134f28682870161345f565b9150509250925092565b60006020828403121561351257613511612f33565b5b600061352084828501612fbc565b91505092915050565b600080fd5b600080fd5b60008083601f840112613549576135486131dd565b5b8235905067ffffffffffffffff81111561356657613565613529565b5b6020830191508360208202830111156135825761358161352e565b5b9250929050565b600080600080606085870312156135a3576135a2612f33565b5b60006135b187828801612fbc565b94505060206135c287828801612fbc565b935050604085013567ffffffffffffffff8111156135e3576135e2612f38565b5b6135ef87828801613533565b925092505092959194509250565b600067ffffffffffffffff821115613618576136176131e7565b5b602082029050602081019050919050565b600061363c613637846135fd565b613247565b9050808382526020820190506020840283018581111561365f5761365e61352e565b5b835b8181101561368857806136748882612fbc565b845260208401935050602081019050613661565b5050509392505050565b600082601f8301126136a7576136a66131dd565b5b81356136b7848260208601613629565b91505092915050565b600080600080600060a086880312156136dc576136db612f33565b5b60006136ea88828901612f86565b95505060206136fb88828901612f86565b945050604086013567ffffffffffffffff81111561371c5761371b612f38565b5b61372888828901613692565b935050606086013567ffffffffffffffff81111561374957613748612f38565b5b61375588828901613692565b925050608086013567ffffffffffffffff81111561377657613775612f38565b5b6137828882890161345f565b9150509295509295909350565b600067ffffffffffffffff8211156137aa576137a96131e7565b5b602082029050602081019050919050565b60006137ce6137c98461378f565b613247565b905080838252602082019050602084028301858111156137f1576137f061352e565b5b835b8181101561381a57806138068882612f86565b8452602084019350506020810190506137f3565b5050509392505050565b600082601f830112613839576138386131dd565b5b81356138498482602086016137bb565b91505092915050565b6000806040838503121561386957613868612f33565b5b600083013567ffffffffffffffff81111561388757613886612f38565b5b61389385828601613824565b925050602083013567ffffffffffffffff8111156138b4576138b3612f38565b5b6138c085828601613692565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138ff81612f9b565b82525050565b600061391183836138f6565b60208301905092915050565b6000602082019050919050565b6000613935826138ca565b61393f81856138d5565b935061394a836138e6565b8060005b8381101561397b5781516139628882613905565b975061396d8361391d565b92505060018101905061394e565b5085935050505092915050565b600060208201905081810360008301526139a2818461392a565b905092915050565b6000610100820190506139c0600083018b6130cc565b6139cd602083018a613011565b6139da6040830189613011565b81810360608301526139ec8188613156565b90508181036080830152613a008187613156565b9050613a0f60a08301866130cc565b613a1c60c0830185613011565b613a2960e0830184613011565b9998505050505050505050565b60008060408385031215613a4d57613a4c612f33565b5b6000613a5b85828601612fbc565b925050602083013567ffffffffffffffff811115613a7c57613a7b612f38565b5b613a8885828601613824565b9150509250929050565b613a9b81612f5d565b82525050565b6000602082019050613ab66000830184613a92565b92915050565b60008060408385031215613ad357613ad2612f33565b5b6000613ae185828601612f86565b9250506020613af2858286016131c8565b9150509250929050565b600080600060408486031215613b1557613b14612f33565b5b6000613b2386828701612fbc565b935050602084013567ffffffffffffffff811115613b4457613b43612f38565b5b613b5086828701613533565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b9181612f5d565b82525050565b6000613ba38383613b88565b60208301905092915050565b6000602082019050919050565b6000613bc782613b5c565b613bd18185613b67565b9350613bdc83613b78565b8060005b83811015613c0d578151613bf48882613b97565b9750613bff83613baf565b925050600181019050613be0565b5085935050505092915050565b60006020820190508181036000830152613c348184613bbc565b905092915050565b60008060408385031215613c5357613c52612f33565b5b6000613c6185828601612f86565b9250506020613c7285828601612f86565b9150509250929050565b600080600080600060a08688031215613c9857613c97612f33565b5b6000613ca688828901612f86565b9550506020613cb788828901612f86565b9450506040613cc888828901612fbc565b9350506060613cd988828901612fbc565b925050608086013567ffffffffffffffff811115613cfa57613cf9612f38565b5b613d068882890161345f565b9150509295509295909350565b600060208284031215613d2957613d28612f33565b5b6000613d3784828501612f86565b91505092915050565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613d9c602b83613101565b9150613da782613d40565b604082019050919050565b60006020820190508181036000830152613dcb81613d8f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e1957607f821691505b60208210811415613e2d57613e2c613dd2565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613e69602083613101565b9150613e7482613e33565b602082019050919050565b60006020820190508181036000830152613e9881613e5c565b9050919050565b7f496e76616c6964206d6178537570706c79000000000000000000000000000000600082015250565b6000613ed5601183613101565b9150613ee082613e9f565b602082019050919050565b60006020820190508181036000830152613f0481613ec8565b9050919050565b6000608082019050613f206000830187613011565b8181036020830152613f328186613156565b90508181036040830152613f468185613156565b9050613f556060830184613011565b95945050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f94601f83613101565b9150613f9f82613f5e565b602082019050919050565b60006020820190508181036000830152613fc381613f87565b9050919050565b7f50726f786965732063616e6e6f74206d696e7400000000000000000000000000600082015250565b6000614000601383613101565b915061400b82613fca565b602082019050919050565b6000602082019050818103600083015261402f81613ff3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061407082612f9b565b915061407b83612f9b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140b0576140af614036565b5b828201905092915050565b7f546f6b656e7320536f6c64206f75740000000000000000000000000000000000600082015250565b60006140f1600f83613101565b91506140fc826140bb565b602082019050919050565b60006020820190508181036000830152614120816140e4565b9050919050565b7f204f776e73206d6f7265207468616e20616c6c6f77656420746f6b656e730000600082015250565b600061415d601e83613101565b915061416882614127565b602082019050919050565b6000602082019050818103600083015261418c81614150565b9050919050565b7f5468697320746f6b656e206973206e6f742061637469766520666f722073616c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b60006141ef602183613101565b91506141fa82614193565b604082019050919050565b6000602082019050818103600083015261421e816141e2565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b600061425b600f83613101565b915061426682614225565b602082019050919050565b6000602082019050818103600083015261428a8161424e565b9050919050565b600061429c82612f9b565b91506142a783612f9b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142e0576142df614036565b5b828202905092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000614321601283613101565b915061432c826142eb565b602082019050919050565b6000602082019050818103600083015261435081614314565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061439182612f9b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143c4576143c3614036565b5b600182019050919050565b7f416464726573732063616e6e6f742072656365697665207061796d656e740000600082015250565b6000614405601e83613101565b9150614410826143cf565b602082019050919050565b60006020820190508181036000830152614434816143f8565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614497603283613101565b91506144a28261443b565b604082019050919050565b600060208201905081810360008301526144c68161448a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614529602983613101565b9150614534826144cd565b604082019050919050565b600060208201905081810360008301526145588161451c565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006145bb602983613101565b91506145c68261455f565b604082019050919050565b600060208201905081810360008301526145ea816145ae565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061464d602683613101565b9150614658826145f1565b604082019050919050565b6000602082019050818103600083015261467c81614640565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006146df602183613101565b91506146ea82614683565b604082019050919050565b6000602082019050818103600083015261470e816146d2565b9050919050565b600060408201905061472a6000830185613011565b6147376020830184613011565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061479a602883613101565b91506147a58261473e565b604082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061482c602583613101565b9150614837826147d0565b604082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006148be602a83613101565b91506148c982614862565b604082019050919050565b600060208201905081810360008301526148ed816148b1565b9050919050565b6000604082019050818103600083015261490e818561392a565b90508181036020830152614922818461392a565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614987602983613101565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006149e4826149bd565b6149ee81856149c8565b93506149fe818560208601613112565b614a0781613145565b840191505092915050565b600060a082019050614a276000830188613a92565b614a346020830187613a92565b614a416040830186613011565b614a4e6060830185613011565b8181036080830152614a6081846149d9565b90509695505050505050565b600081519050614a7b81613067565b92915050565b600060208284031215614a9757614a96612f33565b5b6000614aa584828501614a6c565b91505092915050565b60008160e01c9050919050565b600060033d1115614ada5760046000803e614ad7600051614aae565b90505b90565b600060443d1015614aed57614b70565b614af5612f29565b60043d036004823e80513d602482011167ffffffffffffffff82111715614b1d575050614b70565b808201805167ffffffffffffffff811115614b3b5750505050614b70565b80602083010160043d038501811115614b58575050505050614b70565b614b6782602001850186613216565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614bcf603483613101565b9150614bda82614b73565b604082019050919050565b60006020820190508181036000830152614bfe81614bc2565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614c61602883613101565b9150614c6c82614c05565b604082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b600060a082019050614cac6000830188613a92565b614cb96020830187613a92565b8181036040830152614ccb818661392a565b90508181036060830152614cdf818561392a565b90508181036080830152614cf381846149d9565b90509695505050505050565b6000614d0a82612f9b565b9150614d1583612f9b565b925082821015614d2857614d27614036565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205c67189a1ebb0272e92a7ad827c175eedb6c9d6deb6bd88cdcc3b6bfc10d0ac364736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000553504b5278000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f737065616b657268656164732e696f000000000000000000
Deployed Bytecode
0x6080604052600436106101655760003560e01c806366da8eb1116100d1578063a2682b571161008a578063dec66f1e11610064578063dec66f1e1461052d578063e985e9c514610556578063f242432a14610593578063f2fde38b146105bc57610165565b8063a2682b571461049e578063bdf7a8e6146104c7578063cf02d75b146104f057610165565b806366da8eb1146103b6578063715018a6146103df57806378824262146103f65780638da5cb5b1461041f5780639f181b5e1461044a578063a22cb4651461047557610165565b806328e075371161012357806328e07537146102915780632e1a7d4d146102ba5780632eb2c2d6146102e35780634e1273f41461030c5780634f64b2be14610349578063511379991461038d57610165565b8062fdd58e1461016a57806301ffc9a7146101a757806306fdde03146101e4578063081b6a9a1461020f5780630a8bd9e8146102385780630e89341c14610254575b600080fd5b34801561017657600080fd5b50610191600480360381019061018c9190612fd1565b6105e5565b60405161019e9190613020565b60405180910390f35b3480156101b357600080fd5b506101ce60048036038101906101c99190613093565b6106ae565b6040516101db91906130db565b60405180910390f35b3480156101f057600080fd5b506101f96106c0565b604051610206919061318f565b60405180910390f35b34801561021b57600080fd5b5061023660048036038101906102319190613312565b61074e565b005b610252600480360381019061024d919061348d565b610941565b005b34801561026057600080fd5b5061027b600480360381019061027691906134fc565b610c54565b604051610288919061318f565b60405180910390f35b34801561029d57600080fd5b506102b860048036038101906102b39190613589565b610d02565b005b3480156102c657600080fd5b506102e160048036038101906102dc91906134fc565b610f7c565b005b3480156102ef57600080fd5b5061030a600480360381019061030591906136c0565b611083565b005b34801561031857600080fd5b50610333600480360381019061032e9190613852565b611124565b6040516103409190613988565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b91906134fc565b61123d565b6040516103849897969594939291906139aa565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af91906134fc565b6113af565b005b3480156103c257600080fd5b506103dd60048036038101906103d89190613a36565b611474565b005b3480156103eb57600080fd5b506103f461155a565b005b34801561040257600080fd5b5061041d6004803603810190610418919061348d565b6115e2565b005b34801561042b57600080fd5b506104346117f5565b6040516104419190613aa1565b60405180910390f35b34801561045657600080fd5b5061045f61181f565b60405161046c9190613020565b60405180910390f35b34801561048157600080fd5b5061049c60048036038101906104979190613abc565b611830565b005b3480156104aa57600080fd5b506104c560048036038101906104c091906134fc565b611846565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613afc565b61190b565b005b3480156104fc57600080fd5b50610517600480360381019061051291906134fc565b61191d565b6040516105249190613c1a565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613a36565b611941565b005b34801561056257600080fd5b5061057d60048036038101906105789190613c3c565b611a27565b60405161058a91906130db565b60405180910390f35b34801561059f57600080fd5b506105ba60048036038101906105b59190613c7c565b611abb565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613d13565b611b5c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064d90613db2565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006106b982611c54565b9050919050565b600580546106cd90613e01565b80601f01602080910402602001604051908101604052809291908181526020018280546106f990613e01565b80156107465780601f1061071b57610100808354040283529160200191610746565b820191906000526020600020905b81548152906001019060200180831161072957829003601f168201915b505050505081565b610756611d36565b73ffffffffffffffffffffffffffffffffffffffff166107746117f5565b73ffffffffffffffffffffffffffffffffffffffff16146107ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c190613e7f565b60405180910390fd5b6000831161080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080490613eeb565b60405180910390fd5b60006006600061081d6008611d3e565b81526020019081526020016000209050878160000160006101000a81548160ff021916908315150217905550868160050160006101000a81548160ff0219169083151502179055508581600301908051906020019061087d929190612e86565b50838160010181905550828160070181905550848160040190805190602001906108a8929190612e86565b508181600601819055506000600760006108c26008611d3e565b815260200190815260200160002090506108e53382611d4c90919063ffffffff16565b507fcb6db622591413d81740ea202faf7e884f624276a3bc1c94d0f14e1908c2bc576109116008611d3e565b8888886040516109249493929190613f0b565b60405180910390a16109366008611d7c565b505050505050505050565b60026004541415610987576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097e90613faa565b60405180910390fd5b60026004819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f490614016565b60405180910390fd5b82826000806006600085815260200190815260200160002090508060010154838260020154610a2c9190614065565b1115610a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6490614107565b60405180910390fd5b6000610a7933866105e5565b905082610b4d576000826007015414158015610aa357508160050160009054906101000a900460ff165b15610afb5781600701548482610ab99190614065565b1115610afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af190614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16610b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4390614205565b60405180910390fd5b5b6000600660008a815260200190815260200160002090508060050160009054906101000a900460ff1615610bc557610b85338a611d92565b610bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbb90614271565b60405180910390fd5b5b6000816006015489610bd79190614291565b905080341015610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390614337565b60405180910390fd5b888260020154610c2c9190614065565b8260020181905550610c40338b8b8b611dc6565b505050505050506001600481905550505050565b60606000600660008481526020019081526020016000209050806004018054610c7c90613e01565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca890613e01565b8015610cf55780601f10610cca57610100808354040283529160200191610cf5565b820191906000526020600020905b815481529060010190602001808311610cd857829003601f168201915b5050505050915050919050565b838282905084610d129190614291565b600160006006600085815260200190815260200160002090508060010154838260020154610d409190614065565b1115610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890614107565b60405180910390fd5b6000610d8d33866105e5565b905082610e61576000826007015414158015610db757508160050160009054906101000a900460ff165b15610e0f5781600701548482610dcd9190614065565b1115610e0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0590614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16610e60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5790614205565b60405180910390fd5b5b610e69611d36565b73ffffffffffffffffffffffffffffffffffffffff16610e876117f5565b73ffffffffffffffffffffffffffffffffffffffff1614610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490613e7f565b60405180910390fd5b6000600660008b8152602001908152602001600020905060005b88889050811015610f6f57898260020154610f129190614065565b8260020181905550610f5c898983818110610f3057610f2f614357565b5b9050602002016020810190610f459190613d13565b8c8c60405180602001604052806000815250611dc6565b8080610f6790614386565b915050610ef7565b5050505050505050505050565b610f84611d36565b73ffffffffffffffffffffffffffffffffffffffff16610fa26117f5565b73ffffffffffffffffffffffffffffffffffffffff1614610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90613e7f565b60405180910390fd5b6000811415611005574790505b61100d6117f5565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050611080576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110779061441b565b60405180910390fd5b50565b61108b611d36565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110d157506110d0856110cb611d36565b611a27565b5b611110576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611107906144ad565b60405180910390fd5b61111d8585858585611f5c565b5050505050565b6060815183511461116a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111619061453f565b60405180910390fd5b6000835167ffffffffffffffff811115611187576111866131e7565b5b6040519080825280602002602001820160405280156111b55781602001602082028036833780820191505090505b50905060005b8451811015611232576112028582815181106111da576111d9614357565b5b60200260200101518583815181106111f5576111f4614357565b5b60200260200101516105e5565b82828151811061121557611214614357565b5b6020026020010181815250508061122b90614386565b90506111bb565b508091505092915050565b60066020528060005260406000206000915090508060000160009054906101000a900460ff169080600101549080600201549080600301805461127f90613e01565b80601f01602080910402602001604051908101604052809291908181526020018280546112ab90613e01565b80156112f85780601f106112cd576101008083540402835291602001916112f8565b820191906000526020600020905b8154815290600101906020018083116112db57829003601f168201915b50505050509080600401805461130d90613e01565b80601f016020809104026020016040519081016040528092919081815260200182805461133990613e01565b80156113865780601f1061135b57610100808354040283529160200191611386565b820191906000526020600020905b81548152906001019060200180831161136957829003601f168201915b5050505050908060050160009054906101000a900460ff16908060060154908060070154905088565b6113b7611d36565b73ffffffffffffffffffffffffffffffffffffffff166113d56117f5565b73ffffffffffffffffffffffffffffffffffffffff161461142b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142290613e7f565b60405180910390fd5b60006006600083815260200190815260200160002090508060000160009054906101000a900460ff16158160000160006101000a81548160ff0219169083151502179055505050565b61147c611d36565b73ffffffffffffffffffffffffffffffffffffffff1661149a6117f5565b73ffffffffffffffffffffffffffffffffffffffff16146114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790613e7f565b60405180910390fd5b600060076000848152602001908152602001600020905060005b82518110156115545761154083828151811061152957611528614357565b5b602002602001015183611d4c90919063ffffffff16565b50808061154c90614386565b91505061150a565b50505050565b611562611d36565b73ffffffffffffffffffffffffffffffffffffffff166115806117f5565b73ffffffffffffffffffffffffffffffffffffffff16146115d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cd90613e7f565b60405180910390fd5b6115e06000612270565b565b82826001600060066000858152602001908152602001600020905080600101548382600201546116129190614065565b1115611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90614107565b60405180910390fd5b600061165f33866105e5565b90508261173357600082600701541415801561168957508160050160009054906101000a900460ff165b156116e1578160070154848261169f9190614065565b11156116e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d790614173565b60405180910390fd5b5b8160000160009054906101000a900460ff16611732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172990614205565b60405180910390fd5b5b61173b611d36565b73ffffffffffffffffffffffffffffffffffffffff166117596117f5565b73ffffffffffffffffffffffffffffffffffffffff16146117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a690613e7f565b60405180910390fd5b6000600660008a815260200190815260200160002090508781600201546117d69190614065565b81600201819055506117ea338a8a8a611dc6565b505050505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600061182b6008611d3e565b905090565b61184261183b611d36565b8383612336565b5050565b61184e611d36565b73ffffffffffffffffffffffffffffffffffffffff1661186c6117f5565b73ffffffffffffffffffffffffffffffffffffffff16146118c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b990613e7f565b60405180910390fd5b60006006600083815260200190815260200160002090508060050160009054906101000a900460ff16158160050160006101000a81548160ff0219169083151502179055505050565b6119188360018484610d02565b505050565b606061193a600760008481526020019081526020016000206124a3565b9050919050565b611949611d36565b73ffffffffffffffffffffffffffffffffffffffff166119676117f5565b73ffffffffffffffffffffffffffffffffffffffff16146119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b490613e7f565b60405180910390fd5b600060076000848152602001908152602001600020905060005b8251811015611a2157611a0d8382815181106119f6576119f5614357565b5b6020026020010151836124c490919063ffffffff16565b508080611a1990614386565b9150506119d7565b50505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ac3611d36565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611b095750611b0885611b03611d36565b611a27565b5b611b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3f906145d1565b60405180910390fd5b611b5585858585856124f4565b5050505050565b611b64611d36565b73ffffffffffffffffffffffffffffffffffffffff16611b826117f5565b73ffffffffffffffffffffffffffffffffffffffff1614611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf90613e7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3f90614663565b60405180910390fd5b611c5181612270565b50565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d1f57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d2f5750611d2e82612776565b5b9050919050565b600033905090565b600081600001549050919050565b6000611d74836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6127e0565b905092915050565b6001816000016000828254019250508190555050565b600080600760008481526020019081526020016000209050611dbd848261285090919063ffffffff16565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2d906146f5565b60405180910390fd5b6000611e40611d36565b9050611e6181600087611e5288612880565b611e5b88612880565b876128fa565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec09190614065565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051611f3e929190614715565b60405180910390a4611f5581600087878787612902565b5050505050565b8151835114611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f97906147b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612010576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200790614842565b60405180910390fd5b600061201a611d36565b905061202a8187878787876128fa565b60005b84518110156121db57600085828151811061204b5761204a614357565b5b60200260200101519050600085838151811061206a57612069614357565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561210b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612102906148d4565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c09190614065565b92505081905550505050806121d490614386565b905061202d565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516122529291906148f4565b60405180910390a4612268818787878787612ae9565b505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239c9061499d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161249691906130db565b60405180910390a3505050565b606060006124b383600001612cd0565b905060608190508092505050919050565b60006124ec836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612d2c565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255b90614842565b60405180910390fd5b600061256e611d36565b905061258e81878761257f88612880565b61258888612880565b876128fa565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015612625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261c906148d4565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126da9190614065565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051612757929190614715565b60405180910390a461276d828888888888612902565b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006127ec8383612e40565b61284557826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061284a565b600090505b92915050565b6000612878836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612e40565b905092915050565b60606000600167ffffffffffffffff81111561289f5761289e6131e7565b5b6040519080825280602002602001820160405280156128cd5781602001602082028036833780820191505090505b50905082816000815181106128e5576128e4614357565b5b60200260200101818152505080915050919050565b505050505050565b6129218473ffffffffffffffffffffffffffffffffffffffff16612e63565b15612ae1578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612967959493929190614a12565b602060405180830381600087803b15801561298157600080fd5b505af19250505080156129b257506040513d601f19601f820116820180604052508101906129af9190614a81565b60015b612a58576129be614abb565b806308c379a01415612a1b57506129d3614add565b806129de5750612a1d565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a12919061318f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4f90614be5565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad690614c77565b60405180910390fd5b505b505050505050565b612b088473ffffffffffffffffffffffffffffffffffffffff16612e63565b15612cc8578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612b4e959493929190614c97565b602060405180830381600087803b158015612b6857600080fd5b505af1925050508015612b9957506040513d601f19601f82011682018060405250810190612b969190614a81565b60015b612c3f57612ba5614abb565b806308c379a01415612c025750612bba614add565b80612bc55750612c04565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf9919061318f565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614be5565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612cc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbd90614c77565b60405180910390fd5b505b505050505050565b606081600001805480602002602001604051908101604052809291908181526020018280548015612d2057602002820191906000526020600020905b815481526020019060010190808311612d0c575b50505050509050919050565b60008083600101600084815260200190815260200160002054905060008114612e34576000600182612d5e9190614cff565b9050600060018660000180549050612d769190614cff565b9050818114612de5576000866000018281548110612d9757612d96614357565b5b9060005260206000200154905080876000018481548110612dbb57612dba614357565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612df957612df8614d33565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612e3a565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612e9290613e01565b90600052602060002090601f016020900481019282612eb45760008555612efb565b82601f10612ecd57805160ff1916838001178555612efb565b82800160010185558215612efb579182015b82811115612efa578251825591602001919060010190612edf565b5b509050612f089190612f0c565b5090565b5b80821115612f25576000816000905550600101612f0d565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612f6882612f3d565b9050919050565b612f7881612f5d565b8114612f8357600080fd5b50565b600081359050612f9581612f6f565b92915050565b6000819050919050565b612fae81612f9b565b8114612fb957600080fd5b50565b600081359050612fcb81612fa5565b92915050565b60008060408385031215612fe857612fe7612f33565b5b6000612ff685828601612f86565b925050602061300785828601612fbc565b9150509250929050565b61301a81612f9b565b82525050565b60006020820190506130356000830184613011565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130708161303b565b811461307b57600080fd5b50565b60008135905061308d81613067565b92915050565b6000602082840312156130a9576130a8612f33565b5b60006130b78482850161307e565b91505092915050565b60008115159050919050565b6130d5816130c0565b82525050565b60006020820190506130f060008301846130cc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613130578082015181840152602081019050613115565b8381111561313f576000848401525b50505050565b6000601f19601f8301169050919050565b6000613161826130f6565b61316b8185613101565b935061317b818560208601613112565b61318481613145565b840191505092915050565b600060208201905081810360008301526131a98184613156565b905092915050565b6131ba816130c0565b81146131c557600080fd5b50565b6000813590506131d7816131b1565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61321f82613145565b810181811067ffffffffffffffff8211171561323e5761323d6131e7565b5b80604052505050565b6000613251612f29565b905061325d8282613216565b919050565b600067ffffffffffffffff82111561327d5761327c6131e7565b5b61328682613145565b9050602081019050919050565b82818337600083830152505050565b60006132b56132b084613262565b613247565b9050828152602081018484840111156132d1576132d06131e2565b5b6132dc848285613293565b509392505050565b600082601f8301126132f9576132f86131dd565b5b81356133098482602086016132a2565b91505092915050565b600080600080600080600060e0888a03121561333157613330612f33565b5b600061333f8a828b016131c8565b97505060206133508a828b016131c8565b965050604088013567ffffffffffffffff81111561337157613370612f38565b5b61337d8a828b016132e4565b955050606088013567ffffffffffffffff81111561339e5761339d612f38565b5b6133aa8a828b016132e4565b94505060806133bb8a828b01612fbc565b93505060a06133cc8a828b01612fbc565b92505060c06133dd8a828b01612fbc565b91505092959891949750929550565b600067ffffffffffffffff821115613407576134066131e7565b5b61341082613145565b9050602081019050919050565b600061343061342b846133ec565b613247565b90508281526020810184848401111561344c5761344b6131e2565b5b613457848285613293565b509392505050565b600082601f830112613474576134736131dd565b5b813561348484826020860161341d565b91505092915050565b6000806000606084860312156134a6576134a5612f33565b5b60006134b486828701612fbc565b93505060206134c586828701612fbc565b925050604084013567ffffffffffffffff8111156134e6576134e5612f38565b5b6134f28682870161345f565b9150509250925092565b60006020828403121561351257613511612f33565b5b600061352084828501612fbc565b91505092915050565b600080fd5b600080fd5b60008083601f840112613549576135486131dd565b5b8235905067ffffffffffffffff81111561356657613565613529565b5b6020830191508360208202830111156135825761358161352e565b5b9250929050565b600080600080606085870312156135a3576135a2612f33565b5b60006135b187828801612fbc565b94505060206135c287828801612fbc565b935050604085013567ffffffffffffffff8111156135e3576135e2612f38565b5b6135ef87828801613533565b925092505092959194509250565b600067ffffffffffffffff821115613618576136176131e7565b5b602082029050602081019050919050565b600061363c613637846135fd565b613247565b9050808382526020820190506020840283018581111561365f5761365e61352e565b5b835b8181101561368857806136748882612fbc565b845260208401935050602081019050613661565b5050509392505050565b600082601f8301126136a7576136a66131dd565b5b81356136b7848260208601613629565b91505092915050565b600080600080600060a086880312156136dc576136db612f33565b5b60006136ea88828901612f86565b95505060206136fb88828901612f86565b945050604086013567ffffffffffffffff81111561371c5761371b612f38565b5b61372888828901613692565b935050606086013567ffffffffffffffff81111561374957613748612f38565b5b61375588828901613692565b925050608086013567ffffffffffffffff81111561377657613775612f38565b5b6137828882890161345f565b9150509295509295909350565b600067ffffffffffffffff8211156137aa576137a96131e7565b5b602082029050602081019050919050565b60006137ce6137c98461378f565b613247565b905080838252602082019050602084028301858111156137f1576137f061352e565b5b835b8181101561381a57806138068882612f86565b8452602084019350506020810190506137f3565b5050509392505050565b600082601f830112613839576138386131dd565b5b81356138498482602086016137bb565b91505092915050565b6000806040838503121561386957613868612f33565b5b600083013567ffffffffffffffff81111561388757613886612f38565b5b61389385828601613824565b925050602083013567ffffffffffffffff8111156138b4576138b3612f38565b5b6138c085828601613692565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138ff81612f9b565b82525050565b600061391183836138f6565b60208301905092915050565b6000602082019050919050565b6000613935826138ca565b61393f81856138d5565b935061394a836138e6565b8060005b8381101561397b5781516139628882613905565b975061396d8361391d565b92505060018101905061394e565b5085935050505092915050565b600060208201905081810360008301526139a2818461392a565b905092915050565b6000610100820190506139c0600083018b6130cc565b6139cd602083018a613011565b6139da6040830189613011565b81810360608301526139ec8188613156565b90508181036080830152613a008187613156565b9050613a0f60a08301866130cc565b613a1c60c0830185613011565b613a2960e0830184613011565b9998505050505050505050565b60008060408385031215613a4d57613a4c612f33565b5b6000613a5b85828601612fbc565b925050602083013567ffffffffffffffff811115613a7c57613a7b612f38565b5b613a8885828601613824565b9150509250929050565b613a9b81612f5d565b82525050565b6000602082019050613ab66000830184613a92565b92915050565b60008060408385031215613ad357613ad2612f33565b5b6000613ae185828601612f86565b9250506020613af2858286016131c8565b9150509250929050565b600080600060408486031215613b1557613b14612f33565b5b6000613b2386828701612fbc565b935050602084013567ffffffffffffffff811115613b4457613b43612f38565b5b613b5086828701613533565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b9181612f5d565b82525050565b6000613ba38383613b88565b60208301905092915050565b6000602082019050919050565b6000613bc782613b5c565b613bd18185613b67565b9350613bdc83613b78565b8060005b83811015613c0d578151613bf48882613b97565b9750613bff83613baf565b925050600181019050613be0565b5085935050505092915050565b60006020820190508181036000830152613c348184613bbc565b905092915050565b60008060408385031215613c5357613c52612f33565b5b6000613c6185828601612f86565b9250506020613c7285828601612f86565b9150509250929050565b600080600080600060a08688031215613c9857613c97612f33565b5b6000613ca688828901612f86565b9550506020613cb788828901612f86565b9450506040613cc888828901612fbc565b9350506060613cd988828901612fbc565b925050608086013567ffffffffffffffff811115613cfa57613cf9612f38565b5b613d068882890161345f565b9150509295509295909350565b600060208284031215613d2957613d28612f33565b5b6000613d3784828501612f86565b91505092915050565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613d9c602b83613101565b9150613da782613d40565b604082019050919050565b60006020820190508181036000830152613dcb81613d8f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e1957607f821691505b60208210811415613e2d57613e2c613dd2565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613e69602083613101565b9150613e7482613e33565b602082019050919050565b60006020820190508181036000830152613e9881613e5c565b9050919050565b7f496e76616c6964206d6178537570706c79000000000000000000000000000000600082015250565b6000613ed5601183613101565b9150613ee082613e9f565b602082019050919050565b60006020820190508181036000830152613f0481613ec8565b9050919050565b6000608082019050613f206000830187613011565b8181036020830152613f328186613156565b90508181036040830152613f468185613156565b9050613f556060830184613011565b95945050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613f94601f83613101565b9150613f9f82613f5e565b602082019050919050565b60006020820190508181036000830152613fc381613f87565b9050919050565b7f50726f786965732063616e6e6f74206d696e7400000000000000000000000000600082015250565b6000614000601383613101565b915061400b82613fca565b602082019050919050565b6000602082019050818103600083015261402f81613ff3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061407082612f9b565b915061407b83612f9b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140b0576140af614036565b5b828201905092915050565b7f546f6b656e7320536f6c64206f75740000000000000000000000000000000000600082015250565b60006140f1600f83613101565b91506140fc826140bb565b602082019050919050565b60006020820190508181036000830152614120816140e4565b9050919050565b7f204f776e73206d6f7265207468616e20616c6c6f77656420746f6b656e730000600082015250565b600061415d601e83613101565b915061416882614127565b602082019050919050565b6000602082019050818103600083015261418c81614150565b9050919050565b7f5468697320746f6b656e206973206e6f742061637469766520666f722073616c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b60006141ef602183613101565b91506141fa82614193565b604082019050919050565b6000602082019050818103600083015261421e816141e2565b9050919050565b7f4e6f742057686974656c69737465640000000000000000000000000000000000600082015250565b600061425b600f83613101565b915061426682614225565b602082019050919050565b6000602082019050818103600083015261428a8161424e565b9050919050565b600061429c82612f9b565b91506142a783612f9b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142e0576142df614036565b5b828202905092915050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000614321601283613101565b915061432c826142eb565b602082019050919050565b6000602082019050818103600083015261435081614314565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061439182612f9b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143c4576143c3614036565b5b600182019050919050565b7f416464726573732063616e6e6f742072656365697665207061796d656e740000600082015250565b6000614405601e83613101565b9150614410826143cf565b602082019050919050565b60006020820190508181036000830152614434816143f8565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614497603283613101565b91506144a28261443b565b604082019050919050565b600060208201905081810360008301526144c68161448a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614529602983613101565b9150614534826144cd565b604082019050919050565b600060208201905081810360008301526145588161451c565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006145bb602983613101565b91506145c68261455f565b604082019050919050565b600060208201905081810360008301526145ea816145ae565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061464d602683613101565b9150614658826145f1565b604082019050919050565b6000602082019050818103600083015261467c81614640565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006146df602183613101565b91506146ea82614683565b604082019050919050565b6000602082019050818103600083015261470e816146d2565b9050919050565b600060408201905061472a6000830185613011565b6147376020830184613011565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b600061479a602883613101565b91506147a58261473e565b604082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061482c602583613101565b9150614837826147d0565b604082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006148be602a83613101565b91506148c982614862565b604082019050919050565b600060208201905081810360008301526148ed816148b1565b9050919050565b6000604082019050818103600083015261490e818561392a565b90508181036020830152614922818461392a565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614987602983613101565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006149e4826149bd565b6149ee81856149c8565b93506149fe818560208601613112565b614a0781613145565b840191505092915050565b600060a082019050614a276000830188613a92565b614a346020830187613a92565b614a416040830186613011565b614a4e6060830185613011565b8181036080830152614a6081846149d9565b90509695505050505050565b600081519050614a7b81613067565b92915050565b600060208284031215614a9757614a96612f33565b5b6000614aa584828501614a6c565b91505092915050565b60008160e01c9050919050565b600060033d1115614ada5760046000803e614ad7600051614aae565b90505b90565b600060443d1015614aed57614b70565b614af5612f29565b60043d036004823e80513d602482011167ffffffffffffffff82111715614b1d575050614b70565b808201805167ffffffffffffffff811115614b3b5750505050614b70565b80602083010160043d038501811115614b58575050505050614b70565b614b6782602001850186613216565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614bcf603483613101565b9150614bda82614b73565b604082019050919050565b60006020820190508181036000830152614bfe81614bc2565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614c61602883613101565b9150614c6c82614c05565b604082019050919050565b60006020820190508181036000830152614c9081614c54565b9050919050565b600060a082019050614cac6000830188613a92565b614cb96020830187613a92565b8181036040830152614ccb818661392a565b90508181036060830152614cdf818561392a565b90508181036080830152614cf381846149d9565b90509695505050505050565b6000614d0a82612f9b565b9150614d1583612f9b565b925082821015614d2857614d27614036565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205c67189a1ebb0272e92a7ad827c175eedb6c9d6deb6bd88cdcc3b6bfc10d0ac364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000553504b5278000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f737065616b657268656164732e696f000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): SPKRx
Arg [1] : _uri (string): https://speakerheads.io
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 53504b5278000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [5] : 68747470733a2f2f737065616b657268656164732e696f000000000000000000
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.