Overview
TokenID
1
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PrideSquiggle
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol'; import { ERC721Enumerable } from './base/ERC721Enumerable.sol'; import { INounsToken } from './interfaces/INounsToken.sol'; import { ERC721 } from './base/ERC721.sol'; import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import { Base64 } from 'base64-sol/base64.sol'; import { IProxyRegistry } from './external/opensea/IProxyRegistry.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; contract PrideSquiggle is INounsToken, Ownable, ERC721Enumerable { using Strings for uint256; // The internal noun ID tracker uint256 private _currentNounId; // developer address. address public developer; // mint limit uint256 public limit; // description string public description = "Celebrating Pride Month 2022"; // OpenSea's Proxy Registry IProxyRegistry public immutable proxyRegistry; constructor( uint256 _limit, address _developer, IProxyRegistry _proxyRegistry ) ERC721('Pride Squiggle 2022', 'PRIDESQUIGGLE22') { limit = _limit; developer = _developer; proxyRegistry = _proxyRegistry; } /** * @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override(IERC721, ERC721) returns (bool) { // Whitelist OpenSea proxy contract for easy trading. if (proxyRegistry.proxies(owner) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * @notice Anybody can mint, one per wallet. */ function mint() public override returns (uint256) { require(balanceOf(msg.sender) == 0, "You already have one."); require(_currentNounId < limit, "Sold out."); if (_currentNounId % 20 == 2) { _mint(owner(), developer, _currentNounId++); } uint256 tokenId = _currentNounId++; _mint(owner(), msg.sender, tokenId); emit NounBought(tokenId, msg.sender); return tokenId; } /** * @notice Burn a noun. */ function burn(uint256 nounId) public override onlyOwner { require(_exists(nounId), 'URI query for nonexistent token'); _burn(nounId); emit NounBurned(nounId); } /* * @notice get next tokenId. */ function getCurrentToken() external view returns (uint256) { return _currentNounId; } function generateSVG(uint256 tokenId) public pure returns (string memory) { return string(_generateSVG(tokenId)); } function _generateImage(uint256 _tokenId, uint256 _length, string[6] memory _colors) internal pure returns(bytes memory) { bytes memory path = _randomPath(_tokenId); bytes memory pack = abi.encodePacked('<rect width="1024" height="1024" fill="#71BCE1" />\n'); uint256 i; for (i=0; i<_length; i++) { pack = abi.encodePacked( pack, '<path d="', path, '" fill="transparent" stroke="', _colors[uint256(i)], '" stroke-width="64" stroke-linecap="round" transform="translate(0,', (i * 54).toString(), ')"/>\n'); } return pack; } /** * https://www.kapwing.com/resources/official-pride-colors-2021-exact-color-codes-for-15-pride-flags/ */ function _generateSVG(uint256 tokenId) internal pure returns (bytes memory) { bytes memory pack = abi.encodePacked( '<svg width="1024" height="1024" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges">\n' ); string[6] memory classingRainbow = [ "#E50000", "#FF8D00", "#FFEE00", "#028121", "#004CFF", "#770088" ]; string[6] memory lesbianFlag = [ "#D62800", "#FF9B56", "#FFFFFF", "#D462A6", "#A40062", "#0" ]; string[6] memory genderFluidFlag = [ "#FE76A2", "#FFFFFF", "#BF12D7", "#000000", "#303CBE", "#0" ]; string[6] memory transgenderFlag = [ "#5BCFFB", "#F5ABB9", "#FFFFFF", "#F5ABB9", "#5BCFFB", "#0" ]; string[6] memory bisexualFlag = [ "#D60270", "#D60270", "#9B4F96", "#0038A8", "#0038A8", "#0" ]; string[6] memory pansexualFlag = [ "#FF1C8D", "#FF1C8D", "#FFD700", "#FFD700", "#1AB3FF", "#1AB3FF" ]; bytes memory image; uint256 seed = _random(tokenId); if (seed % 20 == 0) { image = _generateImage(tokenId, 5, lesbianFlag); } else if (seed % 100 == 2) { image = _generateImage(tokenId, 5, genderFluidFlag); } else if (seed % 200 == 3) { image = _generateImage(tokenId, 5, transgenderFlag); } else if (seed % 300 == 4) { image = _generateImage(tokenId, 5, bisexualFlag); } else if (seed % 400 == 5) { image = _generateImage(tokenId, 6, pansexualFlag); } else { image = _generateImage(tokenId, 6, classingRainbow); } return abi.encodePacked(pack, image, '</svg>'); } struct Position { uint256 x; uint256 y; } function _random(uint256 _seed) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(_seed))); } function _randomPath(uint256 tokenId) internal pure returns (bytes memory) { uint256 seed = _random(tokenId); uint i; uint len = 10; Position[10] memory pos; uint256 last = 100; uint256 delta = uint256(1024) * 8 / 10 / (len-1); uint256 diff = delta / 3; uint256 offset = (1024 - delta * (len-1)) / 2 - diff / 2; uint256 height = 1024 - 128; for (i = 0 ; i < len; i++) { uint256 next; pos[i].x = offset + i * delta + seed % diff; seed = _random(seed); if (last < height / 2) { next = last + seed % ((height - last) * 8 / 10); } else { next = last - seed % (last * 8 / 10); } pos[i].y = next; last = next; seed = _random(seed); } bytes memory pack; pack = abi.encodePacked("M", ((pos[0].x + pos[1].x)/2).toString(), ",", ((pos[0].y + pos[1].y)/2).toString()); for (i = 1 ; i < len-1; i++) { pack = abi.encodePacked(pack, (i==1)?" Q":",", pos[i].x.toString(), ",", pos[i].y.toString()); if (i == len-2) { pack = abi.encodePacked(pack, ",", pos[i+1].x.toString(), ",", pos[i+1].y.toString()); } else { pack = abi.encodePacked(pack, ",", ((pos[i].x + pos[i+1].x)/2).toString(), ",", ((pos[i].y + pos[i+1].y)/2).toString()); } } return pack; } /** * @notice Similar to `tokenURI`, but always serves a base64 encoded data URI * with the JSON contents directly inlined. */ function dataURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), 'NounsToken: URI query for nonexistent token'); string memory nounId = tokenId.toString(); string memory name = string(abi.encodePacked('Pride Squiggle #', nounId)); string memory image = Base64.encode(_generateSVG(tokenId)); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked('{"name":"', name, '", "description":"', description, '", "image": "', 'data:image/svg+xml;base64,', image, '"}') ) ) ) ); } /** * @notice A distinct Uniform Resource Identifier (URI) for a given asset. * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { return dataURI(tokenId); } /** * @notice Set developer. * @dev Only callable by the Owner. */ function setDeveloper(address _developer) external onlyOwner { developer = _developer; } /** * @notice Set the limit. * @dev Only callable by the Owner. */ function setLimit(uint256 _limit) external onlyOwner { limit = _limit; } /** * @notice Set the limit. * @dev Only callable by the Owner. */ function setDescription(string memory _description) external onlyOwner { description = _description; } }
// 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 /// @title ERC721 Enumerable Extension /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721Enumerable.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721Enumerable.sol // // ERC721Enumerable.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // MODIFICATIONS: // Consumes modified `ERC721` contract. See notes in `ERC721.sol`. pragma solidity ^0.8.0; import './ERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/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: GPL-3.0 /// @title Interface for NounsToken /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import { INounsDescriptor } from './INounsDescriptor.sol'; import { INounsSeeder } from './INounsSeeder.sol'; interface INounsToken is IERC721 { event NounCreated(uint256 indexed tokenId, INounsSeeder.Seed seed); event NounBurned(uint256 indexed tokenId); event NoundersDAOUpdated(address noundersDAO); event NounBought(uint256 indexed tokenId, address newOwner); event MintTimeUpdated(uint256 mintTime); function mint() external returns (uint256); function burn(uint256 tokenId) external; function dataURI(uint256 tokenId) external returns (string memory); }
// SPDX-License-Identifier: MIT /// @title ERC721 Token Implementation /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol // // ERC721.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // // MODIFICATIONS: // `_safeMint` and `_mint` contain an additional `creator` argument and // emit two `Transfer` logs, rather than one. The first log displays the // transfer (mint) from `address(0)` to the `creator`. The second displays the // transfer from the `creator` to the `to` address. This enables correct // attribution on various NFT marketplaces. pragma solidity ^0.8.6; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @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 { require(operator != _msgSender(), 'ERC721: approve to caller'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //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`, transfers it to `to`, and emits two log events - * 1. Credits the `minter` with the mint. * 2. Shows transfer from the `minter` 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 creator, address to, uint256 tokenId ) internal virtual { _safeMint(creator, 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 creator, address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(creator, to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer' ); } /** * @dev Mints `tokenId`, transfers it to `to`, and emits two log events - * 1. Credits the `creator` with the mint. * 2. Shows transfer from the `creator` 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 creator, 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), creator, tokenId); emit Transfer(creator, 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); } function buyTransfer( address to, uint256 tokenId ) internal virtual { address from = address(this); require(ERC721.ownerOf(tokenId) == from, 'ERC721: transfer of token that is not address'); 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 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(to).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 (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; interface IProxyRegistry { function proxies(address) external view returns (address); }
// 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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: GPL-3.0 /// @title Interface for NounsDescriptor /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; import { INounsSeeder } from './INounsSeeder.sol'; interface INounsDescriptor { event PartsLocked(); event DataURIToggled(bool enabled); event BaseURIUpdated(string baseURI); function arePartsLocked() external returns (bool); function isDataURIEnabled() external returns (bool); function baseURI() external returns (string memory); function palettes(uint8 paletteIndex, uint256 colorIndex) external view returns (string memory); function backgrounds(uint256 index) external view returns (string memory); function bodies(uint256 index) external view returns (bytes memory); function accessories(uint256 index) external view returns (bytes memory); function heads(uint256 index) external view returns (bytes memory); function glasses(uint256 index) external view returns (bytes memory); function backgroundCount() external view returns (uint256); function bodyCount() external view returns (uint256); function accessoryCount() external view returns (uint256); function headCount() external view returns (uint256); function glassesCount() external view returns (uint256); function addManyColorsToPalette(uint8 paletteIndex, string[] calldata newColors) external; function addManyBackgrounds(string[] calldata backgrounds) external; function addManyBodies(bytes[] calldata bodies) external; function addManyAccessories(bytes[] calldata accessories) external; function addManyHeads(bytes[] calldata heads) external; function addManyGlasses(bytes[] calldata glasses) external; function addColorToPalette(uint8 paletteIndex, string calldata color) external; function addBackground(string calldata background) external; function addBody(bytes calldata body) external; function addAccessory(bytes calldata accessory) external; function addHead(bytes calldata head) external; function addGlasses(bytes calldata glasses) external; function lockParts() external; function toggleDataURIEnabled() external; function setBaseURI(string calldata baseURI) external; function tokenURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory); function dataURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory); function genericDataURI( string calldata name, string calldata description, INounsSeeder.Seed memory seed ) external view returns (string memory); function generateSVGImage(INounsSeeder.Seed memory seed) external view returns (string memory); }
// SPDX-License-Identifier: GPL-3.0 /// @title Interface for NounsSeeder /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; import { INounsDescriptor } from './INounsDescriptor.sol'; interface INounsSeeder { struct Seed { uint48 background; uint48 body; uint48 accessory; uint48 head; uint48 glasses; } function generateSeed(uint256 nounId, INounsDescriptor descriptor) external view returns (Seed memory); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"address","name":"_developer","type":"address"},{"internalType":"contract IProxyRegistry","name":"_proxyRegistry","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":"mintTime","type":"uint256"}],"name":"MintTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"NounBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NounBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint48","name":"background","type":"uint48"},{"internalType":"uint48","name":"body","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"head","type":"uint48"},{"internalType":"uint48","name":"glasses","type":"uint48"}],"indexed":false,"internalType":"struct INounsSeeder.Seed","name":"seed","type":"tuple"}],"name":"NounCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"noundersDAO","type":"address"}],"name":"NoundersDAOUpdated","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nounId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistry","outputs":[{"internalType":"contract IProxyRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developer","type":"address"}],"name":"setDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setLimit","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"}]
Contract Creation Code
60e0604052601c60a08190527f43656c6562726174696e67205072696465204d6f6e746820323032320000000060c09081526200004091600e9190620001a7565b503480156200004e57600080fd5b5060405162003c3c38038062003c3c83398101604081905262000071916200024d565b6040518060400160405280601381526020017f5072696465205371756967676c652032303232000000000000000000000000008152506040518060400160405280600f81526020016e282924a222a9a8aaa4a3a3a622991960891b815250620000e9620000e36200015360201b60201c565b62000157565b8151620000fe906001906020850190620001a7565b50805162000114906002906020840190620001a7565b505050600d92909255600c80546001600160a01b0319166001600160a01b039290921691909117905560601b6001600160601b031916608052620002eb565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001b59062000295565b90600052602060002090601f016020900481019282620001d9576000855562000224565b82601f10620001f457805160ff191683800117855562000224565b8280016001018555821562000224579182015b828111156200022457825182559160200191906001019062000207565b506200023292915062000236565b5090565b5b8082111562000232576000815560010162000237565b6000806000606084860312156200026357600080fd5b8351925060208401516200027781620002d2565b60408501519092506200028a81620002d2565b809150509250925092565b600181811c90821680620002aa57607f821691505b60208210811415620002cc57634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b0381168114620002e857600080fd5b50565b60805160601c61392b62000311600039600081816103a001526110f6015261392b6000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806370a082311161010f578063b50cbd9f116100a2578063e985e9c511610071578063e985e9c5146103fb578063ef2d17461461040e578063f2fde38b14610416578063ff70fa491461042957600080fd5b8063b50cbd9f1461039b578063b88d4fde146103c2578063c87b56dd146103d5578063ca4b208b146103e857600080fd5b806390c3f38f116100de57806390c3f38f1461036457806395d89b4114610377578063a22cb4651461037f578063a4d66daf1461039257600080fd5b806370a0823114610330578063715018a6146103435780637284e4161461034b5780638da5cb5b1461035357600080fd5b806327ea6f2b116101875780634f6ccce7116101565780634f6ccce7146102e45780635ac1e3bb146102f75780636352211e1461030a5780636dcee4ca1461031d57600080fd5b806327ea6f2b146102985780632f745c59146102ab57806342842e0e146102be57806342966c68146102d157600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780631249c58b1461026757806318160ddd1461027d57806323b872dd1461028557600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004613109565b61043c565b60405190151581526020015b60405180910390f35b61021a610480565b6040516102099190613711565b61023a61023536600461318c565b610512565b6040516001600160a01b039091168152602001610209565b6102656102603660046130dd565b6105ac565b005b61026f6106de565b604051908152602001610209565b60095461026f565b610265610293366004612fe9565b61084a565b6102656102a636600461318c565b6108d1565b61026f6102b93660046130dd565b610930565b6102656102cc366004612fe9565b6109d8565b6102656102df36600461318c565b6109f3565b61026f6102f236600461318c565b610ae8565b61021a61030536600461318c565b610b8c565b61023a61031836600461318c565b610cb5565b61021a61032b36600461318c565b610d40565b61026f61033e366004612f76565b610d4b565b610265610de5565b61021a610e4b565b6000546001600160a01b031661023a565b610265610372366004613143565b610ed9565b61021a610f4a565b61026561038d3660046130aa565b610f59565b61026f600d5481565b61023a7f000000000000000000000000000000000000000000000000000000000000000081565b6102656103d036600461302a565b61101e565b61021a6103e336600461318c565b6110ac565b600c5461023a906001600160a01b031681565b6101fd610409366004612fb0565b6110b7565b600b5461026f565b610265610424366004612f76565b6111b8565b610265610437366004612f76565b61129a565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061047a575061047a82611316565b92915050565b60606001805461048f906137b2565b80601f01602080910402602001604051908101604052809291908181526020018280546104bb906137b2565b80156105085780601f106104dd57610100808354040283529160200191610508565b820191906000526020600020905b8154815290600101906020018083116104eb57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166105905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105b782610cb5565b9050806001600160a01b0316836001600160a01b031614156106415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610587565b336001600160a01b038216148061065d575061065d81336110b7565b6106cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610587565b6106d983836113b1565b505050565b60006106e933610d4b565b156107365760405162461bcd60e51b815260206004820152601560248201527f596f7520616c72656164792068617665206f6e652e00000000000000000000006044820152606401610587565b600d54600b54106107895760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742e00000000000000000000000000000000000000000000006044820152606401610587565b6014600b546107989190613808565b600214156107dd576107dd6107b56000546001600160a01b031690565b600c54600b80546001600160a01b03909216919060006107d4836137ed565b9190505561141f565b600b8054600091826107ee836137ed565b9190505590506108106108096000546001600160a01b031690565b338361141f565b60405133815281907ff3919fe9a709ec82fb9fd1c54a2af7cf717bfe52a6c9b1f1ed8ea42d52ba392f9060200160405180910390a2919050565b61085433826115b5565b6108c65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610587565b6106d983838361168c565b6000546001600160a01b0316331461092b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b600d55565b600061093b83610d4b565b82106109af5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610587565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6106d98383836040518060200160405280600081525061101e565b6000546001600160a01b03163314610a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b6000818152600360205260409020546001600160a01b0316610ab15760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610587565b610aba81611864565b60405181907f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986390600090a250565b6000610af360095490565b8210610b675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610587565b60098281548110610b7a57610b7a61385e565b90600052602060002001549050919050565b6000818152600360205260409020546060906001600160a01b0316610c195760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201527f7374656e7420746f6b656e0000000000000000000000000000000000000000006064820152608401610587565b6000610c248361190b565b9050600081604051602001610c399190613690565b60405160208183030381529060405290506000610c5d610c5886611a3d565b61229f565b9050610c8c82600e83604051602001610c789392919061344e565b60405160208183030381529060405261229f565b604051602001610c9c919061364b565b6040516020818303038152906040529350505050919050565b6000818152600360205260408120546001600160a01b03168061047a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610587565b606061047a82611a3d565b60006001600160a01b038216610dc95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610587565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610e3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b610e49600061243c565b565b600e8054610e58906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e84906137b2565b8015610ed15780601f10610ea657610100808354040283529160200191610ed1565b820191906000526020600020905b815481529060010190602001808311610eb457829003601f168201915b505050505081565b6000546001600160a01b03163314610f335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b8051610f4690600e906020840190612e2d565b5050565b60606002805461048f906137b2565b6001600160a01b038216331415610fb25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610587565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61102833836115b5565b61109a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610587565b6110a68484848461248c565b50505050565b606061047a82610b8c565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c45527919060240160206040518083038186803b15801561113857600080fd5b505afa15801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111709190612f93565b6001600160a01b031614156111875750600161047a565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146112125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b6001600160a01b03811661128e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610587565b6112978161243c565b50565b6000546001600160a01b031633146112f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061137957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061047a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461047a565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113e682610cb5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166114755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610587565b6000818152600360205260409020546001600160a01b0316156114da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610587565b6114e660008383612515565b6001600160a01b038216600090815260046020526040812080546001929061150f908490613724565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818152600360205260408120546001600160a01b031661162e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610587565b600061163983610cb5565b9050806001600160a01b0316846001600160a01b031614806116745750836001600160a01b031661166984610512565b6001600160a01b0316145b80611684575061168481856110b7565b949350505050565b826001600160a01b031661169f82610cb5565b6001600160a01b03161461171b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610587565b6001600160a01b0382166117965760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610587565b6117a1838383612515565b6117ac6000826113b1565b6001600160a01b03831660009081526004602052604081208054600192906117d590849061376f565b90915550506001600160a01b0382166000908152600460205260408120805460019290611803908490613724565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061186f82610cb5565b905061187d81600084612515565b6118886000836113b1565b6001600160a01b03811660009081526004602052604081208054600192906118b190849061376f565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60608161194b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611975578061195f816137ed565b915061196e9050600a8361373c565b915061194f565b60008167ffffffffffffffff81111561199057611990613874565b6040519080825280601f01601f1916602001820160405280156119ba576020820181803683370190505b5090505b8415611684576119cf60018361376f565b91506119dc600a86613808565b6119e7906030613724565b60f81b8183815181106119fc576119fc61385e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611a36600a8661373c565b94506119be565b60606000604051602001611ae6907f3c7376672077696474683d223130323422206865696768743d2231303234222081527f76696577426f783d22302030203130323420313032342220786d6c6e733d226860208201527f7474703a2f2f7777772e77332e6f72672f323030302f7376672220736861706560408201527f2d72656e646572696e673d2263726973704564676573223e0a00000000000000606082015260790190565b604051602081830303815290604052905060006040518060c001604052806040518060400160405280600781526020017f234535303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646384430300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646454530300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233032383132310000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030344346460000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2337373030383800000000000000000000000000000000000000000000000000815250815250905060006040518060c001604052806040518060400160405280600781526020017f234436323830300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646394235360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020016611a3232323232360c91b81525081526020016040518060400160405280600781526020017f234434363241360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2341343030363200000000000000000000000000000000000000000000000000815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c001604052806040518060400160405280600781526020017f234645373641320000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020016611a3232323232360c91b81525081526020016040518060400160405280600781526020017f234246313244370000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2333303343424500000000000000000000000000000000000000000000000000815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c0016040528060405180604001604052806007815260200166119aa121a3232160c91b8152508152602001604051806040016040528060078152602001662346354142423960c81b81525081526020016040518060400160405280600781526020016611a3232323232360c91b8152508152602001604051806040016040528060078152602001662346354142423960c81b815250815260200160405180604001604052806007815260200166119aa121a3232160c91b815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c00160405280604051806040016040528060078152602001660234436303237360cc1b8152508152602001604051806040016040528060078152602001660234436303237360cc1b81525081526020016040518060400160405280600781526020017f23394234463936000000000000000000000000000000000000000000000000008152508152602001604051806040016040528060078152602001660466060667082760cb1b8152508152602001604051806040016040528060078152602001660466060667082760cb1b815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c001604052806040518060400160405280600781526020016608d1918c50ce1160ca1b81525081526020016040518060400160405280600781526020016608d1918c50ce1160ca1b8152508152602001604051806040016040528060078152602001660234646443730360cc1b8152508152602001604051806040016040528060078152602001660234646443730360cc1b8152508152602001604051806040016040528060078152602001661198a0a119a32360c91b8152508152602001604051806040016040528060078152602001661198a0a119a32360c91b8152508152509050606060006121bc8b6125cd565b90506121c9601482613808565b6121e0576121d98b600589612600565b915061226d565b6121eb606482613808565b600214156121ff576121d98b600588612600565b61220a60c882613808565b6003141561221e576121d98b600587612600565b61222a61012c82613808565b6004141561223e576121d98b600586612600565b61224a61019082613808565b6005141561225e576121d98b600685612600565b61226a8b60068a612600565b91505b88826040516020016122809291906131ed565b6040516020818303038152906040529950505050505050505050919050565b60608151600014156122bf57505060408051602081019091526000815290565b60006040518060600160405280604081526020016138b660409139905060006003845160026122ee9190613724565b6122f8919061373c565b612303906004613750565b90506000612312826020613724565b67ffffffffffffffff81111561232a5761232a613874565b6040519080825280601f01601f191660200182016040528015612354576020820181803683370190505b509050818152600183018586518101602084015b818310156123c0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612368565b6003895106600181146123da57600281146124065761242e565b7f3d3d00000000000000000000000000000000000000000000000000000000000060011983015261242e565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61249784848461168c565b6124a3848484846126f3565b6110a65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610587565b6001600160a01b0383166125705761256b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612593565b816001600160a01b0316836001600160a01b031614612593576125938382612856565b6001600160a01b0382166125aa576106d9816128f3565b826001600160a01b0316826001600160a01b0316146106d9576106d982826129a2565b6000816040516020016125e291815260200190565b60408051601f19818403018152919052805160209091012092915050565b6060600061260d856129e6565b9050600060405160200161266a907f3c726563742077696474683d223130323422206865696768743d22313032342281527f2066696c6c3d222337314243453122202f3e0a00000000000000000000000000602082015260330190565b604051602081830303815290604052905060005b858110156126e957818386836006811061269a5761269a61385e565b60200201516126b26126ad856036613750565b61190b565b6040516020016126c59493929190613302565b604051602081830303815290604052915080806126e1906137ed565b91505061267e565b5095945050505050565b60006001600160a01b0384163b1561284b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127379033908990889088906004016136d5565b602060405180830381600087803b15801561275157600080fd5b505af1925050508015612781575060408051601f3d908101601f1916820190925261277e91810190613126565b60015b612831573d8080156127af576040519150601f19603f3d011682016040523d82523d6000602084013e6127b4565b606091505b5080516128295760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610587565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611684565b506001949350505050565b6000600161286384610d4b565b61286d919061376f565b6000838152600860205260409020549091508082146128c0576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906129059060019061376f565b6000838152600a60205260408120546009805493945090928490811061292d5761292d61385e565b90600052602060002001549050806009838154811061294e5761294e61385e565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061298657612986613848565b6001900381819060005260206000200160009055905550505050565b60006129ad83610d4b565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b606060006129f3836125cd565b90506000600a612a01612eb1565b60646000612a1060018561376f565b600a612a1f6104006008613750565b612a29919061373c565b612a33919061373c565b90506000612a4260038361373c565b90506000612a5160028361373c565b6002612a5e60018961376f565b612a689086613750565b612a749061040061376f565b612a7e919061373c565b612a88919061376f565b6000975090506103805b86881015612ba5576000612aa6848b613808565b612ab0868b613750565b612aba9085613724565b612ac49190613724565b878a600a8110612ad657612ad661385e565b602002015152612ae58a6125cd565b9950612af260028361373c565b861015612b3557600a612b05878461376f565b612b10906008613750565b612b1a919061373c565b612b24908b613808565b612b2e9087613724565b9050612b63565b600a612b42876008613750565b612b4c919061373c565b612b56908b613808565b612b60908761376f565b90505b80878a600a8110612b7657612b7661385e565b60200201516020018181525050809550612b8f8a6125cd565b9950508780612b9d906137ed565b985050612a92565b6060612bd360028860016020020151518960005b602002015151612bc99190613724565b6126ad919061373c565b6020808901510151612bf9906002908a60005b602002015160200151612bc99190613724565b604051602001612c0a9291906135e6565b6040516020818303038152906040529050600198505b612c2b60018961376f565b891015612e1e578089600114612c5a57604051806040016040528060018152602001600b60fa1b815250612c91565b6040518060400160405280600281526020017f20510000000000000000000000000000000000000000000000000000000000008152505b612cb1898c600a8110612ca657612ca661385e565b60200201515161190b565b612cd48a8d600a8110612cc657612cc661385e565b60200201516020015161190b565b604051602001612ce79493929190613244565b60408051601f198184030181529190529050612d0460028961376f565b891415612d725780612d2b88612d1b8c6001613724565b600a8110612ca657612ca661385e565b612d4a89612d3a8d6001613724565b600a8110612cc657612cc661385e565b604051602001612d5c939291906132a8565b6040516020818303038152906040529050612e0c565b80612dac600289612d848d6001613724565b600a8110612d9457612d9461385e565b6020020151518a8d600a8110612bb957612bb961385e565b612de860028a612dbd8e6001613724565b600a8110612dcd57612dcd61385e565b6020020151602001518b8e600a8110612be657612be661385e565b604051602001612dfa939291906132a8565b60405160208183030381529060405290505b88612e16816137ed565b995050612c20565b9b9a5050505050505050505050565b828054612e39906137b2565b90600052602060002090601f016020900481019282612e5b5760008555612ea1565b82601f10612e7457805160ff1916838001178555612ea1565b82800160010185558215612ea1579182015b82811115612ea1578251825591602001919060010190612e86565b50612ead929150612eeb565b5090565b604051806101400160405280600a905b6040805180820190915260008082526020820152815260200190600190039081612ec15790505090565b5b80821115612ead5760008155600101612eec565b600067ffffffffffffffff80841115612f1b57612f1b613874565b604051601f8501601f19908116603f01168101908282118183101715612f4357612f43613874565b81604052809350858152868686011115612f5c57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612f8857600080fd5b81356111b18161388a565b600060208284031215612fa557600080fd5b81516111b18161388a565b60008060408385031215612fc357600080fd5b8235612fce8161388a565b91506020830135612fde8161388a565b809150509250929050565b600080600060608486031215612ffe57600080fd5b83356130098161388a565b925060208401356130198161388a565b929592945050506040919091013590565b6000806000806080858703121561304057600080fd5b843561304b8161388a565b9350602085013561305b8161388a565b925060408501359150606085013567ffffffffffffffff81111561307e57600080fd5b8501601f8101871361308f57600080fd5b61309e87823560208401612f00565b91505092959194509250565b600080604083850312156130bd57600080fd5b82356130c88161388a565b915060208301358015158114612fde57600080fd5b600080604083850312156130f057600080fd5b82356130fb8161388a565b946020939093013593505050565b60006020828403121561311b57600080fd5b81356111b18161389f565b60006020828403121561313857600080fd5b81516111b18161389f565b60006020828403121561315557600080fd5b813567ffffffffffffffff81111561316c57600080fd5b8201601f8101841361317d57600080fd5b61168484823560208401612f00565b60006020828403121561319e57600080fd5b5035919050565b600081518084526131bd816020860160208601613786565b601f01601f19169290920160200192915050565b600081516131e3818560208601613786565b9290920192915050565b600083516131ff818460208801613786565b835190830190613213818360208801613786565b7f3c2f7376673e00000000000000000000000000000000000000000000000000009101908152600601949350505050565b60008551613256818460208a01613786565b85519083019061326a818360208a01613786565b855191019061327d818360208901613786565b600b60fa1b9101908152835161329a816001840160208801613786565b016001019695505050505050565b600084516132ba818460208901613786565b8083019050600b60fa1b80825285516132da816001850160208a01613786565b600192019182015283516132f5816002840160208801613786565b0160020195945050505050565b60008551613314818460208a01613786565b7f3c7061746820643d220000000000000000000000000000000000000000000000908301908152855161334e816009840160208a01613786565b7f222066696c6c3d227472616e73706172656e7422207374726f6b653d2200000060099290910191820152845161338c816026840160208901613786565b7f22207374726f6b652d77696474683d22363422207374726f6b652d6c696e6563602692909101918201527f61703d22726f756e6422207472616e73666f726d3d227472616e736c6174652860468201527f302c00000000000000000000000000000000000000000000000000000000000060668201528351613416816068840160208801613786565b7f29222f3e0a00000000000000000000000000000000000000000000000000000060689290910191820152606d019695505050505050565b7f7b226e616d65223a22000000000000000000000000000000000000000000000081526000845160206134878260098601838a01613786565b7f222c20226465736372697074696f6e223a2200000000000000000000000000006009928501928301528554601b90600090600181811c90808316806134ce57607f831692505b8683108114156134ec57634e487b7160e01b85526022600452602485fd5b808015613500576001811461351557613546565b60ff1985168988015283890187019550613546565b60008d81526020902060005b8581101561353c5781548b82018a0152908401908901613521565b505086848a010195505b50505050506135d96135b06135aa613581847f222c2022696d616765223a2022000000000000000000000000000000000000008152600d0190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152601a0190565b896131d1565b7f227d000000000000000000000000000000000000000000000000000000000000815260020190565b9998505050505050505050565b7f4d0000000000000000000000000000000000000000000000000000000000000081526000835161361e816001850160208801613786565b600b60fa1b600191840191820152835161363f816002840160208801613786565b01600201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161368381601d850160208701613786565b91909101601d0192915050565b7f5072696465205371756967676c652023000000000000000000000000000000008152600082516136c8816010850160208701613786565b9190910160100192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261370760808301846131a5565b9695505050505050565b6020815260006111b160208301846131a5565b600082198211156137375761373761381c565b500190565b60008261374b5761374b613832565b500490565b600081600019048311821515161561376a5761376a61381c565b500290565b6000828210156137815761378161381c565b500390565b60005b838110156137a1578181015183820152602001613789565b838111156110a65750506000910152565b600181811c908216806137c657607f821691505b602082108114156137e757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138015761380161381c565b5060010190565b60008261381757613817613832565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461129757600080fd5b6001600160e01b03198116811461129757600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122003caa6df14b1f16f0367ace5c2ef67459ec6b1bb36233b7104a322551dfe1dd364736f6c6343000806003300000000000000000000000000000000000000000000000000000000000000640000000000000000000000006a615ca8d7053c0a0de2d11cacb6f321ca63bd62000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c806370a082311161010f578063b50cbd9f116100a2578063e985e9c511610071578063e985e9c5146103fb578063ef2d17461461040e578063f2fde38b14610416578063ff70fa491461042957600080fd5b8063b50cbd9f1461039b578063b88d4fde146103c2578063c87b56dd146103d5578063ca4b208b146103e857600080fd5b806390c3f38f116100de57806390c3f38f1461036457806395d89b4114610377578063a22cb4651461037f578063a4d66daf1461039257600080fd5b806370a0823114610330578063715018a6146103435780637284e4161461034b5780638da5cb5b1461035357600080fd5b806327ea6f2b116101875780634f6ccce7116101565780634f6ccce7146102e45780635ac1e3bb146102f75780636352211e1461030a5780636dcee4ca1461031d57600080fd5b806327ea6f2b146102985780632f745c59146102ab57806342842e0e146102be57806342966c68146102d157600080fd5b8063095ea7b3116101c3578063095ea7b3146102525780631249c58b1461026757806318160ddd1461027d57806323b872dd1461028557600080fd5b806301ffc9a7146101ea57806306fdde0314610212578063081812fc14610227575b600080fd5b6101fd6101f8366004613109565b61043c565b60405190151581526020015b60405180910390f35b61021a610480565b6040516102099190613711565b61023a61023536600461318c565b610512565b6040516001600160a01b039091168152602001610209565b6102656102603660046130dd565b6105ac565b005b61026f6106de565b604051908152602001610209565b60095461026f565b610265610293366004612fe9565b61084a565b6102656102a636600461318c565b6108d1565b61026f6102b93660046130dd565b610930565b6102656102cc366004612fe9565b6109d8565b6102656102df36600461318c565b6109f3565b61026f6102f236600461318c565b610ae8565b61021a61030536600461318c565b610b8c565b61023a61031836600461318c565b610cb5565b61021a61032b36600461318c565b610d40565b61026f61033e366004612f76565b610d4b565b610265610de5565b61021a610e4b565b6000546001600160a01b031661023a565b610265610372366004613143565b610ed9565b61021a610f4a565b61026561038d3660046130aa565b610f59565b61026f600d5481565b61023a7f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b6102656103d036600461302a565b61101e565b61021a6103e336600461318c565b6110ac565b600c5461023a906001600160a01b031681565b6101fd610409366004612fb0565b6110b7565b600b5461026f565b610265610424366004612f76565b6111b8565b610265610437366004612f76565b61129a565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061047a575061047a82611316565b92915050565b60606001805461048f906137b2565b80601f01602080910402602001604051908101604052809291908181526020018280546104bb906137b2565b80156105085780601f106104dd57610100808354040283529160200191610508565b820191906000526020600020905b8154815290600101906020018083116104eb57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166105905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006105b782610cb5565b9050806001600160a01b0316836001600160a01b031614156106415760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610587565b336001600160a01b038216148061065d575061065d81336110b7565b6106cf5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610587565b6106d983836113b1565b505050565b60006106e933610d4b565b156107365760405162461bcd60e51b815260206004820152601560248201527f596f7520616c72656164792068617665206f6e652e00000000000000000000006044820152606401610587565b600d54600b54106107895760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742e00000000000000000000000000000000000000000000006044820152606401610587565b6014600b546107989190613808565b600214156107dd576107dd6107b56000546001600160a01b031690565b600c54600b80546001600160a01b03909216919060006107d4836137ed565b9190505561141f565b600b8054600091826107ee836137ed565b9190505590506108106108096000546001600160a01b031690565b338361141f565b60405133815281907ff3919fe9a709ec82fb9fd1c54a2af7cf717bfe52a6c9b1f1ed8ea42d52ba392f9060200160405180910390a2919050565b61085433826115b5565b6108c65760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610587565b6106d983838361168c565b6000546001600160a01b0316331461092b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b600d55565b600061093b83610d4b565b82106109af5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610587565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6106d98383836040518060200160405280600081525061101e565b6000546001600160a01b03163314610a4d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b6000818152600360205260409020546001600160a01b0316610ab15760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610587565b610aba81611864565b60405181907f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986390600090a250565b6000610af360095490565b8210610b675760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610587565b60098281548110610b7a57610b7a61385e565b90600052602060002001549050919050565b6000818152600360205260409020546060906001600160a01b0316610c195760405162461bcd60e51b815260206004820152602b60248201527f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960448201527f7374656e7420746f6b656e0000000000000000000000000000000000000000006064820152608401610587565b6000610c248361190b565b9050600081604051602001610c399190613690565b60405160208183030381529060405290506000610c5d610c5886611a3d565b61229f565b9050610c8c82600e83604051602001610c789392919061344e565b60405160208183030381529060405261229f565b604051602001610c9c919061364b565b6040516020818303038152906040529350505050919050565b6000818152600360205260408120546001600160a01b03168061047a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610587565b606061047a82611a3d565b60006001600160a01b038216610dc95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610587565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610e3f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b610e49600061243c565b565b600e8054610e58906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e84906137b2565b8015610ed15780601f10610ea657610100808354040283529160200191610ed1565b820191906000526020600020905b815481529060010190602001808311610eb457829003601f168201915b505050505081565b6000546001600160a01b03163314610f335760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b8051610f4690600e906020840190612e2d565b5050565b60606002805461048f906137b2565b6001600160a01b038216331415610fb25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610587565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61102833836115b5565b61109a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610587565b6110a68484848461248c565b50505050565b606061047a82610b8c565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c45527919060240160206040518083038186803b15801561113857600080fd5b505afa15801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111709190612f93565b6001600160a01b031614156111875750600161047a565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146112125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b6001600160a01b03811661128e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610587565b6112978161243c565b50565b6000546001600160a01b031633146112f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610587565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061137957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061047a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461047a565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113e682610cb5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166114755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610587565b6000818152600360205260409020546001600160a01b0316156114da5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610587565b6114e660008383612515565b6001600160a01b038216600090815260046020526040812080546001929061150f908490613724565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000818152600360205260408120546001600160a01b031661162e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610587565b600061163983610cb5565b9050806001600160a01b0316846001600160a01b031614806116745750836001600160a01b031661166984610512565b6001600160a01b0316145b80611684575061168481856110b7565b949350505050565b826001600160a01b031661169f82610cb5565b6001600160a01b03161461171b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610587565b6001600160a01b0382166117965760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610587565b6117a1838383612515565b6117ac6000826113b1565b6001600160a01b03831660009081526004602052604081208054600192906117d590849061376f565b90915550506001600160a01b0382166000908152600460205260408120805460019290611803908490613724565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061186f82610cb5565b905061187d81600084612515565b6118886000836113b1565b6001600160a01b03811660009081526004602052604081208054600192906118b190849061376f565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60608161194b57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611975578061195f816137ed565b915061196e9050600a8361373c565b915061194f565b60008167ffffffffffffffff81111561199057611990613874565b6040519080825280601f01601f1916602001820160405280156119ba576020820181803683370190505b5090505b8415611684576119cf60018361376f565b91506119dc600a86613808565b6119e7906030613724565b60f81b8183815181106119fc576119fc61385e565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611a36600a8661373c565b94506119be565b60606000604051602001611ae6907f3c7376672077696474683d223130323422206865696768743d2231303234222081527f76696577426f783d22302030203130323420313032342220786d6c6e733d226860208201527f7474703a2f2f7777772e77332e6f72672f323030302f7376672220736861706560408201527f2d72656e646572696e673d2263726973704564676573223e0a00000000000000606082015260790190565b604051602081830303815290604052905060006040518060c001604052806040518060400160405280600781526020017f234535303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646384430300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646454530300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233032383132310000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030344346460000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2337373030383800000000000000000000000000000000000000000000000000815250815250905060006040518060c001604052806040518060400160405280600781526020017f234436323830300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646394235360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020016611a3232323232360c91b81525081526020016040518060400160405280600781526020017f234434363241360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2341343030363200000000000000000000000000000000000000000000000000815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c001604052806040518060400160405280600781526020017f234645373641320000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020016611a3232323232360c91b81525081526020016040518060400160405280600781526020017f234246313244370000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2333303343424500000000000000000000000000000000000000000000000000815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c0016040528060405180604001604052806007815260200166119aa121a3232160c91b8152508152602001604051806040016040528060078152602001662346354142423960c81b81525081526020016040518060400160405280600781526020016611a3232323232360c91b8152508152602001604051806040016040528060078152602001662346354142423960c81b815250815260200160405180604001604052806007815260200166119aa121a3232160c91b815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c00160405280604051806040016040528060078152602001660234436303237360cc1b8152508152602001604051806040016040528060078152602001660234436303237360cc1b81525081526020016040518060400160405280600781526020017f23394234463936000000000000000000000000000000000000000000000000008152508152602001604051806040016040528060078152602001660466060667082760cb1b8152508152602001604051806040016040528060078152602001660466060667082760cb1b815250815260200160405180604001604052806002815260200161023360f41b815250815250905060006040518060c001604052806040518060400160405280600781526020016608d1918c50ce1160ca1b81525081526020016040518060400160405280600781526020016608d1918c50ce1160ca1b8152508152602001604051806040016040528060078152602001660234646443730360cc1b8152508152602001604051806040016040528060078152602001660234646443730360cc1b8152508152602001604051806040016040528060078152602001661198a0a119a32360c91b8152508152602001604051806040016040528060078152602001661198a0a119a32360c91b8152508152509050606060006121bc8b6125cd565b90506121c9601482613808565b6121e0576121d98b600589612600565b915061226d565b6121eb606482613808565b600214156121ff576121d98b600588612600565b61220a60c882613808565b6003141561221e576121d98b600587612600565b61222a61012c82613808565b6004141561223e576121d98b600586612600565b61224a61019082613808565b6005141561225e576121d98b600685612600565b61226a8b60068a612600565b91505b88826040516020016122809291906131ed565b6040516020818303038152906040529950505050505050505050919050565b60608151600014156122bf57505060408051602081019091526000815290565b60006040518060600160405280604081526020016138b660409139905060006003845160026122ee9190613724565b6122f8919061373c565b612303906004613750565b90506000612312826020613724565b67ffffffffffffffff81111561232a5761232a613874565b6040519080825280601f01601f191660200182016040528015612354576020820181803683370190505b509050818152600183018586518101602084015b818310156123c0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612368565b6003895106600181146123da57600281146124065761242e565b7f3d3d00000000000000000000000000000000000000000000000000000000000060011983015261242e565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61249784848461168c565b6124a3848484846126f3565b6110a65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610587565b6001600160a01b0383166125705761256b81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612593565b816001600160a01b0316836001600160a01b031614612593576125938382612856565b6001600160a01b0382166125aa576106d9816128f3565b826001600160a01b0316826001600160a01b0316146106d9576106d982826129a2565b6000816040516020016125e291815260200190565b60408051601f19818403018152919052805160209091012092915050565b6060600061260d856129e6565b9050600060405160200161266a907f3c726563742077696474683d223130323422206865696768743d22313032342281527f2066696c6c3d222337314243453122202f3e0a00000000000000000000000000602082015260330190565b604051602081830303815290604052905060005b858110156126e957818386836006811061269a5761269a61385e565b60200201516126b26126ad856036613750565b61190b565b6040516020016126c59493929190613302565b604051602081830303815290604052915080806126e1906137ed565b91505061267e565b5095945050505050565b60006001600160a01b0384163b1561284b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127379033908990889088906004016136d5565b602060405180830381600087803b15801561275157600080fd5b505af1925050508015612781575060408051601f3d908101601f1916820190925261277e91810190613126565b60015b612831573d8080156127af576040519150601f19603f3d011682016040523d82523d6000602084013e6127b4565b606091505b5080516128295760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610587565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611684565b506001949350505050565b6000600161286384610d4b565b61286d919061376f565b6000838152600860205260409020549091508082146128c0576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906129059060019061376f565b6000838152600a60205260408120546009805493945090928490811061292d5761292d61385e565b90600052602060002001549050806009838154811061294e5761294e61385e565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061298657612986613848565b6001900381819060005260206000200160009055905550505050565b60006129ad83610d4b565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b606060006129f3836125cd565b90506000600a612a01612eb1565b60646000612a1060018561376f565b600a612a1f6104006008613750565b612a29919061373c565b612a33919061373c565b90506000612a4260038361373c565b90506000612a5160028361373c565b6002612a5e60018961376f565b612a689086613750565b612a749061040061376f565b612a7e919061373c565b612a88919061376f565b6000975090506103805b86881015612ba5576000612aa6848b613808565b612ab0868b613750565b612aba9085613724565b612ac49190613724565b878a600a8110612ad657612ad661385e565b602002015152612ae58a6125cd565b9950612af260028361373c565b861015612b3557600a612b05878461376f565b612b10906008613750565b612b1a919061373c565b612b24908b613808565b612b2e9087613724565b9050612b63565b600a612b42876008613750565b612b4c919061373c565b612b56908b613808565b612b60908761376f565b90505b80878a600a8110612b7657612b7661385e565b60200201516020018181525050809550612b8f8a6125cd565b9950508780612b9d906137ed565b985050612a92565b6060612bd360028860016020020151518960005b602002015151612bc99190613724565b6126ad919061373c565b6020808901510151612bf9906002908a60005b602002015160200151612bc99190613724565b604051602001612c0a9291906135e6565b6040516020818303038152906040529050600198505b612c2b60018961376f565b891015612e1e578089600114612c5a57604051806040016040528060018152602001600b60fa1b815250612c91565b6040518060400160405280600281526020017f20510000000000000000000000000000000000000000000000000000000000008152505b612cb1898c600a8110612ca657612ca661385e565b60200201515161190b565b612cd48a8d600a8110612cc657612cc661385e565b60200201516020015161190b565b604051602001612ce79493929190613244565b60408051601f198184030181529190529050612d0460028961376f565b891415612d725780612d2b88612d1b8c6001613724565b600a8110612ca657612ca661385e565b612d4a89612d3a8d6001613724565b600a8110612cc657612cc661385e565b604051602001612d5c939291906132a8565b6040516020818303038152906040529050612e0c565b80612dac600289612d848d6001613724565b600a8110612d9457612d9461385e565b6020020151518a8d600a8110612bb957612bb961385e565b612de860028a612dbd8e6001613724565b600a8110612dcd57612dcd61385e565b6020020151602001518b8e600a8110612be657612be661385e565b604051602001612dfa939291906132a8565b60405160208183030381529060405290505b88612e16816137ed565b995050612c20565b9b9a5050505050505050505050565b828054612e39906137b2565b90600052602060002090601f016020900481019282612e5b5760008555612ea1565b82601f10612e7457805160ff1916838001178555612ea1565b82800160010185558215612ea1579182015b82811115612ea1578251825591602001919060010190612e86565b50612ead929150612eeb565b5090565b604051806101400160405280600a905b6040805180820190915260008082526020820152815260200190600190039081612ec15790505090565b5b80821115612ead5760008155600101612eec565b600067ffffffffffffffff80841115612f1b57612f1b613874565b604051601f8501601f19908116603f01168101908282118183101715612f4357612f43613874565b81604052809350858152868686011115612f5c57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612f8857600080fd5b81356111b18161388a565b600060208284031215612fa557600080fd5b81516111b18161388a565b60008060408385031215612fc357600080fd5b8235612fce8161388a565b91506020830135612fde8161388a565b809150509250929050565b600080600060608486031215612ffe57600080fd5b83356130098161388a565b925060208401356130198161388a565b929592945050506040919091013590565b6000806000806080858703121561304057600080fd5b843561304b8161388a565b9350602085013561305b8161388a565b925060408501359150606085013567ffffffffffffffff81111561307e57600080fd5b8501601f8101871361308f57600080fd5b61309e87823560208401612f00565b91505092959194509250565b600080604083850312156130bd57600080fd5b82356130c88161388a565b915060208301358015158114612fde57600080fd5b600080604083850312156130f057600080fd5b82356130fb8161388a565b946020939093013593505050565b60006020828403121561311b57600080fd5b81356111b18161389f565b60006020828403121561313857600080fd5b81516111b18161389f565b60006020828403121561315557600080fd5b813567ffffffffffffffff81111561316c57600080fd5b8201601f8101841361317d57600080fd5b61168484823560208401612f00565b60006020828403121561319e57600080fd5b5035919050565b600081518084526131bd816020860160208601613786565b601f01601f19169290920160200192915050565b600081516131e3818560208601613786565b9290920192915050565b600083516131ff818460208801613786565b835190830190613213818360208801613786565b7f3c2f7376673e00000000000000000000000000000000000000000000000000009101908152600601949350505050565b60008551613256818460208a01613786565b85519083019061326a818360208a01613786565b855191019061327d818360208901613786565b600b60fa1b9101908152835161329a816001840160208801613786565b016001019695505050505050565b600084516132ba818460208901613786565b8083019050600b60fa1b80825285516132da816001850160208a01613786565b600192019182015283516132f5816002840160208801613786565b0160020195945050505050565b60008551613314818460208a01613786565b7f3c7061746820643d220000000000000000000000000000000000000000000000908301908152855161334e816009840160208a01613786565b7f222066696c6c3d227472616e73706172656e7422207374726f6b653d2200000060099290910191820152845161338c816026840160208901613786565b7f22207374726f6b652d77696474683d22363422207374726f6b652d6c696e6563602692909101918201527f61703d22726f756e6422207472616e73666f726d3d227472616e736c6174652860468201527f302c00000000000000000000000000000000000000000000000000000000000060668201528351613416816068840160208801613786565b7f29222f3e0a00000000000000000000000000000000000000000000000000000060689290910191820152606d019695505050505050565b7f7b226e616d65223a22000000000000000000000000000000000000000000000081526000845160206134878260098601838a01613786565b7f222c20226465736372697074696f6e223a2200000000000000000000000000006009928501928301528554601b90600090600181811c90808316806134ce57607f831692505b8683108114156134ec57634e487b7160e01b85526022600452602485fd5b808015613500576001811461351557613546565b60ff1985168988015283890187019550613546565b60008d81526020902060005b8581101561353c5781548b82018a0152908401908901613521565b505086848a010195505b50505050506135d96135b06135aa613581847f222c2022696d616765223a2022000000000000000000000000000000000000008152600d0190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152601a0190565b896131d1565b7f227d000000000000000000000000000000000000000000000000000000000000815260020190565b9998505050505050505050565b7f4d0000000000000000000000000000000000000000000000000000000000000081526000835161361e816001850160208801613786565b600b60fa1b600191840191820152835161363f816002840160208801613786565b01600201949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161368381601d850160208701613786565b91909101601d0192915050565b7f5072696465205371756967676c652023000000000000000000000000000000008152600082516136c8816010850160208701613786565b9190910160100192915050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261370760808301846131a5565b9695505050505050565b6020815260006111b160208301846131a5565b600082198211156137375761373761381c565b500190565b60008261374b5761374b613832565b500490565b600081600019048311821515161561376a5761376a61381c565b500290565b6000828210156137815761378161381c565b500390565b60005b838110156137a1578181015183820152602001613789565b838111156110a65750506000910152565b600181811c908216806137c657607f821691505b602082108114156137e757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138015761380161381c565b5060010190565b60008261381757613817613832565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461129757600080fd5b6001600160e01b03198116811461129757600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122003caa6df14b1f16f0367ace5c2ef67459ec6b1bb36233b7104a322551dfe1dd364736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000640000000000000000000000006a615ca8d7053c0a0de2d11cacb6f321ca63bd62000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _limit (uint256): 100
Arg [1] : _developer (address): 0x6a615Ca8D7053c0A0De2d11CACB6f321CA63BD62
Arg [2] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [1] : 0000000000000000000000006a615ca8d7053c0a0de2d11cacb6f321ca63bd62
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Loading...
Loading
Loading...
Loading
[ 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.