Polygon Sponsored slots available. Book your slot here!
Contract Overview
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
PolygonalPunks
Compiler Version
v0.8.4+commit.c7e474f2
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/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } /** * https://github.com/maticnetwork/pos-portal/blob/master/contracts/common/ContextMixin.sol */ abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } } contract PolygonalPunks is ERC721Enumerable, Ownable, ReentrancyGuard, ContextMixin { struct Offer { bool isForSale; uint256 punkIndex; address seller; uint256 minValue; // in ether address onlySellTo; // specify to sell only to a specific person } struct Bid { bool hasBid; uint256 punkIndex; address bidder; uint256 value; } mapping(uint256 => uint256) private assignOrders; mapping (uint256 => Offer) public punksOfferedForSale; mapping (uint256 => Bid) public punkBids; mapping (address => uint256) public pendingWithdrawals; // string public baseURI; uint256 public punksRemainingToAssign = 0; uint256 public claimPrice = 44 ether; modifier onlyTradablePunk (address from, uint256 tokenId) { require(tokenId < 10000, "Out of tokenId"); require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); _; } event Assign(address indexed to, uint256 punkIndex); event PunkTransfer(address indexed from, address indexed to, uint256 punkIndex); event PunkOffered(uint256 indexed punkIndex, uint256 minValue, address indexed toAddress); event PunkBidEntered(uint256 indexed punkIndex, uint256 value, address indexed fromAddress); event PunkBidWithdrawn(uint256 indexed punkIndex, uint256 value, address indexed fromAddress); event PunkBought(uint256 indexed punkIndex, uint256 value, address indexed fromAddress, address indexed toAddress); event PunkNoLongerForSale(uint256 indexed punkIndex); constructor () ERC721("PolygonalPunks", "PGPNK") { punksRemainingToAssign = 10000; } function mint() payable public { require(punksRemainingToAssign > 0, "No remaining punk"); require(msg.value >= claimPrice, "Need pay at least claim amount"); uint256 randIndex = _random() % punksRemainingToAssign; uint256 punkIndex = _fillAssignOrder(--punksRemainingToAssign, randIndex); _safeMint(_msgSender(), punkIndex); (bool success,) = owner().call{value: msg.value}(""); require(success); emit Assign(_msgSender(), punkIndex); } function transferPunk(address to, uint256 tokenId) public { _safeTransfer(_msgSender(), to, tokenId, ""); } function punkNoLongerForSale(uint256 tokenId) public { _punkNoLongerForSale(_msgSender(), tokenId); } function offerPunkForSale(uint256 tokenId, uint256 minSalePriceInWei) public onlyTradablePunk(_msgSender(), tokenId) { punksOfferedForSale[tokenId] = Offer(true, tokenId, _msgSender(), minSalePriceInWei, address(0)); emit PunkOffered(tokenId, minSalePriceInWei, address(0)); } function offerPunkForSaleToAddress(uint256 tokenId, uint256 minSalePriceInWei, address toAddress) public onlyTradablePunk(_msgSender(), tokenId) { punksOfferedForSale[tokenId] = Offer(true, tokenId, _msgSender(), minSalePriceInWei, toAddress); emit PunkOffered(tokenId, minSalePriceInWei, toAddress); } function buyPunk(uint256 tokenId) payable public { Offer memory offer = punksOfferedForSale[tokenId]; require(tokenId < 10000, "Out of tokenId"); require(offer.isForSale, "Punk is not for sale"); require(offer.onlySellTo == address(0) || offer.onlySellTo == _msgSender(), "Unable to sell"); require(msg.value >= offer.minValue, "Insufficient amount to pay"); require(ownerOf(tokenId) == offer.seller, "Not punk seller"); address seller = offer.seller; _safeTransfer(seller, _msgSender(), tokenId, ""); pendingWithdrawals[seller] += msg.value; emit PunkBought(tokenId, msg.value, seller, _msgSender()); } function withdraw() public nonReentrant { uint256 amount = pendingWithdrawals[_msgSender()]; pendingWithdrawals[_msgSender()] = 0; (bool success,) = _msgSender().call{value: amount}(""); require(success); } function enterBidForPunk(uint256 tokenId) public payable { require(tokenId < 10000, "Out of tokenId"); require(ownerOf(tokenId) != _msgSender(), "Invalid bid"); require(msg.value > punkBids[tokenId].value, "Require bigger amount"); Bid memory existing = punkBids[tokenId]; if (existing.value > 0) { // Refund the failing bid pendingWithdrawals[existing.bidder] += existing.value; } punkBids[tokenId] = Bid(true, tokenId, _msgSender(), msg.value); emit PunkBidEntered(tokenId, msg.value, _msgSender()); } function acceptBidForPunk(uint256 tokenId, uint256 minPrice) public onlyTradablePunk(_msgSender(), tokenId) { require(punkBids[tokenId].value >= minPrice, "Bid price is low"); Bid memory bid = punkBids[tokenId]; punkBids[tokenId] = Bid(false, tokenId, address(0), 0); _safeTransfer(_msgSender(), bid.bidder, tokenId, ""); uint256 amount = bid.value; pendingWithdrawals[_msgSender()] += amount; emit PunkBought(tokenId, bid.value, _msgSender(), bid.bidder); } function withdrawBidForPunk(uint256 tokenId) public { require(tokenId < 10000, "Out of tokenId"); require(ownerOf(tokenId) != _msgSender(), "Invalid bid"); require(punkBids[tokenId].bidder == _msgSender(), "Invalid bidder"); uint256 amount = punkBids[tokenId].value; punkBids[tokenId] = Bid(false, tokenId, address(0), 0); // Refund the bid money (bool success,) = _msgSender().call{value: amount}(""); require(success); emit PunkBidWithdrawn(tokenId, punkBids[tokenId].value, _msgSender()); } function _random() internal view returns(uint256) { return uint256( keccak256( abi.encodePacked(block.timestamp + block.difficulty + ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / block.timestamp) + block.gaslimit + ((uint256(keccak256(abi.encodePacked(_msgSender())))) / block.timestamp) + block.number) ) ) / punksRemainingToAssign; } function _fillAssignOrder(uint256 orderA, uint256 orderB) internal returns(uint256) { uint256 temp = orderA; if (assignOrders[orderA] > 0) temp = assignOrders[orderA]; assignOrders[orderA] = orderB; if (assignOrders[orderB] > 0) assignOrders[orderA] = assignOrders[orderB]; assignOrders[orderB] = temp; return assignOrders[orderA]; } function _transfer(address from, address to, uint256 tokenId) internal override onlyTradablePunk(from, tokenId) { super._transfer(from, to, tokenId); emit PunkTransfer(from, to, tokenId); if (punksOfferedForSale[tokenId].isForSale) { _punkNoLongerForSale(to, tokenId); } if (punkBids[tokenId].bidder == to) { pendingWithdrawals[to] += punkBids[tokenId].value; punkBids[tokenId] = Bid(false, tokenId, address(0), 0); } } function _punkNoLongerForSale(address from, uint256 tokenId) internal onlyTradablePunk(from, tokenId) { punksOfferedForSale[tokenId] = Offer(false, tokenId, from, 0, address(0)); emit PunkNoLongerForSale(tokenId); } receive() external payable {} function getPunksBelongingToOwner(address _owner) external view returns (uint256[] memory) { uint256 numPunks = balanceOf(_owner); if (numPunks == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](numPunks); for (uint256 i = 0; i < numPunks; i++) { result[i] = tokenOfOwnerByIndex(_owner, i); } return result; } } string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { string memory base = _baseURI(); string memory _tokenURI = Strings.toString(_tokenId); string memory ending = ".json"; // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } return string(abi.encodePacked(base, _tokenURI, ending)); } function setBaseURI(string memory baseURI) external onlyOwner { _baseTokenURI = baseURI; } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } /** * Override isApprovedForAll to auto-approve OS's proxy contract */ function isApprovedForAll( address _owner, address _operator ) public override view returns (bool isOperator) { // if OpenSea's ERC721 Proxy Address is detected, auto-return true if (_operator == address(0x58807baD0B376efc12F5AD86aAc70E78ed67deaE)) { return true; } // otherwise, use the default ERC721.isApprovedForAll() return ERC721.isApprovedForAll(_owner, _operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"punkIndex","type":"uint256"}],"name":"Assign","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"punkIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"PunkBidEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"punkIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"PunkBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"punkIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"PunkBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"punkIndex","type":"uint256"}],"name":"PunkNoLongerForSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"punkIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minValue","type":"uint256"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"PunkOffered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"punkIndex","type":"uint256"}],"name":"PunkTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"minPrice","type":"uint256"}],"name":"acceptBidForPunk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buyPunk","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"enterBidForPunk","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getPunksBelongingToOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"minSalePriceInWei","type":"uint256"}],"name":"offerPunkForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"minSalePriceInWei","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"offerPunkForSaleToAddress","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"","type":"address"}],"name":"pendingWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"punkBids","outputs":[{"internalType":"bool","name":"hasBid","type":"bool"},{"internalType":"uint256","name":"punkIndex","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"punkNoLongerForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"punksOfferedForSale","outputs":[{"internalType":"bool","name":"isForSale","type":"bool"},{"internalType":"uint256","name":"punkIndex","type":"uint256"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"onlySellTo","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punksRemainingToAssign","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferPunk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawBidForPunk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260006010556802629f66e0c53000006011553480156200002357600080fd5b50604080518082018252600e81526d506f6c79676f6e616c50756e6b7360901b6020808301918252835180850190945260058452645047504e4b60d81b908401528151919291620000779160009162000188565b5080516200008d90600190602084019062000188565b505050620000aa620000a4620000bb60201b60201c565b620000d7565b6001600b556127106010556200026b565b6000620000d26200012960201b62001ff21760201c565b905090565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000333014156200018257600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620001859050565b50335b90565b82805462000196906200022e565b90600052602060002090601f016020900481019282620001ba576000855562000205565b82601f10620001d557805160ff191683800117855562000205565b8280016001018555821562000205579182015b8281111562000205578251825591602001919060010190620001e8565b506200021392915062000217565b5090565b5b8082111562000213576000815560010162000218565b600181811c908216806200024357607f821691505b602082108114156200026557634e487b7160e01b600052602260045260246000fd5b50919050565b6135ac806200027b6000396000f3fe6080604052600436106102135760003560e01c806370a0823111610118578063bf31196f116100a0578063e8e732a11161006f578063e8e732a11461069c578063e985e9c5146106c9578063f2fde38b146106e9578063f3f4370314610709578063f6eeff1e1461073657600080fd5b8063bf31196f14610626578063c0d6ce6314610646578063c44193c31461065c578063c87b56dd1461067c57600080fd5b80638da5cb5b116100e75780638da5cb5b1461059357806395d89b41146105b1578063979bc638146105c6578063a22cb465146105e6578063b88d4fde1461060657600080fd5b806370a082311461052b578063715018a61461054b5780638264fe98146105605780638b72a2ec1461057357600080fd5b806323165b751161019b57806342842e0e1161016a57806342842e0e146104285780634f6ccce71461044857806355f804b3146104685780636352211e146104885780636e743fa9146104a857600080fd5b806323165b75146103b357806323b872dd146103d35780632f745c59146103f35780633ccfd60b1461041357600080fd5b8063091dbfd2116101e2578063091dbfd21461033d578063095ea7b3146103525780631249c58b1461037257806315d655c91461037a57806318160ddd1461039e57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063088f11f3146102ae57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5061023f61023a3660046130fd565b610756565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b50610269610781565b60405161024b91906132d8565b34801561028257600080fd5b5061029661029136600461317b565b610813565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506103076102c936600461317b565b600d602052600090815260409020805460018201546002830154600384015460049094015460ff9093169391926001600160a01b0391821692911685565b60408051951515865260208601949094526001600160a01b0392831693850193909352606084015216608082015260a00161024b565b61035061034b36600461317b565b6108ad565b005b34801561035e57600080fd5b5061035061036d3660046130d4565b610ae3565b610350610c0b565b34801561038657600080fd5b5061039060115481565b60405190815260200161024b565b3480156103aa57600080fd5b50600854610390565b3480156103bf57600080fd5b506103506103ce366004613193565b610dae565b3480156103df57600080fd5b506103506103ee366004612fe6565b61105c565b3480156103ff57600080fd5b5061039061040e3660046130d4565b611094565b34801561041f57600080fd5b5061035061112a565b34801561043457600080fd5b50610350610443366004612fe6565b611254565b34801561045457600080fd5b5061039061046336600461317b565b61126f565b34801561047457600080fd5b50610350610483366004613135565b611310565b34801561049457600080fd5b506102966104a336600461317b565b611370565b3480156104b457600080fd5b506104fa6104c336600461317b565b600e60205260009081526040902080546001820154600283015460039093015460ff9092169290916001600160a01b039091169084565b60405161024b9493929190931515845260208401929092526001600160a01b03166040830152606082015260800190565b34801561053757600080fd5b50610390610546366004612f9a565b6113e7565b34801561055757600080fd5b5061035061146e565b61035061056e36600461317b565b6114c3565b34801561057f57600080fd5b5061035061058e3660046130d4565b61175a565b34801561059f57600080fd5b50600a546001600160a01b0316610296565b3480156105bd57600080fd5b5061026961177c565b3480156105d257600080fd5b506103506105e136600461317b565b61178b565b3480156105f257600080fd5b5061035061060136600461309a565b6119b4565b34801561061257600080fd5b50610350610621366004613021565b611aaa565b34801561063257600080fd5b506103506106413660046131b4565b611ae9565b34801561065257600080fd5b5061039060105481565b34801561066857600080fd5b50610350610677366004613193565b611c32565b34801561068857600080fd5b5061026961069736600461317b565b611d77565b3480156106a857600080fd5b506106bc6106b7366004612f9a565b611dec565b60405161024b9190613294565b3480156106d557600080fd5b5061023f6106e4366004612fb4565b611ec7565b3480156106f557600080fd5b50610350610704366004612f9a565b611f27565b34801561071557600080fd5b50610390610724366004612f9a565b600f6020526000908152604090205481565b34801561074257600080fd5b5061035061075136600461317b565b611fe1565b60006001600160e01b0319821663780e9d6360e01b148061077b575061077b8261204f565b92915050565b606060008054610790906134ba565b80601f01602080910402602001604051908101604052809291908181526020018280546107bc906134ba565b80156108095780601f106107de57610100808354040283529160200191610809565b820191906000526020600020905b8154815290600101906020018083116107ec57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b61271081106108ce5760405162461bcd60e51b8152600401610888906133bb565b6108d661209f565b6001600160a01b03166108e882611370565b6001600160a01b0316141561092d5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a5908189a5960aa1b6044820152606401610888565b6000818152600e602052604090206003015434116109855760405162461bcd60e51b815260206004820152601560248201527414995c5d5a5c9948189a59d9d95c88185b5bdd5b9d605a1b6044820152606401610888565b6000818152600e60209081526040918290208251608081018452815460ff161515815260018201549281019290925260028101546001600160a01b0316928201929092526003909101546060820181905215610a125760608101516040808301516001600160a01b03166000908152600f6020529081208054909190610a0c908490613434565b90915550505b6040518060800160405280600115158152602001838152602001610a3461209f565b6001600160a01b039081168252346020928301526000858152600e83526040908190208451815460ff19169015151781559284015160018401558301516002830180546001600160a01b03191691909216179055606090910151600390910155610a9c61209f565b6001600160a01b0316827f5b859394fabae0c1ba88baffe67e751ab5248d2e879028b8c8d6897b0519f56a34604051610ad791815260200190565b60405180910390a35050565b6000610aee82611370565b9050806001600160a01b0316836001600160a01b03161415610b5c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610888565b806001600160a01b0316610b6e61209f565b6001600160a01b03161480610b8a5750610b8a816106e461209f565b610bfc5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610888565b610c0683836120ae565b505050565b600060105411610c515760405162461bcd60e51b81526020600482015260116024820152704e6f2072656d61696e696e672070756e6b60781b6044820152606401610888565b601154341015610ca35760405162461bcd60e51b815260206004820152601e60248201527f4e65656420706179206174206c6561737420636c61696d20616d6f756e7400006044820152606401610888565b6000601054610cb061211c565b610cba919061350a565b90506000610cdb601060008154610cd0906134a3565b918290555083612222565b9050610cee610ce861209f565b82612299565b6000610d02600a546001600160a01b031690565b6001600160a01b03163460405160006040518083038185875af1925050503d8060008114610d4c576040519150601f19603f3d011682016040523d82523d6000602084013e610d51565b606091505b5050905080610d5f57600080fd5b610d6761209f565b6001600160a01b03167f8a0e37b73a0d9c82e205d4d1a3ff3d0b57ce5f4d7bccf6bac03336dc101cb7ba83604051610da191815260200190565b60405180910390a2505050565b610db661209f565b826127108110610dd85760405162461bcd60e51b8152600401610888906133bb565b816001600160a01b0316610deb82611370565b6001600160a01b031614610e115760405162461bcd60e51b815260040161088890613372565b6000848152600e6020526040902060030154831115610e655760405162461bcd60e51b815260206004820152601060248201526f426964207072696365206973206c6f7760801b6044820152606401610888565b6000600e60008681526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016003820154815250509050604051806080016040528060001515815260200186815260200160006001600160a01b031681526020016000815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160030155905050610fb1610f9661209f565b826040015187604051806020016040528060008152506122b3565b606081015180600f6000610fc361209f565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610ff29190613434565b909155505060408201516001600160a01b031661100d61209f565b6001600160a01b0316877f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3856060015160405161104c91815260200190565b60405180910390a4505050505050565b61106d61106761209f565b826122e6565b6110895760405162461bcd60e51b8152600401610888906133e3565b610c068383836123bd565b600061109f836113e7565b82106111015760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610888565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b54141561117d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610888565b6002600b556000600f8161118f61209f565b6001600160a01b03166001600160a01b031681526020019081526020016000205490506000600f60006111c061209f565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555060006111ee61209f565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114611238576040519150601f19603f3d011682016040523d82523d6000602084013e61123d565b606091505b505090508061124b57600080fd5b50506001600b55565b610c0683838360405180602001604052806000815250611aaa565b600061127a60085490565b82106112dd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610888565b600882815481106112fe57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61131861209f565b6001600160a01b0316611333600a546001600160a01b031690565b6001600160a01b0316146113595760405162461bcd60e51b81526004016108889061333d565b805161136c906012906020840190612e6f565b5050565b6000818152600260205260408120546001600160a01b03168061077b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610888565b60006001600160a01b0382166114525760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610888565b506001600160a01b031660009081526003602052604090205490565b61147661209f565b6001600160a01b0316611491600a546001600160a01b031690565b6001600160a01b0316146114b75760405162461bcd60e51b81526004016108889061333d565b6114c1600061256d565b565b6000818152600d6020908152604091829020825160a081018452815460ff161515815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154606083015260040154909116608082015261271082106115405760405162461bcd60e51b8152600401610888906133bb565b80516115855760405162461bcd60e51b815260206004820152601460248201527350756e6b206973206e6f7420666f722073616c6560601b6044820152606401610888565b60808101516001600160a01b031615806115bb57506115a261209f565b6001600160a01b031681608001516001600160a01b0316145b6115f85760405162461bcd60e51b815260206004820152600e60248201526d155b98589b19481d1bc81cd95b1b60921b6044820152606401610888565b806060015134101561164c5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420616d6f756e7420746f207061790000000000006044820152606401610888565b80604001516001600160a01b031661166383611370565b6001600160a01b0316146116ab5760405162461bcd60e51b815260206004820152600f60248201526e2737ba10383ab7359039b2b63632b960891b6044820152606401610888565b60408101516116d2816116bc61209f565b85604051806020016040528060008152506122b3565b6001600160a01b0381166000908152600f6020526040812080543492906116fa908490613434565b90915550611708905061209f565b6001600160a01b0316816001600160a01b0316847f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e33460405161174d91815260200190565b60405180910390a4505050565b61136c61176561209f565b8383604051806020016040528060008152506122b3565b606060018054610790906134ba565b61271081106117ac5760405162461bcd60e51b8152600401610888906133bb565b6117b461209f565b6001600160a01b03166117c682611370565b6001600160a01b0316141561180b5760405162461bcd60e51b815260206004820152600b60248201526a125b9d985b1a5908189a5960aa1b6044820152606401610888565b61181361209f565b6000828152600e60205260409020600201546001600160a01b039081169116146118705760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103134b23232b960911b6044820152606401610888565b6000818152600e602081815260408084206003810180548351608081018552878152808601898152948101888152606082018981528a8a529790965251835460ff1916901515178355925160018301559251600290910180546001600160a01b0319166001600160a01b0390921691909117905591519055906118f161209f565b6001600160a01b03168260405160006040518083038185875af1925050503d806000811461193b576040519150601f19603f3d011682016040523d82523d6000602084013e611940565b606091505b505090508061194e57600080fd5b61195661209f565b6001600160a01b0316837f6f30e1ee4d81dcc7a8a478577f65d2ed2edb120565960ac45fe7c50551c87932600e6000878152602001908152602001600020600301546040516119a791815260200190565b60405180910390a3505050565b6119bc61209f565b6001600160a01b0316826001600160a01b03161415611a1d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610888565b8060056000611a2a61209f565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611a6e61209f565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ad7911515815260200190565b611abb611ab561209f565b836122e6565b611ad75760405162461bcd60e51b8152600401610888906133e3565b611ae3848484846122b3565b50505050565b611af161209f565b836127108110611b135760405162461bcd60e51b8152600401610888906133bb565b816001600160a01b0316611b2682611370565b6001600160a01b031614611b4c5760405162461bcd60e51b815260040161088890613372565b6040518060a00160405280600115158152602001868152602001611b6e61209f565b6001600160a01b0390811682526020808301889052868216604093840181905260008a8152600d83528490208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555186907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb90611c239088815260200190565b60405180910390a35050505050565b611c3a61209f565b826127108110611c5c5760405162461bcd60e51b8152600401610888906133bb565b816001600160a01b0316611c6f82611370565b6001600160a01b031614611c955760405162461bcd60e51b815260040161088890613372565b6040518060a00160405280600115158152602001858152602001611cb761209f565b6001600160a01b039081168252602080830187905260006040938401819052888152600d82528381208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555185907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb90611d699087815260200190565b60405180910390a350505050565b60606000611d836125bf565b90506000611d90846125ce565b604080518082019091526005815264173539b7b760d91b6020820152835191925090611dbe57509392505050565b828282604051602001611dd393929190613214565b6040516020818303038152906040529350505050919050565b60606000611df9836113e7565b905080611e1a5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff811115611e4357634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611e6c578160200160208202803683370190505b50905060005b82811015611e1257611e848582611094565b828281518110611ea457634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611eb9816134ef565b915050611e72565b50919050565b60006001600160a01b0382167358807bad0b376efc12f5ad86aac70e78ed67deae1415611ef65750600161077b565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b611f2f61209f565b6001600160a01b0316611f4a600a546001600160a01b031690565b6001600160a01b031614611f705760405162461bcd60e51b81526004016108889061333d565b6001600160a01b038116611fd55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610888565b611fde8161256d565b50565b611fde611fec61209f565b826126e8565b60003330141561204957600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061204c9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061208057506001600160e01b03198216635b5e139f60e01b145b8061077b57506301ffc9a760e01b6001600160e01b031983161461077b565b60006120a9611ff2565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120e382611370565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000601054434261212b61209f565b604051602001612153919060609190911b6bffffffffffffffffffffffff1916815260140190565b6040516020818303038152906040528051906020012060001c612176919061344c565b6040516bffffffffffffffffffffffff194160601b166020820152459042906034016040516020818303038152906040528051906020012060001c6121bb919061344c565b6121c54442613434565b6121cf9190613434565b6121d99190613434565b6121e39190613434565b6121ed9190613434565b6040516020016121ff91815260200190565b6040516020818303038152906040528051906020012060001c6120a9919061344c565b6000828152600c602052604081205483901561224957506000838152600c60205260409020545b6000848152600c60205260408082208590558482529020541561227d576000838152600c6020526040808220548683529120555b6000928352600c60205260408084209190915592825250205490565b61136c8282604051806020016040528060008152506127ff565b6122be8484846123bd565b6122ca84848484612832565b611ae35760405162461bcd60e51b8152600401610888906132eb565b6000818152600260205260408120546001600160a01b031661235f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610888565b600061236a83611370565b9050806001600160a01b0316846001600160a01b031614806123a55750836001600160a01b031661239a84610813565b6001600160a01b0316145b806123b557506123b58185611ec7565b949350505050565b828161271081106123e05760405162461bcd60e51b8152600401610888906133bb565b816001600160a01b03166123f382611370565b6001600160a01b0316146124195760405162461bcd60e51b815260040161088890613372565b612424858585612946565b836001600160a01b0316856001600160a01b03167f05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d88560405161246991815260200190565b60405180910390a36000838152600d602052604090205460ff16156124925761249284846126e8565b6000838152600e60205260409020600201546001600160a01b0385811691161415612566576000838152600e60209081526040808320600301546001600160a01b0388168452600f90925282208054919290916124f0908490613434565b9091555050604080516080810182526000808252602080830187815283850183815260608501848152898552600e909352949092209251835460ff19169015151783559051600183015591516002820180546001600160a01b0319166001600160a01b0390921691909117905590516003909101555b5050505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060128054610790906134ba565b6060816125f25750506040805180820190915260018152600360fc1b602082015290565b8160005b811561261c5780612606816134ef565b91506126159050600a8361344c565b91506125f6565b60008167ffffffffffffffff81111561264557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561266f576020820181803683370190505b5090505b84156123b557612684600183613460565b9150612691600a8661350a565b61269c906030613434565b60f81b8183815181106126bf57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506126e1600a8661344c565b9450612673565b8181612710811061270b5760405162461bcd60e51b8152600401610888906133bb565b816001600160a01b031661271e82611370565b6001600160a01b0316146127445760405162461bcd60e51b815260040161088890613372565b6040805160a081018252600080825260208083018781526001600160a01b03808a1685870190815260608601858152608087018681528b8752600d9095528786209651875490151560ff1990911617875592516001870155516002860180549183166001600160a01b03199283161790559151600386015591516004909401805494909216931692909217909155905184917fb0e0a660b4e50f26f0b7ce75c24655fc76cc66e3334a54ff410277229fa10bd491a250505050565b6128098383612aaf565b6128166000848484612832565b610c065760405162461bcd60e51b8152600401610888906132eb565b60006001600160a01b0384163b1561293b57836001600160a01b031663150b7a0261285b61209f565b8786866040518563ffffffff1660e01b815260040161287d9493929190613257565b602060405180830381600087803b15801561289757600080fd5b505af19250505080156128c7575060408051601f3d908101601f191682019092526128c491810190613119565b60015b612921573d8080156128f5576040519150601f19603f3d011682016040523d82523d6000602084013e6128fa565b606091505b5080516129195760405162461bcd60e51b8152600401610888906132eb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506123b5565b506001949350505050565b826001600160a01b031661295982611370565b6001600160a01b03161461297f5760405162461bcd60e51b815260040161088890613372565b6001600160a01b0382166129e15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610888565b6129ec838383612bfd565b6129f76000826120ae565b6001600160a01b0383166000908152600360205260408120805460019290612a20908490613460565b90915550506001600160a01b0382166000908152600360205260408120805460019290612a4e908490613434565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216612b055760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610888565b6000818152600260205260409020546001600160a01b031615612b6a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610888565b612b7660008383612bfd565b6001600160a01b0382166000908152600360205260408120805460019290612b9f908490613434565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038316612c5857612c5381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c7b565b816001600160a01b0316836001600160a01b031614612c7b57612c7b8382612cb5565b6001600160a01b038216612c9257610c0681612d52565b826001600160a01b0316826001600160a01b031614610c0657610c068282612e2b565b60006001612cc2846113e7565b612ccc9190613460565b600083815260076020526040902054909150808214612d1f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d6490600190613460565b60008381526009602052604081205460088054939450909284908110612d9a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612dc957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e0f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e36836113e7565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612e7b906134ba565b90600052602060002090601f016020900481019282612e9d5760008555612ee3565b82601f10612eb657805160ff1916838001178555612ee3565b82800160010185558215612ee3579182015b82811115612ee3578251825591602001919060010190612ec8565b50612eef929150612ef3565b5090565b5b80821115612eef5760008155600101612ef4565b600067ffffffffffffffff80841115612f2357612f2361354a565b604051601f8501601f19908116603f01168101908282118183101715612f4b57612f4b61354a565b81604052809350858152868686011115612f6457600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114612f9557600080fd5b919050565b600060208284031215612fab578081fd5b611f2082612f7e565b60008060408385031215612fc6578081fd5b612fcf83612f7e565b9150612fdd60208401612f7e565b90509250929050565b600080600060608486031215612ffa578081fd5b61300384612f7e565b925061301160208501612f7e565b9150604084013590509250925092565b60008060008060808587031215613036578081fd5b61303f85612f7e565b935061304d60208601612f7e565b925060408501359150606085013567ffffffffffffffff81111561306f578182fd5b8501601f8101871361307f578182fd5b61308e87823560208401612f08565b91505092959194509250565b600080604083850312156130ac578182fd5b6130b583612f7e565b9150602083013580151581146130c9578182fd5b809150509250929050565b600080604083850312156130e6578182fd5b6130ef83612f7e565b946020939093013593505050565b60006020828403121561310e578081fd5b8135611f2081613560565b60006020828403121561312a578081fd5b8151611f2081613560565b600060208284031215613146578081fd5b813567ffffffffffffffff81111561315c578182fd5b8201601f8101841361316c578182fd5b6123b584823560208401612f08565b60006020828403121561318c578081fd5b5035919050565b600080604083850312156131a5578182fd5b50508035926020909101359150565b6000806000606084860312156131c8578283fd5b83359250602084013591506131df60408501612f7e565b90509250925092565b60008151808452613200816020860160208601613477565b601f01601f19169290920160200192915050565b60008451613226818460208901613477565b84519083019061323a818360208901613477565b845191019061324d818360208801613477565b0195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061328a908301846131e8565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156132cc578351835292840192918401916001016132b0565b50909695505050505050565b602081526000611f2060208301846131e8565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252600e908201526d13dd5d081bd9881d1bdad95b925960921b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156134475761344761351e565b500190565b60008261345b5761345b613534565b500490565b6000828210156134725761347261351e565b500390565b60005b8381101561349257818101518382015260200161347a565b83811115611ae35750506000910152565b6000816134b2576134b261351e565b506000190190565b600181811c908216806134ce57607f821691505b60208210811415611ec157634e487b7160e01b600052602260045260246000fd5b60006000198214156135035761350361351e565b5060010190565b60008261351957613519613534565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611fde57600080fdfea264697066735822122088874382a214323ea9a3e2502504a920c9a9fd554fd29b87be5a4f91b6ea4af464736f6c63430008040033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.