ERC-721
Overview
Max Total Supply
1,196 N3DV
Holders
253
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 N3DVLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
N3DV
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // author Name: Alex Yap // author-email: <[email protected]> // author-website: https://alexyap.dev pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./NounToken.sol"; contract N3DV is ERC721Enumerable, ReentrancyGuard, Ownable { string public NOUNS3D_PROVENANCE = ""; string public baseTokenURI; uint256 public maxNouns3dPerMint; uint256 public maxNouns3dPerClaim; uint256 public constant MAX_NOUNS3D = 100000; uint256 public constant START_NOUNS3D = 7400; uint256 public nouns3dPrice; uint256 public nameChangeTokenPrice = 300 ether; uint256 public claimTokenPrice = 900 ether; bool public saleIsActive = false; bool public claimIsActive = false; mapping(uint256 => string) public nameN3D; NounToken public nounToken; event NameChanged(uint256 tokenId, string name); constructor(string memory baseURI, address _noun) ERC721("Nouns3D Verbs", "N3DV") { setBaseURI(baseURI); nounToken = NounToken(_noun); } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function setNounToken(address _noun) external onlyOwner { nounToken = NounToken(_noun); } function setBurnRate(uint256 _namingPrice, uint256 _claimingPrice) external onlyOwner { nameChangeTokenPrice = _namingPrice; claimTokenPrice = _claimingPrice; } function changeName(uint256 _tokenId, string memory _newName) public { require(ownerOf(_tokenId) == msg.sender); require(validateName(_newName) == true, "Invalid name"); nounToken.burn(msg.sender, nameChangeTokenPrice); nameN3D[_tokenId] = _newName; emit NameChanged(_tokenId, _newName); } function validateName(string memory str) internal pure returns (bool) { bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; if(b[0] == 0x20) return false; // Leading space if(b[b.length - 1] == 0x20) return false; // Trailing space bytes1 lastChar = b[0]; for (uint256 i; i < b.length; i++) { bytes1 char = b[i]; if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces if ( !(char >= 0x30 && char <= 0x39) && //9-0 !(char >= 0x41 && char <= 0x5A) && //A-Z !(char >= 0x61 && char <= 0x7A) && //a-z !(char == 0x20) //space ) { return false; } lastChar = char; } return true; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0); payable(msg.sender).transfer(balance); } function reserveNouns3d(uint256 _maxMint) public onlyOwner { uint256 supply = totalSupply(); uint256 i; for (i = 0; i < _maxMint; i++) { if (totalSupply() < MAX_NOUNS3D) { uint256 mintIndex = supply + i; _safeMint(msg.sender, mintIndex); } } } function setProvenanceHash(string memory provenanceHash) public onlyOwner { NOUNS3D_PROVENANCE = provenanceHash; } function setMaxClaimPerTransaction(uint256 _maxNFTPerTransaction) internal onlyOwner { maxNouns3dPerClaim = _maxNFTPerTransaction; } function flipClaimState(uint256 price, uint256 _maxClaim) public onlyOwner { claimTokenPrice = price; setMaxClaimPerTransaction(_maxClaim); claimIsActive = !claimIsActive; } function claim(uint256 numberOfTokens) external { require(claimIsActive, "Sale must be active to mint"); require(numberOfTokens > 0, "Invalid number of tokens"); require(numberOfTokens <= maxNouns3dPerClaim, "Cannot purchase this many tokens in a transaction"); require(totalSupply() + numberOfTokens <= MAX_NOUNS3D, "Purchase would exceed max supply"); nounToken.burn(msg.sender, claimTokenPrice * numberOfTokens); for(uint256 i = 0; i < numberOfTokens; i++) { uint256 mintIndex = START_NOUNS3D + totalSupply(); if (totalSupply() < MAX_NOUNS3D) { _safeMint(msg.sender, mintIndex); } } } function setMaxMintPerTransaction(uint256 _maxNFTPerTransaction) internal onlyOwner { maxNouns3dPerMint = _maxNFTPerTransaction; } function flipSaleState(uint256 price, uint256 _maxMint) public onlyOwner { nouns3dPrice = price; setMaxMintPerTransaction(_maxMint); saleIsActive = !saleIsActive; } function mint(uint256 numberOfTokens) public payable nonReentrant{ require(saleIsActive, "Sale must be active to mint"); require(numberOfTokens > 0, "Invalid number of tokens"); require(numberOfTokens <= maxNouns3dPerMint, "Cannot purchase this many tokens in a transaction"); require(totalSupply() + numberOfTokens <= MAX_NOUNS3D, "Purchase would exceed max supply"); require(nouns3dPrice * numberOfTokens <= msg.value, "Ether value sent is not correct"); for(uint256 i = 0; i < numberOfTokens; i++) { uint256 mintIndex = START_NOUNS3D + totalSupply(); if (totalSupply() < MAX_NOUNS3D) { _safeMint(msg.sender, mintIndex); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // author Name: Alex Yap // author-email: <[email protected]> // author-website: https://alexyap.dev pragma solidity ^0.8.0; interface INouns3d { function balanceN3D(address _user) external view returns(uint256); } // Part: OpenZeppelin/[email protected]/Address import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract NounToken is ERC20, ReentrancyGuard, Ownable { //Start 1642204800 - Sat, January 15, 2022 08:00:00 AM //End 1799884800 - Thu, January 14, 2027 08:00:00 AM, 5 years, 157680000 uint256 constant public END = 1799884800; uint256 constant public BASE_RATE = 10 ether; uint256 constant public MINT_BONUS = 300 ether; // max supply uint256 public constant MAX_YIELD_SUPPLY = 135050000 ether; uint256 public constant MAX_COMMUNITY_FUND_SUPPLY = 100000000 ether; uint256 public constant MAX_PUBLIC_SALES_SUPPLY = 50000000 ether; uint256 public constant MAX_TEAM_RESERVE_SUPPLY = 30000000 ether; // minted amount uint256 public totalYieldSupply; uint256 public totalCommunityFundSupply; uint256 public totalPublicSalesSupply; uint256 public totalTeamReserveSupply; mapping(address => bool) councillors; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; INouns3d public nouns3dContract; event CouncillorAdded(address councillor); event CouncillorRemoved(address councillor); event RewardPaid(address indexed user, uint256 reward); constructor(address _nouns3d) ERC20("NOUN", "NOUN") { nouns3dContract = INouns3d(_nouns3d); addCouncillor(_nouns3d); //update community fund supply to cover the mint bonus totalCommunityFundSupply += 2220000000000000000000000; } function setInterface(address _nouns3d) external onlyOwner { nouns3dContract = INouns3d(_nouns3d); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function isCouncillor(address _councillor) public view returns(bool) { return councillors[_councillor]; } function addCouncillor(address _councillor) public onlyOwner { require(_councillor != address(0), "Cannot add null address"); councillors[_councillor] = true; emit CouncillorAdded(_councillor); } function removeCouncillor(address _councillor) public onlyOwner { require(isCouncillor(_councillor), "Not a councillor"); delete councillors[_councillor]; emit CouncillorRemoved(_councillor); } // updated_amount = (balanceN3D(user) * base_rate * delta / 86400) + amount * initial rate function updateRewardOnMint(address _user, uint256 _amount) external { require(councillors[msg.sender], "Unauthorized"); uint256 time = min(block.timestamp, END); uint256 timerUser = lastUpdate[_user]; uint256 timerRemainder = 0; //update reward count is this is not their first mint if (timerUser > 0) { rewards[_user] = rewards[_user] + (nouns3dContract.balanceN3D(_user) * BASE_RATE * ((time - timerUser) / 86400)); timerRemainder = (time - timerUser) % 86400; } //award 300 NOUN per nft rewards[_user] += MINT_BONUS * _amount; //set new last updated lastUpdate[_user] = time - timerRemainder; } // called on transfers function updateReward(address _from, address _to, uint256 _tokenId) external { require(councillors[msg.sender], "Unauthorized"); if (_tokenId < 7400) { uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; uint256 timerRemainderFrom = 0; if (timerFrom > 0) { rewards[_from] += nouns3dContract.balanceN3D(_from) * BASE_RATE * ((time - timerFrom) / 86400); timerRemainderFrom = (time - timerFrom) % 86400; } if (timerFrom != END) { lastUpdate[_from] = time - timerRemainderFrom; } if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; uint256 timerRemainderTo = 0; if (timerTo > 0) { rewards[_to] += nouns3dContract.balanceN3D(_to) * BASE_RATE * ((time - timerTo) / 86400); timerRemainderTo = (time - timerTo) % 86400; } if (timerTo != END) { lastUpdate[_to] = time - timerRemainderTo; } } } } function getReward(address _to) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); uint256 reward = rewards[_to]; if (reward > 0) { require( totalYieldSupply + reward <= MAX_YIELD_SUPPLY, "Maximum yield supply reached" ); rewards[_to] = 0; totalYieldSupply += reward; _mint(_to, reward); emit RewardPaid(_to, reward); } } function communityFundMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalCommunityFundSupply + amount <= MAX_COMMUNITY_FUND_SUPPLY, "Maximum community fund supply reached" ); totalCommunityFundSupply += amount; _mint(to, amount); } function publicSalesMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalPublicSalesSupply + amount <= MAX_PUBLIC_SALES_SUPPLY, "Maximum public sales supply reached" ); totalPublicSalesSupply += amount; _mint(to, amount); } function teamReserveMint(address to, uint256 amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); require( totalTeamReserveSupply + amount <= MAX_TEAM_RESERVE_SUPPLY, "Maximum team reserve supply reached" ); totalTeamReserveSupply += amount; _mint(to, amount); } function burn(address _from, uint256 _amount) external nonReentrant{ require(councillors[msg.sender], "Unauthorized"); _burn(_from, _amount); } function getTotalClaimable(address _user) external view returns(uint256) { uint256 time = min(block.timestamp, END); uint256 pending = nouns3dContract.balanceN3D(_user) * BASE_RATE * ((time - lastUpdate[_user]) / 86400); return rewards[_user] + pending; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/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.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_noun","type":"address"}],"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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NOUNS3D","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NOUNS3D_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_NOUNS3D","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"_maxClaim","type":"uint256"}],"name":"flipClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"flipSaleState","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNouns3dPerClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNouns3dPerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangeTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nameN3D","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nounToken","outputs":[{"internalType":"contract NounToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nouns3dPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"reserveNouns3d","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_namingPrice","type":"uint256"},{"internalType":"uint256","name":"_claimingPrice","type":"uint256"}],"name":"setBurnRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_noun","type":"address"}],"name":"setNounToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600c90805190602001906200002b92919062000374565b50681043561a88293000006011556830ca024f987b9000006012556000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055503480156200008957600080fd5b50604051620058e6380380620058e68339818101604052810190620000af919062000626565b6040518060400160405280600d81526020017f4e6f756e733344205665726273000000000000000000000000000000000000008152506040518060400160405280600481526020017f4e3344560000000000000000000000000000000000000000000000000000000081525081600090805190602001906200013392919062000374565b5080600190805190602001906200014c92919062000374565b5050506001600a81905550620001776200016b620001d160201b60201c565b620001d960201b60201c565b62000188826200029f60201b60201c565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000774565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002af620001d160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002d56200034a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200032e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200032590620006ed565b60405180910390fd5b80600d90805190602001906200034692919062000374565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b82805462000382906200073e565b90600052602060002090601f016020900481019282620003a65760008555620003f2565b82601f10620003c157805160ff1916838001178555620003f2565b82800160010185558215620003f2579182015b82811115620003f1578251825591602001919060010190620003d4565b5b50905062000401919062000405565b5090565b5b808211156200042057600081600090555060010162000406565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200048d8262000442565b810181811067ffffffffffffffff82111715620004af57620004ae62000453565b5b80604052505050565b6000620004c462000424565b9050620004d2828262000482565b919050565b600067ffffffffffffffff821115620004f557620004f462000453565b5b620005008262000442565b9050602081019050919050565b60005b838110156200052d57808201518184015260208101905062000510565b838111156200053d576000848401525b50505050565b60006200055a6200055484620004d7565b620004b8565b9050828152602081018484840111156200057957620005786200043d565b5b620005868482856200050d565b509392505050565b600082601f830112620005a657620005a562000438565b5b8151620005b884826020860162000543565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005ee82620005c1565b9050919050565b6200060081620005e1565b81146200060c57600080fd5b50565b6000815190506200062081620005f5565b92915050565b6000806040838503121562000640576200063f6200042e565b5b600083015167ffffffffffffffff81111562000661576200066062000433565b5b6200066f858286016200058e565b925050602062000682858286016200060f565b9150509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620006d56020836200068c565b9150620006e2826200069d565b602082019050919050565b600060208201905081810360008301526200070881620006c6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200075757607f821691505b602082108114156200076e576200076d6200070f565b5b50919050565b61516280620007846000396000f3fe60806040526004361061025c5760003560e01c80636b14683b11610144578063c78e090e116100b6578063e0e84b061161007a578063e0e84b06146108d9578063e1b9778914610904578063e36197641461092d578063e985e9c514610956578063eb8d244414610993578063f2fde38b146109be5761025c565b8063c78e090e146107de578063c87b56dd14610809578063d20478bc14610846578063d2ab48f614610883578063d547cfb7146108ae5761025c565b8063a0712d6811610108578063a0712d68146106f3578063a0b187241461070f578063a22cb46514610738578063a25cd48714610761578063b88d4fde1461078c578063c39cbef1146107b55761025c565b80636b14683b1461061e57806370a0823114610649578063715018a6146106865780638da5cb5b1461069d57806395d89b41146106c85761025c565b8063379607f5116101dd5780634f6ccce7116101a15780634f6ccce7146104fe5780635303f68c1461053b57806355f804b314610566578063573faa2d1461058f5780636352211e146105b85780636a42a2e0146105f55761025c565b8063379607f51461043f5780633ccfd60b1461046857806340675ade1461047f57806342842e0e146104aa5780634cbcc16f146104d35761025c565b806318160ddd1161022457806318160ddd1461035857806323b872dd146103835780632839b8ff146103ac5780632e85f5b2146103d75780632f745c59146104025761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b314610306578063109695231461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906138c7565b6109e7565b604051610295919061390f565b60405180910390f35b3480156102aa57600080fd5b506102b3610a61565b6040516102c091906139c3565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613a1b565b610af3565b6040516102fd9190613a89565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613ad0565b610b78565b005b34801561033b57600080fd5b5061035660048036038101906103519190613c45565b610c90565b005b34801561036457600080fd5b5061036d610d26565b60405161037a9190613c9d565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613cb8565b610d33565b005b3480156103b857600080fd5b506103c1610d93565b6040516103ce9190613c9d565b60405180910390f35b3480156103e357600080fd5b506103ec610d9a565b6040516103f99190613d6a565b60405180910390f35b34801561040e57600080fd5b5061042960048036038101906104249190613ad0565b610dc0565b6040516104369190613c9d565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613a1b565b610e65565b005b34801561047457600080fd5b5061047d611089565b005b34801561048b57600080fd5b50610494611161565b6040516104a19190613c9d565b60405180910390f35b3480156104b657600080fd5b506104d160048036038101906104cc9190613cb8565b611167565b005b3480156104df57600080fd5b506104e8611187565b6040516104f59190613c9d565b60405180910390f35b34801561050a57600080fd5b5061052560048036038101906105209190613a1b565b61118d565b6040516105329190613c9d565b60405180910390f35b34801561054757600080fd5b506105506111fe565b60405161055d919061390f565b60405180910390f35b34801561057257600080fd5b5061058d60048036038101906105889190613c45565b611211565b005b34801561059b57600080fd5b506105b660048036038101906105b19190613a1b565b6112a7565b005b3480156105c457600080fd5b506105df60048036038101906105da9190613a1b565b611380565b6040516105ec9190613a89565b60405180910390f35b34801561060157600080fd5b5061061c60048036038101906106179190613d85565b611432565b005b34801561062a57600080fd5b506106336114c0565b6040516106409190613c9d565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b9190613dc5565b6114c6565b60405161067d9190613c9d565b60405180910390f35b34801561069257600080fd5b5061069b61157e565b005b3480156106a957600080fd5b506106b2611606565b6040516106bf9190613a89565b60405180910390f35b3480156106d457600080fd5b506106dd611630565b6040516106ea91906139c3565b60405180910390f35b61070d60048036038101906107089190613a1b565b6116c2565b005b34801561071b57600080fd5b5061073660048036038101906107319190613d85565b6118f0565b005b34801561074457600080fd5b5061075f600480360381019061075a9190613e1e565b6119aa565b005b34801561076d57600080fd5b506107766119c0565b60405161078391906139c3565b60405180910390f35b34801561079857600080fd5b506107b360048036038101906107ae9190613eff565b611a4e565b005b3480156107c157600080fd5b506107dc60048036038101906107d79190613f82565b611ab0565b005b3480156107ea57600080fd5b506107f3611c35565b6040516108009190613c9d565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190613a1b565b611c3b565b60405161083d91906139c3565b60405180910390f35b34801561085257600080fd5b5061086d60048036038101906108689190613a1b565b611ce2565b60405161087a91906139c3565b60405180910390f35b34801561088f57600080fd5b50610898611d82565b6040516108a59190613c9d565b60405180910390f35b3480156108ba57600080fd5b506108c3611d88565b6040516108d091906139c3565b60405180910390f35b3480156108e557600080fd5b506108ee611e16565b6040516108fb9190613c9d565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190613dc5565b611e1c565b005b34801561093957600080fd5b50610954600480360381019061094f9190613d85565b611edc565b005b34801561096257600080fd5b5061097d60048036038101906109789190613fde565b611f96565b60405161098a919061390f565b60405180910390f35b34801561099f57600080fd5b506109a861202a565b6040516109b5919061390f565b60405180910390f35b3480156109ca57600080fd5b506109e560048036038101906109e09190613dc5565b61203d565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a5a5750610a5982612135565b5b9050919050565b606060008054610a709061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9c9061404d565b8015610ae95780601f10610abe57610100808354040283529160200191610ae9565b820191906000526020600020905b815481529060010190602001808311610acc57829003601f168201915b5050505050905090565b6000610afe82612217565b610b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b34906140f1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b8382611380565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610beb90614183565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c13612283565b73ffffffffffffffffffffffffffffffffffffffff161480610c425750610c4181610c3c612283565b611f96565b5b610c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7890614215565b60405180910390fd5b610c8b838361228b565b505050565b610c98612283565b73ffffffffffffffffffffffffffffffffffffffff16610cb6611606565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0390614281565b60405180910390fd5b80600c9080519060200190610d229291906137b8565b5050565b6000600880549050905090565b610d44610d3e612283565b82612344565b610d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7a90614313565b60405180910390fd5b610d8e838383612422565b505050565b620186a081565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610dcb836114c6565b8210610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e03906143a5565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601360019054906101000a900460ff16610eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eab90614411565b60405180910390fd5b60008111610ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eee9061447d565b60405180910390fd5b600f54811115610f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f339061450f565b60405180910390fd5b620186a081610f49610d26565b610f53919061455e565b1115610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90614600565b60405180910390fd5b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac3383601254610fe19190614620565b6040518363ffffffff1660e01b8152600401610ffe92919061467a565b600060405180830381600087803b15801561101857600080fd5b505af115801561102c573d6000803e3d6000fd5b5050505060005b81811015611085576000611045610d26565b611ce8611052919061455e565b9050620186a0611060610d26565b101561107157611070338261267e565b5b50808061107d906146a3565b915050611033565b5050565b611091612283565b73ffffffffffffffffffffffffffffffffffffffff166110af611606565b73ffffffffffffffffffffffffffffffffffffffff1614611105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fc90614281565b60405180910390fd5b60004790506000811161111757600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561115d573d6000803e3d6000fd5b5050565b60105481565b61118283838360405180602001604052806000815250611a4e565b505050565b600f5481565b6000611197610d26565b82106111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf9061475e565b60405180910390fd5b600882815481106111ec576111eb61477e565b5b90600052602060002001549050919050565b601360019054906101000a900460ff1681565b611219612283565b73ffffffffffffffffffffffffffffffffffffffff16611237611606565b73ffffffffffffffffffffffffffffffffffffffff161461128d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128490614281565b60405180910390fd5b80600d90805190602001906112a39291906137b8565b5050565b6112af612283565b73ffffffffffffffffffffffffffffffffffffffff166112cd611606565b73ffffffffffffffffffffffffffffffffffffffff1614611323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a90614281565b60405180910390fd5b600061132d610d26565b905060005b8281101561137b57620186a0611346610d26565b1015611368576000818361135a919061455e565b9050611366338261267e565b505b8080611373906146a3565b915050611332565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611429576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114209061481f565b60405180910390fd5b80915050919050565b61143a612283565b73ffffffffffffffffffffffffffffffffffffffff16611458611606565b73ffffffffffffffffffffffffffffffffffffffff16146114ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a590614281565b60405180910390fd5b81601181905550806012819055505050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e906148b1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611586612283565b73ffffffffffffffffffffffffffffffffffffffff166115a4611606565b73ffffffffffffffffffffffffffffffffffffffff16146115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190614281565b60405180910390fd5b611604600061269c565b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461163f9061404d565b80601f016020809104026020016040519081016040528092919081815260200182805461166b9061404d565b80156116b85780601f1061168d576101008083540402835291602001916116b8565b820191906000526020600020905b81548152906001019060200180831161169b57829003601f168201915b5050505050905090565b6002600a541415611708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ff9061491d565b60405180910390fd5b6002600a81905550601360009054906101000a900460ff1661175f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175690614411565b60405180910390fd5b600081116117a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117999061447d565b60405180910390fd5b600e548111156117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de9061450f565b60405180910390fd5b620186a0816117f4610d26565b6117fe919061455e565b111561183f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183690614600565b60405180910390fd5b348160105461184e9190614620565b111561188f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188690614989565b60405180910390fd5b60005b818110156118e45760006118a4610d26565b611ce86118b1919061455e565b9050620186a06118bf610d26565b10156118d0576118cf338261267e565b5b5080806118dc906146a3565b915050611892565b506001600a8190555050565b6118f8612283565b73ffffffffffffffffffffffffffffffffffffffff16611916611606565b73ffffffffffffffffffffffffffffffffffffffff161461196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196390614281565b60405180910390fd5b8160128190555061197c81612762565b601360019054906101000a900460ff1615601360016101000a81548160ff0219169083151502179055505050565b6119bc6119b5612283565b83836127e8565b5050565b600c80546119cd9061404d565b80601f01602080910402602001604051908101604052809291908181526020018280546119f99061404d565b8015611a465780601f10611a1b57610100808354040283529160200191611a46565b820191906000526020600020905b815481529060010190602001808311611a2957829003601f168201915b505050505081565b611a5f611a59612283565b83612344565b611a9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9590614313565b60405180910390fd5b611aaa84848484612955565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16611ad083611380565b73ffffffffffffffffffffffffffffffffffffffff1614611af057600080fd5b60011515611afd826129b1565b151514611b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b36906149f5565b60405180910390fd5b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac336011546040518363ffffffff1660e01b8152600401611b9e92919061467a565b600060405180830381600087803b158015611bb857600080fd5b505af1158015611bcc573d6000803e3d6000fd5b5050505080601460008481526020019081526020016000209080519060200190611bf79291906137b8565b507f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b8282604051611c29929190614a15565b60405180910390a15050565b611ce881565b6060611c4682612217565b611c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7c90614ab7565b60405180910390fd5b6000611c8f612ce3565b90506000815111611caf5760405180602001604052806000815250611cda565b80611cb984612d75565b604051602001611cca929190614b13565b6040516020818303038152906040525b915050919050565b60146020528060005260406000206000915090508054611d019061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2d9061404d565b8015611d7a5780601f10611d4f57610100808354040283529160200191611d7a565b820191906000526020600020905b815481529060010190602001808311611d5d57829003601f168201915b505050505081565b60115481565b600d8054611d959061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc19061404d565b8015611e0e5780601f10611de357610100808354040283529160200191611e0e565b820191906000526020600020905b815481529060010190602001808311611df157829003601f168201915b505050505081565b600e5481565b611e24612283565b73ffffffffffffffffffffffffffffffffffffffff16611e42611606565b73ffffffffffffffffffffffffffffffffffffffff1614611e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8f90614281565b60405180910390fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ee4612283565b73ffffffffffffffffffffffffffffffffffffffff16611f02611606565b73ffffffffffffffffffffffffffffffffffffffff1614611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f90614281565b60405180910390fd5b81601081905550611f6881612ed6565b601360009054906101000a900460ff1615601360006101000a81548160ff0219169083151502179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601360009054906101000a900460ff1681565b612045612283565b73ffffffffffffffffffffffffffffffffffffffff16612063611606565b73ffffffffffffffffffffffffffffffffffffffff16146120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b090614281565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212090614ba9565b60405180910390fd5b6121328161269c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061220057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612210575061220f82612f5c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122fe83611380565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061234f82612217565b61238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614c3b565b60405180910390fd5b600061239983611380565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061240857508373ffffffffffffffffffffffffffffffffffffffff166123f084610af3565b73ffffffffffffffffffffffffffffffffffffffff16145b8061241957506124188185611f96565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661244282611380565b73ffffffffffffffffffffffffffffffffffffffff1614612498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248f90614ccd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ff90614d5f565b60405180910390fd5b612513838383612fc6565b61251e60008261228b565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461256e9190614d7f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125c5919061455e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6126988282604051806020016040528060008152506130da565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61276a612283565b73ffffffffffffffffffffffffffffffffffffffff16612788611606565b73ffffffffffffffffffffffffffffffffffffffff16146127de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d590614281565b60405180910390fd5b80600f8190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284e90614dff565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612948919061390f565b60405180910390a3505050565b612960848484612422565b61296c84848484613135565b6129ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a290614e91565b60405180910390fd5b50505050565b6000808290506001815110156129cb576000915050612cde565b6019815111156129df576000915050612cde565b602060f81b816000815181106129f8576129f761477e565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612a35576000915050612cde565b602060f81b8160018351612a499190614d7f565b81518110612a5a57612a5961477e565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612a97576000915050612cde565b600081600081518110612aad57612aac61477e565b5b602001015160f81c60f81b905060005b8251811015612cd6576000838281518110612adb57612ada61477e565b5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015612b425750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15612b54576000945050505050612cde565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612bb05750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015612c165750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612c145750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015612c7b5750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612c795750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015612cad5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15612cbf576000945050505050612cde565b809250508080612cce906146a3565b915050612abd565b506001925050505b919050565b6060600d8054612cf29061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054612d1e9061404d565b8015612d6b5780601f10612d4057610100808354040283529160200191612d6b565b820191906000526020600020905b815481529060010190602001808311612d4e57829003601f168201915b5050505050905090565b60606000821415612dbd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ed1565b600082905060005b60008214612def578080612dd8906146a3565b915050600a82612de89190614ee0565b9150612dc5565b60008167ffffffffffffffff811115612e0b57612e0a613b1a565b5b6040519080825280601f01601f191660200182016040528015612e3d5781602001600182028036833780820191505090505b5090505b60008514612eca57600182612e569190614d7f565b9150600a85612e659190614f11565b6030612e71919061455e565b60f81b818381518110612e8757612e8661477e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ec39190614ee0565b9450612e41565b8093505050505b919050565b612ede612283565b73ffffffffffffffffffffffffffffffffffffffff16612efc611606565b73ffffffffffffffffffffffffffffffffffffffff1614612f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4990614281565b60405180910390fd5b80600e8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612fd18383836132cc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156130145761300f816132d1565b613053565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461305257613051838261331a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130965761309181613487565b6130d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130d4576130d38282613558565b5b5b505050565b6130e483836135d7565b6130f16000848484613135565b613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790614e91565b60405180910390fd5b505050565b60006131568473ffffffffffffffffffffffffffffffffffffffff166137a5565b156132bf578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261317f612283565b8786866040518563ffffffff1660e01b81526004016131a19493929190614f97565b602060405180830381600087803b1580156131bb57600080fd5b505af19250505080156131ec57506040513d601f19601f820116820180604052508101906131e99190614ff8565b60015b61326f573d806000811461321c576040519150601f19603f3d011682016040523d82523d6000602084013e613221565b606091505b50600081511415613267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325e90614e91565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132c4565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613327846114c6565b6133319190614d7f565b9050600060076000848152602001908152602001600020549050818114613416576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061349b9190614d7f565b90506000600960008481526020019081526020016000205490506000600883815481106134cb576134ca61477e565b5b9060005260206000200154905080600883815481106134ed576134ec61477e565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061353c5761353b615025565b5b6001900381819060005260206000200160009055905550505050565b6000613563836114c6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363e906150a0565b60405180910390fd5b61365081612217565b15613690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136879061510c565b60405180910390fd5b61369c60008383612fc6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ec919061455e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546137c49061404d565b90600052602060002090601f0160209004810192826137e6576000855561382d565b82601f106137ff57805160ff191683800117855561382d565b8280016001018555821561382d579182015b8281111561382c578251825591602001919060010190613811565b5b50905061383a919061383e565b5090565b5b8082111561385757600081600090555060010161383f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138a48161386f565b81146138af57600080fd5b50565b6000813590506138c18161389b565b92915050565b6000602082840312156138dd576138dc613865565b5b60006138eb848285016138b2565b91505092915050565b60008115159050919050565b613909816138f4565b82525050565b60006020820190506139246000830184613900565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613964578082015181840152602081019050613949565b83811115613973576000848401525b50505050565b6000601f19601f8301169050919050565b60006139958261392a565b61399f8185613935565b93506139af818560208601613946565b6139b881613979565b840191505092915050565b600060208201905081810360008301526139dd818461398a565b905092915050565b6000819050919050565b6139f8816139e5565b8114613a0357600080fd5b50565b600081359050613a15816139ef565b92915050565b600060208284031215613a3157613a30613865565b5b6000613a3f84828501613a06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a7382613a48565b9050919050565b613a8381613a68565b82525050565b6000602082019050613a9e6000830184613a7a565b92915050565b613aad81613a68565b8114613ab857600080fd5b50565b600081359050613aca81613aa4565b92915050565b60008060408385031215613ae757613ae6613865565b5b6000613af585828601613abb565b9250506020613b0685828601613a06565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5282613979565b810181811067ffffffffffffffff82111715613b7157613b70613b1a565b5b80604052505050565b6000613b8461385b565b9050613b908282613b49565b919050565b600067ffffffffffffffff821115613bb057613baf613b1a565b5b613bb982613979565b9050602081019050919050565b82818337600083830152505050565b6000613be8613be384613b95565b613b7a565b905082815260208101848484011115613c0457613c03613b15565b5b613c0f848285613bc6565b509392505050565b600082601f830112613c2c57613c2b613b10565b5b8135613c3c848260208601613bd5565b91505092915050565b600060208284031215613c5b57613c5a613865565b5b600082013567ffffffffffffffff811115613c7957613c7861386a565b5b613c8584828501613c17565b91505092915050565b613c97816139e5565b82525050565b6000602082019050613cb26000830184613c8e565b92915050565b600080600060608486031215613cd157613cd0613865565b5b6000613cdf86828701613abb565b9350506020613cf086828701613abb565b9250506040613d0186828701613a06565b9150509250925092565b6000819050919050565b6000613d30613d2b613d2684613a48565b613d0b565b613a48565b9050919050565b6000613d4282613d15565b9050919050565b6000613d5482613d37565b9050919050565b613d6481613d49565b82525050565b6000602082019050613d7f6000830184613d5b565b92915050565b60008060408385031215613d9c57613d9b613865565b5b6000613daa85828601613a06565b9250506020613dbb85828601613a06565b9150509250929050565b600060208284031215613ddb57613dda613865565b5b6000613de984828501613abb565b91505092915050565b613dfb816138f4565b8114613e0657600080fd5b50565b600081359050613e1881613df2565b92915050565b60008060408385031215613e3557613e34613865565b5b6000613e4385828601613abb565b9250506020613e5485828601613e09565b9150509250929050565b600067ffffffffffffffff821115613e7957613e78613b1a565b5b613e8282613979565b9050602081019050919050565b6000613ea2613e9d84613e5e565b613b7a565b905082815260208101848484011115613ebe57613ebd613b15565b5b613ec9848285613bc6565b509392505050565b600082601f830112613ee657613ee5613b10565b5b8135613ef6848260208601613e8f565b91505092915050565b60008060008060808587031215613f1957613f18613865565b5b6000613f2787828801613abb565b9450506020613f3887828801613abb565b9350506040613f4987828801613a06565b925050606085013567ffffffffffffffff811115613f6a57613f6961386a565b5b613f7687828801613ed1565b91505092959194509250565b60008060408385031215613f9957613f98613865565b5b6000613fa785828601613a06565b925050602083013567ffffffffffffffff811115613fc857613fc761386a565b5b613fd485828601613c17565b9150509250929050565b60008060408385031215613ff557613ff4613865565b5b600061400385828601613abb565b925050602061401485828601613abb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061406557607f821691505b602082108114156140795761407861401e565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006140db602c83613935565b91506140e68261407f565b604082019050919050565b6000602082019050818103600083015261410a816140ce565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061416d602183613935565b915061417882614111565b604082019050919050565b6000602082019050818103600083015261419c81614160565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141ff603883613935565b915061420a826141a3565b604082019050919050565b6000602082019050818103600083015261422e816141f2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061426b602083613935565b915061427682614235565b602082019050919050565b6000602082019050818103600083015261429a8161425e565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006142fd603183613935565b9150614308826142a1565b604082019050919050565b6000602082019050818103600083015261432c816142f0565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061438f602b83613935565b915061439a82614333565b604082019050919050565b600060208201905081810360008301526143be81614382565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b60006143fb601b83613935565b9150614406826143c5565b602082019050919050565b6000602082019050818103600083015261442a816143ee565b9050919050565b7f496e76616c6964206e756d626572206f6620746f6b656e730000000000000000600082015250565b6000614467601883613935565b915061447282614431565b602082019050919050565b600060208201905081810360008301526144968161445a565b9050919050565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360008201527f20696e2061207472616e73616374696f6e000000000000000000000000000000602082015250565b60006144f9603183613935565b91506145048261449d565b604082019050919050565b60006020820190508181036000830152614528816144ec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614569826139e5565b9150614574836139e5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145a9576145a861452f565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820737570706c79600082015250565b60006145ea602083613935565b91506145f5826145b4565b602082019050919050565b60006020820190508181036000830152614619816145dd565b9050919050565b600061462b826139e5565b9150614636836139e5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561466f5761466e61452f565b5b828202905092915050565b600060408201905061468f6000830185613a7a565b61469c6020830184613c8e565b9392505050565b60006146ae826139e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146e1576146e061452f565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614748602c83613935565b9150614753826146ec565b604082019050919050565b600060208201905081810360008301526147778161473b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614809602983613935565b9150614814826147ad565b604082019050919050565b60006020820190508181036000830152614838816147fc565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061489b602a83613935565b91506148a68261483f565b604082019050919050565b600060208201905081810360008301526148ca8161488e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614907601f83613935565b9150614912826148d1565b602082019050919050565b60006020820190508181036000830152614936816148fa565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000614973601f83613935565b915061497e8261493d565b602082019050919050565b600060208201905081810360008301526149a281614966565b9050919050565b7f496e76616c6964206e616d650000000000000000000000000000000000000000600082015250565b60006149df600c83613935565b91506149ea826149a9565b602082019050919050565b60006020820190508181036000830152614a0e816149d2565b9050919050565b6000604082019050614a2a6000830185613c8e565b8181036020830152614a3c818461398a565b90509392505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614aa1602f83613935565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b600081905092915050565b6000614aed8261392a565b614af78185614ad7565b9350614b07818560208601613946565b80840191505092915050565b6000614b1f8285614ae2565b9150614b2b8284614ae2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b93602683613935565b9150614b9e82614b37565b604082019050919050565b60006020820190508181036000830152614bc281614b86565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c25602c83613935565b9150614c3082614bc9565b604082019050919050565b60006020820190508181036000830152614c5481614c18565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614cb7602983613935565b9150614cc282614c5b565b604082019050919050565b60006020820190508181036000830152614ce681614caa565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d49602483613935565b9150614d5482614ced565b604082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b6000614d8a826139e5565b9150614d95836139e5565b925082821015614da857614da761452f565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614de9601983613935565b9150614df482614db3565b602082019050919050565b60006020820190508181036000830152614e1881614ddc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614e7b603283613935565b9150614e8682614e1f565b604082019050919050565b60006020820190508181036000830152614eaa81614e6e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614eeb826139e5565b9150614ef6836139e5565b925082614f0657614f05614eb1565b5b828204905092915050565b6000614f1c826139e5565b9150614f27836139e5565b925082614f3757614f36614eb1565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614f6982614f42565b614f738185614f4d565b9350614f83818560208601613946565b614f8c81613979565b840191505092915050565b6000608082019050614fac6000830187613a7a565b614fb96020830186613a7a565b614fc66040830185613c8e565b8181036060830152614fd88184614f5e565b905095945050505050565b600081519050614ff28161389b565b92915050565b60006020828403121561500e5761500d613865565b5b600061501c84828501614fe3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061508a602083613935565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006150f6601c83613935565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b905091905056fea26469706673582212201f5a268456aaa253b21a92aceea594cdccbef8305b7aa66591dbdd2184f3295d64736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000009a3781f1655b616ec47b6b916f99ea978e3d96e1000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f6170692e6e6f756e7333642e636f6d2f746f6b656e2f0000
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80636b14683b11610144578063c78e090e116100b6578063e0e84b061161007a578063e0e84b06146108d9578063e1b9778914610904578063e36197641461092d578063e985e9c514610956578063eb8d244414610993578063f2fde38b146109be5761025c565b8063c78e090e146107de578063c87b56dd14610809578063d20478bc14610846578063d2ab48f614610883578063d547cfb7146108ae5761025c565b8063a0712d6811610108578063a0712d68146106f3578063a0b187241461070f578063a22cb46514610738578063a25cd48714610761578063b88d4fde1461078c578063c39cbef1146107b55761025c565b80636b14683b1461061e57806370a0823114610649578063715018a6146106865780638da5cb5b1461069d57806395d89b41146106c85761025c565b8063379607f5116101dd5780634f6ccce7116101a15780634f6ccce7146104fe5780635303f68c1461053b57806355f804b314610566578063573faa2d1461058f5780636352211e146105b85780636a42a2e0146105f55761025c565b8063379607f51461043f5780633ccfd60b1461046857806340675ade1461047f57806342842e0e146104aa5780634cbcc16f146104d35761025c565b806318160ddd1161022457806318160ddd1461035857806323b872dd146103835780632839b8ff146103ac5780632e85f5b2146103d75780632f745c59146104025761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b314610306578063109695231461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906138c7565b6109e7565b604051610295919061390f565b60405180910390f35b3480156102aa57600080fd5b506102b3610a61565b6040516102c091906139c3565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613a1b565b610af3565b6040516102fd9190613a89565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613ad0565b610b78565b005b34801561033b57600080fd5b5061035660048036038101906103519190613c45565b610c90565b005b34801561036457600080fd5b5061036d610d26565b60405161037a9190613c9d565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613cb8565b610d33565b005b3480156103b857600080fd5b506103c1610d93565b6040516103ce9190613c9d565b60405180910390f35b3480156103e357600080fd5b506103ec610d9a565b6040516103f99190613d6a565b60405180910390f35b34801561040e57600080fd5b5061042960048036038101906104249190613ad0565b610dc0565b6040516104369190613c9d565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613a1b565b610e65565b005b34801561047457600080fd5b5061047d611089565b005b34801561048b57600080fd5b50610494611161565b6040516104a19190613c9d565b60405180910390f35b3480156104b657600080fd5b506104d160048036038101906104cc9190613cb8565b611167565b005b3480156104df57600080fd5b506104e8611187565b6040516104f59190613c9d565b60405180910390f35b34801561050a57600080fd5b5061052560048036038101906105209190613a1b565b61118d565b6040516105329190613c9d565b60405180910390f35b34801561054757600080fd5b506105506111fe565b60405161055d919061390f565b60405180910390f35b34801561057257600080fd5b5061058d60048036038101906105889190613c45565b611211565b005b34801561059b57600080fd5b506105b660048036038101906105b19190613a1b565b6112a7565b005b3480156105c457600080fd5b506105df60048036038101906105da9190613a1b565b611380565b6040516105ec9190613a89565b60405180910390f35b34801561060157600080fd5b5061061c60048036038101906106179190613d85565b611432565b005b34801561062a57600080fd5b506106336114c0565b6040516106409190613c9d565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b9190613dc5565b6114c6565b60405161067d9190613c9d565b60405180910390f35b34801561069257600080fd5b5061069b61157e565b005b3480156106a957600080fd5b506106b2611606565b6040516106bf9190613a89565b60405180910390f35b3480156106d457600080fd5b506106dd611630565b6040516106ea91906139c3565b60405180910390f35b61070d60048036038101906107089190613a1b565b6116c2565b005b34801561071b57600080fd5b5061073660048036038101906107319190613d85565b6118f0565b005b34801561074457600080fd5b5061075f600480360381019061075a9190613e1e565b6119aa565b005b34801561076d57600080fd5b506107766119c0565b60405161078391906139c3565b60405180910390f35b34801561079857600080fd5b506107b360048036038101906107ae9190613eff565b611a4e565b005b3480156107c157600080fd5b506107dc60048036038101906107d79190613f82565b611ab0565b005b3480156107ea57600080fd5b506107f3611c35565b6040516108009190613c9d565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b9190613a1b565b611c3b565b60405161083d91906139c3565b60405180910390f35b34801561085257600080fd5b5061086d60048036038101906108689190613a1b565b611ce2565b60405161087a91906139c3565b60405180910390f35b34801561088f57600080fd5b50610898611d82565b6040516108a59190613c9d565b60405180910390f35b3480156108ba57600080fd5b506108c3611d88565b6040516108d091906139c3565b60405180910390f35b3480156108e557600080fd5b506108ee611e16565b6040516108fb9190613c9d565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190613dc5565b611e1c565b005b34801561093957600080fd5b50610954600480360381019061094f9190613d85565b611edc565b005b34801561096257600080fd5b5061097d60048036038101906109789190613fde565b611f96565b60405161098a919061390f565b60405180910390f35b34801561099f57600080fd5b506109a861202a565b6040516109b5919061390f565b60405180910390f35b3480156109ca57600080fd5b506109e560048036038101906109e09190613dc5565b61203d565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a5a5750610a5982612135565b5b9050919050565b606060008054610a709061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9c9061404d565b8015610ae95780601f10610abe57610100808354040283529160200191610ae9565b820191906000526020600020905b815481529060010190602001808311610acc57829003601f168201915b5050505050905090565b6000610afe82612217565b610b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b34906140f1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b8382611380565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610beb90614183565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c13612283565b73ffffffffffffffffffffffffffffffffffffffff161480610c425750610c4181610c3c612283565b611f96565b5b610c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7890614215565b60405180910390fd5b610c8b838361228b565b505050565b610c98612283565b73ffffffffffffffffffffffffffffffffffffffff16610cb6611606565b73ffffffffffffffffffffffffffffffffffffffff1614610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0390614281565b60405180910390fd5b80600c9080519060200190610d229291906137b8565b5050565b6000600880549050905090565b610d44610d3e612283565b82612344565b610d83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7a90614313565b60405180910390fd5b610d8e838383612422565b505050565b620186a081565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610dcb836114c6565b8210610e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e03906143a5565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601360019054906101000a900460ff16610eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eab90614411565b60405180910390fd5b60008111610ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eee9061447d565b60405180910390fd5b600f54811115610f3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f339061450f565b60405180910390fd5b620186a081610f49610d26565b610f53919061455e565b1115610f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8b90614600565b60405180910390fd5b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac3383601254610fe19190614620565b6040518363ffffffff1660e01b8152600401610ffe92919061467a565b600060405180830381600087803b15801561101857600080fd5b505af115801561102c573d6000803e3d6000fd5b5050505060005b81811015611085576000611045610d26565b611ce8611052919061455e565b9050620186a0611060610d26565b101561107157611070338261267e565b5b50808061107d906146a3565b915050611033565b5050565b611091612283565b73ffffffffffffffffffffffffffffffffffffffff166110af611606565b73ffffffffffffffffffffffffffffffffffffffff1614611105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fc90614281565b60405180910390fd5b60004790506000811161111757600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561115d573d6000803e3d6000fd5b5050565b60105481565b61118283838360405180602001604052806000815250611a4e565b505050565b600f5481565b6000611197610d26565b82106111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf9061475e565b60405180910390fd5b600882815481106111ec576111eb61477e565b5b90600052602060002001549050919050565b601360019054906101000a900460ff1681565b611219612283565b73ffffffffffffffffffffffffffffffffffffffff16611237611606565b73ffffffffffffffffffffffffffffffffffffffff161461128d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128490614281565b60405180910390fd5b80600d90805190602001906112a39291906137b8565b5050565b6112af612283565b73ffffffffffffffffffffffffffffffffffffffff166112cd611606565b73ffffffffffffffffffffffffffffffffffffffff1614611323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a90614281565b60405180910390fd5b600061132d610d26565b905060005b8281101561137b57620186a0611346610d26565b1015611368576000818361135a919061455e565b9050611366338261267e565b505b8080611373906146a3565b915050611332565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611429576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114209061481f565b60405180910390fd5b80915050919050565b61143a612283565b73ffffffffffffffffffffffffffffffffffffffff16611458611606565b73ffffffffffffffffffffffffffffffffffffffff16146114ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a590614281565b60405180910390fd5b81601181905550806012819055505050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e906148b1565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611586612283565b73ffffffffffffffffffffffffffffffffffffffff166115a4611606565b73ffffffffffffffffffffffffffffffffffffffff16146115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190614281565b60405180910390fd5b611604600061269c565b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461163f9061404d565b80601f016020809104026020016040519081016040528092919081815260200182805461166b9061404d565b80156116b85780601f1061168d576101008083540402835291602001916116b8565b820191906000526020600020905b81548152906001019060200180831161169b57829003601f168201915b5050505050905090565b6002600a541415611708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ff9061491d565b60405180910390fd5b6002600a81905550601360009054906101000a900460ff1661175f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175690614411565b60405180910390fd5b600081116117a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117999061447d565b60405180910390fd5b600e548111156117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de9061450f565b60405180910390fd5b620186a0816117f4610d26565b6117fe919061455e565b111561183f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183690614600565b60405180910390fd5b348160105461184e9190614620565b111561188f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188690614989565b60405180910390fd5b60005b818110156118e45760006118a4610d26565b611ce86118b1919061455e565b9050620186a06118bf610d26565b10156118d0576118cf338261267e565b5b5080806118dc906146a3565b915050611892565b506001600a8190555050565b6118f8612283565b73ffffffffffffffffffffffffffffffffffffffff16611916611606565b73ffffffffffffffffffffffffffffffffffffffff161461196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196390614281565b60405180910390fd5b8160128190555061197c81612762565b601360019054906101000a900460ff1615601360016101000a81548160ff0219169083151502179055505050565b6119bc6119b5612283565b83836127e8565b5050565b600c80546119cd9061404d565b80601f01602080910402602001604051908101604052809291908181526020018280546119f99061404d565b8015611a465780601f10611a1b57610100808354040283529160200191611a46565b820191906000526020600020905b815481529060010190602001808311611a2957829003601f168201915b505050505081565b611a5f611a59612283565b83612344565b611a9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9590614313565b60405180910390fd5b611aaa84848484612955565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16611ad083611380565b73ffffffffffffffffffffffffffffffffffffffff1614611af057600080fd5b60011515611afd826129b1565b151514611b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b36906149f5565b60405180910390fd5b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac336011546040518363ffffffff1660e01b8152600401611b9e92919061467a565b600060405180830381600087803b158015611bb857600080fd5b505af1158015611bcc573d6000803e3d6000fd5b5050505080601460008481526020019081526020016000209080519060200190611bf79291906137b8565b507f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b8282604051611c29929190614a15565b60405180910390a15050565b611ce881565b6060611c4682612217565b611c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7c90614ab7565b60405180910390fd5b6000611c8f612ce3565b90506000815111611caf5760405180602001604052806000815250611cda565b80611cb984612d75565b604051602001611cca929190614b13565b6040516020818303038152906040525b915050919050565b60146020528060005260406000206000915090508054611d019061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d2d9061404d565b8015611d7a5780601f10611d4f57610100808354040283529160200191611d7a565b820191906000526020600020905b815481529060010190602001808311611d5d57829003601f168201915b505050505081565b60115481565b600d8054611d959061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc19061404d565b8015611e0e5780601f10611de357610100808354040283529160200191611e0e565b820191906000526020600020905b815481529060010190602001808311611df157829003601f168201915b505050505081565b600e5481565b611e24612283565b73ffffffffffffffffffffffffffffffffffffffff16611e42611606565b73ffffffffffffffffffffffffffffffffffffffff1614611e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8f90614281565b60405180910390fd5b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ee4612283565b73ffffffffffffffffffffffffffffffffffffffff16611f02611606565b73ffffffffffffffffffffffffffffffffffffffff1614611f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4f90614281565b60405180910390fd5b81601081905550611f6881612ed6565b601360009054906101000a900460ff1615601360006101000a81548160ff0219169083151502179055505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601360009054906101000a900460ff1681565b612045612283565b73ffffffffffffffffffffffffffffffffffffffff16612063611606565b73ffffffffffffffffffffffffffffffffffffffff16146120b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b090614281565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612129576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212090614ba9565b60405180910390fd5b6121328161269c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061220057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612210575061220f82612f5c565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122fe83611380565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061234f82612217565b61238e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238590614c3b565b60405180910390fd5b600061239983611380565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061240857508373ffffffffffffffffffffffffffffffffffffffff166123f084610af3565b73ffffffffffffffffffffffffffffffffffffffff16145b8061241957506124188185611f96565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661244282611380565b73ffffffffffffffffffffffffffffffffffffffff1614612498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248f90614ccd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ff90614d5f565b60405180910390fd5b612513838383612fc6565b61251e60008261228b565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461256e9190614d7f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125c5919061455e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6126988282604051806020016040528060008152506130da565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61276a612283565b73ffffffffffffffffffffffffffffffffffffffff16612788611606565b73ffffffffffffffffffffffffffffffffffffffff16146127de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d590614281565b60405180910390fd5b80600f8190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284e90614dff565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612948919061390f565b60405180910390a3505050565b612960848484612422565b61296c84848484613135565b6129ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a290614e91565b60405180910390fd5b50505050565b6000808290506001815110156129cb576000915050612cde565b6019815111156129df576000915050612cde565b602060f81b816000815181106129f8576129f761477e565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612a35576000915050612cde565b602060f81b8160018351612a499190614d7f565b81518110612a5a57612a5961477e565b5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612a97576000915050612cde565b600081600081518110612aad57612aac61477e565b5b602001015160f81c60f81b905060005b8251811015612cd6576000838281518110612adb57612ada61477e565b5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015612b425750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15612b54576000945050505050612cde565b603060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612bb05750603960f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015612c165750604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612c145750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015612c7b5750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612c795750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015612cad5750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15612cbf576000945050505050612cde565b809250508080612cce906146a3565b915050612abd565b506001925050505b919050565b6060600d8054612cf29061404d565b80601f0160208091040260200160405190810160405280929190818152602001828054612d1e9061404d565b8015612d6b5780601f10612d4057610100808354040283529160200191612d6b565b820191906000526020600020905b815481529060010190602001808311612d4e57829003601f168201915b5050505050905090565b60606000821415612dbd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ed1565b600082905060005b60008214612def578080612dd8906146a3565b915050600a82612de89190614ee0565b9150612dc5565b60008167ffffffffffffffff811115612e0b57612e0a613b1a565b5b6040519080825280601f01601f191660200182016040528015612e3d5781602001600182028036833780820191505090505b5090505b60008514612eca57600182612e569190614d7f565b9150600a85612e659190614f11565b6030612e71919061455e565b60f81b818381518110612e8757612e8661477e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ec39190614ee0565b9450612e41565b8093505050505b919050565b612ede612283565b73ffffffffffffffffffffffffffffffffffffffff16612efc611606565b73ffffffffffffffffffffffffffffffffffffffff1614612f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4990614281565b60405180910390fd5b80600e8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612fd18383836132cc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156130145761300f816132d1565b613053565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461305257613051838261331a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130965761309181613487565b6130d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130d4576130d38282613558565b5b5b505050565b6130e483836135d7565b6130f16000848484613135565b613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790614e91565b60405180910390fd5b505050565b60006131568473ffffffffffffffffffffffffffffffffffffffff166137a5565b156132bf578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261317f612283565b8786866040518563ffffffff1660e01b81526004016131a19493929190614f97565b602060405180830381600087803b1580156131bb57600080fd5b505af19250505080156131ec57506040513d601f19601f820116820180604052508101906131e99190614ff8565b60015b61326f573d806000811461321c576040519150601f19603f3d011682016040523d82523d6000602084013e613221565b606091505b50600081511415613267576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325e90614e91565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132c4565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613327846114c6565b6133319190614d7f565b9050600060076000848152602001908152602001600020549050818114613416576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061349b9190614d7f565b90506000600960008481526020019081526020016000205490506000600883815481106134cb576134ca61477e565b5b9060005260206000200154905080600883815481106134ed576134ec61477e565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061353c5761353b615025565b5b6001900381819060005260206000200160009055905550505050565b6000613563836114c6565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363e906150a0565b60405180910390fd5b61365081612217565b15613690576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136879061510c565b60405180910390fd5b61369c60008383612fc6565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ec919061455e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546137c49061404d565b90600052602060002090601f0160209004810192826137e6576000855561382d565b82601f106137ff57805160ff191683800117855561382d565b8280016001018555821561382d579182015b8281111561382c578251825591602001919060010190613811565b5b50905061383a919061383e565b5090565b5b8082111561385757600081600090555060010161383f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138a48161386f565b81146138af57600080fd5b50565b6000813590506138c18161389b565b92915050565b6000602082840312156138dd576138dc613865565b5b60006138eb848285016138b2565b91505092915050565b60008115159050919050565b613909816138f4565b82525050565b60006020820190506139246000830184613900565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613964578082015181840152602081019050613949565b83811115613973576000848401525b50505050565b6000601f19601f8301169050919050565b60006139958261392a565b61399f8185613935565b93506139af818560208601613946565b6139b881613979565b840191505092915050565b600060208201905081810360008301526139dd818461398a565b905092915050565b6000819050919050565b6139f8816139e5565b8114613a0357600080fd5b50565b600081359050613a15816139ef565b92915050565b600060208284031215613a3157613a30613865565b5b6000613a3f84828501613a06565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a7382613a48565b9050919050565b613a8381613a68565b82525050565b6000602082019050613a9e6000830184613a7a565b92915050565b613aad81613a68565b8114613ab857600080fd5b50565b600081359050613aca81613aa4565b92915050565b60008060408385031215613ae757613ae6613865565b5b6000613af585828601613abb565b9250506020613b0685828601613a06565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b5282613979565b810181811067ffffffffffffffff82111715613b7157613b70613b1a565b5b80604052505050565b6000613b8461385b565b9050613b908282613b49565b919050565b600067ffffffffffffffff821115613bb057613baf613b1a565b5b613bb982613979565b9050602081019050919050565b82818337600083830152505050565b6000613be8613be384613b95565b613b7a565b905082815260208101848484011115613c0457613c03613b15565b5b613c0f848285613bc6565b509392505050565b600082601f830112613c2c57613c2b613b10565b5b8135613c3c848260208601613bd5565b91505092915050565b600060208284031215613c5b57613c5a613865565b5b600082013567ffffffffffffffff811115613c7957613c7861386a565b5b613c8584828501613c17565b91505092915050565b613c97816139e5565b82525050565b6000602082019050613cb26000830184613c8e565b92915050565b600080600060608486031215613cd157613cd0613865565b5b6000613cdf86828701613abb565b9350506020613cf086828701613abb565b9250506040613d0186828701613a06565b9150509250925092565b6000819050919050565b6000613d30613d2b613d2684613a48565b613d0b565b613a48565b9050919050565b6000613d4282613d15565b9050919050565b6000613d5482613d37565b9050919050565b613d6481613d49565b82525050565b6000602082019050613d7f6000830184613d5b565b92915050565b60008060408385031215613d9c57613d9b613865565b5b6000613daa85828601613a06565b9250506020613dbb85828601613a06565b9150509250929050565b600060208284031215613ddb57613dda613865565b5b6000613de984828501613abb565b91505092915050565b613dfb816138f4565b8114613e0657600080fd5b50565b600081359050613e1881613df2565b92915050565b60008060408385031215613e3557613e34613865565b5b6000613e4385828601613abb565b9250506020613e5485828601613e09565b9150509250929050565b600067ffffffffffffffff821115613e7957613e78613b1a565b5b613e8282613979565b9050602081019050919050565b6000613ea2613e9d84613e5e565b613b7a565b905082815260208101848484011115613ebe57613ebd613b15565b5b613ec9848285613bc6565b509392505050565b600082601f830112613ee657613ee5613b10565b5b8135613ef6848260208601613e8f565b91505092915050565b60008060008060808587031215613f1957613f18613865565b5b6000613f2787828801613abb565b9450506020613f3887828801613abb565b9350506040613f4987828801613a06565b925050606085013567ffffffffffffffff811115613f6a57613f6961386a565b5b613f7687828801613ed1565b91505092959194509250565b60008060408385031215613f9957613f98613865565b5b6000613fa785828601613a06565b925050602083013567ffffffffffffffff811115613fc857613fc761386a565b5b613fd485828601613c17565b9150509250929050565b60008060408385031215613ff557613ff4613865565b5b600061400385828601613abb565b925050602061401485828601613abb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061406557607f821691505b602082108114156140795761407861401e565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006140db602c83613935565b91506140e68261407f565b604082019050919050565b6000602082019050818103600083015261410a816140ce565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061416d602183613935565b915061417882614111565b604082019050919050565b6000602082019050818103600083015261419c81614160565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141ff603883613935565b915061420a826141a3565b604082019050919050565b6000602082019050818103600083015261422e816141f2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061426b602083613935565b915061427682614235565b602082019050919050565b6000602082019050818103600083015261429a8161425e565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006142fd603183613935565b9150614308826142a1565b604082019050919050565b6000602082019050818103600083015261432c816142f0565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061438f602b83613935565b915061439a82614333565b604082019050919050565b600060208201905081810360008301526143be81614382565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b60006143fb601b83613935565b9150614406826143c5565b602082019050919050565b6000602082019050818103600083015261442a816143ee565b9050919050565b7f496e76616c6964206e756d626572206f6620746f6b656e730000000000000000600082015250565b6000614467601883613935565b915061447282614431565b602082019050919050565b600060208201905081810360008301526144968161445a565b9050919050565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e7360008201527f20696e2061207472616e73616374696f6e000000000000000000000000000000602082015250565b60006144f9603183613935565b91506145048261449d565b604082019050919050565b60006020820190508181036000830152614528816144ec565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614569826139e5565b9150614574836139e5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156145a9576145a861452f565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820737570706c79600082015250565b60006145ea602083613935565b91506145f5826145b4565b602082019050919050565b60006020820190508181036000830152614619816145dd565b9050919050565b600061462b826139e5565b9150614636836139e5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561466f5761466e61452f565b5b828202905092915050565b600060408201905061468f6000830185613a7a565b61469c6020830184613c8e565b9392505050565b60006146ae826139e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146e1576146e061452f565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614748602c83613935565b9150614753826146ec565b604082019050919050565b600060208201905081810360008301526147778161473b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614809602983613935565b9150614814826147ad565b604082019050919050565b60006020820190508181036000830152614838816147fc565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b600061489b602a83613935565b91506148a68261483f565b604082019050919050565b600060208201905081810360008301526148ca8161488e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614907601f83613935565b9150614912826148d1565b602082019050919050565b60006020820190508181036000830152614936816148fa565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000614973601f83613935565b915061497e8261493d565b602082019050919050565b600060208201905081810360008301526149a281614966565b9050919050565b7f496e76616c6964206e616d650000000000000000000000000000000000000000600082015250565b60006149df600c83613935565b91506149ea826149a9565b602082019050919050565b60006020820190508181036000830152614a0e816149d2565b9050919050565b6000604082019050614a2a6000830185613c8e565b8181036020830152614a3c818461398a565b90509392505050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614aa1602f83613935565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b600081905092915050565b6000614aed8261392a565b614af78185614ad7565b9350614b07818560208601613946565b80840191505092915050565b6000614b1f8285614ae2565b9150614b2b8284614ae2565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614b93602683613935565b9150614b9e82614b37565b604082019050919050565b60006020820190508181036000830152614bc281614b86565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c25602c83613935565b9150614c3082614bc9565b604082019050919050565b60006020820190508181036000830152614c5481614c18565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614cb7602983613935565b9150614cc282614c5b565b604082019050919050565b60006020820190508181036000830152614ce681614caa565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614d49602483613935565b9150614d5482614ced565b604082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b6000614d8a826139e5565b9150614d95836139e5565b925082821015614da857614da761452f565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614de9601983613935565b9150614df482614db3565b602082019050919050565b60006020820190508181036000830152614e1881614ddc565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614e7b603283613935565b9150614e8682614e1f565b604082019050919050565b60006020820190508181036000830152614eaa81614e6e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614eeb826139e5565b9150614ef6836139e5565b925082614f0657614f05614eb1565b5b828204905092915050565b6000614f1c826139e5565b9150614f27836139e5565b925082614f3757614f36614eb1565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614f6982614f42565b614f738185614f4d565b9350614f83818560208601613946565b614f8c81613979565b840191505092915050565b6000608082019050614fac6000830187613a7a565b614fb96020830186613a7a565b614fc66040830185613c8e565b8181036060830152614fd88184614f5e565b905095945050505050565b600081519050614ff28161389b565b92915050565b60006020828403121561500e5761500d613865565b5b600061501c84828501614fe3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061508a602083613935565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006150f6601c83613935565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b905091905056fea26469706673582212201f5a268456aaa253b21a92aceea594cdccbef8305b7aa66591dbdd2184f3295d64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000009a3781f1655b616ec47b6b916f99ea978e3d96e1000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f6170692e6e6f756e7333642e636f6d2f746f6b656e2f0000
-----Decoded View---------------
Arg [0] : baseURI (string): https://api.nouns3d.com/token/
Arg [1] : _noun (address): 0x9A3781F1655B616eC47b6b916F99eA978E3D96e1
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000009a3781f1655b616ec47b6b916f99ea978e3d96e1
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [3] : 68747470733a2f2f6170692e6e6f756e7333642e636f6d2f746f6b656e2f0000
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.