Overview
Max Total Supply
5,943 DUSTXAPE
Holders
3,818
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
13 DUSTXAPELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DustlandGoesApe
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "../utils/Startable.sol"; contract DustlandGoesApe is ERC721A, Ownable, Startable{ uint256 public constant MAX_PER_MINT = 3; uint256 public constant MAX_TOKENS_PER_WALLET = 3; uint256 public constant RESERVED_TOKENS = 51; mapping(address => uint256) private _totalClaimed; mapping(address => bool) private _whitelist; mapping(uint256 => bool) private _signatureIds; address public payoutToken; uint256 public unitPrice; uint256 public startTime; uint256 public endTime; uint256 public reservedClaimed; string internal _baseTokenURI; address internal _payeeWallet; address internal _signerAddress; event BaseURIChanged(string baseURI); constructor(string memory name_, string memory symbol_, address payeeWallet_, address payoutToken_, string memory baseURI) ERC721A(name_, symbol_) Ownable() { _payeeWallet = payeeWallet_; payoutToken = payoutToken_; _baseTokenURI = baseURI; } function startSale(uint256 startTime_, uint256 duration) external onlyOwner{ require(startTime_ >= block.timestamp, "invalid start time"); startTime = startTime_; endTime = startTime + duration; _start(); } function endSale() external onlyOwner{ if(endTime > block.timestamp){ endTime = block.timestamp; } _end(); } function addWhitelist(address[] calldata addresses) external onlyOwner { for (uint256 i=0; i < addresses.length; i++) { _whitelist[addresses[i]] = true; } } function checkWhitelist(address addr) external view returns (bool) { return _whitelist[addr]; } function mint(uint256 count) external{ require(_whitelist[_msgSender()], "not on whitelist"); _mintToken(count); } function mint(uint256 count, uint256 _signatureId, bytes memory _signature) external{ require(_signerAddress != address(0), "no assigned signer"); require(!_signatureIds[_signatureId], "signatureId already used"); require( checkSignature(_msgSender(), _signatureId, address(this), block.chainid, _signature) == _signerAddress, "signature failed" ); _signatureIds[_signatureId] = true; _mintToken(count); } function _mintToken(uint256 count) internal whenStarted{ require(block.timestamp <= endTime && block.timestamp >= startTime, "not in sale"); require(count <= MAX_PER_MINT, "exceed max per mint"); require(_totalClaimed[_msgSender()] + count <= MAX_TOKENS_PER_WALLET, "exceed max mint per wallet"); require(count > 0, "mint at least one"); require(unitPrice > 0, "worng price"); _totalClaimed[_msgSender()] += count; SafeERC20.safeTransferFrom(IERC20(payoutToken), _msgSender(), _payeeWallet, unitPrice * count); _safeMint(_msgSender(), count); } function claimReserved(address recipient, uint256 count) external onlyOwner { require(reservedClaimed + count <= RESERVED_TOKENS, "minting will exceed max reserved tokens"); require(recipient != address(0), "address cannot be null"); reservedClaimed += count; _safeMint(recipient, count); } function burn(uint256 tokenId) external virtual { _burn(tokenId, true); } function checkSignature( address _wallet, uint256 _signatureId, address _contractAddress, uint256 _chainId, bytes memory _signature ) public pure returns (address) { return ECDSA.recover( keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encode(_wallet, _signatureId, _contractAddress, _chainId)) ) ), _signature ); } function getClaimed(address user) view public returns (uint256){ return _totalClaimed[user]; } function saleLive() view public returns (bool){ return started() && block.timestamp >= startTime && block.timestamp <= endTime; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; emit BaseURIChanged(baseURI); } function setPrice(uint256 newPrice) public onlyOwner { unitPrice = newPrice; } function setPayeeWallet(address payeeWallet_) public onlyOwner { _payeeWallet = payeeWallet_; } function setPayoutToken(address payoutToken_) public onlyOwner { payoutToken = payoutToken_; } function setSignerAddress(address signerAddress_) external onlyOwner { _signerAddress = signerAddress_; } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// 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 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Context.sol"; contract Startable is Context{ event Started(address account); event Ended(address account); bool private _started; constructor() { _started = false; } function started() public view virtual returns (bool) { return _started; } modifier whenNotStarted() { require(!started(), "Startable: started"); _; } modifier whenStarted() { require(started(), "Startable: not yet start"); _; } function _start() internal virtual whenNotStarted { _started = true; emit Started(_msgSender()); } function _end() internal virtual whenStarted { _started = false; emit Ended(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // 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/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/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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "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":"symbol_","type":"string"},{"internalType":"address","name":"payeeWallet_","type":"address"},{"internalType":"address","name":"payoutToken_","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Ended","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":"address","name":"account","type":"address"}],"name":"Started","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_signatureId","type":"uint256"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"checkSignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"claimReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"uint256","name":"_signatureId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payoutToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payeeWallet_","type":"address"}],"name":"setPayeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payoutToken_","type":"address"}],"name":"setPayoutToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress_","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005e0238038062005e02833981810160405281019062000037919062000370565b848481600290805190602001906200005192919062000237565b5080600390805190602001906200006a92919062000237565b506200007b6200016460201b60201c565b6000819055505050620000a3620000976200016960201b60201c565b6200017160201b60201c565b6000600860146101000a81548160ff02191690831515021790555082601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601190805190602001906200015892919062000237565b505050505050620005fb565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002459062000506565b90600052602060002090601f016020900481019282620002695760008555620002b5565b82601f106200028457805160ff1916838001178555620002b5565b82800160010185558215620002b5579182015b82811115620002b457825182559160200191906001019062000297565b5b509050620002c49190620002c8565b5090565b5b80821115620002e3576000816000905550600101620002c9565b5090565b6000620002fe620002f88462000466565b6200043d565b9050828152602081018484840111156200031757600080fd5b62000324848285620004d0565b509392505050565b6000815190506200033d81620005e1565b92915050565b600082601f8301126200035557600080fd5b815162000367848260208601620002e7565b91505092915050565b600080600080600060a086880312156200038957600080fd5b600086015167ffffffffffffffff811115620003a457600080fd5b620003b28882890162000343565b955050602086015167ffffffffffffffff811115620003d057600080fd5b620003de8882890162000343565b9450506040620003f1888289016200032c565b935050606062000404888289016200032c565b925050608086015167ffffffffffffffff8111156200042257600080fd5b620004308882890162000343565b9150509295509295909350565b6000620004496200045c565b90506200045782826200053c565b919050565b6000604051905090565b600067ffffffffffffffff821115620004845762000483620005a1565b5b6200048f82620005d0565b9050602081019050919050565b6000620004a982620004b0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620004f0578082015181840152602081019050620004d3565b8381111562000500576000848401525b50505050565b600060028204905060018216806200051f57607f821691505b6020821081141562000536576200053562000572565b5b50919050565b6200054782620005d0565b810181811067ffffffffffffffff82111715620005695762000568620005a1565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620005ec816200049c565b8114620005f857600080fd5b50565b6157f7806200060b6000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c806370a0823111610146578063c87b56dd116100c3578063eb46260e11610087578063eb46260e146106eb578063edac985b1461071b578063f02ae48f14610737578063f2fde38b14610753578063f4f3122e1461076f578063fd59d6571461078b5761025e565b8063c87b56dd14610631578063d1bdb1d114610661578063e081b7811461067f578063e73faa2d1461069d578063e985e9c5146106bb5761025e565b806395d89b411161010a57806395d89b411461058f578063a0712d68146105ad578063a22cb465146105c9578063a8b75a6e146105e5578063b88d4fde146106155761025e565b806370a08231146104fd578063715018a61461052d57806378e97925146105375780638da5cb5b1461055557806391b7f5ed146105735761025e565b80631f2698ab116101df57806342842e0e116101a357806342842e0e1461043d57806342966c68146104595780634efa82b61461047557806355f804b3146104935780636352211e146104af57806368fc68c7146104df5761025e565b80631f2698ab146103bd57806323b872dd146103db57806324510043146103f75780633197cbb614610415578063380d831b146104335761025e565b8063095ea7b311610226578063095ea7b31461031957806309d42b301461033557806318160ddd146103535780631950c218146103715780631b5757f2146103a15761025e565b806301ffc9a714610263578063046dc1661461029357806306fdde03146102af578063081812fc146102cd57806308dc9f42146102fd575b600080fd5b61027d600480360381019061027891906143a0565b6107a7565b60405161028a9190614ac1565b60405180910390f35b6102ad60048036038101906102a891906140fc565b610889565b005b6102b7610949565b6040516102c49190614b21565b60405180910390f35b6102e760048036038101906102e29190614433565b6109db565b6040516102f491906149de565b60405180910390f35b61031760048036038101906103129190614498565b610a57565b005b610333600480360381019061032e9190614267565b610c27565b005b61033d610d32565b60405161034a9190614e23565b60405180910390f35b61035b610d37565b6040516103689190614e23565b60405180910390f35b61038b600480360381019061038691906140fc565b610d4e565b6040516103989190614ac1565b60405180910390f35b6103bb60048036038101906103b69190614267565b610da4565b005b6103c5610f08565b6040516103d29190614ac1565b60405180910390f35b6103f560048036038101906103f09190614161565b610f1f565b005b6103ff610f2f565b60405161040c9190614e23565b60405180910390f35b61041d610f35565b60405161042a9190614e23565b60405180910390f35b61043b610f3b565b005b61045760048036038101906104529190614161565b610fd3565b005b610473600480360381019061046e9190614433565b610ff3565b005b61047d611001565b60405161048a91906149de565b60405180910390f35b6104ad60048036038101906104a891906143f2565b611027565b005b6104c960048036038101906104c49190614433565b6110f4565b6040516104d691906149de565b60405180910390f35b6104e761110a565b6040516104f49190614e23565b60405180910390f35b610517600480360381019061051291906140fc565b61110f565b6040516105249190614e23565b60405180910390f35b6105356111df565b005b61053f611267565b60405161054c9190614e23565b60405180910390f35b61055d61126d565b60405161056a91906149de565b60405180910390f35b61058d60048036038101906105889190614433565b611297565b005b61059761131d565b6040516105a49190614b21565b60405180910390f35b6105c760048036038101906105c29190614433565b6113af565b005b6105e360048036038101906105de919061422b565b61144e565b005b6105ff60048036038101906105fa91906142a3565b6115c6565b60405161060c91906149de565b60405180910390f35b61062f600480360381019061062a91906141b0565b61162f565b005b61064b60048036038101906106469190614433565b6116ab565b6040516106589190614b21565b60405180910390f35b61066961174a565b6040516106769190614e23565b60405180910390f35b61068761174f565b6040516106949190614ac1565b60405180910390f35b6106a561177a565b6040516106b29190614e23565b60405180910390f35b6106d560048036038101906106d09190614125565b611780565b6040516106e29190614ac1565b60405180910390f35b610705600480360381019061070091906140fc565b611814565b6040516107129190614e23565b60405180910390f35b61073560048036038101906107309190614332565b61185d565b005b610751600480360381019061074c91906140fc565b6119a4565b005b61076d600480360381019061076891906140fc565b611a64565b005b6107896004803603810190610784919061445c565b611b5c565b005b6107a560048036038101906107a091906140fc565b611c42565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610882575061088182611d02565b5b9050919050565b610891611d6c565b73ffffffffffffffffffffffffffffffffffffffff166108af61126d565b73ffffffffffffffffffffffffffffffffffffffff1614610905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fc90614d03565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610958906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610984906150f5565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b5050505050905090565b60006109e682611d74565b610a1c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae090614d63565b60405180910390fd5b600b600083815260200190815260200160002060009054906101000a900460ff1615610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4190614b63565b60405180910390fd5b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b97610b8e611d6c565b843046866115c6565b73ffffffffffffffffffffffffffffffffffffffff1614610bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be490614c23565b60405180910390fd5b6001600b600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610c2283611dc2565b505050565b6000610c32826110f4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cb9611d6c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610ceb5750610ce981610ce4611d6c565b611780565b155b15610d22576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d2d838383612092565b505050565b600381565b6000610d41612144565b6001546000540303905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610dac611d6c565b73ffffffffffffffffffffffffffffffffffffffff16610dca61126d565b73ffffffffffffffffffffffffffffffffffffffff1614610e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1790614d03565b60405180910390fd5b603381601054610e309190614f13565b1115610e71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6890614e03565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ee1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed890614d83565b60405180910390fd5b8060106000828254610ef39190614f13565b92505081905550610f048282612149565b5050565b6000600860149054906101000a900460ff16905090565b610f2a838383612167565b505050565b60105481565b600f5481565b610f43611d6c565b73ffffffffffffffffffffffffffffffffffffffff16610f6161126d565b73ffffffffffffffffffffffffffffffffffffffff1614610fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae90614d03565b60405180910390fd5b42600f541115610fc95742600f819055505b610fd161261d565b565b610fee8383836040518060200160405280600081525061162f565b505050565b610ffe8160016126bf565b50565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61102f611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661104d61126d565b73ffffffffffffffffffffffffffffffffffffffff16146110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a90614d03565b60405180910390fd5b80601190805190602001906110b9929190613e7e565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6816040516110e99190614b21565b60405180910390a150565b60006110ff82612aaf565b600001519050919050565b603381565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611177576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111e7611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661120561126d565b73ffffffffffffffffffffffffffffffffffffffff161461125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290614d03565b60405180910390fd5b6112656000612d3e565b565b600e5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61129f611d6c565b73ffffffffffffffffffffffffffffffffffffffff166112bd61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130a90614d03565b60405180910390fd5b80600d8190555050565b60606003805461132c906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611358906150f5565b80156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050905090565b600a60006113bb611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614ca3565b60405180910390fd5b61144b81611dc2565b50565b611456611d6c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bb576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114c8611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611575611d6c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115ba9190614ac1565b60405180910390a35050565b6000611624868686866040516020016115e29493929190614a7c565b6040516020818303038152906040528051906020012060405160200161160891906149b8565b6040516020818303038152906040528051906020012083612e04565b905095945050505050565b61163a848484612167565b6116598373ffffffffffffffffffffffffffffffffffffffff16612e2b565b801561166e575061166c84848484612e3e565b155b156116a5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606116b682611d74565b6116ec576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116f6612f9e565b90506000815114156117175760405180602001604052806000815250611742565b8061172184613030565b604051602001611732929190614994565b6040516020818303038152906040525b915050919050565b600381565b6000611759610f08565b80156117675750600e544210155b80156117755750600f544211155b905090565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611865611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661188361126d565b73ffffffffffffffffffffffffffffffffffffffff16146118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d090614d03565b60405180910390fd5b60005b8282905081101561199f576001600a6000858585818110611926577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061193b91906140fc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061199790615158565b9150506118dc565b505050565b6119ac611d6c565b73ffffffffffffffffffffffffffffffffffffffff166119ca61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1790614d03565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611a6c611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611a8a61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad790614d03565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790614bc3565b60405180910390fd5b611b5981612d3e565b50565b611b64611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611b8261126d565b73ffffffffffffffffffffffffffffffffffffffff1614611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf90614d03565b60405180910390fd5b42821015611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614ba3565b60405180910390fd5b81600e8190555080600e54611c309190614f13565b600f81905550611c3e6131dd565b5050565b611c4a611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611c6861126d565b73ffffffffffffffffffffffffffffffffffffffff1614611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590614d03565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600081611d7f612144565b11158015611d8e575060005482105b8015611dbb575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b611dca610f08565b611e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0090614d23565b60405180910390fd5b600f544211158015611e1d5750600e544210155b611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614de3565b60405180910390fd5b6003811115611ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9790614dc3565b60405180910390fd5b60038160096000611eaf611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ef49190614f13565b1115611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2c90614c43565b60405180910390fd5b60008111611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f90614be3565b60405180910390fd5b6000600d5411611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490614cc3565b60405180910390fd5b8060096000611fca611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120139190614f13565b9250508190555061207e600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612048611d6c565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600d546120799190614f9a565b613280565b61208f612089611d6c565b82612149565b50565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b612163828260405180602001604052806000815250613309565b5050565b600061217282612aaf565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146121dd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166121fe611d6c565b73ffffffffffffffffffffffffffffffffffffffff16148061222d575061222c85612227611d6c565b611780565b5b80612272575061223b611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661225a846109db565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122ab576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612312576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61231f858585600161331b565b61232b60008487612092565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125ab5760005482146125aa57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126168585856001613321565b5050505050565b612625610f08565b612664576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265b90614d23565b60405180910390fd5b6000600860146101000a81548160ff0219169083151502179055507f5699deef3e04be804ac29c66b1ca35e41bc435d9a0326d9a6ae520ae1a1e87556126a8611d6c565b6040516126b591906149de565b60405180910390a1565b60006126ca83612aaf565b905060008160000151905082156127ab5760008173ffffffffffffffffffffffffffffffffffffffff166126fc611d6c565b73ffffffffffffffffffffffffffffffffffffffff16148061272b575061272a82612725611d6c565b611780565b5b806127705750612739611d6c565b73ffffffffffffffffffffffffffffffffffffffff16612758866109db565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b6127b981600086600161331b565b6127c560008583612092565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060018160000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008781526020019081526020016000209050828160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600181600001601c6101000a81548160ff02191690831515021790555060006001870190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a29576000548214612a2857848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5050505083600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a97816000866001613321565b60016000815480929190600101919050555050505050565b612ab7613f04565b600082905080612ac5612144565b11158015612ad4575060005481105b15612d07576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d0557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612be9578092505050612d39565b5b600115612d0457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612cff578092505050612d39565b612bea565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806000612e138585613327565b91509150612e20816133aa565b819250505092915050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e64611d6c565b8786866040518563ffffffff1660e01b8152600401612e869493929190614a30565b602060405180830381600087803b158015612ea057600080fd5b505af1925050508015612ed157506040513d601f19601f82011682018060405250810190612ece91906143c9565b60015b612f4b573d8060008114612f01576040519150601f19603f3d011682016040523d82523d6000602084013e612f06565b606091505b50600081511415612f43576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060118054612fad906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054612fd9906150f5565b80156130265780601f10612ffb57610100808354040283529160200191613026565b820191906000526020600020905b81548152906001019060200180831161300957829003601f168201915b5050505050905090565b60606000821415613078576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131d8565b600082905060005b600082146130aa57808061309390615158565b915050600a826130a39190614f69565b9150613080565b60008167ffffffffffffffff8111156130ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561311e5781602001600182028036833780820191505090505b5090505b600085146131d1576001826131379190614ff4565b9150600a8561314691906151ab565b60306131529190614f13565b60f81b81838151811061318e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131ca9190614f69565b9450613122565b8093505050505b919050565b6131e5610f08565b15613225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321c90614c03565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055507f27029695aa5f602a4ee81f4c32dfa86e562f200a17966496f3a7c3f2ec0f9417613269611d6c565b60405161327691906149de565b60405180910390a1565b613303846323b872dd60e01b8585856040516024016132a1939291906149f9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136fb565b50505050565b61331683838360016137c2565b505050565b50505050565b50505050565b6000806041835114156133695760008060006020860151925060408601519150606086015160001a905061335d87828585613b90565b945094505050506133a3565b60408351141561339a57600080602085015191506040850151905061338f868383613c9d565b9350935050506133a3565b60006002915091505b9250929050565b600060048111156133e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561341d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613428576136f8565b60016004811115613462577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561349b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156134dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d390614b43565b60405180910390fd5b60026004811115613516577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561354f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613590576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358790614b83565b60405180910390fd5b600360048111156135ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613603577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363b90614c63565b60405180910390fd5b60048081111561367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156136b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156136f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ee90614ce3565b60405180910390fd5b5b50565b600061375d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ceb9092919063ffffffff16565b90506000815111156137bd578080602001905181019061377d9190614377565b6137bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b390614da3565b60405180910390fd5b5b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561382f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561386a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613877600086838761331b565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613a415750613a408773ffffffffffffffffffffffffffffffffffffffff16612e2b565b5b15613b07575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ab66000888480600101955088612e3e565b613aec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613a47578260005414613b0257600080fd5b613b73565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613b08575b816000819055505050613b896000868387613321565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613bcb576000600391509150613c94565b601b8560ff1614158015613be35750601c8560ff1614155b15613bf5576000600491509150613c94565b600060018787878760405160008152602001604052604051613c1a9493929190614adc565b6020604051602081039080840390855afa158015613c3c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613c8b57600060019250925050613c94565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613cdd87828885613b90565b935093505050935093915050565b6060613cfa8484600085613d03565b90509392505050565b606082471015613d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3f90614c83565b60405180910390fd5b613d5185612e2b565b613d90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d8790614d43565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613db9919061497d565b60006040518083038185875af1925050503d8060008114613df6576040519150601f19603f3d011682016040523d82523d6000602084013e613dfb565b606091505b5091509150613e0b828286613e17565b92505050949350505050565b60608315613e2757829050613e77565b600083511115613e3a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e6e9190614b21565b60405180910390fd5b9392505050565b828054613e8a906150f5565b90600052602060002090601f016020900481019282613eac5760008555613ef3565b82601f10613ec557805160ff1916838001178555613ef3565b82800160010185558215613ef3579182015b82811115613ef2578251825591602001919060010190613ed7565b5b509050613f009190613f47565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613f60576000816000905550600101613f48565b5090565b6000613f77613f7284614e63565b614e3e565b905082815260208101848484011115613f8f57600080fd5b613f9a8482856150b3565b509392505050565b6000613fb5613fb084614e94565b614e3e565b905082815260208101848484011115613fcd57600080fd5b613fd88482856150b3565b509392505050565b600081359050613fef81615765565b92915050565b60008083601f84011261400757600080fd5b8235905067ffffffffffffffff81111561402057600080fd5b60208301915083602082028301111561403857600080fd5b9250929050565b60008135905061404e8161577c565b92915050565b6000815190506140638161577c565b92915050565b60008135905061407881615793565b92915050565b60008151905061408d81615793565b92915050565b600082601f8301126140a457600080fd5b81356140b4848260208601613f64565b91505092915050565b600082601f8301126140ce57600080fd5b81356140de848260208601613fa2565b91505092915050565b6000813590506140f6816157aa565b92915050565b60006020828403121561410e57600080fd5b600061411c84828501613fe0565b91505092915050565b6000806040838503121561413857600080fd5b600061414685828601613fe0565b925050602061415785828601613fe0565b9150509250929050565b60008060006060848603121561417657600080fd5b600061418486828701613fe0565b935050602061419586828701613fe0565b92505060406141a6868287016140e7565b9150509250925092565b600080600080608085870312156141c657600080fd5b60006141d487828801613fe0565b94505060206141e587828801613fe0565b93505060406141f6878288016140e7565b925050606085013567ffffffffffffffff81111561421357600080fd5b61421f87828801614093565b91505092959194509250565b6000806040838503121561423e57600080fd5b600061424c85828601613fe0565b925050602061425d8582860161403f565b9150509250929050565b6000806040838503121561427a57600080fd5b600061428885828601613fe0565b9250506020614299858286016140e7565b9150509250929050565b600080600080600060a086880312156142bb57600080fd5b60006142c988828901613fe0565b95505060206142da888289016140e7565b94505060406142eb88828901613fe0565b93505060606142fc888289016140e7565b925050608086013567ffffffffffffffff81111561431957600080fd5b61432588828901614093565b9150509295509295909350565b6000806020838503121561434557600080fd5b600083013567ffffffffffffffff81111561435f57600080fd5b61436b85828601613ff5565b92509250509250929050565b60006020828403121561438957600080fd5b600061439784828501614054565b91505092915050565b6000602082840312156143b257600080fd5b60006143c084828501614069565b91505092915050565b6000602082840312156143db57600080fd5b60006143e98482850161407e565b91505092915050565b60006020828403121561440457600080fd5b600082013567ffffffffffffffff81111561441e57600080fd5b61442a848285016140bd565b91505092915050565b60006020828403121561444557600080fd5b6000614453848285016140e7565b91505092915050565b6000806040838503121561446f57600080fd5b600061447d858286016140e7565b925050602061448e858286016140e7565b9150509250929050565b6000806000606084860312156144ad57600080fd5b60006144bb868287016140e7565b93505060206144cc868287016140e7565b925050604084013567ffffffffffffffff8111156144e957600080fd5b6144f586828701614093565b9150509250925092565b61450881615028565b82525050565b6145178161503a565b82525050565b61452681615046565b82525050565b61453d61453882615046565b6151a1565b82525050565b600061454e82614ec5565b6145588185614edb565b93506145688185602086016150c2565b61457181615298565b840191505092915050565b600061458782614ec5565b6145918185614eec565b93506145a18185602086016150c2565b80840191505092915050565b60006145b882614ed0565b6145c28185614ef7565b93506145d28185602086016150c2565b6145db81615298565b840191505092915050565b60006145f182614ed0565b6145fb8185614f08565b935061460b8185602086016150c2565b80840191505092915050565b6000614624601883614ef7565b915061462f826152a9565b602082019050919050565b6000614647601883614ef7565b9150614652826152d2565b602082019050919050565b600061466a601f83614ef7565b9150614675826152fb565b602082019050919050565b600061468d601c83614f08565b915061469882615324565b601c82019050919050565b60006146b0601283614ef7565b91506146bb8261534d565b602082019050919050565b60006146d3602683614ef7565b91506146de82615376565b604082019050919050565b60006146f6601183614ef7565b9150614701826153c5565b602082019050919050565b6000614719601283614ef7565b9150614724826153ee565b602082019050919050565b600061473c601083614ef7565b915061474782615417565b602082019050919050565b600061475f601a83614ef7565b915061476a82615440565b602082019050919050565b6000614782602283614ef7565b915061478d82615469565b604082019050919050565b60006147a5602683614ef7565b91506147b0826154b8565b604082019050919050565b60006147c8601083614ef7565b91506147d382615507565b602082019050919050565b60006147eb600b83614ef7565b91506147f682615530565b602082019050919050565b600061480e602283614ef7565b915061481982615559565b604082019050919050565b6000614831602083614ef7565b915061483c826155a8565b602082019050919050565b6000614854601883614ef7565b915061485f826155d1565b602082019050919050565b6000614877601d83614ef7565b9150614882826155fa565b602082019050919050565b600061489a601283614ef7565b91506148a582615623565b602082019050919050565b60006148bd601683614ef7565b91506148c88261564c565b602082019050919050565b60006148e0602a83614ef7565b91506148eb82615675565b604082019050919050565b6000614903601383614ef7565b915061490e826156c4565b602082019050919050565b6000614926600b83614ef7565b9150614931826156ed565b602082019050919050565b6000614949602783614ef7565b915061495482615716565b604082019050919050565b6149688161509c565b82525050565b614977816150a6565b82525050565b6000614989828461457c565b915081905092915050565b60006149a082856145e6565b91506149ac82846145e6565b91508190509392505050565b60006149c382614680565b91506149cf828461452c565b60208201915081905092915050565b60006020820190506149f360008301846144ff565b92915050565b6000606082019050614a0e60008301866144ff565b614a1b60208301856144ff565b614a28604083018461495f565b949350505050565b6000608082019050614a4560008301876144ff565b614a5260208301866144ff565b614a5f604083018561495f565b8181036060830152614a718184614543565b905095945050505050565b6000608082019050614a9160008301876144ff565b614a9e602083018661495f565b614aab60408301856144ff565b614ab8606083018461495f565b95945050505050565b6000602082019050614ad6600083018461450e565b92915050565b6000608082019050614af1600083018761451d565b614afe602083018661496e565b614b0b604083018561451d565b614b18606083018461451d565b95945050505050565b60006020820190508181036000830152614b3b81846145ad565b905092915050565b60006020820190508181036000830152614b5c81614617565b9050919050565b60006020820190508181036000830152614b7c8161463a565b9050919050565b60006020820190508181036000830152614b9c8161465d565b9050919050565b60006020820190508181036000830152614bbc816146a3565b9050919050565b60006020820190508181036000830152614bdc816146c6565b9050919050565b60006020820190508181036000830152614bfc816146e9565b9050919050565b60006020820190508181036000830152614c1c8161470c565b9050919050565b60006020820190508181036000830152614c3c8161472f565b9050919050565b60006020820190508181036000830152614c5c81614752565b9050919050565b60006020820190508181036000830152614c7c81614775565b9050919050565b60006020820190508181036000830152614c9c81614798565b9050919050565b60006020820190508181036000830152614cbc816147bb565b9050919050565b60006020820190508181036000830152614cdc816147de565b9050919050565b60006020820190508181036000830152614cfc81614801565b9050919050565b60006020820190508181036000830152614d1c81614824565b9050919050565b60006020820190508181036000830152614d3c81614847565b9050919050565b60006020820190508181036000830152614d5c8161486a565b9050919050565b60006020820190508181036000830152614d7c8161488d565b9050919050565b60006020820190508181036000830152614d9c816148b0565b9050919050565b60006020820190508181036000830152614dbc816148d3565b9050919050565b60006020820190508181036000830152614ddc816148f6565b9050919050565b60006020820190508181036000830152614dfc81614919565b9050919050565b60006020820190508181036000830152614e1c8161493c565b9050919050565b6000602082019050614e38600083018461495f565b92915050565b6000614e48614e59565b9050614e548282615127565b919050565b6000604051905090565b600067ffffffffffffffff821115614e7e57614e7d615269565b5b614e8782615298565b9050602081019050919050565b600067ffffffffffffffff821115614eaf57614eae615269565b5b614eb882615298565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f1e8261509c565b9150614f298361509c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f5e57614f5d6151dc565b5b828201905092915050565b6000614f748261509c565b9150614f7f8361509c565b925082614f8f57614f8e61520b565b5b828204905092915050565b6000614fa58261509c565b9150614fb08361509c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614fe957614fe86151dc565b5b828202905092915050565b6000614fff8261509c565b915061500a8361509c565b92508282101561501d5761501c6151dc565b5b828203905092915050565b60006150338261507c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156150e05780820151818401526020810190506150c5565b838111156150ef576000848401525b50505050565b6000600282049050600182168061510d57607f821691505b602082108114156151215761512061523a565b5b50919050565b61513082615298565b810181811067ffffffffffffffff8211171561514f5761514e615269565b5b80604052505050565b60006151638261509c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615196576151956151dc565b5b600182019050919050565b6000819050919050565b60006151b68261509c565b91506151c18361509c565b9250826151d1576151d061520b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f7369676e6174757265496420616c726561647920757365640000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f696e76616c69642073746172742074696d650000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d696e74206174206c65617374206f6e65000000000000000000000000000000600082015250565b7f537461727461626c653a20737461727465640000000000000000000000000000600082015250565b7f7369676e6174757265206661696c656400000000000000000000000000000000600082015250565b7f657863656564206d6178206d696e74207065722077616c6c6574000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6e6f74206f6e2077686974656c69737400000000000000000000000000000000600082015250565b7f776f726e67207072696365000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f537461727461626c653a206e6f74207965742073746172740000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f6e6f2061737369676e6564207369676e65720000000000000000000000000000600082015250565b7f616464726573732063616e6e6f74206265206e756c6c00000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f657863656564206d617820706572206d696e7400000000000000000000000000600082015250565b7f6e6f7420696e2073616c65000000000000000000000000000000000000000000600082015250565b7f6d696e74696e672077696c6c20657863656564206d617820726573657276656460008201527f20746f6b656e7300000000000000000000000000000000000000000000000000602082015250565b61576e81615028565b811461577957600080fd5b50565b6157858161503a565b811461579057600080fd5b50565b61579c81615050565b81146157a757600080fd5b50565b6157b38161509c565b81146157be57600080fd5b5056fea2646970667358221220687827017fbd2d895e960d09e5cdacfc16be8a5f894dbf02b887ab094f30949c64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000c1f157ee93043a7aaf1374bc691ac644d7a2b9600000000000000000000000004d224452801aced8b2f0aebe155379bb5d59438100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000011447573746c616e6420476f65732041706500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084455535458415045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e746865647573746c616e642e636f6d2f6d657461646174612f64757374786170652f000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c806370a0823111610146578063c87b56dd116100c3578063eb46260e11610087578063eb46260e146106eb578063edac985b1461071b578063f02ae48f14610737578063f2fde38b14610753578063f4f3122e1461076f578063fd59d6571461078b5761025e565b8063c87b56dd14610631578063d1bdb1d114610661578063e081b7811461067f578063e73faa2d1461069d578063e985e9c5146106bb5761025e565b806395d89b411161010a57806395d89b411461058f578063a0712d68146105ad578063a22cb465146105c9578063a8b75a6e146105e5578063b88d4fde146106155761025e565b806370a08231146104fd578063715018a61461052d57806378e97925146105375780638da5cb5b1461055557806391b7f5ed146105735761025e565b80631f2698ab116101df57806342842e0e116101a357806342842e0e1461043d57806342966c68146104595780634efa82b61461047557806355f804b3146104935780636352211e146104af57806368fc68c7146104df5761025e565b80631f2698ab146103bd57806323b872dd146103db57806324510043146103f75780633197cbb614610415578063380d831b146104335761025e565b8063095ea7b311610226578063095ea7b31461031957806309d42b301461033557806318160ddd146103535780631950c218146103715780631b5757f2146103a15761025e565b806301ffc9a714610263578063046dc1661461029357806306fdde03146102af578063081812fc146102cd57806308dc9f42146102fd575b600080fd5b61027d600480360381019061027891906143a0565b6107a7565b60405161028a9190614ac1565b60405180910390f35b6102ad60048036038101906102a891906140fc565b610889565b005b6102b7610949565b6040516102c49190614b21565b60405180910390f35b6102e760048036038101906102e29190614433565b6109db565b6040516102f491906149de565b60405180910390f35b61031760048036038101906103129190614498565b610a57565b005b610333600480360381019061032e9190614267565b610c27565b005b61033d610d32565b60405161034a9190614e23565b60405180910390f35b61035b610d37565b6040516103689190614e23565b60405180910390f35b61038b600480360381019061038691906140fc565b610d4e565b6040516103989190614ac1565b60405180910390f35b6103bb60048036038101906103b69190614267565b610da4565b005b6103c5610f08565b6040516103d29190614ac1565b60405180910390f35b6103f560048036038101906103f09190614161565b610f1f565b005b6103ff610f2f565b60405161040c9190614e23565b60405180910390f35b61041d610f35565b60405161042a9190614e23565b60405180910390f35b61043b610f3b565b005b61045760048036038101906104529190614161565b610fd3565b005b610473600480360381019061046e9190614433565b610ff3565b005b61047d611001565b60405161048a91906149de565b60405180910390f35b6104ad60048036038101906104a891906143f2565b611027565b005b6104c960048036038101906104c49190614433565b6110f4565b6040516104d691906149de565b60405180910390f35b6104e761110a565b6040516104f49190614e23565b60405180910390f35b610517600480360381019061051291906140fc565b61110f565b6040516105249190614e23565b60405180910390f35b6105356111df565b005b61053f611267565b60405161054c9190614e23565b60405180910390f35b61055d61126d565b60405161056a91906149de565b60405180910390f35b61058d60048036038101906105889190614433565b611297565b005b61059761131d565b6040516105a49190614b21565b60405180910390f35b6105c760048036038101906105c29190614433565b6113af565b005b6105e360048036038101906105de919061422b565b61144e565b005b6105ff60048036038101906105fa91906142a3565b6115c6565b60405161060c91906149de565b60405180910390f35b61062f600480360381019061062a91906141b0565b61162f565b005b61064b60048036038101906106469190614433565b6116ab565b6040516106589190614b21565b60405180910390f35b61066961174a565b6040516106769190614e23565b60405180910390f35b61068761174f565b6040516106949190614ac1565b60405180910390f35b6106a561177a565b6040516106b29190614e23565b60405180910390f35b6106d560048036038101906106d09190614125565b611780565b6040516106e29190614ac1565b60405180910390f35b610705600480360381019061070091906140fc565b611814565b6040516107129190614e23565b60405180910390f35b61073560048036038101906107309190614332565b61185d565b005b610751600480360381019061074c91906140fc565b6119a4565b005b61076d600480360381019061076891906140fc565b611a64565b005b6107896004803603810190610784919061445c565b611b5c565b005b6107a560048036038101906107a091906140fc565b611c42565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610882575061088182611d02565b5b9050919050565b610891611d6c565b73ffffffffffffffffffffffffffffffffffffffff166108af61126d565b73ffffffffffffffffffffffffffffffffffffffff1614610905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fc90614d03565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610958906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610984906150f5565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b5050505050905090565b60006109e682611d74565b610a1c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae090614d63565b60405180910390fd5b600b600083815260200190815260200160002060009054906101000a900460ff1615610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4190614b63565b60405180910390fd5b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b97610b8e611d6c565b843046866115c6565b73ffffffffffffffffffffffffffffffffffffffff1614610bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be490614c23565b60405180910390fd5b6001600b600084815260200190815260200160002060006101000a81548160ff021916908315150217905550610c2283611dc2565b505050565b6000610c32826110f4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9a576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cb9611d6c565b73ffffffffffffffffffffffffffffffffffffffff1614158015610ceb5750610ce981610ce4611d6c565b611780565b155b15610d22576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d2d838383612092565b505050565b600381565b6000610d41612144565b6001546000540303905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610dac611d6c565b73ffffffffffffffffffffffffffffffffffffffff16610dca61126d565b73ffffffffffffffffffffffffffffffffffffffff1614610e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1790614d03565b60405180910390fd5b603381601054610e309190614f13565b1115610e71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6890614e03565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ee1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed890614d83565b60405180910390fd5b8060106000828254610ef39190614f13565b92505081905550610f048282612149565b5050565b6000600860149054906101000a900460ff16905090565b610f2a838383612167565b505050565b60105481565b600f5481565b610f43611d6c565b73ffffffffffffffffffffffffffffffffffffffff16610f6161126d565b73ffffffffffffffffffffffffffffffffffffffff1614610fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae90614d03565b60405180910390fd5b42600f541115610fc95742600f819055505b610fd161261d565b565b610fee8383836040518060200160405280600081525061162f565b505050565b610ffe8160016126bf565b50565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61102f611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661104d61126d565b73ffffffffffffffffffffffffffffffffffffffff16146110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109a90614d03565b60405180910390fd5b80601190805190602001906110b9929190613e7e565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6816040516110e99190614b21565b60405180910390a150565b60006110ff82612aaf565b600001519050919050565b603381565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611177576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6111e7611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661120561126d565b73ffffffffffffffffffffffffffffffffffffffff161461125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290614d03565b60405180910390fd5b6112656000612d3e565b565b600e5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61129f611d6c565b73ffffffffffffffffffffffffffffffffffffffff166112bd61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611313576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130a90614d03565b60405180910390fd5b80600d8190555050565b60606003805461132c906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611358906150f5565b80156113a55780601f1061137a576101008083540402835291602001916113a5565b820191906000526020600020905b81548152906001019060200180831161138857829003601f168201915b5050505050905090565b600a60006113bb611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614ca3565b60405180910390fd5b61144b81611dc2565b50565b611456611d6c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114bb576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006114c8611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611575611d6c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115ba9190614ac1565b60405180910390a35050565b6000611624868686866040516020016115e29493929190614a7c565b6040516020818303038152906040528051906020012060405160200161160891906149b8565b6040516020818303038152906040528051906020012083612e04565b905095945050505050565b61163a848484612167565b6116598373ffffffffffffffffffffffffffffffffffffffff16612e2b565b801561166e575061166c84848484612e3e565b155b156116a5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60606116b682611d74565b6116ec576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116f6612f9e565b90506000815114156117175760405180602001604052806000815250611742565b8061172184613030565b604051602001611732929190614994565b6040516020818303038152906040525b915050919050565b600381565b6000611759610f08565b80156117675750600e544210155b80156117755750600f544211155b905090565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611865611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661188361126d565b73ffffffffffffffffffffffffffffffffffffffff16146118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d090614d03565b60405180910390fd5b60005b8282905081101561199f576001600a6000858585818110611926577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061193b91906140fc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061199790615158565b9150506118dc565b505050565b6119ac611d6c565b73ffffffffffffffffffffffffffffffffffffffff166119ca61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1790614d03565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611a6c611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611a8a61126d565b73ffffffffffffffffffffffffffffffffffffffff1614611ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad790614d03565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4790614bc3565b60405180910390fd5b611b5981612d3e565b50565b611b64611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611b8261126d565b73ffffffffffffffffffffffffffffffffffffffff1614611bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcf90614d03565b60405180910390fd5b42821015611c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1290614ba3565b60405180910390fd5b81600e8190555080600e54611c309190614f13565b600f81905550611c3e6131dd565b5050565b611c4a611d6c565b73ffffffffffffffffffffffffffffffffffffffff16611c6861126d565b73ffffffffffffffffffffffffffffffffffffffff1614611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590614d03565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600081611d7f612144565b11158015611d8e575060005482105b8015611dbb575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b611dca610f08565b611e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0090614d23565b60405180910390fd5b600f544211158015611e1d5750600e544210155b611e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5390614de3565b60405180910390fd5b6003811115611ea0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9790614dc3565b60405180910390fd5b60038160096000611eaf611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ef49190614f13565b1115611f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2c90614c43565b60405180910390fd5b60008111611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f90614be3565b60405180910390fd5b6000600d5411611fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb490614cc3565b60405180910390fd5b8060096000611fca611d6c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120139190614f13565b9250508190555061207e600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612048611d6c565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684600d546120799190614f9a565b613280565b61208f612089611d6c565b82612149565b50565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b612163828260405180602001604052806000815250613309565b5050565b600061217282612aaf565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146121dd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166121fe611d6c565b73ffffffffffffffffffffffffffffffffffffffff16148061222d575061222c85612227611d6c565b611780565b5b80612272575061223b611d6c565b73ffffffffffffffffffffffffffffffffffffffff1661225a846109db565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122ab576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612312576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61231f858585600161331b565b61232b60008487612092565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125ab5760005482146125aa57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126168585856001613321565b5050505050565b612625610f08565b612664576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265b90614d23565b60405180910390fd5b6000600860146101000a81548160ff0219169083151502179055507f5699deef3e04be804ac29c66b1ca35e41bc435d9a0326d9a6ae520ae1a1e87556126a8611d6c565b6040516126b591906149de565b60405180910390a1565b60006126ca83612aaf565b905060008160000151905082156127ab5760008173ffffffffffffffffffffffffffffffffffffffff166126fc611d6c565b73ffffffffffffffffffffffffffffffffffffffff16148061272b575061272a82612725611d6c565b611780565b5b806127705750612739611d6c565b73ffffffffffffffffffffffffffffffffffffffff16612758866109db565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806127a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b6127b981600086600161331b565b6127c560008583612092565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060018160000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060018160000160108282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008781526020019081526020016000209050828160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600181600001601c6101000a81548160ff02191690831515021790555060006001870190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612a29576000548214612a2857848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b5050505083600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a97816000866001613321565b60016000815480929190600101919050555050505050565b612ab7613f04565b600082905080612ac5612144565b11158015612ad4575060005481105b15612d07576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d0557600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612be9578092505050612d39565b5b600115612d0457818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612cff578092505050612d39565b612bea565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806000612e138585613327565b91509150612e20816133aa565b819250505092915050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e64611d6c565b8786866040518563ffffffff1660e01b8152600401612e869493929190614a30565b602060405180830381600087803b158015612ea057600080fd5b505af1925050508015612ed157506040513d601f19601f82011682018060405250810190612ece91906143c9565b60015b612f4b573d8060008114612f01576040519150601f19603f3d011682016040523d82523d6000602084013e612f06565b606091505b50600081511415612f43576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060118054612fad906150f5565b80601f0160208091040260200160405190810160405280929190818152602001828054612fd9906150f5565b80156130265780601f10612ffb57610100808354040283529160200191613026565b820191906000526020600020905b81548152906001019060200180831161300957829003601f168201915b5050505050905090565b60606000821415613078576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131d8565b600082905060005b600082146130aa57808061309390615158565b915050600a826130a39190614f69565b9150613080565b60008167ffffffffffffffff8111156130ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561311e5781602001600182028036833780820191505090505b5090505b600085146131d1576001826131379190614ff4565b9150600a8561314691906151ab565b60306131529190614f13565b60f81b81838151811061318e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131ca9190614f69565b9450613122565b8093505050505b919050565b6131e5610f08565b15613225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161321c90614c03565b60405180910390fd5b6001600860146101000a81548160ff0219169083151502179055507f27029695aa5f602a4ee81f4c32dfa86e562f200a17966496f3a7c3f2ec0f9417613269611d6c565b60405161327691906149de565b60405180910390a1565b613303846323b872dd60e01b8585856040516024016132a1939291906149f9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506136fb565b50505050565b61331683838360016137c2565b505050565b50505050565b50505050565b6000806041835114156133695760008060006020860151925060408601519150606086015160001a905061335d87828585613b90565b945094505050506133a3565b60408351141561339a57600080602085015191506040850151905061338f868383613c9d565b9350935050506133a3565b60006002915091505b9250929050565b600060048111156133e4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561341d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613428576136f8565b60016004811115613462577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561349b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156134dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d390614b43565b60405180910390fd5b60026004811115613516577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561354f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613590576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358790614b83565b60405180910390fd5b600360048111156135ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613603577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363b90614c63565b60405180910390fd5b60048081111561367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156136b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156136f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ee90614ce3565b60405180910390fd5b5b50565b600061375d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ceb9092919063ffffffff16565b90506000815111156137bd578080602001905181019061377d9190614377565b6137bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b390614da3565b60405180910390fd5b5b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561382f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561386a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613877600086838761331b565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060008582019050838015613a415750613a408773ffffffffffffffffffffffffffffffffffffffff16612e2b565b5b15613b07575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613ab66000888480600101955088612e3e565b613aec576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613a47578260005414613b0257600080fd5b613b73565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613b08575b816000819055505050613b896000868387613321565b5050505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613bcb576000600391509150613c94565b601b8560ff1614158015613be35750601c8560ff1614155b15613bf5576000600491509150613c94565b600060018787878760405160008152602001604052604051613c1a9493929190614adc565b6020604051602081039080840390855afa158015613c3c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613c8b57600060019250925050613c94565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613cdd87828885613b90565b935093505050935093915050565b6060613cfa8484600085613d03565b90509392505050565b606082471015613d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3f90614c83565b60405180910390fd5b613d5185612e2b565b613d90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d8790614d43565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613db9919061497d565b60006040518083038185875af1925050503d8060008114613df6576040519150601f19603f3d011682016040523d82523d6000602084013e613dfb565b606091505b5091509150613e0b828286613e17565b92505050949350505050565b60608315613e2757829050613e77565b600083511115613e3a5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e6e9190614b21565b60405180910390fd5b9392505050565b828054613e8a906150f5565b90600052602060002090601f016020900481019282613eac5760008555613ef3565b82601f10613ec557805160ff1916838001178555613ef3565b82800160010185558215613ef3579182015b82811115613ef2578251825591602001919060010190613ed7565b5b509050613f009190613f47565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613f60576000816000905550600101613f48565b5090565b6000613f77613f7284614e63565b614e3e565b905082815260208101848484011115613f8f57600080fd5b613f9a8482856150b3565b509392505050565b6000613fb5613fb084614e94565b614e3e565b905082815260208101848484011115613fcd57600080fd5b613fd88482856150b3565b509392505050565b600081359050613fef81615765565b92915050565b60008083601f84011261400757600080fd5b8235905067ffffffffffffffff81111561402057600080fd5b60208301915083602082028301111561403857600080fd5b9250929050565b60008135905061404e8161577c565b92915050565b6000815190506140638161577c565b92915050565b60008135905061407881615793565b92915050565b60008151905061408d81615793565b92915050565b600082601f8301126140a457600080fd5b81356140b4848260208601613f64565b91505092915050565b600082601f8301126140ce57600080fd5b81356140de848260208601613fa2565b91505092915050565b6000813590506140f6816157aa565b92915050565b60006020828403121561410e57600080fd5b600061411c84828501613fe0565b91505092915050565b6000806040838503121561413857600080fd5b600061414685828601613fe0565b925050602061415785828601613fe0565b9150509250929050565b60008060006060848603121561417657600080fd5b600061418486828701613fe0565b935050602061419586828701613fe0565b92505060406141a6868287016140e7565b9150509250925092565b600080600080608085870312156141c657600080fd5b60006141d487828801613fe0565b94505060206141e587828801613fe0565b93505060406141f6878288016140e7565b925050606085013567ffffffffffffffff81111561421357600080fd5b61421f87828801614093565b91505092959194509250565b6000806040838503121561423e57600080fd5b600061424c85828601613fe0565b925050602061425d8582860161403f565b9150509250929050565b6000806040838503121561427a57600080fd5b600061428885828601613fe0565b9250506020614299858286016140e7565b9150509250929050565b600080600080600060a086880312156142bb57600080fd5b60006142c988828901613fe0565b95505060206142da888289016140e7565b94505060406142eb88828901613fe0565b93505060606142fc888289016140e7565b925050608086013567ffffffffffffffff81111561431957600080fd5b61432588828901614093565b9150509295509295909350565b6000806020838503121561434557600080fd5b600083013567ffffffffffffffff81111561435f57600080fd5b61436b85828601613ff5565b92509250509250929050565b60006020828403121561438957600080fd5b600061439784828501614054565b91505092915050565b6000602082840312156143b257600080fd5b60006143c084828501614069565b91505092915050565b6000602082840312156143db57600080fd5b60006143e98482850161407e565b91505092915050565b60006020828403121561440457600080fd5b600082013567ffffffffffffffff81111561441e57600080fd5b61442a848285016140bd565b91505092915050565b60006020828403121561444557600080fd5b6000614453848285016140e7565b91505092915050565b6000806040838503121561446f57600080fd5b600061447d858286016140e7565b925050602061448e858286016140e7565b9150509250929050565b6000806000606084860312156144ad57600080fd5b60006144bb868287016140e7565b93505060206144cc868287016140e7565b925050604084013567ffffffffffffffff8111156144e957600080fd5b6144f586828701614093565b9150509250925092565b61450881615028565b82525050565b6145178161503a565b82525050565b61452681615046565b82525050565b61453d61453882615046565b6151a1565b82525050565b600061454e82614ec5565b6145588185614edb565b93506145688185602086016150c2565b61457181615298565b840191505092915050565b600061458782614ec5565b6145918185614eec565b93506145a18185602086016150c2565b80840191505092915050565b60006145b882614ed0565b6145c28185614ef7565b93506145d28185602086016150c2565b6145db81615298565b840191505092915050565b60006145f182614ed0565b6145fb8185614f08565b935061460b8185602086016150c2565b80840191505092915050565b6000614624601883614ef7565b915061462f826152a9565b602082019050919050565b6000614647601883614ef7565b9150614652826152d2565b602082019050919050565b600061466a601f83614ef7565b9150614675826152fb565b602082019050919050565b600061468d601c83614f08565b915061469882615324565b601c82019050919050565b60006146b0601283614ef7565b91506146bb8261534d565b602082019050919050565b60006146d3602683614ef7565b91506146de82615376565b604082019050919050565b60006146f6601183614ef7565b9150614701826153c5565b602082019050919050565b6000614719601283614ef7565b9150614724826153ee565b602082019050919050565b600061473c601083614ef7565b915061474782615417565b602082019050919050565b600061475f601a83614ef7565b915061476a82615440565b602082019050919050565b6000614782602283614ef7565b915061478d82615469565b604082019050919050565b60006147a5602683614ef7565b91506147b0826154b8565b604082019050919050565b60006147c8601083614ef7565b91506147d382615507565b602082019050919050565b60006147eb600b83614ef7565b91506147f682615530565b602082019050919050565b600061480e602283614ef7565b915061481982615559565b604082019050919050565b6000614831602083614ef7565b915061483c826155a8565b602082019050919050565b6000614854601883614ef7565b915061485f826155d1565b602082019050919050565b6000614877601d83614ef7565b9150614882826155fa565b602082019050919050565b600061489a601283614ef7565b91506148a582615623565b602082019050919050565b60006148bd601683614ef7565b91506148c88261564c565b602082019050919050565b60006148e0602a83614ef7565b91506148eb82615675565b604082019050919050565b6000614903601383614ef7565b915061490e826156c4565b602082019050919050565b6000614926600b83614ef7565b9150614931826156ed565b602082019050919050565b6000614949602783614ef7565b915061495482615716565b604082019050919050565b6149688161509c565b82525050565b614977816150a6565b82525050565b6000614989828461457c565b915081905092915050565b60006149a082856145e6565b91506149ac82846145e6565b91508190509392505050565b60006149c382614680565b91506149cf828461452c565b60208201915081905092915050565b60006020820190506149f360008301846144ff565b92915050565b6000606082019050614a0e60008301866144ff565b614a1b60208301856144ff565b614a28604083018461495f565b949350505050565b6000608082019050614a4560008301876144ff565b614a5260208301866144ff565b614a5f604083018561495f565b8181036060830152614a718184614543565b905095945050505050565b6000608082019050614a9160008301876144ff565b614a9e602083018661495f565b614aab60408301856144ff565b614ab8606083018461495f565b95945050505050565b6000602082019050614ad6600083018461450e565b92915050565b6000608082019050614af1600083018761451d565b614afe602083018661496e565b614b0b604083018561451d565b614b18606083018461451d565b95945050505050565b60006020820190508181036000830152614b3b81846145ad565b905092915050565b60006020820190508181036000830152614b5c81614617565b9050919050565b60006020820190508181036000830152614b7c8161463a565b9050919050565b60006020820190508181036000830152614b9c8161465d565b9050919050565b60006020820190508181036000830152614bbc816146a3565b9050919050565b60006020820190508181036000830152614bdc816146c6565b9050919050565b60006020820190508181036000830152614bfc816146e9565b9050919050565b60006020820190508181036000830152614c1c8161470c565b9050919050565b60006020820190508181036000830152614c3c8161472f565b9050919050565b60006020820190508181036000830152614c5c81614752565b9050919050565b60006020820190508181036000830152614c7c81614775565b9050919050565b60006020820190508181036000830152614c9c81614798565b9050919050565b60006020820190508181036000830152614cbc816147bb565b9050919050565b60006020820190508181036000830152614cdc816147de565b9050919050565b60006020820190508181036000830152614cfc81614801565b9050919050565b60006020820190508181036000830152614d1c81614824565b9050919050565b60006020820190508181036000830152614d3c81614847565b9050919050565b60006020820190508181036000830152614d5c8161486a565b9050919050565b60006020820190508181036000830152614d7c8161488d565b9050919050565b60006020820190508181036000830152614d9c816148b0565b9050919050565b60006020820190508181036000830152614dbc816148d3565b9050919050565b60006020820190508181036000830152614ddc816148f6565b9050919050565b60006020820190508181036000830152614dfc81614919565b9050919050565b60006020820190508181036000830152614e1c8161493c565b9050919050565b6000602082019050614e38600083018461495f565b92915050565b6000614e48614e59565b9050614e548282615127565b919050565b6000604051905090565b600067ffffffffffffffff821115614e7e57614e7d615269565b5b614e8782615298565b9050602081019050919050565b600067ffffffffffffffff821115614eaf57614eae615269565b5b614eb882615298565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f1e8261509c565b9150614f298361509c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f5e57614f5d6151dc565b5b828201905092915050565b6000614f748261509c565b9150614f7f8361509c565b925082614f8f57614f8e61520b565b5b828204905092915050565b6000614fa58261509c565b9150614fb08361509c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614fe957614fe86151dc565b5b828202905092915050565b6000614fff8261509c565b915061500a8361509c565b92508282101561501d5761501c6151dc565b5b828203905092915050565b60006150338261507c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156150e05780820151818401526020810190506150c5565b838111156150ef576000848401525b50505050565b6000600282049050600182168061510d57607f821691505b602082108114156151215761512061523a565b5b50919050565b61513082615298565b810181811067ffffffffffffffff8211171561514f5761514e615269565b5b80604052505050565b60006151638261509c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615196576151956151dc565b5b600182019050919050565b6000819050919050565b60006151b68261509c565b91506151c18361509c565b9250826151d1576151d061520b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f7369676e6174757265496420616c726561647920757365640000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f696e76616c69642073746172742074696d650000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d696e74206174206c65617374206f6e65000000000000000000000000000000600082015250565b7f537461727461626c653a20737461727465640000000000000000000000000000600082015250565b7f7369676e6174757265206661696c656400000000000000000000000000000000600082015250565b7f657863656564206d6178206d696e74207065722077616c6c6574000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6e6f74206f6e2077686974656c69737400000000000000000000000000000000600082015250565b7f776f726e67207072696365000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f537461727461626c653a206e6f74207965742073746172740000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f6e6f2061737369676e6564207369676e65720000000000000000000000000000600082015250565b7f616464726573732063616e6e6f74206265206e756c6c00000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f657863656564206d617820706572206d696e7400000000000000000000000000600082015250565b7f6e6f7420696e2073616c65000000000000000000000000000000000000000000600082015250565b7f6d696e74696e672077696c6c20657863656564206d617820726573657276656460008201527f20746f6b656e7300000000000000000000000000000000000000000000000000602082015250565b61576e81615028565b811461577957600080fd5b50565b6157858161503a565b811461579057600080fd5b50565b61579c81615050565b81146157a757600080fd5b50565b6157b38161509c565b81146157be57600080fd5b5056fea2646970667358221220687827017fbd2d895e960d09e5cdacfc16be8a5f894dbf02b887ab094f30949c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000c1f157ee93043a7aaf1374bc691ac644d7a2b9600000000000000000000000004d224452801aced8b2f0aebe155379bb5d59438100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000011447573746c616e6420476f65732041706500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084455535458415045000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e746865647573746c616e642e636f6d2f6d657461646174612f64757374786170652f000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Dustland Goes Ape
Arg [1] : symbol_ (string): DUSTXAPE
Arg [2] : payeeWallet_ (address): 0xC1f157eE93043A7AAF1374bC691Ac644D7A2b960
Arg [3] : payoutToken_ (address): 0x4d224452801ACEd8B2F0aebE155379bb5D594381
Arg [4] : baseURI (string): https://api.thedustland.com/metadata/dustxape/
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000c1f157ee93043a7aaf1374bc691ac644d7a2b960
Arg [3] : 0000000000000000000000004d224452801aced8b2f0aebe155379bb5d594381
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [6] : 447573746c616e6420476f657320417065000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 4455535458415045000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [10] : 68747470733a2f2f6170692e746865647573746c616e642e636f6d2f6d657461
Arg [11] : 646174612f64757374786170652f000000000000000000000000000000000000
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.