Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,364 TEXT
Holders
542
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 TEXTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TextLogoElement
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '../common/ERC721A.sol'; import '../common/LogoHelper.sol'; import './SvgText.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; interface IDescriptor { function txtVals(uint256 tokenId) external view returns (string memory); function txtFonts(uint256 tokenId) external view returns (string memory link, string memory name); function getSvg(uint256 tokenId) external view returns (string memory); function getSvg(uint256 tokenId, string memory txt, string memory font, string memory fontLink) external view returns (string memory); function getSvgFromSeed(uint256 seed, string memory txt, string memory font, string memory fontLink) external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); function setTxtVal(uint256 tokenId, string memory val) external; function setFont(uint256 tokenId, string memory link, string memory font) external; } contract TextLogoElement is ERC721A, ReentrancyGuard, Ownable { /// @notice Permanently seals the contract from being modified by owner bool public contractSealed; address public descriptorAddress; IDescriptor public descriptor; bool public mintIsActive = false; uint256 price = 0 ether; modifier onlyWhileUnsealed() { require(!contractSealed, "Contract is sealed"); _; } constructor() ERC721A('Text by Logo', 'TEXT', 100) Ownable() { } /// @notice Sets price for mint, initially set at 0 ether /// @param _price, the new price function setPrice(uint256 _price) external onlyOwner onlyWhileUnsealed { price = _price; } function setDescriptorAddress(address _address) external onlyOwner onlyWhileUnsealed { descriptorAddress = _address; descriptor = IDescriptor(_address); } function mint(uint256 quantity) external payable nonReentrant { require(mintIsActive, 'Mint is not active'); require(totalSupply() + quantity <= 20000, 'Exceeded supply'); require(quantity <= 2, 'Only 2 tokens can be minted at once'); require(msg.value == price * quantity, 'Incorrect eth amount sent'); require(msg.sender == tx.origin, 'Contract cannot mint'); _safeMint(msg.sender, quantity); } /// @notice Owner mint, allows owner to mint tokens up to 100 at a time /// @param to, the address to mint to /// @param quantity, number of tokens to mint function mintAdmin(address to, uint256 quantity) external onlyOwner nonReentrant { require(totalSupply() + quantity <= 20000, "Exceeded Supply"); _safeMint(to, quantity); } /// @notice Toggles the mint state function toggleMint() external onlyOwner onlyWhileUnsealed { mintIsActive = !mintIsActive; } /// @notice Specifies whether or not non-owners can use a token for their logo layer /// @dev Required for any element used for a logo layer function mustBeOwnerForLogo() external view returns (bool) { return true; } /// @notice Gets the SVG for the logo layer /// @dev Required for any element used for a logo layer /// @param tokenId, the tokenId that SVG will be fetched for function getSvg(uint256 tokenId) public view returns (string memory) { return descriptor.getSvg(tokenId); } function getSvg(uint256 tokenId, string memory txt, string memory font, string memory fontLink) public view returns (string memory) { return descriptor.getSvg(tokenId, txt, font, fontLink); } function getSvgFromSeed(uint256 seed, string memory txt, string memory font, string memory fontLink) public view returns (string memory) { return descriptor.getSvgFromSeed(seed, txt, font, fontLink); } function tokenURI(uint256 tokenId) override public view returns (string memory) { return descriptor.tokenURI(tokenId); } function getTxtVal(uint256 tokenId) public view returns (string memory) { return descriptor.txtVals(tokenId); } function getTxtFont(uint256 tokenId) public view returns (string memory link, string memory name) { (link, name) = descriptor.txtFonts(tokenId); return (link, name); } function setTxtVal(uint256 tokenId, string memory val) public { descriptor.setTxtVal(tokenId, val); } function setFont(uint256 tokenId, string memory link, string memory font) public { descriptor.setFont(tokenId, link, font); } function sendValue(address payable recipient, uint256 amount) external onlyOwner { 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'); } /// @notice Permananetly seals the contract from being modified function sealContract() external onlyOwner { contractSealed = true; } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; 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/token/ERC721/extensions/IERC721Enumerable.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 and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: 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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LogoHelper { function getRotate(string memory text) public pure returns (string memory) { bytes memory byteString = bytes(text); string memory rotate = string(abi.encodePacked('-', toString(random(text) % 10 + 1))); for (uint i=1; i < byteString.length; i++) { uint nextRotate = random(rotate) % 10 + 1; if (i % 2 == 0) { rotate = string(abi.encodePacked(rotate, ',-', toString(nextRotate))); } else { rotate = string(abi.encodePacked(rotate, ',', toString(nextRotate))); } } return rotate; } function getTurbulance(string memory seed, uint max, uint magnitudeOffset) public pure returns (string memory) { string memory turbulance = decimalInRange(seed, max, magnitudeOffset); uint rand = randomInRange(turbulance, max, 0); return string(abi.encodePacked(turbulance, ', ', getDecimal(rand, magnitudeOffset))); } function decimalInRange(string memory seed, uint max, uint magnitudeOffset) public pure returns (string memory) { uint rand = randomInRange(seed, max, 0); return getDecimal(rand, magnitudeOffset); } // CORE HELPERS // function random(string memory input) public pure returns (uint256) { return uint256(keccak256(abi.encodePacked(input))); } function randomFromInt(uint256 seed) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(seed))); } function randomInRange(string memory input, uint max, uint offset) public pure returns (uint256) { max = max - offset; return (random(input) % max) + offset; } function equal(string memory a, string memory b) public pure returns (bool) { return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } function toString(uint256 value) public pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } function toString(address x) internal pure returns (string memory) { bytes memory s = new bytes(40); for (uint i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint(uint160(x)) / (2**(8*(19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2*i] = char(hi); s[2*i+1] = char(lo); } return string(s); } function char(bytes1 b) internal pure returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function getDecimal(uint val, uint magnitudeOffset) public pure returns (string memory) { string memory decimal; if (val != 0) { for (uint i = 10; i < magnitudeOffset / val; i=10*i) { decimal = string(abi.encodePacked(decimal, '0')); } } decimal = string(abi.encodePacked('0.', decimal, toString(val))); return decimal; } bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT /// @title Text Logo Elements /// @notice On-chain SVG pragma solidity ^0.8.0; import '../common/SvgFill.sol'; import '../common/SvgElement.sol'; import '../common/LogoHelper.sol'; library SvgText { struct Font { string link; string name; } struct Text { string id; string class; string val; string textType; Font font; uint256 size; string paletteName; SvgFill.Fill[] fills; bool animate; } function getSvgDefs(string memory seed, Text memory text) public pure returns (string memory) { string memory defs = ''; for (uint i = 0; i < text.fills.length; i++) { defs = string(abi.encodePacked(defs, SvgFill.getFillDefs(seed, text.fills[i]))); } if (LogoHelper.equal(text.textType, 'Rug Pull')) { uint256[] memory ys = getRugPullY(text); for (uint8 i = 0; i < 4; i++) { string memory path = SvgElement.getRect(SvgElement.Rect('', '', LogoHelper.toString(ys[i] + 3), '100%', '100%', '', '', '')); string memory id = string(abi.encodePacked('clip-', LogoHelper.toString(i))); defs = string(abi.encodePacked(defs, SvgElement.getClipPath(SvgElement.ClipPath(id, path)))); } } return defs; } // TEXT // function getSvgStyles(Text memory text) public pure returns (string memory) { string memory styles = !LogoHelper.equal(text.font.link, '') ? string(abi.encodePacked('@import url(', text.font.link, '); ')) : ''; styles = string(abi.encodePacked(styles, '.', text.class, ' { font-family:', text.font.name, '; font-size: ', LogoHelper.toString(text.size), 'px; font-weight: 800; } ')); for (uint i=0; i < text.fills.length; i++) { styles = string(abi.encodePacked(styles, SvgFill.getFillStyles(text.fills[i]))); } return styles; } function getSvgContent(Text memory text) public pure returns (string memory) { string memory content = ''; if (LogoHelper.equal(text.textType, 'Plain')) { content = SvgElement.getText(SvgElement.Text(text.class, '50%', '50%', '', '', '', 'central', 'middle', '', '', '', text.val)); } else if (LogoHelper.equal(text.textType, 'Rug Pull')) { content = getRugPullContent(text); } else if (LogoHelper.equal(text.textType, 'Mailbox') || LogoHelper.equal(text.textType, 'Warped Mailbox')) { uint8 iterations = LogoHelper.equal(text.textType, 'Mailbox') ? 2 : 30; for (uint8 i = 0; i < iterations; i++) { content = string(abi.encodePacked(content, SvgElement.getText(SvgElement.Text(string(abi.encodePacked(text.class, ' ', text.fills[i % text.fills.length].class)), '50%', '50%', LogoHelper.toString(iterations - i), LogoHelper.toString(iterations - i), '', 'central', 'middle', '', '', '', text.val)))); } content = string(abi.encodePacked(content, SvgElement.getText(SvgElement.Text(string(abi.encodePacked(text.class, ' ', text.fills[text.fills.length - 1].class)), '50%', '50%', '', '', '', 'central', 'middle', '', '', '', text.val)))); } else if (LogoHelper.equal(text.textType, 'NGMI')) { string memory rotate = LogoHelper.getRotate(text.val); content = SvgElement.getText(SvgElement.Text(text.class, '50%', '50%', '', '', '', 'central', 'middle', rotate, '', '', text.val)); } return content; } function getRugPullContent(Text memory text) public pure returns (string memory) { // get first animation y via y_prev = (y of txt 1) - font size / 2) // next animation goes to y_prev + (font size / 3) // clip path is txt elemnt y + 3 string memory content = ''; uint256[] memory ys = getRugPullY(text); string memory element = SvgElement.getAnimate(SvgElement.Animate('y', LogoHelper.toString(ys[4]), '', '2600', '0', '1', 'freeze')); element = string(abi.encodePacked(text.val, element)); element = SvgElement.getText(SvgElement.Text(text.class, '50%', LogoHelper.toString(ys[0]), '', '', '', 'alphabetic', 'middle', '', '', 'clip-3', element)); content = element; element = SvgElement.getAnimate(SvgElement.Animate('y', LogoHelper.toString(ys[3]), '', '2400', '0', '1', 'freeze')); element = string(abi.encodePacked(text.val, element)); element = SvgElement.getText(SvgElement.Text(text.class, '50%', LogoHelper.toString(ys[0]), '', '', '', 'alphabetic', 'middle', '', '', 'clip-2', element)); content = string(abi.encodePacked(content, element)); element = SvgElement.getAnimate(SvgElement.Animate('y', LogoHelper.toString(ys[2]), '', '2200', '0', '1', 'freeze')); element = string(abi.encodePacked(text.val, element)); element = SvgElement.getText(SvgElement.Text(text.class, '50%', LogoHelper.toString(ys[0]), '', '', '', 'alphabetic', 'middle', '', '', 'clip-1', element)); content = string(abi.encodePacked(content, element)); element = SvgElement.getAnimate(SvgElement.Animate('y', LogoHelper.toString(ys[1]), '', '2000', '0', '1', 'freeze')); element = string(abi.encodePacked(text.val, element)); element = SvgElement.getText(SvgElement.Text(text.class, '50%', LogoHelper.toString(ys[0]), '', '', '', 'alphabetic', 'middle', '', '', 'clip-0', element)); content = string(abi.encodePacked(content, element)); return string(abi.encodePacked(content, SvgElement.getText(SvgElement.Text(text.class, '50%', LogoHelper.toString(ys[0]), '', '', '', 'alphabetic', 'middle', '', '', '', text.val)))); } function getRugPullY(Text memory text) public pure returns (uint256[] memory) { uint256[] memory ys = new uint256[](5); uint256 y = (text.size - (text.size / 4)) + (text.size / 2) + (text.size / 3) + (text.size / 4) + (text.size / 5); y = ((300 - y) / 2) + (text.size - (text.size / 4)); ys[0] = y; y = y + text.size / 2; ys[1] = y; y = y + text.size / 3; ys[2] = y; y = y + text.size / 4; ys[3] = y; y = y + text.size / 5; ys[4] = y; return ys; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 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 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './SvgElement.sol'; import './LogoHelper.sol'; library SvgFill { struct Fill { string id; string class; string fillType; string[] colors; bool animate; } // FILL // function getFillDefs(string memory seed, Fill memory fill) public pure returns (string memory) { string memory defs = ''; if (LogoHelper.equal(fill.fillType, 'Linear Gradient') || LogoHelper.equal(fill.fillType, 'Blocked Linear Gradient')) { if (!fill.animate) { defs = SvgElement.getLinearGradient(SvgElement.LinearGradient(fill.id, fill.colors, LogoHelper.equal(fill.fillType, 'Blocked Linear Gradient'), '')); } else { string memory val = LogoHelper.toString(LogoHelper.randomInRange(seed, 100 , 0)); string memory values = string(abi.encodePacked(val, '%;', LogoHelper.toString(LogoHelper.randomInRange(string(abi.encodePacked(seed, 'a')), 100 , 0)), '%;', val, '%;')); val = LogoHelper.toString(LogoHelper.randomInRange(seed, 50000 , 5000)); defs = SvgElement.getLinearGradient(SvgElement.LinearGradient(fill.id, fill.colors, LogoHelper.equal(fill.fillType, 'Blocked Linear Gradient'), SvgElement.getAnimate(SvgElement.Animate(getLinearAnimationType(seed), '', values, val, '0', getAnimationRepeat(seed), 'freeze')))); } } else if (LogoHelper.equal(fill.fillType, 'Radial Gradient') || LogoHelper.equal(fill.fillType, 'Blocked Radial Gradient')) { if (!fill.animate) { defs = SvgElement.getRadialGradient(SvgElement.RadialGradient(fill.id, fill.colors, LogoHelper.equal(fill.fillType, 'Blocked Radial Gradient'), '')); } else { string memory val = LogoHelper.toString(LogoHelper.randomInRange(seed, 100, 0)); string memory values = string(abi.encodePacked(val, '%;', LogoHelper.toString(LogoHelper.randomInRange(string(abi.encodePacked(seed, 'a')), 100 , 0)), '%;', val, '%;')); val = LogoHelper.toString(LogoHelper.randomInRange(seed, 10000 , 5000)); defs = SvgElement.getRadialGradient(SvgElement.RadialGradient(fill.id, fill.colors, LogoHelper.equal(fill.fillType, 'Blocked Radial Gradient'), SvgElement.getAnimate(SvgElement.Animate(getRadialAnimationType(seed), '', values, val, '0', getAnimationRepeat(seed), 'freeze')))); } } return defs; } function getFillStyles(Fill memory fill) public pure returns (string memory) { if (LogoHelper.equal(fill.fillType, 'Solid')) { return string(abi.encodePacked('.', fill.class, ' { fill: ', fill.colors[0], ' } ')); } else if (LogoHelper.equal(fill.fillType, 'Linear Gradient') || LogoHelper.equal(fill.fillType, 'Radial Gradient') || LogoHelper.equal(fill.fillType, 'Blocked Linear Gradient') || LogoHelper.equal(fill.fillType, 'Blocked Radial Gradient')) { return string(abi.encodePacked('.', fill.class, ' { fill: url(#', fill.id, ') } ')); } string memory styles = ''; return styles; } function getLinearAnimationType(string memory seed) private pure returns (string memory) { string[4] memory types = ['x1', 'x2', 'y1', 'y2']; return types[LogoHelper.random(seed) % types.length]; } function getRadialAnimationType(string memory seed) private pure returns (string memory) { string[3] memory types = ['fx', 'fy', 'r']; return types[LogoHelper.random(seed) % types.length]; } function getAnimationRepeat(string memory seed) private pure returns (string memory) { string[3] memory types = ['indefinite', '1', '2']; return types[LogoHelper.random(seed) % types.length]; } }
// SPDX-License-Identifier: MIT /// @notice Helper to build svg elements pragma solidity ^0.8.0; library SvgElement { struct Rect { string class; string x; string y; string width; string height; string opacity; string fill; string filter; } function getRect(Rect memory rect) public pure returns (string memory) { string memory element = '<rect '; element = !equal(rect.class, '') ? string(abi.encodePacked(element, 'class="', rect.class, '" ')) : element; element = !equal(rect.x, '') ? string(abi.encodePacked(element, 'x="', rect.x, '" ')) : element; element = !equal(rect.y, '') ? string(abi.encodePacked(element, 'y="', rect.y, '" ')) : element; element = !equal(rect.width, '') ? string(abi.encodePacked(element, 'width="', rect.width, '" ')) : element; element = !equal(rect.height, '') ? string(abi.encodePacked(element, 'height="', rect.height, '" ')) : element; element = !equal(rect.opacity, '') ? string(abi.encodePacked(element, 'opacity="', rect.opacity, '" ')) : element; element = !equal(rect.fill, '') ? string(abi.encodePacked(element, 'fill="url(#', rect.fill, ')" ')) : element; element = !equal(rect.filter, '') ? string(abi.encodePacked(element, 'filter="url(#', rect.filter, ')" ')) : element; element = string(abi.encodePacked(element, '/>')); return element; } struct Circle { string class; string cx; string cy; string r; string opacity; } function getCircle(Circle memory circle) public pure returns (string memory) { string memory element = '<circle '; element = !equal(circle.class, '') ? string(abi.encodePacked(element, 'class="', circle.class, '" ')) : element; element = !equal(circle.cx, '') ? string(abi.encodePacked(element, 'cx="', circle.cx, '" ')) : element; element = !equal(circle.cy, '') ? string(abi.encodePacked(element, 'cy="', circle.cy, '" ')) : element; element = !equal(circle.r, '') ? string(abi.encodePacked(element, 'r="', circle.r, '" ')) : element; element = !equal(circle.opacity, '') ? string(abi.encodePacked(element, 'opacity="', circle.opacity, '" ')) : element; element = string(abi.encodePacked(element, '/>')); return element; } struct Text { string class; string x; string y; string dx; string dy; string display; string baseline; string anchor; string rotate; string transform; string clipPath; string val; } function getText(Text memory txt) public pure returns (string memory) { string memory element = '<text '; element = !equal(txt.class, '') ? string(abi.encodePacked(element, 'class="', txt.class, '" ')) : element; element = !equal(txt.x, '') ? string(abi.encodePacked(element, 'x="', txt.x, '" ')) : element; element = !equal(txt.y, '') ? string(abi.encodePacked(element, 'y="', txt.y, '" ')) : element; element = !equal(txt.dx, '') ? string(abi.encodePacked(element, 'dx="', txt.dx, '" ')) : element; element = !equal(txt.dy, '') ? string(abi.encodePacked(element, 'dy="', txt.dy, '" ')) : element; element = !equal(txt.display, '') ? string(abi.encodePacked(element, 'display="', txt.display, '" ')) : element; element = !equal(txt.baseline, '') ? string(abi.encodePacked(element, 'dominant-baseline="', txt.baseline, '" ')) : element; element = !equal(txt.anchor, '') ? string(abi.encodePacked(element, 'text-anchor="', txt.anchor, '" ')) : element; element = !equal(txt.rotate, '') ? string(abi.encodePacked(element, 'rotate="', txt.rotate, '" ')) : element; element = !equal(txt.transform, '') ? string(abi.encodePacked(element, 'transform="', txt.transform, '" ')) : element; element = !equal(txt.clipPath, '') ? string(abi.encodePacked(element, 'clip-path="url(#', txt.clipPath, ')" ')) : element; element = string(abi.encodePacked(element, '>', txt.val, '</text>')); return element; } struct TextPath { string class; string href; string val; } function getTextPath(TextPath memory txtPath) public pure returns (string memory) { string memory element = '<textPath '; element = !equal(txtPath.class, '') ? string(abi.encodePacked(element, 'class="', txtPath.class, '" ')) : element; element = !equal(txtPath.class, '') ? string(abi.encodePacked(element, 'href="#', txtPath.href, '" ')) : element; element = string(abi.encodePacked(element, '>', txtPath.val, '</textPath>')); return element; } struct Tspan { string class; string display; string dx; string dy; string val; } function getTspan(Tspan memory tspan) public pure returns (string memory) { string memory element = '<tspan '; element = !equal(tspan.class, '') ? string(abi.encodePacked(element, 'class="', tspan.class, '" ')) : element; element = !equal(tspan.display, '') ? string(abi.encodePacked(element, 'display="', tspan.display, '" ')) : element; element = !equal(tspan.dx, '') ? string(abi.encodePacked(element, 'dx="', tspan.dx, '" ')) : element; element = !equal(tspan.dy, '') ? string(abi.encodePacked(element, 'dy="', tspan.dy, '" ')) : element; element = string(abi.encodePacked(element, '>', tspan.val, '</tspan>')); return element; } struct Animate { string attributeName; string to; string values; string duration; string begin; string repeatCount; string fill; } function getAnimate(Animate memory animate) public pure returns (string memory) { string memory element = '<animate '; element = !equal(animate.attributeName, '') ? string(abi.encodePacked(element, 'attributeName="', animate.attributeName, '" ')) : element; element = !equal(animate.to, '') ? string(abi.encodePacked(element, 'to="', animate.to, '" ')) : element; element = !equal(animate.values, '') ? string(abi.encodePacked(element, 'values="', animate.values, '" ')) : element; element = !equal(animate.duration, '') ? string(abi.encodePacked(element, 'dur="', animate.duration, 'ms" ')) : element; element = !equal(animate.begin, '') ? string(abi.encodePacked(element, 'begin="', animate.begin, 'ms" ')) : element; element = !equal(animate.repeatCount, '') ? string(abi.encodePacked(element, 'repeatCount="', animate.repeatCount, '" ')) : element; element = !equal(animate.fill, '') ? string(abi.encodePacked(element, 'fill="', animate.fill, '" ')) : element; element = string(abi.encodePacked(element, '/>')); return element; } struct Path { string id; string pathAttr; string val; } function getPath(Path memory path) public pure returns (string memory) { string memory element = '<path '; element = !equal(path.id, '') ? string(abi.encodePacked(element, 'id="', path.id, '" ')) : element; element = !equal(path.pathAttr, '') ? string(abi.encodePacked(element, 'd="', path.pathAttr, '" ')) : element; element = string(abi.encodePacked(element, '>', path.val, '</path>')); return element; } struct Group { string transform; string val; } function getGroup(Group memory group) public pure returns (string memory) { string memory element = '<g '; element = !equal(group.transform, '') ? string(abi.encodePacked(element, 'transform="', group.transform, '" ')) : element; element = string(abi.encodePacked(element, '>', group.val, '</g>')); return element; } struct Pattern { string id; string x; string y; string width; string height; string patternUnits; string val; } function getPattern(Pattern memory pattern) public pure returns (string memory) { string memory element = '<pattern '; element = !equal(pattern.id, '') ? string(abi.encodePacked(element, 'id="', pattern.id, '" ')) : element; element = !equal(pattern.x, '') ? string(abi.encodePacked(element, 'x="', pattern.x, '" ')) : element; element = !equal(pattern.y, '') ? string(abi.encodePacked(element, 'y="', pattern.y, '" ')) : element; element = !equal(pattern.width, '') ? string(abi.encodePacked(element, 'width="', pattern.width, '" ')) : element; element = !equal(pattern.height, '') ? string(abi.encodePacked(element, 'height="', pattern.height, '" ')) : element; element = !equal(pattern.patternUnits, '') ? string(abi.encodePacked(element, 'patternUnits="', pattern.patternUnits, '" ')) : element; element = string(abi.encodePacked(element, '>', pattern.val, '</pattern>')); return element; } struct Filter { string id; string val; } function getFilter(Filter memory filter) public pure returns (string memory) { string memory element = '<filter '; element = !equal(filter.id, '') ? string(abi.encodePacked(element, 'id="', filter.id, '" ')) : element; element = string(abi.encodePacked(element, '>', filter.val, '</filter>')); return element; } struct Turbulance { string fType; string baseFrequency; string octaves; string result; string val; } function getTurbulance(Turbulance memory turbulance) public pure returns (string memory) { string memory element = '<feTurbulence '; element = !equal(turbulance.fType, '') ? string(abi.encodePacked(element, 'type="', turbulance.fType, '" ')) : element; element = !equal(turbulance.baseFrequency, '') ? string(abi.encodePacked(element, 'baseFrequency="', turbulance.baseFrequency, '" ')) : element; element = !equal(turbulance.octaves, '') ? string(abi.encodePacked(element, 'numOctaves="', turbulance.octaves, '" ')) : element; element = !equal(turbulance.result, '') ? string(abi.encodePacked(element, 'result="', turbulance.result, '" ')) : element; element = string(abi.encodePacked(element, '>', turbulance.val, '</feTurbulence>')); return element; } struct DisplacementMap { string mIn; string in2; string result; string scale; string xChannelSelector; string yChannelSelector; string val; } function getDisplacementMap(DisplacementMap memory displacementMap) public pure returns (string memory) { string memory element = '<feDisplacementMap '; element = !equal(displacementMap.mIn, '') ? string(abi.encodePacked(element, 'in="', displacementMap.mIn, '" ')) : element; element = !equal(displacementMap.in2, '') ? string(abi.encodePacked(element, 'in2="', displacementMap.in2, '" ')) : element; element = !equal(displacementMap.result, '') ? string(abi.encodePacked(element, 'result="', displacementMap.result, '" ')) : element; element = !equal(displacementMap.scale, '') ? string(abi.encodePacked(element, 'scale="', displacementMap.scale, '" ')) : element; element = !equal(displacementMap.xChannelSelector, '') ? string(abi.encodePacked(element, 'xChannelSelector="', displacementMap.xChannelSelector, '" ')) : element; element = !equal(displacementMap.yChannelSelector, '') ? string(abi.encodePacked(element, 'yChannelSelector="', displacementMap.yChannelSelector, '" ')) : element; element = string(abi.encodePacked(element, '>', displacementMap.val, '</feDisplacementMap>')); return element; } struct ClipPath { string id; string val; } function getClipPath(ClipPath memory clipPath) public pure returns (string memory) { string memory element = '<clipPath '; element = !equal(clipPath.id, '') ? string(abi.encodePacked(element, 'id="', clipPath.id, '" ')) : element; element = string(abi.encodePacked(element, ' >', clipPath.val, '</clipPath>')); return element; } struct LinearGradient { string id; string[] colors; bool blockScheme; string animate; } function getLinearGradient(LinearGradient memory linearGradient) public pure returns (string memory) { string memory element = '<linearGradient '; element = !equal(linearGradient.id, '') ? string(abi.encodePacked(element, 'id="', linearGradient.id, '">')) : element; uint baseOffset = 100 / (linearGradient.colors.length - 1); for (uint i=0; i<linearGradient.colors.length; i++) { uint offset; if (i != linearGradient.colors.length - 1) { offset = baseOffset * i; } else { offset = 100; } if (linearGradient.blockScheme && i != 0) { element = string(abi.encodePacked(element, '<stop offset="', toString(offset), '%" stop-color="', linearGradient.colors[i-1], '" />')); } if (!linearGradient.blockScheme || (linearGradient.blockScheme && i != linearGradient.colors.length - 1)) { element = string(abi.encodePacked(element, '<stop offset="', toString(offset), '%" stop-color="', linearGradient.colors[i], '" />')); } } element = !equal(linearGradient.animate, '') ? string(abi.encodePacked(element, linearGradient.animate)) : element; element = string(abi.encodePacked(element, '</linearGradient>')); return element; } struct RadialGradient { string id; string[] colors; bool blockScheme; string animate; } function getRadialGradient(RadialGradient memory radialGradient) public pure returns (string memory) { string memory element = '<radialGradient '; element = !equal(radialGradient.id, '') ? string(abi.encodePacked(element, 'id="', radialGradient.id, '">')) : element; uint baseOffset = 100 / (radialGradient.colors.length - 1); for (uint i=0; i<radialGradient.colors.length; i++) { uint offset; if (i != radialGradient.colors.length - 1) { offset = baseOffset * i; } else { offset = 100; } if (radialGradient.blockScheme && i != 0) { element = string(abi.encodePacked(element, '<stop offset="', toString(offset), '%" stop-color="', radialGradient.colors[i-1], '" />')); } if (!radialGradient.blockScheme || (radialGradient.blockScheme && i != radialGradient.colors.length - 1)) { element = string(abi.encodePacked(element, '<stop offset="', toString(offset), '%" stop-color="', radialGradient.colors[i], '" />')); } } element = !equal(radialGradient.animate, '') ? string(abi.encodePacked(element, radialGradient.animate)) : element; element = string(abi.encodePacked(element, '</radialGradient>')); return element; } function equal(string memory a, string memory b) private pure returns (bool) { return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b)); } function toString(uint256 value) private pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"contractSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"contract IDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descriptorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"txt","type":"string"},{"internalType":"string","name":"font","type":"string"},{"internalType":"string","name":"fontLink","type":"string"}],"name":"getSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"string","name":"txt","type":"string"},{"internalType":"string","name":"font","type":"string"},{"internalType":"string","name":"fontLink","type":"string"}],"name":"getSvgFromSeed","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTxtFont","outputs":[{"internalType":"string","name":"link","type":"string"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTxtVal","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mustBeOwnerForLogo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sealContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendValue","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":"address","name":"_address","type":"address"}],"name":"setDescriptorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"link","type":"string"},{"internalType":"string","name":"font","type":"string"}],"name":"setFont","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"val","type":"string"}],"name":"setTxtVal","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":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","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
60a06040526000805560006007556000600b60146101000a81548160ff0219169083151502179055506000600c553480156200003a57600080fd5b506040518060400160405280600c81526020017f54657874206279204c6f676f00000000000000000000000000000000000000008152506040518060400160405280600481526020017f5445585400000000000000000000000000000000000000000000000000000000815250606460008111620000ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000e690620002ff565b60405180910390fd5b82600190805190602001906200010792919062000228565b5081600290805190602001906200012092919062000228565b508060808181525050505050600160088190555062000154620001486200015a60201b60201c565b6200016260201b60201c565b620003e6565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002369062000332565b90600052602060002090601f0160209004810192826200025a5760008555620002a6565b82601f106200027557805160ff1916838001178555620002a6565b82800160010185558215620002a6579182015b82811115620002a557825182559160200191906001019062000288565b5b509050620002b59190620002b9565b5090565b5b80821115620002d4576000816000905550600101620002ba565b5090565b6000620002e760278362000321565b9150620002f48262000397565b604082019050919050565b600060208201905081810360008301526200031a81620002d8565b9050919050565b600082825260208201905092915050565b600060028204905060018216806200034b57607f821691505b6020821081141562000362576200036162000368565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b6080516151596200041060003960008181612aba01528181612ae30152612fb101526151596000f3fe6080604052600436106102305760003560e01c806370a082311161012e578063b6501637116100ab578063d7224ba01161006f578063d7224ba014610852578063df0e72e61461087d578063e985e9c5146108bb578063f2fde38b146108f8578063fcee0a101461092157610230565b8063b650163714610781578063b88d4fde146107ac578063c3a71999146107d5578063c87b56dd146107fe578063d3dd5fe01461083b57610230565b806395d89b41116100f257806395d89b4114610697578063a0712d68146106c2578063a22cb465146106de578063ad8e800c14610707578063b0dc78fa1461074457610230565b806370a08231146105b2578063715018a6146105ef5780638cb83fe8146106065780638da5cb5b1461064357806391b7f5ed1461066e57610230565b80632e2a4690116101bc57806342842e0e1161018057806342842e0e146104cd578063471a4294146104f65780634f6ccce7146105215780636352211e1461055e57806368bd580e1461059b57610230565b80632e2a4690146103e65780632f745c5914610411578063303e74df1461044e57806338c8e485146104795780633b465ea8146104a457610230565b8063166d493a11610203578063166d493a1461030357806318160ddd1461032c57806323b872dd1461035757806324a084df14610380578063273d2e46146103a957610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906137b5565b61094a565b6040516102699190613f9f565b60405180910390f35b34801561027e57600080fd5b50610287610a94565b6040516102949190613fd5565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906138b4565b610b26565b6040516102d19190613f38565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190613779565b610bab565b005b34801561030f57600080fd5b5061032a600480360381019061032591906138dd565b610cc4565b005b34801561033857600080fd5b50610341610d57565b60405161034e91906143ce565b60405180910390f35b34801561036357600080fd5b5061037e60048036038101906103799190613673565b610d60565b005b34801561038c57600080fd5b506103a760048036038101906103a291906135fb565b610d70565b005b3480156103b557600080fd5b506103d060048036038101906103cb91906139b0565b610ee0565b6040516103dd9190613fd5565b60405180910390f35b3480156103f257600080fd5b506103fb610fa2565b6040516104089190613f38565b60405180910390f35b34801561041d57600080fd5b5061043860048036038101906104339190613779565b610fc8565b60405161044591906143ce565b60405180910390f35b34801561045a57600080fd5b506104636111c6565b6040516104709190613fba565b60405180910390f35b34801561048557600080fd5b5061048e6111ec565b60405161049b9190613f9f565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c691906135d2565b6111f5565b005b3480156104d957600080fd5b506104f460048036038101906104ef9190613673565b611346565b005b34801561050257600080fd5b5061050b611366565b6040516105189190613f9f565b60405180910390f35b34801561052d57600080fd5b50610548600480360381019061054391906138b4565b611379565b60405161055591906143ce565b60405180910390f35b34801561056a57600080fd5b50610585600480360381019061058091906138b4565b6113cc565b6040516105929190613f38565b60405180910390f35b3480156105a757600080fd5b506105b06113e2565b005b3480156105be57600080fd5b506105d960048036038101906105d491906135d2565b61147b565b6040516105e691906143ce565b60405180910390f35b3480156105fb57600080fd5b50610604611564565b005b34801561061257600080fd5b5061062d600480360381019061062891906138b4565b6115ec565b60405161063a9190613fd5565b60405180910390f35b34801561064f57600080fd5b506106586116a5565b6040516106659190613f38565b60405180910390f35b34801561067a57600080fd5b50610695600480360381019061069091906138b4565b6116cf565b005b3480156106a357600080fd5b506106ac6117a5565b6040516106b99190613fd5565b60405180910390f35b6106dc60048036038101906106d791906138b4565b611837565b005b3480156106ea57600080fd5b506107056004803603810190610700919061373d565b611a41565b005b34801561071357600080fd5b5061072e600480360381019061072991906139b0565b611bc2565b60405161073b9190613fd5565b60405180910390f35b34801561075057600080fd5b5061076b600480360381019061076691906138b4565b611c84565b6040516107789190613fd5565b60405180910390f35b34801561078d57600080fd5b50610796611d3d565b6040516107a39190613f9f565b60405180910390f35b3480156107b857600080fd5b506107d360048036038101906107ce91906136c2565b611d50565b005b3480156107e157600080fd5b506107fc60048036038101906107f79190613779565b611dac565b005b34801561080a57600080fd5b50610825600480360381019061082091906138b4565b611ee3565b6040516108329190613fd5565b60405180910390f35b34801561084757600080fd5b50610850611f9c565b005b34801561085e57600080fd5b50610867612094565b60405161087491906143ce565b60405180910390f35b34801561088957600080fd5b506108a4600480360381019061089f91906138b4565b61209a565b6040516108b2929190613ff7565b60405180910390f35b3480156108c757600080fd5b506108e260048036038101906108dd9190613637565b61215a565b6040516108ef9190613f9f565b60405180910390f35b34801561090457600080fd5b5061091f600480360381019061091a91906135d2565b6121ee565b005b34801561092d57600080fd5b5061094860048036038101906109439190613931565b6122e6565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a7d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a8d5750610a8c8261237c565b5b9050919050565b606060018054610aa390614812565b80601f0160208091040260200160405190810160405280929190818152602001828054610acf90614812565b8015610b1c5780601f10610af157610100808354040283529160200191610b1c565b820191906000526020600020905b815481529060010190602001808311610aff57829003601f168201915b5050505050905090565b6000610b31826123e6565b610b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b679061438e565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bb6826113cc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e9061428e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c466123f3565b73ffffffffffffffffffffffffffffffffffffffff161480610c755750610c7481610c6f6123f3565b61215a565b5b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab9061416e565b60405180910390fd5b610cbf8383836123fb565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663166d493a83836040518363ffffffff1660e01b8152600401610d219291906143e9565b600060405180830381600087803b158015610d3b57600080fd5b505af1158015610d4f573d6000803e3d6000fd5b505050505050565b60008054905090565b610d6b8383836124ad565b505050565b610d786123f3565b73ffffffffffffffffffffffffffffffffffffffff16610d966116a5565b73ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906141ce565b60405180910390fd5b80471015610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e269061410e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610e5590613f23565b60006040518083038185875af1925050503d8060008114610e92576040519150601f19603f3d011682016040523d82523d6000602084013e610e97565b606091505b5050905080610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed2906140ee565b60405180910390fd5b505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663273d2e46868686866040518563ffffffff1660e01b8152600401610f43949392919061445e565b60006040518083038186803b158015610f5b57600080fd5b505afa158015610f6f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610f989190613807565b9050949350505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fd38361147b565b8210611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b9061402e565b60405180910390fd5b600061101e610d57565b905060008060005b83811015611184576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461111857806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561117057868414156111615781955050505050506111c0565b838061116c90614875565b9450505b50808061117c90614875565b915050611026565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b79061432e565b60405180910390fd5b92915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001905090565b6111fd6123f3565b73ffffffffffffffffffffffffffffffffffffffff1661121b6116a5565b73ffffffffffffffffffffffffffffffffffffffff1614611271576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611268906141ce565b60405180910390fd5b600960149054906101000a900460ff16156112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b89061426e565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61136183838360405180602001604052806000815250611d50565b505050565b600b60149054906101000a900460ff1681565b6000611383610d57565b82106113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb906140ae565b60405180910390fd5b819050919050565b60006113d782612a66565b600001519050919050565b6113ea6123f3565b73ffffffffffffffffffffffffffffffffffffffff166114086116a5565b73ffffffffffffffffffffffffffffffffffffffff161461145e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611455906141ce565b60405180910390fd5b6001600960146101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e39061418e565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61156c6123f3565b73ffffffffffffffffffffffffffffffffffffffff1661158a6116a5565b73ffffffffffffffffffffffffffffffffffffffff16146115e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d7906141ce565b60405180910390fd5b6115ea6000612c69565b565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bc624c34836040518263ffffffff1660e01b815260040161164991906143ce565b60006040518083038186803b15801561166157600080fd5b505afa158015611675573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061169e9190613807565b9050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116d76123f3565b73ffffffffffffffffffffffffffffffffffffffff166116f56116a5565b73ffffffffffffffffffffffffffffffffffffffff161461174b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611742906141ce565b60405180910390fd5b600960149054906101000a900460ff161561179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061426e565b60405180910390fd5b80600c8190555050565b6060600280546117b490614812565b80601f01602080910402602001604051908101604052809291908181526020018280546117e090614812565b801561182d5780601f106118025761010080835404028352916020019161182d565b820191906000526020600020905b81548152906001019060200180831161181057829003601f168201915b5050505050905090565b6002600854141561187d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118749061434e565b60405180910390fd5b6002600881905550600b60149054906101000a900460ff166118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb906141ee565b60405180910390fd5b614e20816118e0610d57565b6118ea91906145c8565b111561192b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611922906142ee565b60405180910390fd5b600281111561196f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119669061408e565b60405180910390fd5b80600c5461197d919061461e565b34146119be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b59061424e565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a239061414e565b60405180910390fd5b611a363382612d2f565b600160088190555050565b611a496123f3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aae9061420e565b60405180910390fd5b8060066000611ac46123f3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b716123f3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bb69190613f9f565b60405180910390a35050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad8e800c868686866040518563ffffffff1660e01b8152600401611c25949392919061445e565b60006040518083038186803b158015611c3d57600080fd5b505afa158015611c51573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c7a9190613807565b9050949350505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b0dc78fa836040518263ffffffff1660e01b8152600401611ce191906143ce565b60006040518083038186803b158015611cf957600080fd5b505afa158015611d0d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d369190613807565b9050919050565b600960149054906101000a900460ff1681565b611d5b8484846124ad565b611d6784848484612d4d565b611da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9d906142ae565b60405180910390fd5b50505050565b611db46123f3565b73ffffffffffffffffffffffffffffffffffffffff16611dd26116a5565b73ffffffffffffffffffffffffffffffffffffffff1614611e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1f906141ce565b60405180910390fd5b60026008541415611e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e659061434e565b60405180910390fd5b6002600881905550614e2081611e82610d57565b611e8c91906145c8565b1115611ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec49061412e565b60405180910390fd5b611ed78282612d2f565b60016008819055505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611f4091906143ce565b60006040518083038186803b158015611f5857600080fd5b505afa158015611f6c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f959190613807565b9050919050565b611fa46123f3565b73ffffffffffffffffffffffffffffffffffffffff16611fc26116a5565b73ffffffffffffffffffffffffffffffffffffffff1614612018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200f906141ce565b60405180910390fd5b600960149054906101000a900460ff1615612068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205f9061426e565b60405180910390fd5b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b60075481565b606080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166361b3ddba846040518263ffffffff1660e01b81526004016120f891906143ce565b60006040518083038186803b15801561211057600080fd5b505afa158015612124573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061214d9190613848565b8092508193505050915091565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121f66123f3565b73ffffffffffffffffffffffffffffffffffffffff166122146116a5565b73ffffffffffffffffffffffffffffffffffffffff161461226a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612261906141ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d19061404e565b60405180910390fd5b6122e381612c69565b50565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fcee0a108484846040518463ffffffff1660e01b815260040161234593929190614419565b600060405180830381600087803b15801561235f57600080fd5b505af1158015612373573d6000803e3d6000fd5b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006124b882612a66565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166124df6123f3565b73ffffffffffffffffffffffffffffffffffffffff16148061253b57506125046123f3565b73ffffffffffffffffffffffffffffffffffffffff1661252384610b26565b73ffffffffffffffffffffffffffffffffffffffff16145b80612557575061255682600001516125516123f3565b61215a565b5b905080612599576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125909061422e565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612602906141ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561267b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612672906140ce565b60405180910390fd5b6126888585856001612ee4565b61269860008484600001516123fb565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127069190614678565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127aa9190614582565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846128b091906145c8565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129f657612926816123e6565b156129f5576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a5e8686866001612eea565b505050505050565b612a6e6133e2565b612a77826123e6565b612ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aad9061406e565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310612b1a5760017f000000000000000000000000000000000000000000000000000000000000000084612b0d91906146ac565b612b1791906145c8565b90505b60008390505b818110612c28576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c1457809350505050612c64565b508080612c20906147e8565b915050612b20565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5b9061436e565b60405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d49828260405180602001604052806000815250612ef0565b5050565b6000612d6e8473ffffffffffffffffffffffffffffffffffffffff166133cf565b15612ed7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d976123f3565b8786866040518563ffffffff1660e01b8152600401612db99493929190613f53565b602060405180830381600087803b158015612dd357600080fd5b505af1925050508015612e0457506040513d601f19601f82011682018060405250810190612e0191906137de565b60015b612e87573d8060008114612e34576040519150601f19603f3d011682016040523d82523d6000602084013e612e39565b606091505b50600081511415612e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e76906142ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612edc565b600190505b949350505050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5d9061430e565b60405180910390fd5b612f6f816123e6565b15612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906142ce565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115613012576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613009906143ae565b60405180910390fd5b61301f6000858386612ee4565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161311c9190614582565b6fffffffffffffffffffffffffffffffff1681526020018583602001516131439190614582565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156133b257818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133526000888488612d4d565b613391576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613388906142ae565b60405180910390fd5b818061339c90614875565b92505080806133aa90614875565b9150506132e1565b50806000819055506133c76000878588612eea565b505050505050565b600080823b905060008111915050919050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b600061342f61342a846144dd565b6144b8565b90508281526020810184848401111561344757600080fd5b6134528482856147a6565b509392505050565b600061346d6134688461450e565b6144b8565b90508281526020810184848401111561348557600080fd5b6134908482856147a6565b509392505050565b60006134ab6134a68461450e565b6144b8565b9050828152602081018484840111156134c357600080fd5b6134ce8482856147b5565b509392505050565b6000813590506134e5816150b0565b92915050565b6000813590506134fa816150c7565b92915050565b60008135905061350f816150de565b92915050565b600081359050613524816150f5565b92915050565b600081519050613539816150f5565b92915050565b600082601f83011261355057600080fd5b813561356084826020860161341c565b91505092915050565b600082601f83011261357a57600080fd5b813561358a84826020860161345a565b91505092915050565b600082601f8301126135a457600080fd5b81516135b4848260208601613498565b91505092915050565b6000813590506135cc8161510c565b92915050565b6000602082840312156135e457600080fd5b60006135f2848285016134d6565b91505092915050565b6000806040838503121561360e57600080fd5b600061361c858286016134eb565b925050602061362d858286016135bd565b9150509250929050565b6000806040838503121561364a57600080fd5b6000613658858286016134d6565b9250506020613669858286016134d6565b9150509250929050565b60008060006060848603121561368857600080fd5b6000613696868287016134d6565b93505060206136a7868287016134d6565b92505060406136b8868287016135bd565b9150509250925092565b600080600080608085870312156136d857600080fd5b60006136e6878288016134d6565b94505060206136f7878288016134d6565b9350506040613708878288016135bd565b925050606085013567ffffffffffffffff81111561372557600080fd5b6137318782880161353f565b91505092959194509250565b6000806040838503121561375057600080fd5b600061375e858286016134d6565b925050602061376f85828601613500565b9150509250929050565b6000806040838503121561378c57600080fd5b600061379a858286016134d6565b92505060206137ab858286016135bd565b9150509250929050565b6000602082840312156137c757600080fd5b60006137d584828501613515565b91505092915050565b6000602082840312156137f057600080fd5b60006137fe8482850161352a565b91505092915050565b60006020828403121561381957600080fd5b600082015167ffffffffffffffff81111561383357600080fd5b61383f84828501613593565b91505092915050565b6000806040838503121561385b57600080fd5b600083015167ffffffffffffffff81111561387557600080fd5b61388185828601613593565b925050602083015167ffffffffffffffff81111561389e57600080fd5b6138aa85828601613593565b9150509250929050565b6000602082840312156138c657600080fd5b60006138d4848285016135bd565b91505092915050565b600080604083850312156138f057600080fd5b60006138fe858286016135bd565b925050602083013567ffffffffffffffff81111561391b57600080fd5b61392785828601613569565b9150509250929050565b60008060006060848603121561394657600080fd5b6000613954868287016135bd565b935050602084013567ffffffffffffffff81111561397157600080fd5b61397d86828701613569565b925050604084013567ffffffffffffffff81111561399a57600080fd5b6139a686828701613569565b9150509250925092565b600080600080608085870312156139c657600080fd5b60006139d4878288016135bd565b945050602085013567ffffffffffffffff8111156139f157600080fd5b6139fd87828801613569565b935050604085013567ffffffffffffffff811115613a1a57600080fd5b613a2687828801613569565b925050606085013567ffffffffffffffff811115613a4357600080fd5b613a4f87828801613569565b91505092959194509250565b613a64816146e0565b82525050565b613a7381614704565b82525050565b6000613a848261453f565b613a8e8185614555565b9350613a9e8185602086016147b5565b613aa78161494b565b840191505092915050565b613abb81614782565b82525050565b6000613acc8261454a565b613ad68185614571565b9350613ae68185602086016147b5565b613aef8161494b565b840191505092915050565b6000613b07602283614571565b9150613b128261495c565b604082019050919050565b6000613b2a602683614571565b9150613b35826149ab565b604082019050919050565b6000613b4d602a83614571565b9150613b58826149fa565b604082019050919050565b6000613b70602383614571565b9150613b7b82614a49565b604082019050919050565b6000613b93602383614571565b9150613b9e82614a98565b604082019050919050565b6000613bb6602583614571565b9150613bc182614ae7565b604082019050919050565b6000613bd9603a83614571565b9150613be482614b36565b604082019050919050565b6000613bfc601d83614571565b9150613c0782614b85565b602082019050919050565b6000613c1f600f83614571565b9150613c2a82614bae565b602082019050919050565b6000613c42601483614571565b9150613c4d82614bd7565b602082019050919050565b6000613c65603983614571565b9150613c7082614c00565b604082019050919050565b6000613c88602b83614571565b9150613c9382614c4f565b604082019050919050565b6000613cab602683614571565b9150613cb682614c9e565b604082019050919050565b6000613cce602083614571565b9150613cd982614ced565b602082019050919050565b6000613cf1601283614571565b9150613cfc82614d16565b602082019050919050565b6000613d14601a83614571565b9150613d1f82614d3f565b602082019050919050565b6000613d37603283614571565b9150613d4282614d68565b604082019050919050565b6000613d5a601983614571565b9150613d6582614db7565b602082019050919050565b6000613d7d601283614571565b9150613d8882614de0565b602082019050919050565b6000613da0602283614571565b9150613dab82614e09565b604082019050919050565b6000613dc3600083614566565b9150613dce82614e58565b600082019050919050565b6000613de6603383614571565b9150613df182614e5b565b604082019050919050565b6000613e09601d83614571565b9150613e1482614eaa565b602082019050919050565b6000613e2c600f83614571565b9150613e3782614ed3565b602082019050919050565b6000613e4f602183614571565b9150613e5a82614efc565b604082019050919050565b6000613e72602e83614571565b9150613e7d82614f4b565b604082019050919050565b6000613e95601f83614571565b9150613ea082614f9a565b602082019050919050565b6000613eb8602f83614571565b9150613ec382614fc3565b604082019050919050565b6000613edb602d83614571565b9150613ee682615012565b604082019050919050565b6000613efe602283614571565b9150613f0982615061565b604082019050919050565b613f1d81614778565b82525050565b6000613f2e82613db6565b9150819050919050565b6000602082019050613f4d6000830184613a5b565b92915050565b6000608082019050613f686000830187613a5b565b613f756020830186613a5b565b613f826040830185613f14565b8181036060830152613f948184613a79565b905095945050505050565b6000602082019050613fb46000830184613a6a565b92915050565b6000602082019050613fcf6000830184613ab2565b92915050565b60006020820190508181036000830152613fef8184613ac1565b905092915050565b600060408201905081810360008301526140118185613ac1565b905081810360208301526140258184613ac1565b90509392505050565b6000602082019050818103600083015261404781613afa565b9050919050565b6000602082019050818103600083015261406781613b1d565b9050919050565b6000602082019050818103600083015261408781613b40565b9050919050565b600060208201905081810360008301526140a781613b63565b9050919050565b600060208201905081810360008301526140c781613b86565b9050919050565b600060208201905081810360008301526140e781613ba9565b9050919050565b6000602082019050818103600083015261410781613bcc565b9050919050565b6000602082019050818103600083015261412781613bef565b9050919050565b6000602082019050818103600083015261414781613c12565b9050919050565b6000602082019050818103600083015261416781613c35565b9050919050565b6000602082019050818103600083015261418781613c58565b9050919050565b600060208201905081810360008301526141a781613c7b565b9050919050565b600060208201905081810360008301526141c781613c9e565b9050919050565b600060208201905081810360008301526141e781613cc1565b9050919050565b6000602082019050818103600083015261420781613ce4565b9050919050565b6000602082019050818103600083015261422781613d07565b9050919050565b6000602082019050818103600083015261424781613d2a565b9050919050565b6000602082019050818103600083015261426781613d4d565b9050919050565b6000602082019050818103600083015261428781613d70565b9050919050565b600060208201905081810360008301526142a781613d93565b9050919050565b600060208201905081810360008301526142c781613dd9565b9050919050565b600060208201905081810360008301526142e781613dfc565b9050919050565b6000602082019050818103600083015261430781613e1f565b9050919050565b6000602082019050818103600083015261432781613e42565b9050919050565b6000602082019050818103600083015261434781613e65565b9050919050565b6000602082019050818103600083015261436781613e88565b9050919050565b6000602082019050818103600083015261438781613eab565b9050919050565b600060208201905081810360008301526143a781613ece565b9050919050565b600060208201905081810360008301526143c781613ef1565b9050919050565b60006020820190506143e36000830184613f14565b92915050565b60006040820190506143fe6000830185613f14565b81810360208301526144108184613ac1565b90509392505050565b600060608201905061442e6000830186613f14565b81810360208301526144408185613ac1565b905081810360408301526144548184613ac1565b9050949350505050565b60006080820190506144736000830187613f14565b81810360208301526144858186613ac1565b905081810360408301526144998185613ac1565b905081810360608301526144ad8184613ac1565b905095945050505050565b60006144c26144d3565b90506144ce8282614844565b919050565b6000604051905090565b600067ffffffffffffffff8211156144f8576144f761491c565b5b6145018261494b565b9050602081019050919050565b600067ffffffffffffffff8211156145295761452861491c565b5b6145328261494b565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061458d8261473c565b91506145988361473c565b9250826fffffffffffffffffffffffffffffffff038211156145bd576145bc6148be565b5b828201905092915050565b60006145d382614778565b91506145de83614778565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614613576146126148be565b5b828201905092915050565b600061462982614778565b915061463483614778565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561466d5761466c6148be565b5b828202905092915050565b60006146838261473c565b915061468e8361473c565b9250828210156146a1576146a06148be565b5b828203905092915050565b60006146b782614778565b91506146c283614778565b9250828210156146d5576146d46148be565b5b828203905092915050565b60006146eb82614758565b9050919050565b60006146fd82614758565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061478d82614794565b9050919050565b600061479f82614758565b9050919050565b82818337600083830152505050565b60005b838110156147d35780820151818401526020810190506147b8565b838111156147e2576000848401525b50505050565b60006147f382614778565b91506000821415614807576148066148be565b5b600182039050919050565b6000600282049050600182168061482a57607f821691505b6020821081141561483e5761483d6148ed565b5b50919050565b61484d8261494b565b810181811067ffffffffffffffff8211171561486c5761486b61491c565b5b80604052505050565b600061488082614778565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b3576148b26148be565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f4f6e6c79203220746f6b656e732063616e206265206d696e746564206174206f60008201527f6e63650000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f457863656564656420537570706c790000000000000000000000000000000000600082015250565b7f436f6e74726163742063616e6e6f74206d696e74000000000000000000000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f496e636f72726563742065746820616d6f756e742073656e7400000000000000600082015250565b7f436f6e7472616374206973207365616c65640000000000000000000000000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f457863656564656420737570706c790000000000000000000000000000000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6150b9816146e0565b81146150c457600080fd5b50565b6150d0816146f2565b81146150db57600080fd5b50565b6150e781614704565b81146150f257600080fd5b50565b6150fe81614710565b811461510957600080fd5b50565b61511581614778565b811461512057600080fd5b5056fea2646970667358221220745068580ea9ec228358a7411d47bb1513431da89c1f6b3dc90a404c6d5d272964736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102305760003560e01c806370a082311161012e578063b6501637116100ab578063d7224ba01161006f578063d7224ba014610852578063df0e72e61461087d578063e985e9c5146108bb578063f2fde38b146108f8578063fcee0a101461092157610230565b8063b650163714610781578063b88d4fde146107ac578063c3a71999146107d5578063c87b56dd146107fe578063d3dd5fe01461083b57610230565b806395d89b41116100f257806395d89b4114610697578063a0712d68146106c2578063a22cb465146106de578063ad8e800c14610707578063b0dc78fa1461074457610230565b806370a08231146105b2578063715018a6146105ef5780638cb83fe8146106065780638da5cb5b1461064357806391b7f5ed1461066e57610230565b80632e2a4690116101bc57806342842e0e1161018057806342842e0e146104cd578063471a4294146104f65780634f6ccce7146105215780636352211e1461055e57806368bd580e1461059b57610230565b80632e2a4690146103e65780632f745c5914610411578063303e74df1461044e57806338c8e485146104795780633b465ea8146104a457610230565b8063166d493a11610203578063166d493a1461030357806318160ddd1461032c57806323b872dd1461035757806324a084df14610380578063273d2e46146103a957610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906137b5565b61094a565b6040516102699190613f9f565b60405180910390f35b34801561027e57600080fd5b50610287610a94565b6040516102949190613fd5565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf91906138b4565b610b26565b6040516102d19190613f38565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190613779565b610bab565b005b34801561030f57600080fd5b5061032a600480360381019061032591906138dd565b610cc4565b005b34801561033857600080fd5b50610341610d57565b60405161034e91906143ce565b60405180910390f35b34801561036357600080fd5b5061037e60048036038101906103799190613673565b610d60565b005b34801561038c57600080fd5b506103a760048036038101906103a291906135fb565b610d70565b005b3480156103b557600080fd5b506103d060048036038101906103cb91906139b0565b610ee0565b6040516103dd9190613fd5565b60405180910390f35b3480156103f257600080fd5b506103fb610fa2565b6040516104089190613f38565b60405180910390f35b34801561041d57600080fd5b5061043860048036038101906104339190613779565b610fc8565b60405161044591906143ce565b60405180910390f35b34801561045a57600080fd5b506104636111c6565b6040516104709190613fba565b60405180910390f35b34801561048557600080fd5b5061048e6111ec565b60405161049b9190613f9f565b60405180910390f35b3480156104b057600080fd5b506104cb60048036038101906104c691906135d2565b6111f5565b005b3480156104d957600080fd5b506104f460048036038101906104ef9190613673565b611346565b005b34801561050257600080fd5b5061050b611366565b6040516105189190613f9f565b60405180910390f35b34801561052d57600080fd5b50610548600480360381019061054391906138b4565b611379565b60405161055591906143ce565b60405180910390f35b34801561056a57600080fd5b50610585600480360381019061058091906138b4565b6113cc565b6040516105929190613f38565b60405180910390f35b3480156105a757600080fd5b506105b06113e2565b005b3480156105be57600080fd5b506105d960048036038101906105d491906135d2565b61147b565b6040516105e691906143ce565b60405180910390f35b3480156105fb57600080fd5b50610604611564565b005b34801561061257600080fd5b5061062d600480360381019061062891906138b4565b6115ec565b60405161063a9190613fd5565b60405180910390f35b34801561064f57600080fd5b506106586116a5565b6040516106659190613f38565b60405180910390f35b34801561067a57600080fd5b50610695600480360381019061069091906138b4565b6116cf565b005b3480156106a357600080fd5b506106ac6117a5565b6040516106b99190613fd5565b60405180910390f35b6106dc60048036038101906106d791906138b4565b611837565b005b3480156106ea57600080fd5b506107056004803603810190610700919061373d565b611a41565b005b34801561071357600080fd5b5061072e600480360381019061072991906139b0565b611bc2565b60405161073b9190613fd5565b60405180910390f35b34801561075057600080fd5b5061076b600480360381019061076691906138b4565b611c84565b6040516107789190613fd5565b60405180910390f35b34801561078d57600080fd5b50610796611d3d565b6040516107a39190613f9f565b60405180910390f35b3480156107b857600080fd5b506107d360048036038101906107ce91906136c2565b611d50565b005b3480156107e157600080fd5b506107fc60048036038101906107f79190613779565b611dac565b005b34801561080a57600080fd5b50610825600480360381019061082091906138b4565b611ee3565b6040516108329190613fd5565b60405180910390f35b34801561084757600080fd5b50610850611f9c565b005b34801561085e57600080fd5b50610867612094565b60405161087491906143ce565b60405180910390f35b34801561088957600080fd5b506108a4600480360381019061089f91906138b4565b61209a565b6040516108b2929190613ff7565b60405180910390f35b3480156108c757600080fd5b506108e260048036038101906108dd9190613637565b61215a565b6040516108ef9190613f9f565b60405180910390f35b34801561090457600080fd5b5061091f600480360381019061091a91906135d2565b6121ee565b005b34801561092d57600080fd5b5061094860048036038101906109439190613931565b6122e6565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a7d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a8d5750610a8c8261237c565b5b9050919050565b606060018054610aa390614812565b80601f0160208091040260200160405190810160405280929190818152602001828054610acf90614812565b8015610b1c5780601f10610af157610100808354040283529160200191610b1c565b820191906000526020600020905b815481529060010190602001808311610aff57829003601f168201915b5050505050905090565b6000610b31826123e6565b610b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b679061438e565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bb6826113cc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e9061428e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c466123f3565b73ffffffffffffffffffffffffffffffffffffffff161480610c755750610c7481610c6f6123f3565b61215a565b5b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab9061416e565b60405180910390fd5b610cbf8383836123fb565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663166d493a83836040518363ffffffff1660e01b8152600401610d219291906143e9565b600060405180830381600087803b158015610d3b57600080fd5b505af1158015610d4f573d6000803e3d6000fd5b505050505050565b60008054905090565b610d6b8383836124ad565b505050565b610d786123f3565b73ffffffffffffffffffffffffffffffffffffffff16610d966116a5565b73ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906141ce565b60405180910390fd5b80471015610e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e269061410e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610e5590613f23565b60006040518083038185875af1925050503d8060008114610e92576040519150601f19603f3d011682016040523d82523d6000602084013e610e97565b606091505b5050905080610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed2906140ee565b60405180910390fd5b505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663273d2e46868686866040518563ffffffff1660e01b8152600401610f43949392919061445e565b60006040518083038186803b158015610f5b57600080fd5b505afa158015610f6f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610f989190613807565b9050949350505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fd38361147b565b8210611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b9061402e565b60405180910390fd5b600061101e610d57565b905060008060005b83811015611184576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461111857806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561117057868414156111615781955050505050506111c0565b838061116c90614875565b9450505b50808061117c90614875565b915050611026565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b79061432e565b60405180910390fd5b92915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001905090565b6111fd6123f3565b73ffffffffffffffffffffffffffffffffffffffff1661121b6116a5565b73ffffffffffffffffffffffffffffffffffffffff1614611271576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611268906141ce565b60405180910390fd5b600960149054906101000a900460ff16156112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b89061426e565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61136183838360405180602001604052806000815250611d50565b505050565b600b60149054906101000a900460ff1681565b6000611383610d57565b82106113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb906140ae565b60405180910390fd5b819050919050565b60006113d782612a66565b600001519050919050565b6113ea6123f3565b73ffffffffffffffffffffffffffffffffffffffff166114086116a5565b73ffffffffffffffffffffffffffffffffffffffff161461145e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611455906141ce565b60405180910390fd5b6001600960146101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e39061418e565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b61156c6123f3565b73ffffffffffffffffffffffffffffffffffffffff1661158a6116a5565b73ffffffffffffffffffffffffffffffffffffffff16146115e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d7906141ce565b60405180910390fd5b6115ea6000612c69565b565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bc624c34836040518263ffffffff1660e01b815260040161164991906143ce565b60006040518083038186803b15801561166157600080fd5b505afa158015611675573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061169e9190613807565b9050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116d76123f3565b73ffffffffffffffffffffffffffffffffffffffff166116f56116a5565b73ffffffffffffffffffffffffffffffffffffffff161461174b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611742906141ce565b60405180910390fd5b600960149054906101000a900460ff161561179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061426e565b60405180910390fd5b80600c8190555050565b6060600280546117b490614812565b80601f01602080910402602001604051908101604052809291908181526020018280546117e090614812565b801561182d5780601f106118025761010080835404028352916020019161182d565b820191906000526020600020905b81548152906001019060200180831161181057829003601f168201915b5050505050905090565b6002600854141561187d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118749061434e565b60405180910390fd5b6002600881905550600b60149054906101000a900460ff166118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb906141ee565b60405180910390fd5b614e20816118e0610d57565b6118ea91906145c8565b111561192b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611922906142ee565b60405180910390fd5b600281111561196f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119669061408e565b60405180910390fd5b80600c5461197d919061461e565b34146119be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b59061424e565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a239061414e565b60405180910390fd5b611a363382612d2f565b600160088190555050565b611a496123f3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aae9061420e565b60405180910390fd5b8060066000611ac46123f3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b716123f3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611bb69190613f9f565b60405180910390a35050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad8e800c868686866040518563ffffffff1660e01b8152600401611c25949392919061445e565b60006040518083038186803b158015611c3d57600080fd5b505afa158015611c51573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c7a9190613807565b9050949350505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b0dc78fa836040518263ffffffff1660e01b8152600401611ce191906143ce565b60006040518083038186803b158015611cf957600080fd5b505afa158015611d0d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d369190613807565b9050919050565b600960149054906101000a900460ff1681565b611d5b8484846124ad565b611d6784848484612d4d565b611da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9d906142ae565b60405180910390fd5b50505050565b611db46123f3565b73ffffffffffffffffffffffffffffffffffffffff16611dd26116a5565b73ffffffffffffffffffffffffffffffffffffffff1614611e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1f906141ce565b60405180910390fd5b60026008541415611e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e659061434e565b60405180910390fd5b6002600881905550614e2081611e82610d57565b611e8c91906145c8565b1115611ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec49061412e565b60405180910390fd5b611ed78282612d2f565b60016008819055505050565b6060600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611f4091906143ce565b60006040518083038186803b158015611f5857600080fd5b505afa158015611f6c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f959190613807565b9050919050565b611fa46123f3565b73ffffffffffffffffffffffffffffffffffffffff16611fc26116a5565b73ffffffffffffffffffffffffffffffffffffffff1614612018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200f906141ce565b60405180910390fd5b600960149054906101000a900460ff1615612068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205f9061426e565b60405180910390fd5b600b60149054906101000a900460ff1615600b60146101000a81548160ff021916908315150217905550565b60075481565b606080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166361b3ddba846040518263ffffffff1660e01b81526004016120f891906143ce565b60006040518083038186803b15801561211057600080fd5b505afa158015612124573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061214d9190613848565b8092508193505050915091565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121f66123f3565b73ffffffffffffffffffffffffffffffffffffffff166122146116a5565b73ffffffffffffffffffffffffffffffffffffffff161461226a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612261906141ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d19061404e565b60405180910390fd5b6122e381612c69565b50565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fcee0a108484846040518463ffffffff1660e01b815260040161234593929190614419565b600060405180830381600087803b15801561235f57600080fd5b505af1158015612373573d6000803e3d6000fd5b50505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006124b882612a66565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166124df6123f3565b73ffffffffffffffffffffffffffffffffffffffff16148061253b57506125046123f3565b73ffffffffffffffffffffffffffffffffffffffff1661252384610b26565b73ffffffffffffffffffffffffffffffffffffffff16145b80612557575061255682600001516125516123f3565b61215a565b5b905080612599576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125909061422e565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461260b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612602906141ae565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561267b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612672906140ce565b60405180910390fd5b6126888585856001612ee4565b61269860008484600001516123fb565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127069190614678565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166127aa9190614582565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846128b091906145c8565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129f657612926816123e6565b156129f5576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a5e8686866001612eea565b505050505050565b612a6e6133e2565b612a77826123e6565b612ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aad9061406e565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000648310612b1a5760017f000000000000000000000000000000000000000000000000000000000000006484612b0d91906146ac565b612b1791906145c8565b90505b60008390505b818110612c28576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c1457809350505050612c64565b508080612c20906147e8565b915050612b20565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5b9061436e565b60405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d49828260405180602001604052806000815250612ef0565b5050565b6000612d6e8473ffffffffffffffffffffffffffffffffffffffff166133cf565b15612ed7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d976123f3565b8786866040518563ffffffff1660e01b8152600401612db99493929190613f53565b602060405180830381600087803b158015612dd357600080fd5b505af1925050508015612e0457506040513d601f19601f82011682018060405250810190612e0191906137de565b60015b612e87573d8060008114612e34576040519150601f19603f3d011682016040523d82523d6000602084013e612e39565b606091505b50600081511415612e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e76906142ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612edc565b600190505b949350505050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5d9061430e565b60405180910390fd5b612f6f816123e6565b15612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa6906142ce565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000064831115613012576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613009906143ae565b60405180910390fd5b61301f6000858386612ee4565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815250509050604051806040016040528085836000015161311c9190614582565b6fffffffffffffffffffffffffffffffff1681526020018583602001516131439190614582565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156133b257818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133526000888488612d4d565b613391576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613388906142ae565b60405180910390fd5b818061339c90614875565b92505080806133aa90614875565b9150506132e1565b50806000819055506133c76000878588612eea565b505050505050565b600080823b905060008111915050919050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b600061342f61342a846144dd565b6144b8565b90508281526020810184848401111561344757600080fd5b6134528482856147a6565b509392505050565b600061346d6134688461450e565b6144b8565b90508281526020810184848401111561348557600080fd5b6134908482856147a6565b509392505050565b60006134ab6134a68461450e565b6144b8565b9050828152602081018484840111156134c357600080fd5b6134ce8482856147b5565b509392505050565b6000813590506134e5816150b0565b92915050565b6000813590506134fa816150c7565b92915050565b60008135905061350f816150de565b92915050565b600081359050613524816150f5565b92915050565b600081519050613539816150f5565b92915050565b600082601f83011261355057600080fd5b813561356084826020860161341c565b91505092915050565b600082601f83011261357a57600080fd5b813561358a84826020860161345a565b91505092915050565b600082601f8301126135a457600080fd5b81516135b4848260208601613498565b91505092915050565b6000813590506135cc8161510c565b92915050565b6000602082840312156135e457600080fd5b60006135f2848285016134d6565b91505092915050565b6000806040838503121561360e57600080fd5b600061361c858286016134eb565b925050602061362d858286016135bd565b9150509250929050565b6000806040838503121561364a57600080fd5b6000613658858286016134d6565b9250506020613669858286016134d6565b9150509250929050565b60008060006060848603121561368857600080fd5b6000613696868287016134d6565b93505060206136a7868287016134d6565b92505060406136b8868287016135bd565b9150509250925092565b600080600080608085870312156136d857600080fd5b60006136e6878288016134d6565b94505060206136f7878288016134d6565b9350506040613708878288016135bd565b925050606085013567ffffffffffffffff81111561372557600080fd5b6137318782880161353f565b91505092959194509250565b6000806040838503121561375057600080fd5b600061375e858286016134d6565b925050602061376f85828601613500565b9150509250929050565b6000806040838503121561378c57600080fd5b600061379a858286016134d6565b92505060206137ab858286016135bd565b9150509250929050565b6000602082840312156137c757600080fd5b60006137d584828501613515565b91505092915050565b6000602082840312156137f057600080fd5b60006137fe8482850161352a565b91505092915050565b60006020828403121561381957600080fd5b600082015167ffffffffffffffff81111561383357600080fd5b61383f84828501613593565b91505092915050565b6000806040838503121561385b57600080fd5b600083015167ffffffffffffffff81111561387557600080fd5b61388185828601613593565b925050602083015167ffffffffffffffff81111561389e57600080fd5b6138aa85828601613593565b9150509250929050565b6000602082840312156138c657600080fd5b60006138d4848285016135bd565b91505092915050565b600080604083850312156138f057600080fd5b60006138fe858286016135bd565b925050602083013567ffffffffffffffff81111561391b57600080fd5b61392785828601613569565b9150509250929050565b60008060006060848603121561394657600080fd5b6000613954868287016135bd565b935050602084013567ffffffffffffffff81111561397157600080fd5b61397d86828701613569565b925050604084013567ffffffffffffffff81111561399a57600080fd5b6139a686828701613569565b9150509250925092565b600080600080608085870312156139c657600080fd5b60006139d4878288016135bd565b945050602085013567ffffffffffffffff8111156139f157600080fd5b6139fd87828801613569565b935050604085013567ffffffffffffffff811115613a1a57600080fd5b613a2687828801613569565b925050606085013567ffffffffffffffff811115613a4357600080fd5b613a4f87828801613569565b91505092959194509250565b613a64816146e0565b82525050565b613a7381614704565b82525050565b6000613a848261453f565b613a8e8185614555565b9350613a9e8185602086016147b5565b613aa78161494b565b840191505092915050565b613abb81614782565b82525050565b6000613acc8261454a565b613ad68185614571565b9350613ae68185602086016147b5565b613aef8161494b565b840191505092915050565b6000613b07602283614571565b9150613b128261495c565b604082019050919050565b6000613b2a602683614571565b9150613b35826149ab565b604082019050919050565b6000613b4d602a83614571565b9150613b58826149fa565b604082019050919050565b6000613b70602383614571565b9150613b7b82614a49565b604082019050919050565b6000613b93602383614571565b9150613b9e82614a98565b604082019050919050565b6000613bb6602583614571565b9150613bc182614ae7565b604082019050919050565b6000613bd9603a83614571565b9150613be482614b36565b604082019050919050565b6000613bfc601d83614571565b9150613c0782614b85565b602082019050919050565b6000613c1f600f83614571565b9150613c2a82614bae565b602082019050919050565b6000613c42601483614571565b9150613c4d82614bd7565b602082019050919050565b6000613c65603983614571565b9150613c7082614c00565b604082019050919050565b6000613c88602b83614571565b9150613c9382614c4f565b604082019050919050565b6000613cab602683614571565b9150613cb682614c9e565b604082019050919050565b6000613cce602083614571565b9150613cd982614ced565b602082019050919050565b6000613cf1601283614571565b9150613cfc82614d16565b602082019050919050565b6000613d14601a83614571565b9150613d1f82614d3f565b602082019050919050565b6000613d37603283614571565b9150613d4282614d68565b604082019050919050565b6000613d5a601983614571565b9150613d6582614db7565b602082019050919050565b6000613d7d601283614571565b9150613d8882614de0565b602082019050919050565b6000613da0602283614571565b9150613dab82614e09565b604082019050919050565b6000613dc3600083614566565b9150613dce82614e58565b600082019050919050565b6000613de6603383614571565b9150613df182614e5b565b604082019050919050565b6000613e09601d83614571565b9150613e1482614eaa565b602082019050919050565b6000613e2c600f83614571565b9150613e3782614ed3565b602082019050919050565b6000613e4f602183614571565b9150613e5a82614efc565b604082019050919050565b6000613e72602e83614571565b9150613e7d82614f4b565b604082019050919050565b6000613e95601f83614571565b9150613ea082614f9a565b602082019050919050565b6000613eb8602f83614571565b9150613ec382614fc3565b604082019050919050565b6000613edb602d83614571565b9150613ee682615012565b604082019050919050565b6000613efe602283614571565b9150613f0982615061565b604082019050919050565b613f1d81614778565b82525050565b6000613f2e82613db6565b9150819050919050565b6000602082019050613f4d6000830184613a5b565b92915050565b6000608082019050613f686000830187613a5b565b613f756020830186613a5b565b613f826040830185613f14565b8181036060830152613f948184613a79565b905095945050505050565b6000602082019050613fb46000830184613a6a565b92915050565b6000602082019050613fcf6000830184613ab2565b92915050565b60006020820190508181036000830152613fef8184613ac1565b905092915050565b600060408201905081810360008301526140118185613ac1565b905081810360208301526140258184613ac1565b90509392505050565b6000602082019050818103600083015261404781613afa565b9050919050565b6000602082019050818103600083015261406781613b1d565b9050919050565b6000602082019050818103600083015261408781613b40565b9050919050565b600060208201905081810360008301526140a781613b63565b9050919050565b600060208201905081810360008301526140c781613b86565b9050919050565b600060208201905081810360008301526140e781613ba9565b9050919050565b6000602082019050818103600083015261410781613bcc565b9050919050565b6000602082019050818103600083015261412781613bef565b9050919050565b6000602082019050818103600083015261414781613c12565b9050919050565b6000602082019050818103600083015261416781613c35565b9050919050565b6000602082019050818103600083015261418781613c58565b9050919050565b600060208201905081810360008301526141a781613c7b565b9050919050565b600060208201905081810360008301526141c781613c9e565b9050919050565b600060208201905081810360008301526141e781613cc1565b9050919050565b6000602082019050818103600083015261420781613ce4565b9050919050565b6000602082019050818103600083015261422781613d07565b9050919050565b6000602082019050818103600083015261424781613d2a565b9050919050565b6000602082019050818103600083015261426781613d4d565b9050919050565b6000602082019050818103600083015261428781613d70565b9050919050565b600060208201905081810360008301526142a781613d93565b9050919050565b600060208201905081810360008301526142c781613dd9565b9050919050565b600060208201905081810360008301526142e781613dfc565b9050919050565b6000602082019050818103600083015261430781613e1f565b9050919050565b6000602082019050818103600083015261432781613e42565b9050919050565b6000602082019050818103600083015261434781613e65565b9050919050565b6000602082019050818103600083015261436781613e88565b9050919050565b6000602082019050818103600083015261438781613eab565b9050919050565b600060208201905081810360008301526143a781613ece565b9050919050565b600060208201905081810360008301526143c781613ef1565b9050919050565b60006020820190506143e36000830184613f14565b92915050565b60006040820190506143fe6000830185613f14565b81810360208301526144108184613ac1565b90509392505050565b600060608201905061442e6000830186613f14565b81810360208301526144408185613ac1565b905081810360408301526144548184613ac1565b9050949350505050565b60006080820190506144736000830187613f14565b81810360208301526144858186613ac1565b905081810360408301526144998185613ac1565b905081810360608301526144ad8184613ac1565b905095945050505050565b60006144c26144d3565b90506144ce8282614844565b919050565b6000604051905090565b600067ffffffffffffffff8211156144f8576144f761491c565b5b6145018261494b565b9050602081019050919050565b600067ffffffffffffffff8211156145295761452861491c565b5b6145328261494b565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061458d8261473c565b91506145988361473c565b9250826fffffffffffffffffffffffffffffffff038211156145bd576145bc6148be565b5b828201905092915050565b60006145d382614778565b91506145de83614778565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614613576146126148be565b5b828201905092915050565b600061462982614778565b915061463483614778565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561466d5761466c6148be565b5b828202905092915050565b60006146838261473c565b915061468e8361473c565b9250828210156146a1576146a06148be565b5b828203905092915050565b60006146b782614778565b91506146c283614778565b9250828210156146d5576146d46148be565b5b828203905092915050565b60006146eb82614758565b9050919050565b60006146fd82614758565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061478d82614794565b9050919050565b600061479f82614758565b9050919050565b82818337600083830152505050565b60005b838110156147d35780820151818401526020810190506147b8565b838111156147e2576000848401525b50505050565b60006147f382614778565b91506000821415614807576148066148be565b5b600182039050919050565b6000600282049050600182168061482a57607f821691505b6020821081141561483e5761483d6148ed565b5b50919050565b61484d8261494b565b810181811067ffffffffffffffff8211171561486c5761486b61491c565b5b80604052505050565b600061488082614778565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148b3576148b26148be565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f4f6e6c79203220746f6b656e732063616e206265206d696e746564206174206f60008201527f6e63650000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f457863656564656420537570706c790000000000000000000000000000000000600082015250565b7f436f6e74726163742063616e6e6f74206d696e74000000000000000000000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d696e74206973206e6f74206163746976650000000000000000000000000000600082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f496e636f72726563742065746820616d6f756e742073656e7400000000000000600082015250565b7f436f6e7472616374206973207365616c65640000000000000000000000000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f457863656564656420737570706c790000000000000000000000000000000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b6150b9816146e0565b81146150c457600080fd5b50565b6150d0816146f2565b81146150db57600080fd5b50565b6150e781614704565b81146150f257600080fd5b50565b6150fe81614710565b811461510957600080fd5b50565b61511581614778565b811461512057600080fd5b5056fea2646970667358221220745068580ea9ec228358a7411d47bb1513431da89c1f6b3dc90a404c6d5d272964736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.