Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,048 ASC
Holders
809
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
14 ASCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
AsciiPunks
Compiler Version
v0.8.3+commit.8d00100c
Optimization Enabled:
Yes 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 "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./AsciiPunkFactory.sol"; import "./ERC721Metadata.sol"; import "./PaymentSplitter.sol"; contract AsciiPunks is ERC721Metadata, PaymentSplitter { using Address for address; using Strings for uint256; // EVENTS event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); event ApprovalForAll( address indexed owner, address indexed operator, bool approved ); event Generated(uint256 indexed index, address indexed a, string value); mapping(uint256 => uint256) internal idToSeed; mapping(uint256 => uint256) internal seedToId; mapping(uint256 => address) internal idToOwner; mapping(address => uint256[]) internal ownerToIds; mapping(uint256 => uint256) internal idToOwnerIndex; mapping(address => mapping(address => bool)) internal ownerToOperators; mapping(uint256 => address) internal idToApproval; uint256 internal numTokens = 0; uint256 public constant TOKEN_LIMIT = 2048; bool public hasSaleStarted = false; bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; modifier validNFToken(uint256 tokenId) { require( idToOwner[tokenId] != address(0), "ERC721: query for nonexistent token" ); _; } modifier canOperate(uint256 tokenId) { address owner = idToOwner[tokenId]; require( owner == _msgSender() || ownerToOperators[owner][_msgSender()], "ERC721: approve caller is not owner nor approved for all" ); _; } modifier canTransfer(uint256 tokenId) { address tokenOwner = idToOwner[tokenId]; require( tokenOwner == _msgSender() || idToApproval[tokenId] == _msgSender() || ownerToOperators[tokenOwner][_msgSender()], "ERC721: transfer caller is not owner nor approved" ); _; } constructor() { _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } function createPunk(uint256 seed) external payable returns (string memory) { return _mint(_msgSender(), seed); } function calculatePrice() internal view returns (uint256) { uint256 price; if (numTokens < 256) { price = 50000000000000000; } else if (numTokens >= 256 && numTokens < 512) { price = 100000000000000000; } else if (numTokens >= 512 && numTokens < 1024) { price = 200000000000000000; } else if (numTokens >= 1024 && numTokens < 1536) { price = 300000000000000000; } else { price = 400000000000000000; } return price; } function _mint(address to, uint256 _seed) internal returns (string memory) { require(hasSaleStarted == true, "Sale hasn't started"); require(to != address(0), "ERC721: mint to the zero address"); require( numTokens < TOKEN_LIMIT, "ERC721: maximum number of tokens already minted" ); require(msg.value >= calculatePrice(), "ERC721: insufficient ether"); uint256 seed = uint256( keccak256(abi.encodePacked(_seed, block.timestamp, msg.sender, numTokens)) ); require(seedToId[seed] == 0, "ERC721: seed already used"); uint256 id = numTokens + 1; idToSeed[id] = seed; seedToId[seed] = id; string memory punk = AsciiPunkFactory.draw(idToSeed[id]); emit Generated(id, to, punk); numTokens = numTokens + 1; _registerToken(to, id); emit Transfer(address(0), to, id); return punk; } function _registerToken(address to, uint256 tokenId) internal { require(idToOwner[tokenId] == address(0)); idToOwner[tokenId] = to; ownerToIds[to].push(tokenId); uint256 length = ownerToIds[to].length; idToOwnerIndex[tokenId] = length - 1; } function draw(uint256 tokenId) external view validNFToken(tokenId) returns (string memory) { string memory uri = AsciiPunkFactory.draw(idToSeed[tokenId]); return uri; } function totalSupply() public view returns (uint256) { return numTokens; } function tokenByIndex(uint256 index) public view returns (uint256) { require(index < numTokens, "ERC721Enumerable: global index out of bounds"); return index; } function tokenOfOwnerByIndex(address owner, uint256 _index) external view returns (uint256) { require( _index < ownerToIds[owner].length, "ERC721Enumerable: owner index out of bounds" ); return ownerToIds[owner][_index]; } function balanceOf(address owner) external view returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return ownerToIds[owner].length; } function ownerOf(uint256 tokenId) external view returns (address) { return _ownerOf(tokenId); } function _ownerOf(uint256 tokenId) internal view validNFToken(tokenId) returns (address) { address owner = idToOwner[tokenId]; require(owner != address(0), "ERC721: query for nonexistent token"); return owner; } function transferFrom( address from, address to, uint256 tokenId ) external validNFToken(tokenId) canTransfer(tokenId) { address tokenOwner = idToOwner[tokenId]; require(tokenOwner == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _transfer(to, tokenId); } function _transfer(address to, uint256 tokenId) internal { address from = idToOwner[tokenId]; _clearApproval(tokenId); emit Approval(from, to, tokenId); _removeNFToken(from, tokenId); _registerToken(to, tokenId); emit Transfer(from, to, tokenId); } function _removeNFToken(address from, uint256 tokenId) internal { require(idToOwner[tokenId] == from); delete idToOwner[tokenId]; uint256 tokenToRemoveIndex = idToOwnerIndex[tokenId]; uint256 lastTokenIndex = ownerToIds[from].length - 1; if (lastTokenIndex != tokenToRemoveIndex) { uint256 lastToken = ownerToIds[from][lastTokenIndex]; ownerToIds[from][tokenToRemoveIndex] = lastToken; idToOwnerIndex[lastToken] = tokenToRemoveIndex; } ownerToIds[from].pop(); } function approve(address approved, uint256 tokenId) external validNFToken(tokenId) canOperate(tokenId) { address owner = idToOwner[tokenId]; require(approved != owner, "ERC721: approval to current owner"); idToApproval[tokenId] = approved; emit Approval(owner, approved, tokenId); } function _clearApproval(uint256 tokenId) private { if (idToApproval[tokenId] != address(0)) { delete idToApproval[tokenId]; } } function getApproved(uint256 tokenId) external view validNFToken(tokenId) returns (address) { return idToApproval[tokenId]; } function setApprovalForAll(address operator, bool approved) external { require(operator != _msgSender(), "ERC721: approve to caller"); ownerToOperators[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) external view returns (bool) { return ownerToOperators[owner][operator]; } function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external { _safeTransferFrom(from, to, tokenId, data); } function safeTransferFrom( address from, address to, uint256 tokenId ) external { _safeTransferFrom(from, to, tokenId, ""); } function _safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) private validNFToken(tokenId) canTransfer(tokenId) { address tokenOwner = idToOwner[tokenId]; require(tokenOwner == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _transfer(to, tokenId); require( _checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } function tokenURI(uint256 tokenId) external view validNFToken(tokenId) returns (string memory) { string memory uri = _baseURI(); return bytes(uri).length > 0 ? string(abi.encodePacked(uri, tokenId.toString())) : ""; } function startSale() public onlyOwner { hasSaleStarted = true; } function pauseSale() public onlyOwner { hasSaleStarted = false; } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library AsciiPunkFactory { uint256 private constant TOP_COUNT = 55; uint256 private constant EYE_COUNT = 48; uint256 private constant NOSE_COUNT = 9; uint256 private constant MOUTH_COUNT = 32; function draw(uint256 seed) public pure returns (string memory) { uint256 rand = uint256(keccak256(abi.encodePacked(seed))); string memory top = _chooseTop(rand); string memory eyes = _chooseEyes(rand); string memory mouth = _chooseMouth(rand); string memory chin = unicode" │ │ \n" unicode" └──┘ │ \n"; string memory neck = unicode" │ │ \n" unicode" │ │ \n"; return string(abi.encodePacked(top, eyes, mouth, chin, neck)); } function _chooseTop(uint256 rand) internal pure returns (string memory) { string[TOP_COUNT] memory tops = [ unicode" ┌───┐ \n" unicode" │ ┼┐ \n" unicode" ├────┼┼ \n", unicode" ┌┬┬┬┬┐ \n" unicode" ╓┬┬┬┬╖ \n" unicode" ╙┴┴┴┴╜ \n", unicode" ╒════╕ \n" unicode" ┌┴────┴┐ \n" unicode" └┬────┬┘ \n", unicode" ╒════╕ \n" unicode" │□□□□│ \n" unicode" └┬────┬┘ \n", unicode" ╒════╕ \n" unicode" │ │ \n" unicode" └─┬────┬─┘ \n", unicode" ◙◙◙◙ \n" unicode" ▄████▄ \n" unicode" ┌────┐ \n", unicode" ┌───┐ \n" unicode"┌──┤ └┐ \n" unicode"└──┼────┤ \n", unicode" ┌───┐ \n" unicode" ┌┘ ├──┐\n" unicode" ├────┼──┘\n", unicode" ┌────┐/ \n" unicode"┌──┴────┴──┐\n" unicode"└──┬────┬──┘\n", unicode" ╒════╕ \n" unicode" ┌─┴────┴─┐ \n" unicode" └─┬────┬─┘ \n", unicode" ┌──────┐ \n" unicode" │▲▲▲▲▲▲│ \n" unicode" └┬────┬┘ \n", unicode" ┌┌────┐┐ \n" unicode" ││┌──┐││ \n" unicode" └┼┴──┴┼┘ \n", unicode" ┌────┐ \n" unicode" ┌┘─ │ \n" unicode" └┌────┐ \n", unicode" \n" unicode" ┌┬┬┬┬┐ \n" unicode" ├┴┴┴┴┤ \n", unicode" \n" unicode" ╓┬╥┐ \n" unicode" ┌╨┴╨┴┐ \n", unicode" \n" unicode" ╒╦╦╦╦╕ \n" unicode" ╞╩╩╩╩╡ \n", unicode" \n" unicode" \n" unicode" ┌┼┼┼┼┐ \n", unicode" \n" unicode" ││││ \n" unicode" ┌┼┼┼┼┐ \n", unicode" ╔ \n" unicode" ╔║ \n" unicode" ┌─╫╫─┐ \n", unicode" \n" unicode" ║║║║ \n" unicode" ┌╨╨╨╨┐ \n", unicode" \n" unicode" ▐▐▐▌▌▌ \n" unicode" ┌────┐ \n", unicode" \n" unicode" \\///// \n" unicode" ┌────┐ \n", unicode" ┐ ┌ \n" unicode" ┐││││┌ \n" unicode" ┌────┐ \n", unicode" ┌┐ ┐┌┐┌┐ \n" unicode" └└┐││┌┘ \n" unicode" ┌┴┴┴┴┐ \n", unicode" ┐┐┐┐┐ \n" unicode" └└└└└┐ \n" unicode" └└└└└┐ \n", unicode" \n" unicode" ││││││ \n" unicode" ┌────┐ \n", unicode" \n" unicode" ╓╓╓╓ \n" unicode" ┌╨╨╨╨┐ \n", unicode" ╔╔╗╗╗ \n" unicode" ╔╔╔╗╗╗╗ \n" unicode" ╔╝╝║ ╚╚╗ \n", unicode" ╔╔╔╔╔╗ \n" unicode" ╔╔╔╔╔╗║╗ \n" unicode" ╝║╨╨╨╨║╚ \n", unicode" ╔╔═╔═╔ \n" unicode" ╔╩╔╩╔╝ \n" unicode" ┌────┐ \n", unicode" \n" unicode" /// \n" unicode" ┌────┐ \n", unicode" ╔╗╔╗ \n" unicode" ╔╗╔╗╝ \n" unicode" ┌╔╝╔╝┐ \n", unicode" ╔╔╔╔╝ \n" unicode" ╔╝╔╝ \n" unicode" ┌╨╨╨─┐ \n", unicode" ╔╗ \n" unicode" ╔╔╔╗╝ \n" unicode" ┌╚╚╝╝┐ \n", unicode" ╔════╗ \n" unicode" ╔╚╚╚╝╝╝╗ \n" unicode" ╟┌────┐╢ \n", unicode" ╔═╗ \n" unicode" ╚╚╚╗ \n" unicode" ┌────┐ \n", unicode" \n" unicode" \n" unicode" ┌╨╨╨╨┐ \n", unicode" \n" unicode" ⌂⌂⌂⌂ \n" unicode" ┌────┐ \n", unicode" ┌────┐ \n" unicode" │ /└┐ \n" unicode" ├────┐/ \n", unicode" \n" unicode" (((((( \n" unicode" ┌────┐ \n", unicode" ┌┌┌┌┌┐ \n" unicode" ├┘┘┘┘┘ \n" unicode" ┌────┐ \n", unicode" «°┐ \n" unicode" │╪╕ \n" unicode" ┌└┼──┐ \n", unicode" <° °> § \n" unicode" \\'/ / \n" unicode" {())}} \n", unicode" ██████ \n" unicode" ██ ██ ██ \n" unicode" █ ██████ █ \n", unicode" ████ \n" unicode" ██◙◙██ \n" unicode" ┌─▼▼─┐ \n", unicode" ╓╖ ╓╖ \n" unicode" °╜╚╗╔╝╙° \n" unicode" ┌─╨╨─┐ \n", unicode" ± ±± ± \n" unicode" ◙◙◙◙◙◙ \n" unicode" ┌────┐ \n", unicode" ♫ ♪ \n" unicode" ♪ ♫ \n" unicode" ♪ ┌────┐ \n", unicode" /≡≡\\ \n" unicode" /≡≡≡≡\\ \n" unicode" /┌────┐\\ \n", unicode" \n" unicode" ♣♥♦♠♣♥ \n" unicode" ┌────┐ \n", unicode" [⌂] \n" unicode" │ \n" unicode" ┌────┐ \n", unicode" /\\/\\/\\/\\ \n" unicode" \\\\/\\/\\// \n" unicode" ┌────┐ \n", unicode" ↑↑↓↓ \n" unicode" ←→←→AB \n" unicode" ┌────┐ \n", unicode" ┌─┬┐ \n" unicode" ┌┘┌┘└┐ \n" unicode" ├─┴──┤ \n", unicode" ☼ ☼ \n" unicode" \\/ \n" unicode" ┌────┐ \n" ]; uint256 topId = rand % TOP_COUNT; return tops[topId]; } function _chooseEyes(uint256 rand) internal pure returns (string memory) { string[EYE_COUNT] memory leftEyes = [ unicode"◕", unicode"*", unicode"♥", unicode"X", unicode"⊙", unicode"˘", unicode"α", unicode"◉", unicode"☻", unicode"¬", unicode"^", unicode"═", unicode"┼", unicode"┬", unicode"■", unicode"─", unicode"û", unicode"╜", unicode"δ", unicode"│", unicode"┐", unicode"┌", unicode"┌", unicode"╤", unicode"/", unicode"\\", unicode"/", unicode"\\", unicode"╦", unicode"♥", unicode"♠", unicode"♦", unicode"╝", unicode"◄", unicode"►", unicode"◄", unicode"►", unicode"I", unicode"╚", unicode"╔", unicode"╙", unicode"╜", unicode"╓", unicode"╥", unicode"$", unicode"○", unicode"N", unicode"x" ]; string[EYE_COUNT] memory rightEyes = [ unicode"◕", unicode"*", unicode"♥", unicode"X", unicode"⊙", unicode"˘", unicode"α", unicode"◉", unicode"☻", unicode"¬", unicode"^", unicode"═", unicode"┼", unicode"┬", unicode"■", unicode"─", unicode"û", unicode"╜", unicode"δ", unicode"│", unicode"┐", unicode"┐", unicode"┌", unicode"╤", unicode"\\", unicode"/", unicode"/", unicode"\\", unicode"╦", unicode"♠", unicode"♣", unicode"♦", unicode"╝", unicode"►", unicode"◄", unicode"◄", unicode"◄", unicode"I", unicode"╚", unicode"╗", unicode"╜", unicode"╜", unicode"╓", unicode"╥", unicode"$", unicode"○", unicode"N", unicode"x" ]; uint256 eyeId = rand % EYE_COUNT; string memory leftEye = leftEyes[eyeId]; string memory rightEye = rightEyes[eyeId]; string memory nose = _chooseNose(rand); string memory forehead = unicode" │ ├┐ \n"; string memory leftFace = unicode" │"; string memory rightFace = unicode" └│ \n"; return string( abi.encodePacked( forehead, leftFace, leftEye, " ", rightEye, rightFace, nose ) ); } function _chooseMouth(uint256 rand) internal pure returns (string memory) { string[MOUTH_COUNT] memory mouths = [ unicode" │ │ \n" unicode" │── │ \n", unicode" │ │ \n" unicode" │δ │ \n", unicode" │ │ \n" unicode" │─┬ │ \n", unicode" │ │ \n" unicode" │(─) │ \n", unicode" │ │ \n" unicode" │[─] │ \n", unicode" │ │ \n" unicode" │<─> │ \n", unicode" │ │ \n" unicode" │╙─ │ \n", unicode" │ │ \n" unicode" │─╜ │ \n", unicode" │ │ \n" unicode" │└─┘ │ \n", unicode" │ │ \n" unicode" │┌─┐ │ \n", unicode" │ │ \n" unicode" │╓─ │ \n", unicode" │ │ \n" unicode" │─╖ │ \n", unicode" │ │ \n" unicode" │┼─┼ │ \n", unicode" │ │ \n" unicode" │──┼ │ \n", unicode" │ │ \n" unicode" │«─» │ \n", unicode" │ │ \n" unicode" │── │ \n", unicode" ∙ │ │ \n" unicode" ∙─── │ \n", unicode" ∙ │ │ \n" unicode" ∙───) │ \n", unicode" ∙ │ │ \n" unicode" ∙───] │ \n", unicode" │⌐¬ │ \n" unicode" √──── │ \n", unicode" │╓╖ │ \n" unicode" │── │ \n", unicode" │~~ │ \n" unicode" │/\\ │ \n", unicode" │ │ \n" unicode" │══ │ \n", unicode" │ │ \n" unicode" │▼▼ │ \n", unicode" │⌐¬ │ \n" unicode" │O │ \n", unicode" │ │ \n" unicode" │O │ \n", unicode" ∙ │⌐¬ │ \n" unicode" ∙─── │ \n", unicode" ∙ │⌐¬ │ \n" unicode" ∙───) │ \n", unicode" ∙ │⌐¬ │ \n" unicode" ∙───] │ \n", unicode" │⌐¬ │ \n" unicode" │── │ \n", unicode" │⌐-¬ │ \n" unicode" │ │ \n", unicode" │┌-┐ │ \n" unicode" ││ │ │ \n" ]; uint256 mouthId = rand % MOUTH_COUNT; return mouths[mouthId]; } function _chooseNose(uint256 rand) internal pure returns (string memory) { string[NOSE_COUNT] memory noses = [ unicode"└", unicode"╘", unicode"<", unicode"└", unicode"┌", unicode"^", unicode"└", unicode"┼", unicode"Γ" ]; uint256 noseId = rand % NOSE_COUNT; string memory nose = noses[noseId]; return string(abi.encodePacked(unicode" │ ", nose, unicode" └┘ \n")); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract ERC165 { mapping(bytes4 => bool) private _supportedInterfaces; bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; constructor() { _registerInterface(_INTERFACE_ID_ERC165); } function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC165.sol"; contract ERC721Metadata is Ownable, ERC165 { bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; string private _baseTokenURI; string private _NFTName = "AsciiPunks"; string private _NFTSymbol = "ASC"; constructor() { _registerInterface(_INTERFACE_ID_ERC721_METADATA); _baseTokenURI = "https://api.asciipunks.com/punks/"; } function name() external view returns (string memory) { return _NFTName; } function symbol() external view returns (string memory) { return _NFTSymbol; } function setBaseURI(string calldata newBaseTokenURI) public onlyOwner { _baseTokenURI = newBaseTokenURI; } function baseURI() public view returns (string memory) { return _baseURI(); } function _baseURI() internal view returns (string memory) { return _baseTokenURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor() { address[2] memory initialPayees = [ address(0x9386efb02a55A1092dC19f0E68a9816DDaAbDb5b), address(0xF2353AD0930B9F7cf16b4b8300B843349581E817) ]; uint256[2] memory initialShares = [uint256(7), uint256(3)]; for (uint256 i = 0; i < initialPayees.length; i++) { _addPayee(initialPayees[i], initialShares[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + _totalReleased; uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require( account != address(0), "PaymentSplitter: account is the zero address" ); require(shares_ > 0, "PaymentSplitter: shares are 0"); require( _shares[account] == 0, "PaymentSplitter: account already has shares" ); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// 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; /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": { "/Users/kyle/workspace/asciipunks/contracts/AsciiPunkFactory.sol": { "AsciiPunkFactory": "0x3c24A5DF4F69199962b163CB5762be1E8367CbEb" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"a","type":"address"},{"indexed":false,"internalType":"string","name":"value","type":"string"}],"name":"Generated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"approved","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"createPunk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"draw","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c0604052600a608081905269417363696950756e6b7360b01b60a09081526200002d91600391906200047c565b506040805180820190915260038082526241534360e81b60209092019182526200005a916004916200047c565b5060006011556012805460ff191690553480156200007757600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000cb6301ffc9a760e01b62000206565b620000dd635b5e139f60e01b62000206565b60405180606001604052806021815260200162002ca46021913980516200010d916002916020909101906200047c565b50604080518082018252739386efb02a55a1092dc19f0e68a9816ddaabdb5b815273f2353ad0930b9f7cf16b4b8300b843349581e8176020808301919091528251808401909352600783526003908301529060005b6002811015620001d757620001c28382600281106200019157634e487b7160e01b600052603260045260246000fd5b6020020151838360028110620001b757634e487b7160e01b600052603260045260246000fd5b60200201516200028e565b80620001ce816200057a565b91505062000162565b50620001ee91506380ac58cd60e01b905062000206565b6200020063780e9d6360e01b62000206565b620005ae565b6001600160e01b03198082161415620002665760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e746572666163652069640000000060448201526064015b60405180910390fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b6001600160a01b038216620002fb5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200025d565b600081116200034d5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200025d565b6001600160a01b03821660009081526007602052604090205415620003c95760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200025d565b60098054600181019091557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03841690811790915560009081526007602052604090208190556005546200043390829062000522565b600555604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b8280546200048a906200053d565b90600052602060002090601f016020900481019282620004ae5760008555620004f9565b82601f10620004c957805160ff1916838001178555620004f9565b82800160010185558215620004f9579182015b82811115620004f9578251825591602001919060010190620004dc565b50620005079291506200050b565b5090565b5b808211156200050757600081556001016200050c565b6000821982111562000538576200053862000598565b500190565b600181811c908216806200055257607f821691505b602082108114156200057457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000591576200059162000598565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6126e680620005be6000396000f3fe6080604052600436106101f25760003560e01c806355f804b31161010d5780639852595c116100a0578063c87b56dd1161006f578063c87b56dd146105a9578063ce7c2ac2146105c9578063e33b7de3146105ff578063e985e9c514610614578063f2fde38b1461065d5761023b565b80639852595c1461051e578063a22cb46514610554578063b66a0e5d14610574578063b88d4fde146105895761023b565b8063715018a6116100dc578063715018a6146104b65780638b83209b146104cb5780638da5cb5b146104eb57806395d89b41146105095761023b565b806355f804b3146104415780636352211e146104615780636c0360eb1461048157806370a08231146104965761023b565b80631c8b232d116101855780633b304147116101545780633b304147146103cc57806342842e0e146103ec5780634f6ccce71461040c57806355367ba91461042c5761023b565b80631c8b232d1461035d57806323b872dd146103775780632f745c59146103975780633a98ef39146103b75761023b565b8063095ea7b3116101c1578063095ea7b3146102f357806315e52efe1461031557806318160ddd14610328578063191655871461033d5761023b565b806301ffc9a714610240578063031bd4c41461027557806306fdde0314610299578063081812fc146102bb5761023b565b3661023b577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561024c57600080fd5b5061026061025b3660046121c1565b61067d565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028b61080081565b60405190815260200161026c565b3480156102a557600080fd5b506102ae6106a0565b60405161026c9190612392565b3480156102c757600080fd5b506102db6102d63660046122e2565b610732565b6040516001600160a01b03909116815260200161026c565b3480156102ff57600080fd5b5061031361030e366004612196565b610792565b005b6102ae6103233660046122e2565b61095a565b34801561033457600080fd5b5060115461028b565b34801561034957600080fd5b50610313610358366004612060565b61096c565b34801561036957600080fd5b506012546102609060ff1681565b34801561038357600080fd5b506103136103923660046120b4565b610b3d565b3480156103a357600080fd5b5061028b6103b2366004612196565b610c6f565b3480156103c357600080fd5b5060055461028b565b3480156103d857600080fd5b506102ae6103e73660046122e2565b610d35565b3480156103f857600080fd5b506103136104073660046120b4565b610e0d565b34801561041857600080fd5b5061028b6104273660046122e2565b610e2d565b34801561043857600080fd5b50610313610e99565b34801561044d57600080fd5b5061031361045c3660046121f9565b610ecf565b34801561046d57600080fd5b506102db61047c3660046122e2565b610f05565b34801561048d57600080fd5b506102ae610f10565b3480156104a257600080fd5b5061028b6104b1366004612060565b610f1f565b3480156104c257600080fd5b50610313610fa6565b3480156104d757600080fd5b506102db6104e63660046122e2565b61101a565b3480156104f757600080fd5b506000546001600160a01b03166102db565b34801561051557600080fd5b506102ae611058565b34801561052a57600080fd5b5061028b610539366004612060565b6001600160a01b031660009081526008602052604090205490565b34801561056057600080fd5b5061031361056f366004612165565b611067565b34801561058057600080fd5b50610313611139565b34801561059557600080fd5b506103136105a43660046120f4565b611172565b3480156105b557600080fd5b506102ae6105c43660046122e2565b6111bb565b3480156105d557600080fd5b5061028b6105e4366004612060565b6001600160a01b031660009081526007602052604090205490565b34801561060b57600080fd5b5060065461028b565b34801561062057600080fd5b5061026061062f36600461207c565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b34801561066957600080fd5b50610313610678366004612060565b611250565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b6060600380546106af906125df565b80601f01602080910402602001604051908101604052809291908181526020018280546106db906125df565b80156107285780601f106106fd57610100808354040283529160200191610728565b820191906000526020600020905b81548152906001019060200180831161070b57829003601f168201915b5050505050905090565b6000818152600c602052604081205482906001600160a01b03166107715760405162461bcd60e51b81526004016107689061243b565b60405180910390fd5b6000838152601060205260409020546001600160a01b031691505b50919050565b6000818152600c602052604090205481906001600160a01b03166107c85760405162461bcd60e51b81526004016107689061243b565b6000828152600c602052604090205482906001600160a01b03163381148061081357506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b6108855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610768565b6000848152600c60205260409020546001600160a01b039081169086168114156108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610768565b60008581526010602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6060610966338361133a565b92915050565b6001600160a01b0381166000908152600760205260409020546109e05760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610768565b6000600654476109f0919061254d565b6001600160a01b0383166000908152600860209081526040808320546005546007909352908320549394509192610a279085612579565b610a319190612565565b610a3b9190612598565b905080610a9e5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610768565b6001600160a01b038316600090815260086020526040902054610ac290829061254d565b6001600160a01b038416600090815260086020526040902055600654610ae990829061254d565b600655610af683826116c0565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000818152600c602052604090205481906001600160a01b0316610b735760405162461bcd60e51b81526004016107689061243b565b6000828152600c602052604090205482906001600160a01b031633811480610bb157506000828152601060205260409020546001600160a01b031633145b80610bdf57506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b610bfb5760405162461bcd60e51b8152600401610768906124fc565b6000848152600c60205260409020546001600160a01b039081169087168114610c365760405162461bcd60e51b8152600401610768906124b3565b6001600160a01b038616610c5c5760405162461bcd60e51b8152600401610768906123f7565b610c6686866117d9565b50505050505050565b6001600160a01b0382166000908152600d60205260408120548210610cea5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610768565b6001600160a01b0383166000908152600d60205260409020805483908110610d2257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600c602052604090205460609082906001600160a01b0316610d6e5760405162461bcd60e51b81526004016107689061243b565b6000838152600a6020526040808220549051633b30414760e01b81526004810191909152733c24a5df4f69199962b163cb5762be1e8367cbeb90633b3041479060240160006040518083038186803b158015610dc957600080fd5b505af4158015610ddd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e059190810190612239565b949350505050565b610e2883838360405180602001604052806000815250611895565b505050565b60006011548210610e955760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610768565b5090565b6000546001600160a01b03163314610ec35760405162461bcd60e51b81526004016107689061247e565b6012805460ff19169055565b6000546001600160a01b03163314610ef95760405162461bcd60e51b81526004016107689061247e565b610e2860028383611f89565b6000610966826119f0565b6060610f1a611a62565b905090565b60006001600160a01b038216610f8a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610768565b506001600160a01b03166000908152600d602052604090205490565b6000546001600160a01b03163314610fd05760405162461bcd60e51b81526004016107689061247e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006009828154811061103d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6060600480546106af906125df565b6001600160a01b0382163314156110c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610768565b336000818152600f602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161112d911515815260200190565b60405180910390a35050565b6000546001600160a01b031633146111635760405162461bcd60e51b81526004016107689061247e565b6012805460ff19166001179055565b6111b485858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061189592505050565b5050505050565b6000818152600c602052604090205460609082906001600160a01b03166111f45760405162461bcd60e51b81526004016107689061243b565b60006111fe611a62565b9050600081511161121e5760405180602001604052806000815250610e05565b8061122885611a71565b604051602001611239929190612326565b604051602081830303815290604052949350505050565b6000546001600160a01b0316331461127a5760405162461bcd60e51b81526004016107689061247e565b6001600160a01b0381166112df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610768565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60125460609060ff16151560011461138a5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606401610768565b6001600160a01b0383166113e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610768565b6108006011541061144b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732313a206d6178696d756d206e756d626572206f6620746f6b656e7360448201526e08185b1c9958591e481b5a5b9d1959608a1b6064820152608401610768565b611453611b8c565b3410156114a25760405162461bcd60e51b815260206004820152601a60248201527f4552433732313a20696e73756666696369656e742065746865720000000000006044820152606401610768565b60008242336011546040516020016114e59493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f1981840301815291815281516020928301206000818152600b9093529120549091501561155a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a207365656420616c72656164792075736564000000000000006044820152606401610768565b6000601154600161156b919061254d565b6000818152600a60208181526040808420878155878552600b83528185208690558585529290915290549051633b30414760e01b8152600481019190915291925090733c24a5df4f69199962b163cb5762be1e8367cbeb90633b3041479060240160006040518083038186803b1580156115e457600080fd5b505af41580156115f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116209190810190612239565b9050856001600160a01b0316827fa197d2acc8f19f456842a59ba3699aa028ad72b616fd9c26679a516e7443683e8360405161165c9190612392565b60405180910390a360115461167290600161254d565b60115561167f8683611c39565b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a495945050505050565b804710156117105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610768565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461175d576040519150601f19603f3d011682016040523d82523d6000602084013e611762565b606091505b5050905080610e285760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610768565b6000818152600c60205260409020546001600160a01b03166117fa82611ccb565b81836001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a46118458183611d08565b61184f8383611c39565b81836001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000828152600c602052604090205482906001600160a01b03166118cb5760405162461bcd60e51b81526004016107689061243b565b6000838152600c602052604090205483906001600160a01b03163381148061190957506000828152601060205260409020546001600160a01b031633145b8061193757506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b6119535760405162461bcd60e51b8152600401610768906124fc565b6000858152600c60205260409020546001600160a01b03908116908816811461198e5760405162461bcd60e51b8152600401610768906124b3565b6001600160a01b0387166119b45760405162461bcd60e51b8152600401610768906123f7565b6119be87876117d9565b6119ca88888888611e7c565b6119e65760405162461bcd60e51b8152600401610768906123a5565b5050505050505050565b6000818152600c602052604081205482906001600160a01b0316611a265760405162461bcd60e51b81526004016107689061243b565b6000838152600c60205260409020546001600160a01b031680611a5b5760405162461bcd60e51b81526004016107689061243b565b9392505050565b6060600280546106af906125df565b606081611a9657506040805180820190915260018152600360fc1b602082015261069b565b8160005b8115611ac05780611aaa81612614565b9150611ab99050600a83612565565b9150611a9a565b60008167ffffffffffffffff811115611ae957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b13576020820181803683370190505b5090505b8415610e0557611b28600183612598565b9150611b35600a8661262f565b611b4090603061254d565b60f81b818381518110611b6357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b85600a86612565565b9450611b17565b6000806101006011541015611ba9575066b1a2bc2ec50000610f1a565b61010060115410158015611bc05750610200601154105b15611bd4575067016345785d8a0000610f1a565b61020060115410158015611beb5750610400601154105b15611bff57506702c68af0bb140000610f1a565b61040060115410158015611c165750610600601154105b15611c2a5750670429d069189e0000610f1a565b5067058d15e176280000905090565b6000818152600c60205260409020546001600160a01b031615611c5b57600080fd5b6000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d8352908320805460018181018355828652938520018590559252905490611cb49082612598565b6000928352600e6020526040909220919091555050565b6000818152601060205260409020546001600160a01b031615611d0557600081815260106020526040902080546001600160a01b03191690555b50565b6000818152600c60205260409020546001600160a01b03838116911614611d2e57600080fd5b6000818152600c6020908152604080832080546001600160a01b0319169055600e8252808320546001600160a01b0386168452600d909252822054909190611d7890600190612598565b9050818114611e2b576001600160a01b0384166000908152600d60205260408120805483908110611db957634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600d6000876001600160a01b03166001600160a01b031681526020019081526020016000208481548110611e0b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600e9052604090208290555b6001600160a01b0384166000908152600d60205260409020805480611e6057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006001600160a01b0384163b15611f7e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ec0903390899088908890600401612355565b602060405180830381600087803b158015611eda57600080fd5b505af1925050508015611f0a575060408051601f3d908101601f19168201909252611f07918101906121dd565b60015b611f64573d808015611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b508051611f5c5760405162461bcd60e51b8152600401610768906123a5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e05565b506001949350505050565b828054611f95906125df565b90600052602060002090601f016020900481019282611fb75760008555611ffd565b82601f10611fd05782800160ff19823516178555611ffd565b82800160010185558215611ffd579182015b82811115611ffd578235825591602001919060010190611fe2565b50610e959291505b80821115610e955760008155600101612005565b60008083601f84011261202a578182fd5b50813567ffffffffffffffff811115612041578182fd5b60208301915083602082850101111561205957600080fd5b9250929050565b600060208284031215612071578081fd5b8135611a5b81612685565b6000806040838503121561208e578081fd5b823561209981612685565b915060208301356120a981612685565b809150509250929050565b6000806000606084860312156120c8578081fd5b83356120d381612685565b925060208401356120e381612685565b929592945050506040919091013590565b60008060008060006080868803121561210b578081fd5b853561211681612685565b9450602086013561212681612685565b935060408601359250606086013567ffffffffffffffff811115612148578182fd5b61215488828901612019565b969995985093965092949392505050565b60008060408385031215612177578182fd5b823561218281612685565b9150602083013580151581146120a9578182fd5b600080604083850312156121a8578182fd5b82356121b381612685565b946020939093013593505050565b6000602082840312156121d2578081fd5b8135611a5b8161269a565b6000602082840312156121ee578081fd5b8151611a5b8161269a565b6000806020838503121561220b578182fd5b823567ffffffffffffffff811115612221578283fd5b61222d85828601612019565b90969095509350505050565b60006020828403121561224a578081fd5b815167ffffffffffffffff80821115612261578283fd5b818401915084601f830112612274578283fd5b8151818111156122865761228661266f565b604051601f8201601f19908116603f011681019083821181831017156122ae576122ae61266f565b816040528281528760208487010111156122c6578586fd5b6122d78360208301602088016125af565b979650505050505050565b6000602082840312156122f3578081fd5b5035919050565b600081518084526123128160208601602086016125af565b601f01601f19169290920160200192915050565b600083516123388184602088016125af565b83519083019061234c8183602088016125af565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612388908301846122fa565b9695505050505050565b600060208252611a5b60208301846122fa565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526023908201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561256057612560612643565b500190565b60008261257457612574612659565b500490565b600081600019048311821515161561259357612593612643565b500290565b6000828210156125aa576125aa612643565b500390565b60005b838110156125ca5781810151838201526020016125b2565b838111156125d9576000848401525b50505050565b600181811c908216806125f357607f821691505b6020821081141561078c57634e487b7160e01b600052602260045260246000fd5b600060001982141561262857612628612643565b5060010190565b60008261263e5761263e612659565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d0557600080fd5b6001600160e01b031981168114611d0557600080fdfea2646970667358221220d523caaa559c057fb82c735be1164270a8b78a147bc16bd5af8e1a4a8c8d13f764736f6c6343000803003368747470733a2f2f6170692e617363696970756e6b732e636f6d2f70756e6b732f
Deployed Bytecode
0x6080604052600436106101f25760003560e01c806355f804b31161010d5780639852595c116100a0578063c87b56dd1161006f578063c87b56dd146105a9578063ce7c2ac2146105c9578063e33b7de3146105ff578063e985e9c514610614578063f2fde38b1461065d5761023b565b80639852595c1461051e578063a22cb46514610554578063b66a0e5d14610574578063b88d4fde146105895761023b565b8063715018a6116100dc578063715018a6146104b65780638b83209b146104cb5780638da5cb5b146104eb57806395d89b41146105095761023b565b806355f804b3146104415780636352211e146104615780636c0360eb1461048157806370a08231146104965761023b565b80631c8b232d116101855780633b304147116101545780633b304147146103cc57806342842e0e146103ec5780634f6ccce71461040c57806355367ba91461042c5761023b565b80631c8b232d1461035d57806323b872dd146103775780632f745c59146103975780633a98ef39146103b75761023b565b8063095ea7b3116101c1578063095ea7b3146102f357806315e52efe1461031557806318160ddd14610328578063191655871461033d5761023b565b806301ffc9a714610240578063031bd4c41461027557806306fdde0314610299578063081812fc146102bb5761023b565b3661023b577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561024c57600080fd5b5061026061025b3660046121c1565b61067d565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b5061028b61080081565b60405190815260200161026c565b3480156102a557600080fd5b506102ae6106a0565b60405161026c9190612392565b3480156102c757600080fd5b506102db6102d63660046122e2565b610732565b6040516001600160a01b03909116815260200161026c565b3480156102ff57600080fd5b5061031361030e366004612196565b610792565b005b6102ae6103233660046122e2565b61095a565b34801561033457600080fd5b5060115461028b565b34801561034957600080fd5b50610313610358366004612060565b61096c565b34801561036957600080fd5b506012546102609060ff1681565b34801561038357600080fd5b506103136103923660046120b4565b610b3d565b3480156103a357600080fd5b5061028b6103b2366004612196565b610c6f565b3480156103c357600080fd5b5060055461028b565b3480156103d857600080fd5b506102ae6103e73660046122e2565b610d35565b3480156103f857600080fd5b506103136104073660046120b4565b610e0d565b34801561041857600080fd5b5061028b6104273660046122e2565b610e2d565b34801561043857600080fd5b50610313610e99565b34801561044d57600080fd5b5061031361045c3660046121f9565b610ecf565b34801561046d57600080fd5b506102db61047c3660046122e2565b610f05565b34801561048d57600080fd5b506102ae610f10565b3480156104a257600080fd5b5061028b6104b1366004612060565b610f1f565b3480156104c257600080fd5b50610313610fa6565b3480156104d757600080fd5b506102db6104e63660046122e2565b61101a565b3480156104f757600080fd5b506000546001600160a01b03166102db565b34801561051557600080fd5b506102ae611058565b34801561052a57600080fd5b5061028b610539366004612060565b6001600160a01b031660009081526008602052604090205490565b34801561056057600080fd5b5061031361056f366004612165565b611067565b34801561058057600080fd5b50610313611139565b34801561059557600080fd5b506103136105a43660046120f4565b611172565b3480156105b557600080fd5b506102ae6105c43660046122e2565b6111bb565b3480156105d557600080fd5b5061028b6105e4366004612060565b6001600160a01b031660009081526007602052604090205490565b34801561060b57600080fd5b5060065461028b565b34801561062057600080fd5b5061026061062f36600461207c565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205460ff1690565b34801561066957600080fd5b50610313610678366004612060565b611250565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b6060600380546106af906125df565b80601f01602080910402602001604051908101604052809291908181526020018280546106db906125df565b80156107285780601f106106fd57610100808354040283529160200191610728565b820191906000526020600020905b81548152906001019060200180831161070b57829003601f168201915b5050505050905090565b6000818152600c602052604081205482906001600160a01b03166107715760405162461bcd60e51b81526004016107689061243b565b60405180910390fd5b6000838152601060205260409020546001600160a01b031691505b50919050565b6000818152600c602052604090205481906001600160a01b03166107c85760405162461bcd60e51b81526004016107689061243b565b6000828152600c602052604090205482906001600160a01b03163381148061081357506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b6108855760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610768565b6000848152600c60205260409020546001600160a01b039081169086168114156108fb5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610768565b60008581526010602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6060610966338361133a565b92915050565b6001600160a01b0381166000908152600760205260409020546109e05760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610768565b6000600654476109f0919061254d565b6001600160a01b0383166000908152600860209081526040808320546005546007909352908320549394509192610a279085612579565b610a319190612565565b610a3b9190612598565b905080610a9e5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610768565b6001600160a01b038316600090815260086020526040902054610ac290829061254d565b6001600160a01b038416600090815260086020526040902055600654610ae990829061254d565b600655610af683826116c0565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000818152600c602052604090205481906001600160a01b0316610b735760405162461bcd60e51b81526004016107689061243b565b6000828152600c602052604090205482906001600160a01b031633811480610bb157506000828152601060205260409020546001600160a01b031633145b80610bdf57506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b610bfb5760405162461bcd60e51b8152600401610768906124fc565b6000848152600c60205260409020546001600160a01b039081169087168114610c365760405162461bcd60e51b8152600401610768906124b3565b6001600160a01b038616610c5c5760405162461bcd60e51b8152600401610768906123f7565b610c6686866117d9565b50505050505050565b6001600160a01b0382166000908152600d60205260408120548210610cea5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610768565b6001600160a01b0383166000908152600d60205260409020805483908110610d2257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b6000818152600c602052604090205460609082906001600160a01b0316610d6e5760405162461bcd60e51b81526004016107689061243b565b6000838152600a6020526040808220549051633b30414760e01b81526004810191909152733c24a5df4f69199962b163cb5762be1e8367cbeb90633b3041479060240160006040518083038186803b158015610dc957600080fd5b505af4158015610ddd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e059190810190612239565b949350505050565b610e2883838360405180602001604052806000815250611895565b505050565b60006011548210610e955760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610768565b5090565b6000546001600160a01b03163314610ec35760405162461bcd60e51b81526004016107689061247e565b6012805460ff19169055565b6000546001600160a01b03163314610ef95760405162461bcd60e51b81526004016107689061247e565b610e2860028383611f89565b6000610966826119f0565b6060610f1a611a62565b905090565b60006001600160a01b038216610f8a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610768565b506001600160a01b03166000908152600d602052604090205490565b6000546001600160a01b03163314610fd05760405162461bcd60e51b81526004016107689061247e565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006009828154811061103d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6060600480546106af906125df565b6001600160a01b0382163314156110c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610768565b336000818152600f602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161112d911515815260200190565b60405180910390a35050565b6000546001600160a01b031633146111635760405162461bcd60e51b81526004016107689061247e565b6012805460ff19166001179055565b6111b485858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061189592505050565b5050505050565b6000818152600c602052604090205460609082906001600160a01b03166111f45760405162461bcd60e51b81526004016107689061243b565b60006111fe611a62565b9050600081511161121e5760405180602001604052806000815250610e05565b8061122885611a71565b604051602001611239929190612326565b604051602081830303815290604052949350505050565b6000546001600160a01b0316331461127a5760405162461bcd60e51b81526004016107689061247e565b6001600160a01b0381166112df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610768565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60125460609060ff16151560011461138a5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b6044820152606401610768565b6001600160a01b0383166113e05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610768565b6108006011541061144b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732313a206d6178696d756d206e756d626572206f6620746f6b656e7360448201526e08185b1c9958591e481b5a5b9d1959608a1b6064820152608401610768565b611453611b8c565b3410156114a25760405162461bcd60e51b815260206004820152601a60248201527f4552433732313a20696e73756666696369656e742065746865720000000000006044820152606401610768565b60008242336011546040516020016114e59493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f1981840301815291815281516020928301206000818152600b9093529120549091501561155a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a207365656420616c72656164792075736564000000000000006044820152606401610768565b6000601154600161156b919061254d565b6000818152600a60208181526040808420878155878552600b83528185208690558585529290915290549051633b30414760e01b8152600481019190915291925090733c24a5df4f69199962b163cb5762be1e8367cbeb90633b3041479060240160006040518083038186803b1580156115e457600080fd5b505af41580156115f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116209190810190612239565b9050856001600160a01b0316827fa197d2acc8f19f456842a59ba3699aa028ad72b616fd9c26679a516e7443683e8360405161165c9190612392565b60405180910390a360115461167290600161254d565b60115561167f8683611c39565b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a495945050505050565b804710156117105760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610768565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461175d576040519150601f19603f3d011682016040523d82523d6000602084013e611762565b606091505b5050905080610e285760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610768565b6000818152600c60205260409020546001600160a01b03166117fa82611ccb565b81836001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a46118458183611d08565b61184f8383611c39565b81836001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000828152600c602052604090205482906001600160a01b03166118cb5760405162461bcd60e51b81526004016107689061243b565b6000838152600c602052604090205483906001600160a01b03163381148061190957506000828152601060205260409020546001600160a01b031633145b8061193757506001600160a01b0381166000908152600f6020908152604080832033845290915290205460ff165b6119535760405162461bcd60e51b8152600401610768906124fc565b6000858152600c60205260409020546001600160a01b03908116908816811461198e5760405162461bcd60e51b8152600401610768906124b3565b6001600160a01b0387166119b45760405162461bcd60e51b8152600401610768906123f7565b6119be87876117d9565b6119ca88888888611e7c565b6119e65760405162461bcd60e51b8152600401610768906123a5565b5050505050505050565b6000818152600c602052604081205482906001600160a01b0316611a265760405162461bcd60e51b81526004016107689061243b565b6000838152600c60205260409020546001600160a01b031680611a5b5760405162461bcd60e51b81526004016107689061243b565b9392505050565b6060600280546106af906125df565b606081611a9657506040805180820190915260018152600360fc1b602082015261069b565b8160005b8115611ac05780611aaa81612614565b9150611ab99050600a83612565565b9150611a9a565b60008167ffffffffffffffff811115611ae957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b13576020820181803683370190505b5090505b8415610e0557611b28600183612598565b9150611b35600a8661262f565b611b4090603061254d565b60f81b818381518110611b6357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b85600a86612565565b9450611b17565b6000806101006011541015611ba9575066b1a2bc2ec50000610f1a565b61010060115410158015611bc05750610200601154105b15611bd4575067016345785d8a0000610f1a565b61020060115410158015611beb5750610400601154105b15611bff57506702c68af0bb140000610f1a565b61040060115410158015611c165750610600601154105b15611c2a5750670429d069189e0000610f1a565b5067058d15e176280000905090565b6000818152600c60205260409020546001600160a01b031615611c5b57600080fd5b6000818152600c6020908152604080832080546001600160a01b0319166001600160a01b038716908117909155808452600d8352908320805460018181018355828652938520018590559252905490611cb49082612598565b6000928352600e6020526040909220919091555050565b6000818152601060205260409020546001600160a01b031615611d0557600081815260106020526040902080546001600160a01b03191690555b50565b6000818152600c60205260409020546001600160a01b03838116911614611d2e57600080fd5b6000818152600c6020908152604080832080546001600160a01b0319169055600e8252808320546001600160a01b0386168452600d909252822054909190611d7890600190612598565b9050818114611e2b576001600160a01b0384166000908152600d60205260408120805483908110611db957634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600d6000876001600160a01b03166001600160a01b031681526020019081526020016000208481548110611e0b57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600e9052604090208290555b6001600160a01b0384166000908152600d60205260409020805480611e6057634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006001600160a01b0384163b15611f7e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ec0903390899088908890600401612355565b602060405180830381600087803b158015611eda57600080fd5b505af1925050508015611f0a575060408051601f3d908101601f19168201909252611f07918101906121dd565b60015b611f64573d808015611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b508051611f5c5760405162461bcd60e51b8152600401610768906123a5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e05565b506001949350505050565b828054611f95906125df565b90600052602060002090601f016020900481019282611fb75760008555611ffd565b82601f10611fd05782800160ff19823516178555611ffd565b82800160010185558215611ffd579182015b82811115611ffd578235825591602001919060010190611fe2565b50610e959291505b80821115610e955760008155600101612005565b60008083601f84011261202a578182fd5b50813567ffffffffffffffff811115612041578182fd5b60208301915083602082850101111561205957600080fd5b9250929050565b600060208284031215612071578081fd5b8135611a5b81612685565b6000806040838503121561208e578081fd5b823561209981612685565b915060208301356120a981612685565b809150509250929050565b6000806000606084860312156120c8578081fd5b83356120d381612685565b925060208401356120e381612685565b929592945050506040919091013590565b60008060008060006080868803121561210b578081fd5b853561211681612685565b9450602086013561212681612685565b935060408601359250606086013567ffffffffffffffff811115612148578182fd5b61215488828901612019565b969995985093965092949392505050565b60008060408385031215612177578182fd5b823561218281612685565b9150602083013580151581146120a9578182fd5b600080604083850312156121a8578182fd5b82356121b381612685565b946020939093013593505050565b6000602082840312156121d2578081fd5b8135611a5b8161269a565b6000602082840312156121ee578081fd5b8151611a5b8161269a565b6000806020838503121561220b578182fd5b823567ffffffffffffffff811115612221578283fd5b61222d85828601612019565b90969095509350505050565b60006020828403121561224a578081fd5b815167ffffffffffffffff80821115612261578283fd5b818401915084601f830112612274578283fd5b8151818111156122865761228661266f565b604051601f8201601f19908116603f011681019083821181831017156122ae576122ae61266f565b816040528281528760208487010111156122c6578586fd5b6122d78360208301602088016125af565b979650505050505050565b6000602082840312156122f3578081fd5b5035919050565b600081518084526123128160208601602086016125af565b601f01601f19169290920160200192915050565b600083516123388184602088016125af565b83519083019061234c8183602088016125af565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612388908301846122fa565b9695505050505050565b600060208252611a5b60208301846122fa565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526023908201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60408201526235b2b760e91b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561256057612560612643565b500190565b60008261257457612574612659565b500490565b600081600019048311821515161561259357612593612643565b500290565b6000828210156125aa576125aa612643565b500390565b60005b838110156125ca5781810151838201526020016125b2565b838111156125d9576000848401525b50505050565b600181811c908216806125f357607f821691505b6020821081141561078c57634e487b7160e01b600052602260045260246000fd5b600060001982141561262857612628612643565b5060010190565b60008261263e5761263e612659565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611d0557600080fd5b6001600160e01b031981168114611d0557600080fdfea2646970667358221220d523caaa559c057fb82c735be1164270a8b78a147bc16bd5af8e1a4a8c8d13f764736f6c63430008030033
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.