Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
500 GF
Holders
224
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 GFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GoldenFrogs
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; // ⢀⢀⣀⠤⠤⠤⣀ // ⠞ ⠈⠑⠢⢔⡶⣭⡿⠟⠋⠉⠢⡀ // ⢀⠞ ⠈⠛⠃ ⣵⡀ // ⢠⠎ ⢀⠠⢤⣤⣤⠄⣀ ⣀⢤⣤⣭⣕⣢⡀ // ⢀⡠⠊ ⢀⡠⣪⠗⣨⣶⠟⠓⠪⡔⠵⣄⠼⣪⣷⡾⠛⠲⣌⠛⡆ // ⢠⠊ ⠠⣔⡽⠊ ⢸⡿⢧ ⢀⣿⡀⠐⢠⣿⠿⡀ ⣸⡇⢸ // ⢰⠃ ⠒⠛⠛⠤⣀ ⠘⣧⣾⣿⣿⣿⣿⡠⣊⢿⣤⣟⣿⣿⣿⡣⠎ // ⢠⠇ ⠐⠻⠭⠭⠭⠿⠟⠋⠁ ⠈⠙⠛⠛⢛⡿⠋⠁ // ⢸ ⢠⣶⣦⣄⡀ ⠙ ⠃ ⢈⣆ // ⢸ ⠈⠻⢿⣿⣿⣷⣶⣶⣤⣤⣤⣤⣀⣀⣀⣤⣤⣤⣶⣶⣾⣿⣿⠆ // ⢸ ⠈⠉⠛⠻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⡻ // ⠘⡆ ⢟⡕⠁ // ⣀⣤⣷⣤ ⢟⡕ // ⣠⣾⣿⣿⣿⣿⣷ ⣟⣯ // ⢀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣷⣤⣈⠻⣿⣯⣶⣦⠴⢤⣀⣀⣀⣩⣭⡍⠊⣿⣧⣾⣿⣦⣄ // ⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷ ⢧⣿⣿⣿⣿⣿⣾ ⣿⣿⣿⣿⣿⣷⣶⣄ // ⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ⠈⢻⣿⣿⣿⣿⡏ ⣡⣿⣿⣿⣿⣿⣿⣿⣿⡇ // ⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⣹⣿⣿⣿⣯⢳⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀ // ⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ // ⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧ // The Golden Frog DAO - Genesis Frogs // Created by Mr F - https://twitter.com/MrFwashere // Artwork by Fenoir - https://twitter.com/EscuerFlorian // Special thanks and love to the entire Golden Frog DAO community // Extra special thanks to the GFD admins Kronos, Oscom, SkYwArD and GayFrog contract GoldenFrogs is ERC721, ERC721Enumerable, ERC721URIStorage { uint maxFrogs = 500; uint offsetBlock; uint offset; address public mrF = 0x38857Ed3a8fC5951289E58e20fB56A00e88f0BBD; string public baseURI; bool public locked; uint public withdrawnEth; mapping(uint => uint) public claimedEth; struct rewardToken { uint withdrawn; mapping(uint => uint) claimedTokens; } mapping(address => rewardToken) rewardTokens; constructor() ERC721("GoldenFrogs", "GF") { } fallback() external payable { } receive() external payable { } function setBaseURI(string memory uri) public { require(msg.sender == mrF); require(!locked); baseURI = uri; } function lockBaseURI() public { require(msg.sender == mrF); locked = true; } function changeMrF(address newMrF) public { require(msg.sender == mrF); mrF = newMrF; } function mint(address og) public { require(msg.sender == mrF); require(totalSupply() < maxFrogs); require(offset != 0); _mint(og, ((totalSupply() + offset) % maxFrogs) + 1); } function mintMany(address[] memory addrs, uint32[] memory nums) public { for (uint i = 0; i < addrs.length; i++) { address addr = addrs[i]; uint num = nums[i]; for (uint j = 0; j < num; j++) { mint(addr); } } } // Offset functions (provenance) function initOffset() public { require(msg.sender == mrF); offsetBlock = block.number + 1; } function finalizeOffset() public { require(offset == 0); require(offsetBlock != 0); require(block.number - offsetBlock < 255); offset = uint(blockhash(offsetBlock)) % maxFrogs; // Prevent default sequence if (offset == 0) { offset = 1; } delete offsetBlock; } // Withdrawing functions function getUserFrogs(address user) public view returns (uint[] memory) { uint count = balanceOf(user); uint[] memory ids = new uint[](count); for (uint i = 0; i<count; i++) { uint token = tokenOfOwnerByIndex(user, i); ids[i] = token; } return ids; } function withdrawEth(uint32[] memory ids) public { uint totalRewards; uint receivedEth = withdrawnEth + address(this).balance; uint receivedEthPerFrog = receivedEth / totalSupply(); for (uint i = 0; i < ids.length; i++) { require(ownerOf(ids[i]) == msg.sender, "Must own the token"); totalRewards += receivedEthPerFrog - claimedEth[ids[i]]; claimedEth[ids[i]] = receivedEthPerFrog; } withdrawnEth += totalRewards; (bool success,) = address(msg.sender).call{value: totalRewards}(''); require(success, "Transfer failed"); } function checkEth(uint32[] memory ids) public view returns (uint balance) { uint totalRewards; uint receivedEth = withdrawnEth + address(this).balance; uint receivedEthPerToken = receivedEth / totalSupply(); for (uint i = 0; i < ids.length; i++) { totalRewards += receivedEthPerToken - claimedEth[ids[i]]; } return totalRewards; } function withdrawTokens(address token, uint32[] memory ids) public { uint totalRewards; uint receivedTokens = rewardTokens[token].withdrawn + ERC20(token).balanceOf(address(this)); uint receivedTokenPerFrog = receivedTokens / totalSupply(); for (uint i = 0; i < ids.length; i++) { require(ownerOf(ids[i]) == msg.sender, "Must own the token"); totalRewards += receivedTokenPerFrog - rewardTokens[token].claimedTokens[ids[i]]; rewardTokens[token].claimedTokens[ids[i]] = receivedTokenPerFrog; } rewardTokens[token].withdrawn += totalRewards; ERC20(token).transfer(msg.sender, totalRewards); } function checkTokens(address token, uint32[] memory ids) public view returns (uint balance) { uint totalRewards; uint receivedTokens = rewardTokens[token].withdrawn + ERC20(token).balanceOf(address(this)); uint receivedTokenPerFrog = receivedTokens / totalSupply(); for (uint i = 0; i < ids.length; i++) { totalRewards += receivedTokenPerFrog - rewardTokens[token].claimedTokens[ids[i]]; } return totalRewards; } // copy pasted ERC721 junk function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); 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 virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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.0 (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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, 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.0 (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.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `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.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":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"},{"stateMutability":"payable","type":"fallback"},{"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newMrF","type":"address"}],"name":"changeMrF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"ids","type":"uint32[]"}],"name":"checkEth","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint32[]","name":"ids","type":"uint32[]"}],"name":"checkTokens","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeOffset","outputs":[],"stateMutability":"nonpayable","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":"getUserFrogs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initOffset","outputs":[],"stateMutability":"nonpayable","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":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"og","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"},{"internalType":"uint32[]","name":"nums","type":"uint32[]"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mrF","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint32[]","name":"ids","type":"uint32[]"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint32[]","name":"ids","type":"uint32[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawnEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526101f4600b557338857ed3a8fc5951289e58e20fb56a00e88f0bbd600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200006c57600080fd5b506040518060400160405280600b81526020017f476f6c64656e46726f67730000000000000000000000000000000000000000008152506040518060400160405280600281526020017f47460000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000f192919062000113565b5080600190805190602001906200010a92919062000113565b50505062000228565b8280546200012190620001c3565b90600052602060002090601f01602090048101928262000145576000855562000191565b82601f106200016057805160ff191683800117855562000191565b8280016001018555821562000191579182015b828111156200019057825182559160200191906001019062000173565b5b509050620001a09190620001a4565b5090565b5b80821115620001bf576000816000905550600101620001a5565b5090565b60006002820490506001821680620001dc57607f821691505b60208210811415620001f357620001f2620001f9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b614acf80620002386000396000f3fe6080604052600436106101f25760003560e01c806370a082311161010d578063a05dfeab116100a0578063c87b56dd1161006f578063c87b56dd14610713578063cf30901214610750578063d87d40cf1461077b578063e10e9e5f146107b8578063e985e9c5146107cf576101f9565b8063a05dfeab1461065b578063a22cb46514610698578063b52b8355146106c1578063b88d4fde146106ea576101f9565b80638d8e529e116100dc5780638d8e529e146105b357806395d89b41146105dc57806399f53224146106075780639ead960014610630576101f9565b806370a08231146104f957806375412e04146105365780637f89b5ce1461055f5780638909f30514610576576101f9565b80633a57b2241161018557806355f804b31161015457806355f804b31461043f5780636352211e146104685780636a627842146104a55780636c0360eb146104ce576101f9565b80633a57b2241461038557806342842e0e146103c25780634f6ccce7146103eb57806353df5c7c14610428576101f9565b80630bd3ca7f116101c15780630bd3ca7f146102c957806318160ddd146102f457806323b872dd1461031f5780632f745c5914610348576101f9565b806301ffc9a7146101fb57806306fdde0314610238578063081812fc14610263578063095ea7b3146102a0576101f9565b366101f957005b005b34801561020757600080fd5b50610222600480360381019061021d91906138f1565b61080c565b60405161022f9190614304565b60405180910390f35b34801561024457600080fd5b5061024d61081e565b60405161025a919061431f565b60405180910390f35b34801561026f57600080fd5b5061028a60048036038101906102859190613984565b6108b0565b6040516102979190614252565b60405180910390f35b3480156102ac57600080fd5b506102c760048036038101906102c291906137df565b610935565b005b3480156102d557600080fd5b506102de610a4d565b6040516102eb91906145a1565b60405180910390f35b34801561030057600080fd5b50610309610a53565b60405161031691906145a1565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190613685565b610a60565b005b34801561035457600080fd5b5061036f600480360381019061036a91906137df565b610ac0565b60405161037c91906145a1565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a79190613887565b610b65565b6040516103b991906145a1565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190613685565b610c2e565b005b3480156103f757600080fd5b50610412600480360381019061040d9190613984565b610c4e565b60405161041f91906145a1565b60405180910390f35b34801561043457600080fd5b5061043d610ce5565b005b34801561044b57600080fd5b5061046660048036038101906104619190613943565b610d5c565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613984565b610dea565b60405161049c9190614252565b60405180910390f35b3480156104b157600080fd5b506104cc60048036038101906104c79190613620565b610e9c565b005b3480156104da57600080fd5b506104e3610f55565b6040516104f0919061431f565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190613620565b610fe3565b60405161052d91906145a1565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190613887565b61109b565b005b34801561056b57600080fd5b5061057461133d565b005b34801561058257600080fd5b5061059d60048036038101906105989190613620565b6113ac565b6040516105aa91906142e2565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d5919061374f565b6114ac565b005b3480156105e857600080fd5b506105f16118b8565b6040516105fe919061431f565b60405180910390f35b34801561061357600080fd5b5061062e60048036038101906106299190613620565b61194a565b005b34801561063c57600080fd5b506106456119e8565b6040516106529190614252565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d9190613984565b611a0e565b60405161068f91906145a1565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba91906137a3565b611a26565b005b3480156106cd57600080fd5b506106e860048036038101906106e3919061381b565b611a3c565b005b3480156106f657600080fd5b50610711600480360381019061070c91906136d4565b611b1a565b005b34801561071f57600080fd5b5061073a60048036038101906107359190613984565b611b7c565b604051610747919061431f565b60405180910390f35b34801561075c57600080fd5b50610765611b8e565b6040516107729190614304565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d919061374f565b611ba1565b6040516107af91906145a1565b60405180910390f35b3480156107c457600080fd5b506107cd611d73565b005b3480156107db57600080fd5b506107f660048036038101906107f19190613649565b611de2565b6040516108039190614304565b60405180910390f35b600061081782611e76565b9050919050565b60606000805461082d906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610859906148ad565b80156108a65780601f1061087b576101008083540402835291602001916108a6565b820191906000526020600020905b81548152906001019060200180831161088957829003601f168201915b5050505050905090565b60006108bb82611ef0565b6108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190614501565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094082610dea565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a890614541565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d0611f5c565b73ffffffffffffffffffffffffffffffffffffffff1614806109ff57506109fe816109f9611f5c565b611de2565b5b610a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3590614461565b60405180910390fd5b610a488383611f64565b505050565b60115481565b6000600880549050905090565b610a71610a6b611f5c565b8261201d565b610ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa790614561565b60405180910390fd5b610abb8383836120fb565b505050565b6000610acb83610fe3565b8210610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0390614341565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600080600047601154610b78919061472c565b90506000610b84610a53565b82610b8f9190614782565b905060005b8551811015610c225760126000878381518110610bda577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000205482610c0291906147b3565b84610c0d919061472c565b93508080610c1a906148df565b915050610b94565b50829350505050919050565b610c4983838360405180602001604052806000815250611b1a565b505050565b6000610c58610a53565b8210610c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9090614581565b60405180910390fd5b60088281548110610cd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d3f57600080fd5b6001601060006101000a81548160ff021916908315150217905550565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db657600080fd5b601060009054906101000a900460ff1615610dd057600080fd5b80600f9080519060200190610de69291906132d9565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a906144a1565b60405180910390fd5b80915050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ef657600080fd5b600b54610f01610a53565b10610f0b57600080fd5b6000600d541415610f1b57600080fd5b610f52816001600b54600d54610f2f610a53565b610f39919061472c565b610f439190614928565b610f4d919061472c565b612362565b50565b600f8054610f62906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8e906148ad565b8015610fdb5780601f10610fb057610100808354040283529160200191610fdb565b820191906000526020600020905b815481529060010190602001808311610fbe57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90614481565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600080476011546110ac919061472c565b905060006110b8610a53565b826110c39190614782565b905060005b8451811015611270573373ffffffffffffffffffffffffffffffffffffffff16611137868381518110611124577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16610dea565b73ffffffffffffffffffffffffffffffffffffffff161461118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118490614441565b60405180910390fd5b601260008683815181106111ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16815260200190815260200160002054826111f291906147b3565b846111fd919061472c565b9350816012600087848151811061123d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff168152602001908152602001600020819055508080611268906148df565b9150506110c8565b508260116000828254611283919061472c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16846040516112b09061423d565b60006040518083038185875af1925050503d80600081146112ed576040519150601f19603f3d011682016040523d82523d6000602084013e6112f2565b606091505b5050905080611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d90614381565b60405180910390fd5b5050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461139757600080fd5b6001436113a4919061472c565b600c81905550565b606060006113b983610fe3565b905060008167ffffffffffffffff8111156113fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561142b5781602001602082028036833780820191505090505b50905060005b828110156114a15760006114458683610ac0565b905080838381518110611481577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050508080611499906148df565b915050611431565b508092505050919050565b6000808373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016114e89190614252565b60206040518083038186803b15801561150057600080fd5b505afa158015611514573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153891906139ad565b601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154611585919061472c565b90506000611591610a53565b8261159c9190614782565b905060005b84518110156117c9573373ffffffffffffffffffffffffffffffffffffffff166116108683815181106115fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16610dea565b73ffffffffffffffffffffffffffffffffffffffff1614611666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165d90614441565b60405180910390fd5b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008683815181106116e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff168152602001908152602001600020548261170b91906147b3565b84611716919061472c565b935081601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000878481518110611796577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000208190555080806117c1906148df565b9150506115a1565b5082601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825461181c919061472c565b925050819055508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b815260040161185e9291906142b9565b602060405180830381600087803b15801561187857600080fd5b505af115801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b091906138c8565b505050505050565b6060600180546118c7906148ad565b80601f01602080910402602001604051908101604052809291908181526020018280546118f3906148ad565b80156119405780601f1061191557610100808354040283529160200191611940565b820191906000526020600020905b81548152906001019060200180831161192357829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119a457600080fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b611a38611a31611f5c565b838361253c565b5050565b60005b8251811015611b15576000838281518110611a83577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000838381518110611ac8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16905060005b81811015611aff57611aec83610e9c565b8080611af7906148df565b915050611adb565b5050508080611b0d906148df565b915050611a3f565b505050565b611b2b611b25611f5c565b8361201d565b611b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6190614561565b60405180910390fd5b611b76848484846126a9565b50505050565b6060611b8782612705565b9050919050565b601060009054906101000a900460ff1681565b60008060008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611bdf9190614252565b60206040518083038186803b158015611bf757600080fd5b505afa158015611c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2f91906139ad565b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154611c7c919061472c565b90506000611c88610a53565b82611c939190614782565b905060005b8551811015611d6657601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000878381518110611d1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000205482611d4691906147b3565b84611d51919061472c565b93508080611d5e906148df565b915050611c98565b5082935050505092915050565b6000600d5414611d8257600080fd5b6000600c541415611d9257600080fd5b60ff600c5443611da291906147b3565b10611dac57600080fd5b600b54600c544060001c611dc09190614928565b600d819055506000600d541415611dda576001600d819055505b600c60009055565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ee95750611ee882612857565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611fd783610dea565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061202882611ef0565b612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90614421565b60405180910390fd5b600061207283610dea565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e157508373ffffffffffffffffffffffffffffffffffffffff166120c9846108b0565b73ffffffffffffffffffffffffffffffffffffffff16145b806120f257506120f18185611de2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661211b82610dea565b73ffffffffffffffffffffffffffffffffffffffff1614612171576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612168906143a1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d8906143e1565b60405180910390fd5b6121ec838383612939565b6121f7600082611f64565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224791906147b3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461229e919061472c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461235d838383612949565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c9906144c1565b60405180910390fd5b6123db81611ef0565b1561241b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612412906143c1565b60405180910390fd5b61242760008383612939565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612477919061472c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461253860008383612949565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a290614401565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161269c9190614304565b60405180910390a3505050565b6126b48484846120fb565b6126c08484848461294e565b6126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690614361565b60405180910390fd5b50505050565b606061271082611ef0565b61274f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612746906144e1565b60405180910390fd5b6000600a6000848152602001908152602001600020805461276f906148ad565b80601f016020809104026020016040519081016040528092919081815260200182805461279b906148ad565b80156127e85780601f106127bd576101008083540402835291602001916127e8565b820191906000526020600020905b8154815290600101906020018083116127cb57829003601f168201915b5050505050905060006127f9612ae5565b905060008151141561280f578192505050612852565b60008251111561284457808260405160200161282c929190614219565b60405160208183030381529060405292505050612852565b61284d84612b77565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061292257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612932575061293182612c1e565b5b9050919050565b612944838383612c88565b505050565b505050565b600061296f8473ffffffffffffffffffffffffffffffffffffffff16612d9c565b15612ad8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612998611f5c565b8786866040518563ffffffff1660e01b81526004016129ba949392919061426d565b602060405180830381600087803b1580156129d457600080fd5b505af1925050508015612a0557506040513d601f19601f82011682018060405250810190612a02919061391a565b60015b612a88573d8060008114612a35576040519150601f19603f3d011682016040523d82523d6000602084013e612a3a565b606091505b50600081511415612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790614361565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612add565b600190505b949350505050565b6060600f8054612af4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612b20906148ad565b8015612b6d5780601f10612b4257610100808354040283529160200191612b6d565b820191906000526020600020905b815481529060010190602001808311612b5057829003601f168201915b5050505050905090565b6060612b8282611ef0565b612bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb890614521565b60405180910390fd5b6000612bcb612ae5565b90506000815111612beb5760405180602001604052806000815250612c16565b80612bf584612daf565b604051602001612c06929190614219565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c93838383612f5c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cd657612cd181612f61565b612d15565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d1457612d138382612faa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d5857612d5381613117565b612d97565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612d9657612d95828261325a565b5b5b505050565b600080823b905060008111915050919050565b60606000821415612df7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f57565b600082905060005b60008214612e29578080612e12906148df565b915050600a82612e229190614782565b9150612dff565b60008167ffffffffffffffff811115612e6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e9d5781602001600182028036833780820191505090505b5090505b60008514612f5057600182612eb691906147b3565b9150600a85612ec59190614928565b6030612ed1919061472c565b60f81b818381518110612f0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f499190614782565b9450612ea1565b8093505050505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fb784610fe3565b612fc191906147b3565b90506000600760008481526020019081526020016000205490508181146130a6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061312b91906147b3565b9050600060096000848152602001908152602001600020549050600060088381548110613181577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106131c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061323e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061326583610fe3565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546132e5906148ad565b90600052602060002090601f016020900481019282613307576000855561334e565b82601f1061332057805160ff191683800117855561334e565b8280016001018555821561334e579182015b8281111561334d578251825591602001919060010190613332565b5b50905061335b919061335f565b5090565b5b80821115613378576000816000905550600101613360565b5090565b600061338f61338a846145ed565b6145bc565b905080838252602082019050828560208602820111156133ae57600080fd5b60005b858110156133de57816133c488826134d0565b8452602084019350602083019250506001810190506133b1565b5050509392505050565b60006133fb6133f684614619565b6145bc565b9050808382526020820190508285602086028201111561341a57600080fd5b60005b8581101561344a5781613430888261360b565b84526020840193506020830192505060018101905061341d565b5050509392505050565b600061346761346284614645565b6145bc565b90508281526020810184848401111561347f57600080fd5b61348a84828561486b565b509392505050565b60006134a56134a084614675565b6145bc565b9050828152602081018484840111156134bd57600080fd5b6134c884828561486b565b509392505050565b6000813590506134df81614a26565b92915050565b600082601f8301126134f657600080fd5b813561350684826020860161337c565b91505092915050565b600082601f83011261352057600080fd5b81356135308482602086016133e8565b91505092915050565b60008135905061354881614a3d565b92915050565b60008151905061355d81614a3d565b92915050565b60008135905061357281614a54565b92915050565b60008151905061358781614a54565b92915050565b600082601f83011261359e57600080fd5b81356135ae848260208601613454565b91505092915050565b600082601f8301126135c857600080fd5b81356135d8848260208601613492565b91505092915050565b6000813590506135f081614a6b565b92915050565b60008151905061360581614a6b565b92915050565b60008135905061361a81614a82565b92915050565b60006020828403121561363257600080fd5b6000613640848285016134d0565b91505092915050565b6000806040838503121561365c57600080fd5b600061366a858286016134d0565b925050602061367b858286016134d0565b9150509250929050565b60008060006060848603121561369a57600080fd5b60006136a8868287016134d0565b93505060206136b9868287016134d0565b92505060406136ca868287016135e1565b9150509250925092565b600080600080608085870312156136ea57600080fd5b60006136f8878288016134d0565b9450506020613709878288016134d0565b935050604061371a878288016135e1565b925050606085013567ffffffffffffffff81111561373757600080fd5b6137438782880161358d565b91505092959194509250565b6000806040838503121561376257600080fd5b6000613770858286016134d0565b925050602083013567ffffffffffffffff81111561378d57600080fd5b6137998582860161350f565b9150509250929050565b600080604083850312156137b657600080fd5b60006137c4858286016134d0565b92505060206137d585828601613539565b9150509250929050565b600080604083850312156137f257600080fd5b6000613800858286016134d0565b9250506020613811858286016135e1565b9150509250929050565b6000806040838503121561382e57600080fd5b600083013567ffffffffffffffff81111561384857600080fd5b613854858286016134e5565b925050602083013567ffffffffffffffff81111561387157600080fd5b61387d8582860161350f565b9150509250929050565b60006020828403121561389957600080fd5b600082013567ffffffffffffffff8111156138b357600080fd5b6138bf8482850161350f565b91505092915050565b6000602082840312156138da57600080fd5b60006138e88482850161354e565b91505092915050565b60006020828403121561390357600080fd5b600061391184828501613563565b91505092915050565b60006020828403121561392c57600080fd5b600061393a84828501613578565b91505092915050565b60006020828403121561395557600080fd5b600082013567ffffffffffffffff81111561396f57600080fd5b61397b848285016135b7565b91505092915050565b60006020828403121561399657600080fd5b60006139a4848285016135e1565b91505092915050565b6000602082840312156139bf57600080fd5b60006139cd848285016135f6565b91505092915050565b60006139e283836141fb565b60208301905092915050565b6139f7816147e7565b82525050565b6000613a08826146b5565b613a1281856146e3565b9350613a1d836146a5565b8060005b83811015613a4e578151613a3588826139d6565b9750613a40836146d6565b925050600181019050613a21565b5085935050505092915050565b613a64816147f9565b82525050565b6000613a75826146c0565b613a7f81856146f4565b9350613a8f81856020860161487a565b613a9881614a15565b840191505092915050565b6000613aae826146cb565b613ab88185614710565b9350613ac881856020860161487a565b613ad181614a15565b840191505092915050565b6000613ae7826146cb565b613af18185614721565b9350613b0181856020860161487a565b80840191505092915050565b6000613b1a602b83614710565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613b80603283614710565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613be6600f83614710565b91507f5472616e73666572206661696c656400000000000000000000000000000000006000830152602082019050919050565b6000613c26602583614710565b91507f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008301527f6f776e65720000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c8c601c83614710565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ccc602483614710565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d32601983614710565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613d72602c83614710565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613dd8601283614710565b91507f4d757374206f776e2074686520746f6b656e00000000000000000000000000006000830152602082019050919050565b6000613e18603883614710565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613e7e602a83614710565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ee4602983614710565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f4a602083614710565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613f8a603183614710565b91507f45524337323155524953746f726167653a2055524920717565727920666f722060008301527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006020830152604082019050919050565b6000613ff0602c83614710565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614056602f83614710565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006140bc602183614710565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614122600083614705565b9150600082019050919050565b600061413c603183614710565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006141a2602c83614710565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b61420481614851565b82525050565b61421381614851565b82525050565b60006142258285613adc565b91506142318284613adc565b91508190509392505050565b600061424882614115565b9150819050919050565b600060208201905061426760008301846139ee565b92915050565b600060808201905061428260008301876139ee565b61428f60208301866139ee565b61429c604083018561420a565b81810360608301526142ae8184613a6a565b905095945050505050565b60006040820190506142ce60008301856139ee565b6142db602083018461420a565b9392505050565b600060208201905081810360008301526142fc81846139fd565b905092915050565b60006020820190506143196000830184613a5b565b92915050565b600060208201905081810360008301526143398184613aa3565b905092915050565b6000602082019050818103600083015261435a81613b0d565b9050919050565b6000602082019050818103600083015261437a81613b73565b9050919050565b6000602082019050818103600083015261439a81613bd9565b9050919050565b600060208201905081810360008301526143ba81613c19565b9050919050565b600060208201905081810360008301526143da81613c7f565b9050919050565b600060208201905081810360008301526143fa81613cbf565b9050919050565b6000602082019050818103600083015261441a81613d25565b9050919050565b6000602082019050818103600083015261443a81613d65565b9050919050565b6000602082019050818103600083015261445a81613dcb565b9050919050565b6000602082019050818103600083015261447a81613e0b565b9050919050565b6000602082019050818103600083015261449a81613e71565b9050919050565b600060208201905081810360008301526144ba81613ed7565b9050919050565b600060208201905081810360008301526144da81613f3d565b9050919050565b600060208201905081810360008301526144fa81613f7d565b9050919050565b6000602082019050818103600083015261451a81613fe3565b9050919050565b6000602082019050818103600083015261453a81614049565b9050919050565b6000602082019050818103600083015261455a816140af565b9050919050565b6000602082019050818103600083015261457a8161412f565b9050919050565b6000602082019050818103600083015261459a81614195565b9050919050565b60006020820190506145b6600083018461420a565b92915050565b6000604051905081810181811067ffffffffffffffff821117156145e3576145e26149e6565b5b8060405250919050565b600067ffffffffffffffff821115614608576146076149e6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614634576146336149e6565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146605761465f6149e6565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156146905761468f6149e6565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061473782614851565b915061474283614851565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561477757614776614959565b5b828201905092915050565b600061478d82614851565b915061479883614851565b9250826147a8576147a7614988565b5b828204905092915050565b60006147be82614851565b91506147c983614851565b9250828210156147dc576147db614959565b5b828203905092915050565b60006147f282614831565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b82818337600083830152505050565b60005b8381101561489857808201518184015260208101905061487d565b838111156148a7576000848401525b50505050565b600060028204905060018216806148c557607f821691505b602082108114156148d9576148d86149b7565b5b50919050565b60006148ea82614851565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561491d5761491c614959565b5b600182019050919050565b600061493382614851565b915061493e83614851565b92508261494e5761494d614988565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614a2f816147e7565b8114614a3a57600080fd5b50565b614a46816147f9565b8114614a5157600080fd5b50565b614a5d81614805565b8114614a6857600080fd5b50565b614a7481614851565b8114614a7f57600080fd5b50565b614a8b8161485b565b8114614a9657600080fd5b5056fea264697066735822122035e327f5a36c0c7152d6bb23db498e887433617ae109c4b6816063221699b8a664736f6c63430008000033
Deployed Bytecode
0x6080604052600436106101f25760003560e01c806370a082311161010d578063a05dfeab116100a0578063c87b56dd1161006f578063c87b56dd14610713578063cf30901214610750578063d87d40cf1461077b578063e10e9e5f146107b8578063e985e9c5146107cf576101f9565b8063a05dfeab1461065b578063a22cb46514610698578063b52b8355146106c1578063b88d4fde146106ea576101f9565b80638d8e529e116100dc5780638d8e529e146105b357806395d89b41146105dc57806399f53224146106075780639ead960014610630576101f9565b806370a08231146104f957806375412e04146105365780637f89b5ce1461055f5780638909f30514610576576101f9565b80633a57b2241161018557806355f804b31161015457806355f804b31461043f5780636352211e146104685780636a627842146104a55780636c0360eb146104ce576101f9565b80633a57b2241461038557806342842e0e146103c25780634f6ccce7146103eb57806353df5c7c14610428576101f9565b80630bd3ca7f116101c15780630bd3ca7f146102c957806318160ddd146102f457806323b872dd1461031f5780632f745c5914610348576101f9565b806301ffc9a7146101fb57806306fdde0314610238578063081812fc14610263578063095ea7b3146102a0576101f9565b366101f957005b005b34801561020757600080fd5b50610222600480360381019061021d91906138f1565b61080c565b60405161022f9190614304565b60405180910390f35b34801561024457600080fd5b5061024d61081e565b60405161025a919061431f565b60405180910390f35b34801561026f57600080fd5b5061028a60048036038101906102859190613984565b6108b0565b6040516102979190614252565b60405180910390f35b3480156102ac57600080fd5b506102c760048036038101906102c291906137df565b610935565b005b3480156102d557600080fd5b506102de610a4d565b6040516102eb91906145a1565b60405180910390f35b34801561030057600080fd5b50610309610a53565b60405161031691906145a1565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190613685565b610a60565b005b34801561035457600080fd5b5061036f600480360381019061036a91906137df565b610ac0565b60405161037c91906145a1565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a79190613887565b610b65565b6040516103b991906145a1565b60405180910390f35b3480156103ce57600080fd5b506103e960048036038101906103e49190613685565b610c2e565b005b3480156103f757600080fd5b50610412600480360381019061040d9190613984565b610c4e565b60405161041f91906145a1565b60405180910390f35b34801561043457600080fd5b5061043d610ce5565b005b34801561044b57600080fd5b5061046660048036038101906104619190613943565b610d5c565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613984565b610dea565b60405161049c9190614252565b60405180910390f35b3480156104b157600080fd5b506104cc60048036038101906104c79190613620565b610e9c565b005b3480156104da57600080fd5b506104e3610f55565b6040516104f0919061431f565b60405180910390f35b34801561050557600080fd5b50610520600480360381019061051b9190613620565b610fe3565b60405161052d91906145a1565b60405180910390f35b34801561054257600080fd5b5061055d60048036038101906105589190613887565b61109b565b005b34801561056b57600080fd5b5061057461133d565b005b34801561058257600080fd5b5061059d60048036038101906105989190613620565b6113ac565b6040516105aa91906142e2565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d5919061374f565b6114ac565b005b3480156105e857600080fd5b506105f16118b8565b6040516105fe919061431f565b60405180910390f35b34801561061357600080fd5b5061062e60048036038101906106299190613620565b61194a565b005b34801561063c57600080fd5b506106456119e8565b6040516106529190614252565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d9190613984565b611a0e565b60405161068f91906145a1565b60405180910390f35b3480156106a457600080fd5b506106bf60048036038101906106ba91906137a3565b611a26565b005b3480156106cd57600080fd5b506106e860048036038101906106e3919061381b565b611a3c565b005b3480156106f657600080fd5b50610711600480360381019061070c91906136d4565b611b1a565b005b34801561071f57600080fd5b5061073a60048036038101906107359190613984565b611b7c565b604051610747919061431f565b60405180910390f35b34801561075c57600080fd5b50610765611b8e565b6040516107729190614304565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d919061374f565b611ba1565b6040516107af91906145a1565b60405180910390f35b3480156107c457600080fd5b506107cd611d73565b005b3480156107db57600080fd5b506107f660048036038101906107f19190613649565b611de2565b6040516108039190614304565b60405180910390f35b600061081782611e76565b9050919050565b60606000805461082d906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610859906148ad565b80156108a65780601f1061087b576101008083540402835291602001916108a6565b820191906000526020600020905b81548152906001019060200180831161088957829003601f168201915b5050505050905090565b60006108bb82611ef0565b6108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190614501565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094082610dea565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a890614541565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d0611f5c565b73ffffffffffffffffffffffffffffffffffffffff1614806109ff57506109fe816109f9611f5c565b611de2565b5b610a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3590614461565b60405180910390fd5b610a488383611f64565b505050565b60115481565b6000600880549050905090565b610a71610a6b611f5c565b8261201d565b610ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa790614561565b60405180910390fd5b610abb8383836120fb565b505050565b6000610acb83610fe3565b8210610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0390614341565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600080600047601154610b78919061472c565b90506000610b84610a53565b82610b8f9190614782565b905060005b8551811015610c225760126000878381518110610bda577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000205482610c0291906147b3565b84610c0d919061472c565b93508080610c1a906148df565b915050610b94565b50829350505050919050565b610c4983838360405180602001604052806000815250611b1a565b505050565b6000610c58610a53565b8210610c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9090614581565b60405180910390fd5b60088281548110610cd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d3f57600080fd5b6001601060006101000a81548160ff021916908315150217905550565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db657600080fd5b601060009054906101000a900460ff1615610dd057600080fd5b80600f9080519060200190610de69291906132d9565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a906144a1565b60405180910390fd5b80915050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ef657600080fd5b600b54610f01610a53565b10610f0b57600080fd5b6000600d541415610f1b57600080fd5b610f52816001600b54600d54610f2f610a53565b610f39919061472c565b610f439190614928565b610f4d919061472c565b612362565b50565b600f8054610f62906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8e906148ad565b8015610fdb5780601f10610fb057610100808354040283529160200191610fdb565b820191906000526020600020905b815481529060010190602001808311610fbe57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611054576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104b90614481565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600080476011546110ac919061472c565b905060006110b8610a53565b826110c39190614782565b905060005b8451811015611270573373ffffffffffffffffffffffffffffffffffffffff16611137868381518110611124577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16610dea565b73ffffffffffffffffffffffffffffffffffffffff161461118d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118490614441565b60405180910390fd5b601260008683815181106111ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16815260200190815260200160002054826111f291906147b3565b846111fd919061472c565b9350816012600087848151811061123d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff168152602001908152602001600020819055508080611268906148df565b9150506110c8565b508260116000828254611283919061472c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16846040516112b09061423d565b60006040518083038185875af1925050503d80600081146112ed576040519150601f19603f3d011682016040523d82523d6000602084013e6112f2565b606091505b5050905080611336576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132d90614381565b60405180910390fd5b5050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461139757600080fd5b6001436113a4919061472c565b600c81905550565b606060006113b983610fe3565b905060008167ffffffffffffffff8111156113fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561142b5781602001602082028036833780820191505090505b50905060005b828110156114a15760006114458683610ac0565b905080838381518110611481577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050508080611499906148df565b915050611431565b508092505050919050565b6000808373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016114e89190614252565b60206040518083038186803b15801561150057600080fd5b505afa158015611514573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153891906139ad565b601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154611585919061472c565b90506000611591610a53565b8261159c9190614782565b905060005b84518110156117c9573373ffffffffffffffffffffffffffffffffffffffff166116108683815181106115fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16610dea565b73ffffffffffffffffffffffffffffffffffffffff1614611666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165d90614441565b60405180910390fd5b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160008683815181106116e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff168152602001908152602001600020548261170b91906147b3565b84611716919061472c565b935081601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000878481518110611796577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000208190555080806117c1906148df565b9150506115a1565b5082601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825461181c919061472c565b925050819055508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b815260040161185e9291906142b9565b602060405180830381600087803b15801561187857600080fd5b505af115801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b091906138c8565b505050505050565b6060600180546118c7906148ad565b80601f01602080910402602001604051908101604052809291908181526020018280546118f3906148ad565b80156119405780601f1061191557610100808354040283529160200191611940565b820191906000526020600020905b81548152906001019060200180831161192357829003601f168201915b5050505050905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119a457600080fd5b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b611a38611a31611f5c565b838361253c565b5050565b60005b8251811015611b15576000838281518110611a83577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000838381518110611ac8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff16905060005b81811015611aff57611aec83610e9c565b8080611af7906148df565b915050611adb565b5050508080611b0d906148df565b915050611a3f565b505050565b611b2b611b25611f5c565b8361201d565b611b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6190614561565b60405180910390fd5b611b76848484846126a9565b50505050565b6060611b8782612705565b9050919050565b601060009054906101000a900460ff1681565b60008060008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611bdf9190614252565b60206040518083038186803b158015611bf757600080fd5b505afa158015611c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2f91906139ad565b601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154611c7c919061472c565b90506000611c88610a53565b82611c939190614782565b905060005b8551811015611d6657601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000878381518110611d1e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015163ffffffff1681526020019081526020016000205482611d4691906147b3565b84611d51919061472c565b93508080611d5e906148df565b915050611c98565b5082935050505092915050565b6000600d5414611d8257600080fd5b6000600c541415611d9257600080fd5b60ff600c5443611da291906147b3565b10611dac57600080fd5b600b54600c544060001c611dc09190614928565b600d819055506000600d541415611dda576001600d819055505b600c60009055565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ee95750611ee882612857565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611fd783610dea565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061202882611ef0565b612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90614421565b60405180910390fd5b600061207283610dea565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806120e157508373ffffffffffffffffffffffffffffffffffffffff166120c9846108b0565b73ffffffffffffffffffffffffffffffffffffffff16145b806120f257506120f18185611de2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661211b82610dea565b73ffffffffffffffffffffffffffffffffffffffff1614612171576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612168906143a1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d8906143e1565b60405180910390fd5b6121ec838383612939565b6121f7600082611f64565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461224791906147b3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461229e919061472c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461235d838383612949565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c9906144c1565b60405180910390fd5b6123db81611ef0565b1561241b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612412906143c1565b60405180910390fd5b61242760008383612939565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612477919061472c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461253860008383612949565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a290614401565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161269c9190614304565b60405180910390a3505050565b6126b48484846120fb565b6126c08484848461294e565b6126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690614361565b60405180910390fd5b50505050565b606061271082611ef0565b61274f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612746906144e1565b60405180910390fd5b6000600a6000848152602001908152602001600020805461276f906148ad565b80601f016020809104026020016040519081016040528092919081815260200182805461279b906148ad565b80156127e85780601f106127bd576101008083540402835291602001916127e8565b820191906000526020600020905b8154815290600101906020018083116127cb57829003601f168201915b5050505050905060006127f9612ae5565b905060008151141561280f578192505050612852565b60008251111561284457808260405160200161282c929190614219565b60405160208183030381529060405292505050612852565b61284d84612b77565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061292257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612932575061293182612c1e565b5b9050919050565b612944838383612c88565b505050565b505050565b600061296f8473ffffffffffffffffffffffffffffffffffffffff16612d9c565b15612ad8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612998611f5c565b8786866040518563ffffffff1660e01b81526004016129ba949392919061426d565b602060405180830381600087803b1580156129d457600080fd5b505af1925050508015612a0557506040513d601f19601f82011682018060405250810190612a02919061391a565b60015b612a88573d8060008114612a35576040519150601f19603f3d011682016040523d82523d6000602084013e612a3a565b606091505b50600081511415612a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7790614361565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612add565b600190505b949350505050565b6060600f8054612af4906148ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612b20906148ad565b8015612b6d5780601f10612b4257610100808354040283529160200191612b6d565b820191906000526020600020905b815481529060010190602001808311612b5057829003601f168201915b5050505050905090565b6060612b8282611ef0565b612bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb890614521565b60405180910390fd5b6000612bcb612ae5565b90506000815111612beb5760405180602001604052806000815250612c16565b80612bf584612daf565b604051602001612c06929190614219565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612c93838383612f5c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cd657612cd181612f61565b612d15565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d1457612d138382612faa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d5857612d5381613117565b612d97565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612d9657612d95828261325a565b5b5b505050565b600080823b905060008111915050919050565b60606000821415612df7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f57565b600082905060005b60008214612e29578080612e12906148df565b915050600a82612e229190614782565b9150612dff565b60008167ffffffffffffffff811115612e6b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e9d5781602001600182028036833780820191505090505b5090505b60008514612f5057600182612eb691906147b3565b9150600a85612ec59190614928565b6030612ed1919061472c565b60f81b818381518110612f0d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f499190614782565b9450612ea1565b8093505050505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fb784610fe3565b612fc191906147b3565b90506000600760008481526020019081526020016000205490508181146130a6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061312b91906147b3565b9050600060096000848152602001908152602001600020549050600060088381548110613181577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106131c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061323e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061326583610fe3565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546132e5906148ad565b90600052602060002090601f016020900481019282613307576000855561334e565b82601f1061332057805160ff191683800117855561334e565b8280016001018555821561334e579182015b8281111561334d578251825591602001919060010190613332565b5b50905061335b919061335f565b5090565b5b80821115613378576000816000905550600101613360565b5090565b600061338f61338a846145ed565b6145bc565b905080838252602082019050828560208602820111156133ae57600080fd5b60005b858110156133de57816133c488826134d0565b8452602084019350602083019250506001810190506133b1565b5050509392505050565b60006133fb6133f684614619565b6145bc565b9050808382526020820190508285602086028201111561341a57600080fd5b60005b8581101561344a5781613430888261360b565b84526020840193506020830192505060018101905061341d565b5050509392505050565b600061346761346284614645565b6145bc565b90508281526020810184848401111561347f57600080fd5b61348a84828561486b565b509392505050565b60006134a56134a084614675565b6145bc565b9050828152602081018484840111156134bd57600080fd5b6134c884828561486b565b509392505050565b6000813590506134df81614a26565b92915050565b600082601f8301126134f657600080fd5b813561350684826020860161337c565b91505092915050565b600082601f83011261352057600080fd5b81356135308482602086016133e8565b91505092915050565b60008135905061354881614a3d565b92915050565b60008151905061355d81614a3d565b92915050565b60008135905061357281614a54565b92915050565b60008151905061358781614a54565b92915050565b600082601f83011261359e57600080fd5b81356135ae848260208601613454565b91505092915050565b600082601f8301126135c857600080fd5b81356135d8848260208601613492565b91505092915050565b6000813590506135f081614a6b565b92915050565b60008151905061360581614a6b565b92915050565b60008135905061361a81614a82565b92915050565b60006020828403121561363257600080fd5b6000613640848285016134d0565b91505092915050565b6000806040838503121561365c57600080fd5b600061366a858286016134d0565b925050602061367b858286016134d0565b9150509250929050565b60008060006060848603121561369a57600080fd5b60006136a8868287016134d0565b93505060206136b9868287016134d0565b92505060406136ca868287016135e1565b9150509250925092565b600080600080608085870312156136ea57600080fd5b60006136f8878288016134d0565b9450506020613709878288016134d0565b935050604061371a878288016135e1565b925050606085013567ffffffffffffffff81111561373757600080fd5b6137438782880161358d565b91505092959194509250565b6000806040838503121561376257600080fd5b6000613770858286016134d0565b925050602083013567ffffffffffffffff81111561378d57600080fd5b6137998582860161350f565b9150509250929050565b600080604083850312156137b657600080fd5b60006137c4858286016134d0565b92505060206137d585828601613539565b9150509250929050565b600080604083850312156137f257600080fd5b6000613800858286016134d0565b9250506020613811858286016135e1565b9150509250929050565b6000806040838503121561382e57600080fd5b600083013567ffffffffffffffff81111561384857600080fd5b613854858286016134e5565b925050602083013567ffffffffffffffff81111561387157600080fd5b61387d8582860161350f565b9150509250929050565b60006020828403121561389957600080fd5b600082013567ffffffffffffffff8111156138b357600080fd5b6138bf8482850161350f565b91505092915050565b6000602082840312156138da57600080fd5b60006138e88482850161354e565b91505092915050565b60006020828403121561390357600080fd5b600061391184828501613563565b91505092915050565b60006020828403121561392c57600080fd5b600061393a84828501613578565b91505092915050565b60006020828403121561395557600080fd5b600082013567ffffffffffffffff81111561396f57600080fd5b61397b848285016135b7565b91505092915050565b60006020828403121561399657600080fd5b60006139a4848285016135e1565b91505092915050565b6000602082840312156139bf57600080fd5b60006139cd848285016135f6565b91505092915050565b60006139e283836141fb565b60208301905092915050565b6139f7816147e7565b82525050565b6000613a08826146b5565b613a1281856146e3565b9350613a1d836146a5565b8060005b83811015613a4e578151613a3588826139d6565b9750613a40836146d6565b925050600181019050613a21565b5085935050505092915050565b613a64816147f9565b82525050565b6000613a75826146c0565b613a7f81856146f4565b9350613a8f81856020860161487a565b613a9881614a15565b840191505092915050565b6000613aae826146cb565b613ab88185614710565b9350613ac881856020860161487a565b613ad181614a15565b840191505092915050565b6000613ae7826146cb565b613af18185614721565b9350613b0181856020860161487a565b80840191505092915050565b6000613b1a602b83614710565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000613b80603283614710565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613be6600f83614710565b91507f5472616e73666572206661696c656400000000000000000000000000000000006000830152602082019050919050565b6000613c26602583614710565b91507f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008301527f6f776e65720000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613c8c601c83614710565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613ccc602483614710565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d32601983614710565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613d72602c83614710565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613dd8601283614710565b91507f4d757374206f776e2074686520746f6b656e00000000000000000000000000006000830152602082019050919050565b6000613e18603883614710565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613e7e602a83614710565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ee4602983614710565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f4a602083614710565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613f8a603183614710565b91507f45524337323155524953746f726167653a2055524920717565727920666f722060008301527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006020830152604082019050919050565b6000613ff0602c83614710565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614056602f83614710565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006140bc602183614710565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614122600083614705565b9150600082019050919050565b600061413c603183614710565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006141a2602c83614710565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b61420481614851565b82525050565b61421381614851565b82525050565b60006142258285613adc565b91506142318284613adc565b91508190509392505050565b600061424882614115565b9150819050919050565b600060208201905061426760008301846139ee565b92915050565b600060808201905061428260008301876139ee565b61428f60208301866139ee565b61429c604083018561420a565b81810360608301526142ae8184613a6a565b905095945050505050565b60006040820190506142ce60008301856139ee565b6142db602083018461420a565b9392505050565b600060208201905081810360008301526142fc81846139fd565b905092915050565b60006020820190506143196000830184613a5b565b92915050565b600060208201905081810360008301526143398184613aa3565b905092915050565b6000602082019050818103600083015261435a81613b0d565b9050919050565b6000602082019050818103600083015261437a81613b73565b9050919050565b6000602082019050818103600083015261439a81613bd9565b9050919050565b600060208201905081810360008301526143ba81613c19565b9050919050565b600060208201905081810360008301526143da81613c7f565b9050919050565b600060208201905081810360008301526143fa81613cbf565b9050919050565b6000602082019050818103600083015261441a81613d25565b9050919050565b6000602082019050818103600083015261443a81613d65565b9050919050565b6000602082019050818103600083015261445a81613dcb565b9050919050565b6000602082019050818103600083015261447a81613e0b565b9050919050565b6000602082019050818103600083015261449a81613e71565b9050919050565b600060208201905081810360008301526144ba81613ed7565b9050919050565b600060208201905081810360008301526144da81613f3d565b9050919050565b600060208201905081810360008301526144fa81613f7d565b9050919050565b6000602082019050818103600083015261451a81613fe3565b9050919050565b6000602082019050818103600083015261453a81614049565b9050919050565b6000602082019050818103600083015261455a816140af565b9050919050565b6000602082019050818103600083015261457a8161412f565b9050919050565b6000602082019050818103600083015261459a81614195565b9050919050565b60006020820190506145b6600083018461420a565b92915050565b6000604051905081810181811067ffffffffffffffff821117156145e3576145e26149e6565b5b8060405250919050565b600067ffffffffffffffff821115614608576146076149e6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614634576146336149e6565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146605761465f6149e6565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156146905761468f6149e6565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061473782614851565b915061474283614851565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561477757614776614959565b5b828201905092915050565b600061478d82614851565b915061479883614851565b9250826147a8576147a7614988565b5b828204905092915050565b60006147be82614851565b91506147c983614851565b9250828210156147dc576147db614959565b5b828203905092915050565b60006147f282614831565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b82818337600083830152505050565b60005b8381101561489857808201518184015260208101905061487d565b838111156148a7576000848401525b50505050565b600060028204905060018216806148c557607f821691505b602082108114156148d9576148d86149b7565b5b50919050565b60006148ea82614851565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561491d5761491c614959565b5b600182019050919050565b600061493382614851565b915061493e83614851565b92508261494e5761494d614988565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b614a2f816147e7565b8114614a3a57600080fd5b50565b614a46816147f9565b8114614a5157600080fd5b50565b614a5d81614805565b8114614a6857600080fd5b50565b614a7481614851565b8114614a7f57600080fd5b50565b614a8b8161485b565b8114614a9657600080fd5b5056fea264697066735822122035e327f5a36c0c7152d6bb23db498e887433617ae109c4b6816063221699b8a664736f6c63430008000033
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.