Overview
MATIC Balance
101.041873399195078557 MATIC
MATIC Value
$96.86 (@ $0.96/MATIC)Token Holdings
More Info
Private Name Tags
ContractCreator:
TokenTracker
Latest 25 from a total of 23,462 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 54819385 | 6 hrs ago | IN | 0 MATIC | 0.00138747 | ||||
Set Approval For... | 54671634 | 4 days ago | IN | 0 MATIC | 0.01778726 | ||||
Set Approval For... | 54640260 | 4 days ago | IN | 0 MATIC | 0.00393604 | ||||
Set Approval For... | 54621003 | 5 days ago | IN | 0 MATIC | 0.00448207 | ||||
Set Approval For... | 54619689 | 5 days ago | IN | 0 MATIC | 0.00389141 | ||||
Safe Transfer Fr... | 54619044 | 5 days ago | IN | 0 MATIC | 0.00906535 | ||||
Set Approval For... | 54618715 | 5 days ago | IN | 0 MATIC | 0.00377258 | ||||
Set Approval For... | 54597223 | 6 days ago | IN | 0 MATIC | 0.00430334 | ||||
Safe Transfer Fr... | 54552320 | 7 days ago | IN | 0 MATIC | 0.01175553 | ||||
Set Approval For... | 54551925 | 7 days ago | IN | 0 MATIC | 0.00381876 | ||||
Safe Transfer Fr... | 54550832 | 7 days ago | IN | 0 MATIC | 0.0084051 | ||||
Set Approval For... | 54548061 | 7 days ago | IN | 0 MATIC | 0.00391466 | ||||
Set Approval For... | 54543769 | 7 days ago | IN | 0 MATIC | 0.00505357 | ||||
Safe Transfer Fr... | 54539314 | 7 days ago | IN | 0 MATIC | 0.00807968 | ||||
Safe Transfer Fr... | 54539248 | 7 days ago | IN | 0 MATIC | 0.0086694 | ||||
Safe Transfer Fr... | 54538796 | 7 days ago | IN | 0 MATIC | 0.00771096 | ||||
Set Approval For... | 54515097 | 8 days ago | IN | 0 MATIC | 0.00811999 | ||||
Set Approval For... | 54507945 | 8 days ago | IN | 0 MATIC | 0.00403169 | ||||
Set Approval For... | 54486185 | 8 days ago | IN | 0 MATIC | 0.00859877 | ||||
Set Approval For... | 54461998 | 9 days ago | IN | 0 MATIC | 0.00520506 | ||||
Safe Transfer Fr... | 54454833 | 9 days ago | IN | 0 MATIC | 0.01361589 | ||||
Set Approval For... | 54392028 | 11 days ago | IN | 0 MATIC | 0.00407959 | ||||
Set Approval For... | 54373201 | 11 days ago | IN | 0 MATIC | 0.00634832 | ||||
Set Approval For... | 54373201 | 11 days ago | IN | 0 MATIC | 0.01193224 | ||||
Set Approval For... | 54351223 | 12 days ago | IN | 0 MATIC | 0.00977662 |
Latest 25 internal transactions (View All)
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
17555791 | 959 days ago | 125 MATIC | ||||
17555790 | 959 days ago | 125 MATIC | ||||
17555789 | 959 days ago | 125 MATIC | ||||
17555789 | 959 days ago | 125 MATIC | ||||
17555789 | 959 days ago | 125 MATIC | ||||
17555785 | 959 days ago | 125 MATIC | ||||
17555784 | 959 days ago | 125 MATIC | ||||
17555783 | 959 days ago | 125 MATIC | ||||
17555782 | 959 days ago | 125 MATIC | ||||
17555782 | 959 days ago | 125 MATIC | ||||
17555781 | 959 days ago | 125 MATIC | ||||
17555781 | 959 days ago | 125 MATIC | ||||
17555781 | 959 days ago | 125 MATIC | ||||
17555778 | 959 days ago | 125 MATIC | ||||
17555777 | 959 days ago | 125 MATIC | ||||
17555776 | 959 days ago | 125 MATIC | ||||
17555776 | 959 days ago | 125 MATIC | ||||
17555774 | 959 days ago | 125 MATIC | ||||
17555774 | 959 days ago | 125 MATIC | ||||
17555771 | 959 days ago | 125 MATIC | ||||
17555771 | 959 days ago | 125 MATIC | ||||
17555768 | 959 days ago | 125 MATIC | ||||
17555768 | 959 days ago | 125 MATIC | ||||
17555767 | 959 days ago | 125 MATIC | ||||
17555766 | 959 days ago | 125 MATIC |
Loading...
Loading
Contract Name:
PolygonPunksMarket
Compiler Version
v0.8.0+commit.c7dfd78e
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(); } } contract PolygonPunksMarket is ERC721Enumerable, Ownable, ReentrancyGuard { 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; string public imageHash = "ac39af4793119ee46bbff351d8cb6b5f23da60222126add4268e261199a2921b"; uint256 public punksRemainingToAssign = 0; uint256 public claimPrice = 125 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("PolygonPunks", "\xCF\x81") { punksRemainingToAssign = 10000; } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory uri) public onlyOwner { baseURI = uri; } function mint() payable public { require(punksRemainingToAssign > 0, "No remainig 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 {} }
// 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; 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}. 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly 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` 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 { } }
// 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) { 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; 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; // 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 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; 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", "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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"imageHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uri","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
60e060409081526080818152906200380a60a0398051620000299160119160209091019062000126565b5060006012556806c6b935b8bbd400006013553480156200004957600080fd5b50604080518082018252600c81526b506f6c79676f6e50756e6b7360a01b602080830191825283518085019094526002845261cf8160f01b908401528151919291620000989160009162000126565b508051620000ae90600190602084019062000126565b5050506000620000c36200012260201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600b5561271060125562000209565b3390565b8280546200013490620001cc565b90600052602060002090601f016020900481019282620001585760008555620001a3565b82601f106200017357805160ff1916838001178555620001a3565b82800160010185558215620001a3579182015b82811115620001a357825182559160200191906001019062000186565b50620001b1929150620001b5565b5090565b5b80821115620001b15760008155600101620001b6565b600281046001821680620001e157607f821691505b602082108114156200020357634e487b7160e01b600052602260045260246000fd5b50919050565b6135f180620002196000396000f3fe60806040526004361061021e5760003560e01c80636c0360eb11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146105ea578063e985e9c51461060a578063f2fde38b1461062a578063f3f437031461064a578063f6eeff1e1461066a57610225565b8063a22cb46514610555578063b88d4fde14610575578063bf31196f14610595578063c0d6ce63146105b5578063c44193c3146105ca57610225565b80638264fe98116100f25780638264fe98146104d85780638b72a2ec146104eb5780638da5cb5b1461050b57806395d89b4114610520578063979bc6381461053557610225565b80636c0360eb1461045e5780636e743fa91461047357806370a08231146104a3578063715018a6146104c357610225565b806323165b75116101a657806342842e0e1161017557806342842e0e146103c95780634f6ccce7146103e957806351605d801461040957806355f804b31461041e5780636352211e1461043e57610225565b806323165b751461035457806323b872dd146103745780632f745c59146103945780633ccfd60b146103b457610225565b8063091dbfd2116101ed578063091dbfd2146102e0578063095ea7b3146102f55780631249c58b1461031557806315d655c91461031d57806318160ddd1461033f57610225565b806301ffc9a71461022a57806306fdde0314610260578063081812fc14610282578063088f11f3146102af57610225565b3661022557005b600080fd5b34801561023657600080fd5b5061024a610245366004612b28565b61068a565b6040516102579190612ce8565b60405180910390f35b34801561026c57600080fd5b506102756106b7565b6040516102579190612d47565b34801561028e57600080fd5b506102a261029d366004612ba6565b610749565b6040516102579190612c97565b3480156102bb57600080fd5b506102cf6102ca366004612ba6565b610795565b604051610257959493929190612d19565b6102f36102ee366004612ba6565b6107d3565b005b34801561030157600080fd5b506102f3610310366004612aff565b6109c1565b6102f3610a59565b34801561032957600080fd5b50610332610ba5565b6040516102579190612c8e565b34801561034b57600080fd5b50610332610bab565b34801561036057600080fd5b506102f361036f366004612bbe565b610bb1565b34801561038057600080fd5b506102f361038f366004612a11565b610e3a565b3480156103a057600080fd5b506103326103af366004612aff565b610e72565b3480156103c057600080fd5b506102f3610ec4565b3480156103d557600080fd5b506102f36103e4366004612a11565b610fc7565b3480156103f557600080fd5b50610332610404366004612ba6565b610fe2565b34801561041557600080fd5b5061027561103d565b34801561042a57600080fd5b506102f3610439366004612b60565b6110cb565b34801561044a57600080fd5b506102a2610459366004612ba6565b611121565b34801561046a57600080fd5b50610275611156565b34801561047f57600080fd5b5061049361048e366004612ba6565b611163565b6040516102579493929190612cf3565b3480156104af57600080fd5b506103326104be3660046129c5565b61119a565b3480156104cf57600080fd5b506102f36111de565b6102f36104e6366004612ba6565b611267565b3480156104f757600080fd5b506102f3610506366004612aff565b611462565b34801561051757600080fd5b506102a2611484565b34801561052c57600080fd5b50610275611493565b34801561054157600080fd5b506102f3610550366004612ba6565b6114a2565b34801561056157600080fd5b506102f3610570366004612ac5565b611693565b34801561058157600080fd5b506102f3610590366004612a4c565b611755565b3480156105a157600080fd5b506102f36105b0366004612bdf565b611794565b3480156105c157600080fd5b506103326118db565b3480156105d657600080fd5b506102f36105e5366004612bbe565b6118e1565b3480156105f657600080fd5b50610275610605366004612ba6565b611a24565b34801561061657600080fd5b5061024a6106253660046129df565b611aa7565b34801561063657600080fd5b506102f36106453660046129c5565b611ad5565b34801561065657600080fd5b506103326106653660046129c5565b611b96565b34801561067657600080fd5b506102f3610685366004612ba6565b611ba8565b60006001600160e01b0319821663780e9d6360e01b14806106af57506106af82611bbc565b90505b919050565b6060600080546106c6906134f9565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906134f9565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b600061075482611bfc565b6107795760405162461bcd60e51b815260040161077090613169565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600d602052600090815260409020805460018201546002830154600384015460049094015460ff9093169391926001600160a01b0391821692911685565b61271081106107f45760405162461bcd60e51b815260040161077090613316565b6107fc611c19565b6001600160a01b031661080e82611121565b6001600160a01b031614156108355760405162461bcd60e51b815260040161077090612d5a565b6000818152600e602052604090206003015434116108655760405162461bcd60e51b815260040161077090612f26565b6000818152600e60209081526040918290208251608081018452815460ff161515815260018201549281019290925260028101546001600160a01b03169282019290925260039091015460608201819052156108f25760608101516040808301516001600160a01b03166000908152600f60205290812080549091906108ec908490613473565b90915550505b6040518060800160405280600115158152602001838152602001610914611c19565b6001600160a01b039081168252346020928301526000858152600e83526040908190208451815460ff19169015151781559284015160018401558301516002830180546001600160a01b0319169190921617905560609091015160039091015561097c611c19565b6001600160a01b0316827f5b859394fabae0c1ba88baffe67e751ab5248d2e879028b8c8d6897b0519f56a346040516109b59190612c8e565b60405180910390a35050565b60006109cc82611121565b9050806001600160a01b0316836001600160a01b03161415610a005760405162461bcd60e51b8152600401610770906132ac565b806001600160a01b0316610a12611c19565b6001600160a01b03161480610a2e5750610a2e81610625611c19565b610a4a5760405162461bcd60e51b815260040161077090613044565b610a548383611c1d565b505050565b600060125411610a7b5760405162461bcd60e51b815260040161077090613449565b601354341015610a9d5760405162461bcd60e51b815260040161077090612e4a565b6000601254610aaa611c8b565b610ab4919061354f565b90506000610ad5601260008154610aca906134e2565b918290555083611d6d565b9050610ae8610ae2611c19565b82611de4565b6000610af2611484565b6001600160a01b031634604051610b0890612c8b565b60006040518083038185875af1925050503d8060008114610b45576040519150601f19603f3d011682016040523d82523d6000602084013e610b4a565b606091505b5050905080610b5857600080fd5b610b60611c19565b6001600160a01b03167f8a0e37b73a0d9c82e205d4d1a3ff3d0b57ce5f4d7bccf6bac03336dc101cb7ba83604051610b989190612c8e565b60405180910390a2505050565b60135481565b60085490565b610bb9611c19565b826127108110610bdb5760405162461bcd60e51b815260040161077090613316565b816001600160a01b0316610bee82611121565b6001600160a01b031614610c145760405162461bcd60e51b815260040161077090613214565b6000848152600e6020526040902060030154831115610c455760405162461bcd60e51b8152600401610770906131ea565b6000600e60008681526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016003820154815250509050604051806080016040528060001515815260200186815260200160006001600160a01b031681526020016000815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160030155905050610d91610d76611c19565b82604001518760405180602001604052806000815250611dfe565b606081015180600f6000610da3611c19565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610dd29190613473565b909155505060408201516001600160a01b0316610ded611c19565b6001600160a01b0316877f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e38560600151604051610e2a9190612c8e565b60405180910390a4505050505050565b610e4b610e45611c19565b82611e31565b610e675760405162461bcd60e51b815260040161077090613375565b610a54838383611eb6565b6000610e7d8361119a565b8210610e9b5760405162461bcd60e51b815260040161077090612dad565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b541415610ee75760405162461bcd60e51b815260040161077090613412565b6002600b556000600f81610ef9611c19565b6001600160a01b03166001600160a01b031681526020019081526020016000205490506000600f6000610f2a611c19565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000610f58611c19565b6001600160a01b031682604051610f6e90612c8b565b60006040518083038185875af1925050503d8060008114610fab576040519150601f19603f3d011682016040523d82523d6000602084013e610fb0565b606091505b5050905080610fbe57600080fd5b50506001600b55565b610a5483838360405180602001604052806000815250611755565b6000610fec610bab565b821061100a5760405162461bcd60e51b8152600401610770906133c6565b6008828154811061102b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6011805461104a906134f9565b80601f0160208091040260200160405190810160405280929190818152602001828054611076906134f9565b80156110c35780601f10611098576101008083540402835291602001916110c3565b820191906000526020600020905b8154815290600101906020018083116110a657829003601f168201915b505050505081565b6110d3611c19565b6001600160a01b03166110e4611484565b6001600160a01b03161461110a5760405162461bcd60e51b8152600401610770906131b5565b805161111d9060109060208401906128a5565b5050565b6000818152600260205260408120546001600160a01b0316806106af5760405162461bcd60e51b8152600401610770906130eb565b6010805461104a906134f9565b600e60205260009081526040902080546001820154600283015460039093015460ff9092169290916001600160a01b039091169084565b60006001600160a01b0382166111c25760405162461bcd60e51b8152600401610770906130a1565b506001600160a01b031660009081526003602052604090205490565b6111e6611c19565b6001600160a01b03166111f7611484565b6001600160a01b03161461121d5760405162461bcd60e51b8152600401610770906131b5565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000818152600d6020908152604091829020825160a081018452815460ff161515815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154606083015260040154909116608082015261271082106112e45760405162461bcd60e51b815260040161077090613316565b80516113025760405162461bcd60e51b815260040161077090612d7f565b60808101516001600160a01b03161580611338575061131f611c19565b6001600160a01b031681608001516001600160a01b0316145b6113545760405162461bcd60e51b815260040161077090612fd0565b80606001513410156113785760405162461bcd60e51b81526004016107709061333e565b80604001516001600160a01b031661138f83611121565b6001600160a01b0316146113b55760405162461bcd60e51b8152600401610770906132ed565b60408101516113dc816113c6611c19565b8560405180602001604052806000815250611dfe565b6001600160a01b0381166000908152600f602052604081208054349290611404908490613473565b909155506114129050611c19565b6001600160a01b0316816001600160a01b0316847f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3346040516114559190612c8e565b60405180910390a4505050565b61111d61146d611c19565b838360405180602001604052806000815250611dfe565b600a546001600160a01b031690565b6060600180546106c6906134f9565b61271081106114c35760405162461bcd60e51b815260040161077090613316565b6114cb611c19565b6001600160a01b03166114dd82611121565b6001600160a01b031614156115045760405162461bcd60e51b815260040161077090612d5a565b61150c611c19565b6000828152600e60205260409020600201546001600160a01b039081169116146115485760405162461bcd60e51b815260040161077090612efe565b6000818152600e602081815260408084206003810180548351608081018552878152808601898152948101888152606082018981528a8a529790965251835460ff1916901515178355925160018301559251600290910180546001600160a01b0319166001600160a01b0390921691909117905591519055906115c9611c19565b6001600160a01b0316826040516115df90612c8b565b60006040518083038185875af1925050503d806000811461161c576040519150601f19603f3d011682016040523d82523d6000602084013e611621565b606091505b505090508061162f57600080fd5b611637611c19565b6001600160a01b0316837f6f30e1ee4d81dcc7a8a478577f65d2ed2edb120565960ac45fe7c50551c87932600e6000878152602001908152602001600020600301546040516116869190612c8e565b60405180910390a3505050565b61169b611c19565b6001600160a01b0316826001600160a01b031614156116cc5760405162461bcd60e51b815260040161077090612f99565b80600560006116d9611c19565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561171d611c19565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516109b59190612ce8565b611766611760611c19565b83611e31565b6117825760405162461bcd60e51b815260040161077090613375565b61178e84848484611dfe565b50505050565b61179c611c19565b8361271081106117be5760405162461bcd60e51b815260040161077090613316565b816001600160a01b03166117d182611121565b6001600160a01b0316146117f75760405162461bcd60e51b815260040161077090613214565b6040518060a00160405280600115158152602001868152602001611819611c19565b6001600160a01b0390811682526020808301889052868216604093840181905260008a8152600d83528490208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555186907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb906118cc908890612c8e565b60405180910390a35050505050565b60125481565b6118e9611c19565b82612710811061190b5760405162461bcd60e51b815260040161077090613316565b816001600160a01b031661191e82611121565b6001600160a01b0316146119445760405162461bcd60e51b815260040161077090613214565b6040518060a00160405280600115158152602001858152602001611966611c19565b6001600160a01b039081168252602080830187905260006040938401819052888152600d82528381208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555185907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb90611a16908790612c8e565b60405180910390a350505050565b6060611a2f82611bfc565b611a4b5760405162461bcd60e51b81526004016107709061325d565b6000611a55612064565b90506000815111611a755760405180602001604052806000815250611aa0565b80611a7f84612073565b604051602001611a90929190612c5c565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611add611c19565b6001600160a01b0316611aee611484565b6001600160a01b031614611b145760405162461bcd60e51b8152600401610770906131b5565b6001600160a01b038116611b3a5760405162461bcd60e51b815260040161077090612e81565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600f6020526000908152604090205481565b611bb9611bb3611c19565b8261218e565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bed57506001600160e01b03198216635b5e139f60e01b145b806106af57506106af826122a5565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5282611121565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006012544342611c9a611c19565b604051602001611caa9190612c3f565b6040516020818303038152906040528051906020012060001c611ccd919061348b565b454241604051602001611ce09190612c3f565b6040516020818303038152906040528051906020012060001c611d03919061348b565b611d0d4442613473565b611d179190613473565b611d219190613473565b611d2b9190613473565b611d359190613473565b604051602001611d459190612c8e565b6040516020818303038152906040528051906020012060001c611d68919061348b565b905090565b6000828152600c6020526040812054839015611d9457506000838152600c60205260409020545b6000848152600c602052604080822085905584825290205415611dc8576000838152600c6020526040808220548683529120555b6000928352600c60205260408084209190915592825250205490565b61111d8282604051806020016040528060008152506122be565b611e09848484611eb6565b611e15848484846122f1565b61178e5760405162461bcd60e51b815260040161077090612df8565b6000611e3c82611bfc565b611e585760405162461bcd60e51b815260040161077090612ff8565b6000611e6383611121565b9050806001600160a01b0316846001600160a01b03161480611e9e5750836001600160a01b0316611e9384610749565b6001600160a01b0316145b80611eae5750611eae8185611aa7565b949350505050565b82816127108110611ed95760405162461bcd60e51b815260040161077090613316565b816001600160a01b0316611eec82611121565b6001600160a01b031614611f125760405162461bcd60e51b815260040161077090613214565b611f1d85858561240c565b836001600160a01b0316856001600160a01b03167f05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d885604051611f609190612c8e565b60405180910390a36000838152600d602052604090205460ff1615611f8957611f89848461218e565b6000838152600e60205260409020600201546001600160a01b038581169116141561205d576000838152600e60209081526040808320600301546001600160a01b0388168452600f9092528220805491929091611fe7908490613473565b9091555050604080516080810182526000808252602080830187815283850183815260608501848152898552600e909352949092209251835460ff19169015151783559051600183015591516002820180546001600160a01b0319166001600160a01b0390921691909117905590516003909101555b5050505050565b6060601080546106c6906134f9565b60608161209857506040805180820190915260018152600360fc1b60208201526106b2565b8160005b81156120c257806120ac81613534565b91506120bb9050600a8361348b565b915061209c565b60008167ffffffffffffffff8111156120eb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612115576020820181803683370190505b5090505b8415611eae5761212a60018361349f565b9150612137600a8661354f565b612142906030613473565b60f81b81838151811061216557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612187600a8661348b565b9450612119565b818161271081106121b15760405162461bcd60e51b815260040161077090613316565b816001600160a01b03166121c482611121565b6001600160a01b0316146121ea5760405162461bcd60e51b815260040161077090613214565b6040805160a081018252600080825260208083018781526001600160a01b03808a1685870190815260608601858152608087018681528b8752600d9095528786209651875490151560ff1990911617875592516001870155516002860180549183166001600160a01b03199283161790559151600386015591516004909401805494909216931692909217909155905184917fb0e0a660b4e50f26f0b7ce75c24655fc76cc66e3334a54ff410277229fa10bd491a250505050565b6001600160e01b031981166301ffc9a760e01b14919050565b6122c88383612539565b6122d560008484846122f1565b610a545760405162461bcd60e51b815260040161077090612df8565b6000612305846001600160a01b0316612618565b1561240157836001600160a01b031663150b7a02612321611c19565b8786866040518563ffffffff1660e01b81526004016123439493929190612cab565b602060405180830381600087803b15801561235d57600080fd5b505af192505050801561238d575060408051601f3d908101601f1916820190925261238a91810190612b44565b60015b6123e7573d8080156123bb576040519150601f19603f3d011682016040523d82523d6000602084013e6123c0565b606091505b5080516123df5760405162461bcd60e51b815260040161077090612df8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611eae565b506001949350505050565b826001600160a01b031661241f82611121565b6001600160a01b0316146124455760405162461bcd60e51b815260040161077090613214565b6001600160a01b03821661246b5760405162461bcd60e51b815260040161077090612f55565b61247683838361261e565b612481600082611c1d565b6001600160a01b03831660009081526003602052604081208054600192906124aa90849061349f565b90915550506001600160a01b03821660009081526003602052604081208054600192906124d8908490613473565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821661255f5760405162461bcd60e51b815260040161077090613134565b61256881611bfc565b156125855760405162461bcd60e51b815260040161077090612ec7565b6125916000838361261e565b6001600160a01b03821660009081526003602052604081208054600192906125ba908490613473565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b612629838383610a54565b6001600160a01b03831661264557612640816126a7565b612668565b816001600160a01b0316836001600160a01b0316146126685761266883826126eb565b6001600160a01b0382166126845761267f81612788565b610a54565b826001600160a01b0316826001600160a01b031614610a5457610a548282612861565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016126f88461119a565b612702919061349f565b600083815260076020526040902054909150808214612755576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061279a9060019061349f565b600083815260096020526040812054600880549394509092849081106127d057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106127ff57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061284557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061286c8361119a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546128b1906134f9565b90600052602060002090601f0160209004810192826128d35760008555612919565b82601f106128ec57805160ff1916838001178555612919565b82800160010185558215612919579182015b828111156129195782518255916020019190600101906128fe565b50612925929150612929565b5090565b5b80821115612925576000815560010161292a565b600067ffffffffffffffff808411156129595761295961358f565b604051601f8501601f19168101602001828111828210171561297d5761297d61358f565b60405284815291508183850186101561299557600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146106b257600080fd5b6000602082840312156129d6578081fd5b611aa0826129ae565b600080604083850312156129f1578081fd5b6129fa836129ae565b9150612a08602084016129ae565b90509250929050565b600080600060608486031215612a25578081fd5b612a2e846129ae565b9250612a3c602085016129ae565b9150604084013590509250925092565b60008060008060808587031215612a61578081fd5b612a6a856129ae565b9350612a78602086016129ae565b925060408501359150606085013567ffffffffffffffff811115612a9a578182fd5b8501601f81018713612aaa578182fd5b612ab98782356020840161293e565b91505092959194509250565b60008060408385031215612ad7578182fd5b612ae0836129ae565b915060208301358015158114612af4578182fd5b809150509250929050565b60008060408385031215612b11578182fd5b612b1a836129ae565b946020939093013593505050565b600060208284031215612b39578081fd5b8135611aa0816135a5565b600060208284031215612b55578081fd5b8151611aa0816135a5565b600060208284031215612b71578081fd5b813567ffffffffffffffff811115612b87578182fd5b8201601f81018413612b97578182fd5b611eae8482356020840161293e565b600060208284031215612bb7578081fd5b5035919050565b60008060408385031215612bd0578182fd5b50508035926020909101359150565b600080600060608486031215612bf3578283fd5b8335925060208401359150612c0a604085016129ae565b90509250925092565b60008151808452612c2b8160208601602086016134b6565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60008351612c6e8184602088016134b6565b835190830190612c828183602088016134b6565b01949350505050565b90565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612cde90830184612c13565b9695505050505050565b901515815260200190565b931515845260208401929092526001600160a01b03166040830152606082015260800190565b941515855260208501939093526001600160a01b039182166040850152606084015216608082015260a00190565b600060208252611aa06020830184612c13565b6020808252600b908201526a125b9d985b1a5908189a5960aa1b604082015260600190565b60208082526014908201527350756e6b206973206e6f7420666f722073616c6560601b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f4e65656420706179206174206c6561737420636c61696d20616d6f756e740000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600e908201526d24b73b30b634b2103134b23232b960911b604082015260600190565b60208082526015908201527414995c5d5a5c9948189a59d9d95c88185b5bdd5b9d605a1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600e908201526d155b98589b19481d1bc81cd95b1b60921b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f426964207072696365206973206c6f7760801b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e2737ba10383ab7359039b2b63632b960891b604082015260600190565b6020808252600e908201526d13dd5d081bd9881d1bdad95b925960921b604082015260600190565b6020808252601a908201527f496e73756666696369656e7420616d6f756e7420746f20706179000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f4e6f2072656d61696e69672070756e6b60801b604082015260600190565b6000821982111561348657613486613563565b500190565b60008261349a5761349a613579565b500490565b6000828210156134b1576134b1613563565b500390565b60005b838110156134d15781810151838201526020016134b9565b8381111561178e5750506000910152565b6000816134f1576134f1613563565b506000190190565b60028104600182168061350d57607f821691505b6020821081141561352e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561354857613548613563565b5060010190565b60008261355e5761355e613579565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611bb957600080fdfea2646970667358221220573434f5a6881ff3419244ca31dba3049100b36b21499f525008067308c23dab64736f6c6343000800003361633339616634373933313139656534366262666633353164386362366235663233646136303232323132366164643432363865323631313939613239323162
Deployed Bytecode
0x60806040526004361061021e5760003560e01c80636c0360eb11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146105ea578063e985e9c51461060a578063f2fde38b1461062a578063f3f437031461064a578063f6eeff1e1461066a57610225565b8063a22cb46514610555578063b88d4fde14610575578063bf31196f14610595578063c0d6ce63146105b5578063c44193c3146105ca57610225565b80638264fe98116100f25780638264fe98146104d85780638b72a2ec146104eb5780638da5cb5b1461050b57806395d89b4114610520578063979bc6381461053557610225565b80636c0360eb1461045e5780636e743fa91461047357806370a08231146104a3578063715018a6146104c357610225565b806323165b75116101a657806342842e0e1161017557806342842e0e146103c95780634f6ccce7146103e957806351605d801461040957806355f804b31461041e5780636352211e1461043e57610225565b806323165b751461035457806323b872dd146103745780632f745c59146103945780633ccfd60b146103b457610225565b8063091dbfd2116101ed578063091dbfd2146102e0578063095ea7b3146102f55780631249c58b1461031557806315d655c91461031d57806318160ddd1461033f57610225565b806301ffc9a71461022a57806306fdde0314610260578063081812fc14610282578063088f11f3146102af57610225565b3661022557005b600080fd5b34801561023657600080fd5b5061024a610245366004612b28565b61068a565b6040516102579190612ce8565b60405180910390f35b34801561026c57600080fd5b506102756106b7565b6040516102579190612d47565b34801561028e57600080fd5b506102a261029d366004612ba6565b610749565b6040516102579190612c97565b3480156102bb57600080fd5b506102cf6102ca366004612ba6565b610795565b604051610257959493929190612d19565b6102f36102ee366004612ba6565b6107d3565b005b34801561030157600080fd5b506102f3610310366004612aff565b6109c1565b6102f3610a59565b34801561032957600080fd5b50610332610ba5565b6040516102579190612c8e565b34801561034b57600080fd5b50610332610bab565b34801561036057600080fd5b506102f361036f366004612bbe565b610bb1565b34801561038057600080fd5b506102f361038f366004612a11565b610e3a565b3480156103a057600080fd5b506103326103af366004612aff565b610e72565b3480156103c057600080fd5b506102f3610ec4565b3480156103d557600080fd5b506102f36103e4366004612a11565b610fc7565b3480156103f557600080fd5b50610332610404366004612ba6565b610fe2565b34801561041557600080fd5b5061027561103d565b34801561042a57600080fd5b506102f3610439366004612b60565b6110cb565b34801561044a57600080fd5b506102a2610459366004612ba6565b611121565b34801561046a57600080fd5b50610275611156565b34801561047f57600080fd5b5061049361048e366004612ba6565b611163565b6040516102579493929190612cf3565b3480156104af57600080fd5b506103326104be3660046129c5565b61119a565b3480156104cf57600080fd5b506102f36111de565b6102f36104e6366004612ba6565b611267565b3480156104f757600080fd5b506102f3610506366004612aff565b611462565b34801561051757600080fd5b506102a2611484565b34801561052c57600080fd5b50610275611493565b34801561054157600080fd5b506102f3610550366004612ba6565b6114a2565b34801561056157600080fd5b506102f3610570366004612ac5565b611693565b34801561058157600080fd5b506102f3610590366004612a4c565b611755565b3480156105a157600080fd5b506102f36105b0366004612bdf565b611794565b3480156105c157600080fd5b506103326118db565b3480156105d657600080fd5b506102f36105e5366004612bbe565b6118e1565b3480156105f657600080fd5b50610275610605366004612ba6565b611a24565b34801561061657600080fd5b5061024a6106253660046129df565b611aa7565b34801561063657600080fd5b506102f36106453660046129c5565b611ad5565b34801561065657600080fd5b506103326106653660046129c5565b611b96565b34801561067657600080fd5b506102f3610685366004612ba6565b611ba8565b60006001600160e01b0319821663780e9d6360e01b14806106af57506106af82611bbc565b90505b919050565b6060600080546106c6906134f9565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906134f9565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b600061075482611bfc565b6107795760405162461bcd60e51b815260040161077090613169565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600d602052600090815260409020805460018201546002830154600384015460049094015460ff9093169391926001600160a01b0391821692911685565b61271081106107f45760405162461bcd60e51b815260040161077090613316565b6107fc611c19565b6001600160a01b031661080e82611121565b6001600160a01b031614156108355760405162461bcd60e51b815260040161077090612d5a565b6000818152600e602052604090206003015434116108655760405162461bcd60e51b815260040161077090612f26565b6000818152600e60209081526040918290208251608081018452815460ff161515815260018201549281019290925260028101546001600160a01b03169282019290925260039091015460608201819052156108f25760608101516040808301516001600160a01b03166000908152600f60205290812080549091906108ec908490613473565b90915550505b6040518060800160405280600115158152602001838152602001610914611c19565b6001600160a01b039081168252346020928301526000858152600e83526040908190208451815460ff19169015151781559284015160018401558301516002830180546001600160a01b0319169190921617905560609091015160039091015561097c611c19565b6001600160a01b0316827f5b859394fabae0c1ba88baffe67e751ab5248d2e879028b8c8d6897b0519f56a346040516109b59190612c8e565b60405180910390a35050565b60006109cc82611121565b9050806001600160a01b0316836001600160a01b03161415610a005760405162461bcd60e51b8152600401610770906132ac565b806001600160a01b0316610a12611c19565b6001600160a01b03161480610a2e5750610a2e81610625611c19565b610a4a5760405162461bcd60e51b815260040161077090613044565b610a548383611c1d565b505050565b600060125411610a7b5760405162461bcd60e51b815260040161077090613449565b601354341015610a9d5760405162461bcd60e51b815260040161077090612e4a565b6000601254610aaa611c8b565b610ab4919061354f565b90506000610ad5601260008154610aca906134e2565b918290555083611d6d565b9050610ae8610ae2611c19565b82611de4565b6000610af2611484565b6001600160a01b031634604051610b0890612c8b565b60006040518083038185875af1925050503d8060008114610b45576040519150601f19603f3d011682016040523d82523d6000602084013e610b4a565b606091505b5050905080610b5857600080fd5b610b60611c19565b6001600160a01b03167f8a0e37b73a0d9c82e205d4d1a3ff3d0b57ce5f4d7bccf6bac03336dc101cb7ba83604051610b989190612c8e565b60405180910390a2505050565b60135481565b60085490565b610bb9611c19565b826127108110610bdb5760405162461bcd60e51b815260040161077090613316565b816001600160a01b0316610bee82611121565b6001600160a01b031614610c145760405162461bcd60e51b815260040161077090613214565b6000848152600e6020526040902060030154831115610c455760405162461bcd60e51b8152600401610770906131ea565b6000600e60008681526020019081526020016000206040518060800160405290816000820160009054906101000a900460ff16151515158152602001600182015481526020016002820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016003820154815250509050604051806080016040528060001515815260200186815260200160006001600160a01b031681526020016000815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160030155905050610d91610d76611c19565b82604001518760405180602001604052806000815250611dfe565b606081015180600f6000610da3611c19565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254610dd29190613473565b909155505060408201516001600160a01b0316610ded611c19565b6001600160a01b0316877f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e38560600151604051610e2a9190612c8e565b60405180910390a4505050505050565b610e4b610e45611c19565b82611e31565b610e675760405162461bcd60e51b815260040161077090613375565b610a54838383611eb6565b6000610e7d8361119a565b8210610e9b5760405162461bcd60e51b815260040161077090612dad565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b541415610ee75760405162461bcd60e51b815260040161077090613412565b6002600b556000600f81610ef9611c19565b6001600160a01b03166001600160a01b031681526020019081526020016000205490506000600f6000610f2a611c19565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506000610f58611c19565b6001600160a01b031682604051610f6e90612c8b565b60006040518083038185875af1925050503d8060008114610fab576040519150601f19603f3d011682016040523d82523d6000602084013e610fb0565b606091505b5050905080610fbe57600080fd5b50506001600b55565b610a5483838360405180602001604052806000815250611755565b6000610fec610bab565b821061100a5760405162461bcd60e51b8152600401610770906133c6565b6008828154811061102b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6011805461104a906134f9565b80601f0160208091040260200160405190810160405280929190818152602001828054611076906134f9565b80156110c35780601f10611098576101008083540402835291602001916110c3565b820191906000526020600020905b8154815290600101906020018083116110a657829003601f168201915b505050505081565b6110d3611c19565b6001600160a01b03166110e4611484565b6001600160a01b03161461110a5760405162461bcd60e51b8152600401610770906131b5565b805161111d9060109060208401906128a5565b5050565b6000818152600260205260408120546001600160a01b0316806106af5760405162461bcd60e51b8152600401610770906130eb565b6010805461104a906134f9565b600e60205260009081526040902080546001820154600283015460039093015460ff9092169290916001600160a01b039091169084565b60006001600160a01b0382166111c25760405162461bcd60e51b8152600401610770906130a1565b506001600160a01b031660009081526003602052604090205490565b6111e6611c19565b6001600160a01b03166111f7611484565b6001600160a01b03161461121d5760405162461bcd60e51b8152600401610770906131b5565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000818152600d6020908152604091829020825160a081018452815460ff161515815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154606083015260040154909116608082015261271082106112e45760405162461bcd60e51b815260040161077090613316565b80516113025760405162461bcd60e51b815260040161077090612d7f565b60808101516001600160a01b03161580611338575061131f611c19565b6001600160a01b031681608001516001600160a01b0316145b6113545760405162461bcd60e51b815260040161077090612fd0565b80606001513410156113785760405162461bcd60e51b81526004016107709061333e565b80604001516001600160a01b031661138f83611121565b6001600160a01b0316146113b55760405162461bcd60e51b8152600401610770906132ed565b60408101516113dc816113c6611c19565b8560405180602001604052806000815250611dfe565b6001600160a01b0381166000908152600f602052604081208054349290611404908490613473565b909155506114129050611c19565b6001600160a01b0316816001600160a01b0316847f58e5d5a525e3b40bc15abaa38b5882678db1ee68befd2f60bafe3a7fd06db9e3346040516114559190612c8e565b60405180910390a4505050565b61111d61146d611c19565b838360405180602001604052806000815250611dfe565b600a546001600160a01b031690565b6060600180546106c6906134f9565b61271081106114c35760405162461bcd60e51b815260040161077090613316565b6114cb611c19565b6001600160a01b03166114dd82611121565b6001600160a01b031614156115045760405162461bcd60e51b815260040161077090612d5a565b61150c611c19565b6000828152600e60205260409020600201546001600160a01b039081169116146115485760405162461bcd60e51b815260040161077090612efe565b6000818152600e602081815260408084206003810180548351608081018552878152808601898152948101888152606082018981528a8a529790965251835460ff1916901515178355925160018301559251600290910180546001600160a01b0319166001600160a01b0390921691909117905591519055906115c9611c19565b6001600160a01b0316826040516115df90612c8b565b60006040518083038185875af1925050503d806000811461161c576040519150601f19603f3d011682016040523d82523d6000602084013e611621565b606091505b505090508061162f57600080fd5b611637611c19565b6001600160a01b0316837f6f30e1ee4d81dcc7a8a478577f65d2ed2edb120565960ac45fe7c50551c87932600e6000878152602001908152602001600020600301546040516116869190612c8e565b60405180910390a3505050565b61169b611c19565b6001600160a01b0316826001600160a01b031614156116cc5760405162461bcd60e51b815260040161077090612f99565b80600560006116d9611c19565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561171d611c19565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516109b59190612ce8565b611766611760611c19565b83611e31565b6117825760405162461bcd60e51b815260040161077090613375565b61178e84848484611dfe565b50505050565b61179c611c19565b8361271081106117be5760405162461bcd60e51b815260040161077090613316565b816001600160a01b03166117d182611121565b6001600160a01b0316146117f75760405162461bcd60e51b815260040161077090613214565b6040518060a00160405280600115158152602001868152602001611819611c19565b6001600160a01b0390811682526020808301889052868216604093840181905260008a8152600d83528490208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555186907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb906118cc908890612c8e565b60405180910390a35050505050565b60125481565b6118e9611c19565b82612710811061190b5760405162461bcd60e51b815260040161077090613316565b816001600160a01b031661191e82611121565b6001600160a01b0316146119445760405162461bcd60e51b815260040161077090613214565b6040518060a00160405280600115158152602001858152602001611966611c19565b6001600160a01b039081168252602080830187905260006040938401819052888152600d82528381208551815490151560ff19909116178155918501516001830155848401516002830180549185166001600160a01b0319928316179055606086015160038401556080909501516004909201805492909316919094161790555185907f3c7b682d5da98001a9b8cbda6c647d2c63d698a4184fd1d55e2ce7b66f5d21eb90611a16908790612c8e565b60405180910390a350505050565b6060611a2f82611bfc565b611a4b5760405162461bcd60e51b81526004016107709061325d565b6000611a55612064565b90506000815111611a755760405180602001604052806000815250611aa0565b80611a7f84612073565b604051602001611a90929190612c5c565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611add611c19565b6001600160a01b0316611aee611484565b6001600160a01b031614611b145760405162461bcd60e51b8152600401610770906131b5565b6001600160a01b038116611b3a5760405162461bcd60e51b815260040161077090612e81565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600f6020526000908152604090205481565b611bb9611bb3611c19565b8261218e565b50565b60006001600160e01b031982166380ac58cd60e01b1480611bed57506001600160e01b03198216635b5e139f60e01b145b806106af57506106af826122a5565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c5282611121565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006012544342611c9a611c19565b604051602001611caa9190612c3f565b6040516020818303038152906040528051906020012060001c611ccd919061348b565b454241604051602001611ce09190612c3f565b6040516020818303038152906040528051906020012060001c611d03919061348b565b611d0d4442613473565b611d179190613473565b611d219190613473565b611d2b9190613473565b611d359190613473565b604051602001611d459190612c8e565b6040516020818303038152906040528051906020012060001c611d68919061348b565b905090565b6000828152600c6020526040812054839015611d9457506000838152600c60205260409020545b6000848152600c602052604080822085905584825290205415611dc8576000838152600c6020526040808220548683529120555b6000928352600c60205260408084209190915592825250205490565b61111d8282604051806020016040528060008152506122be565b611e09848484611eb6565b611e15848484846122f1565b61178e5760405162461bcd60e51b815260040161077090612df8565b6000611e3c82611bfc565b611e585760405162461bcd60e51b815260040161077090612ff8565b6000611e6383611121565b9050806001600160a01b0316846001600160a01b03161480611e9e5750836001600160a01b0316611e9384610749565b6001600160a01b0316145b80611eae5750611eae8185611aa7565b949350505050565b82816127108110611ed95760405162461bcd60e51b815260040161077090613316565b816001600160a01b0316611eec82611121565b6001600160a01b031614611f125760405162461bcd60e51b815260040161077090613214565b611f1d85858561240c565b836001600160a01b0316856001600160a01b03167f05af636b70da6819000c49f85b21fa82081c632069bb626f30932034099107d885604051611f609190612c8e565b60405180910390a36000838152600d602052604090205460ff1615611f8957611f89848461218e565b6000838152600e60205260409020600201546001600160a01b038581169116141561205d576000838152600e60209081526040808320600301546001600160a01b0388168452600f9092528220805491929091611fe7908490613473565b9091555050604080516080810182526000808252602080830187815283850183815260608501848152898552600e909352949092209251835460ff19169015151783559051600183015591516002820180546001600160a01b0319166001600160a01b0390921691909117905590516003909101555b5050505050565b6060601080546106c6906134f9565b60608161209857506040805180820190915260018152600360fc1b60208201526106b2565b8160005b81156120c257806120ac81613534565b91506120bb9050600a8361348b565b915061209c565b60008167ffffffffffffffff8111156120eb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612115576020820181803683370190505b5090505b8415611eae5761212a60018361349f565b9150612137600a8661354f565b612142906030613473565b60f81b81838151811061216557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612187600a8661348b565b9450612119565b818161271081106121b15760405162461bcd60e51b815260040161077090613316565b816001600160a01b03166121c482611121565b6001600160a01b0316146121ea5760405162461bcd60e51b815260040161077090613214565b6040805160a081018252600080825260208083018781526001600160a01b03808a1685870190815260608601858152608087018681528b8752600d9095528786209651875490151560ff1990911617875592516001870155516002860180549183166001600160a01b03199283161790559151600386015591516004909401805494909216931692909217909155905184917fb0e0a660b4e50f26f0b7ce75c24655fc76cc66e3334a54ff410277229fa10bd491a250505050565b6001600160e01b031981166301ffc9a760e01b14919050565b6122c88383612539565b6122d560008484846122f1565b610a545760405162461bcd60e51b815260040161077090612df8565b6000612305846001600160a01b0316612618565b1561240157836001600160a01b031663150b7a02612321611c19565b8786866040518563ffffffff1660e01b81526004016123439493929190612cab565b602060405180830381600087803b15801561235d57600080fd5b505af192505050801561238d575060408051601f3d908101601f1916820190925261238a91810190612b44565b60015b6123e7573d8080156123bb576040519150601f19603f3d011682016040523d82523d6000602084013e6123c0565b606091505b5080516123df5760405162461bcd60e51b815260040161077090612df8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611eae565b506001949350505050565b826001600160a01b031661241f82611121565b6001600160a01b0316146124455760405162461bcd60e51b815260040161077090613214565b6001600160a01b03821661246b5760405162461bcd60e51b815260040161077090612f55565b61247683838361261e565b612481600082611c1d565b6001600160a01b03831660009081526003602052604081208054600192906124aa90849061349f565b90915550506001600160a01b03821660009081526003602052604081208054600192906124d8908490613473565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821661255f5760405162461bcd60e51b815260040161077090613134565b61256881611bfc565b156125855760405162461bcd60e51b815260040161077090612ec7565b6125916000838361261e565b6001600160a01b03821660009081526003602052604081208054600192906125ba908490613473565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b612629838383610a54565b6001600160a01b03831661264557612640816126a7565b612668565b816001600160a01b0316836001600160a01b0316146126685761266883826126eb565b6001600160a01b0382166126845761267f81612788565b610a54565b826001600160a01b0316826001600160a01b031614610a5457610a548282612861565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b600060016126f88461119a565b612702919061349f565b600083815260076020526040902054909150808214612755576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061279a9060019061349f565b600083815260096020526040812054600880549394509092849081106127d057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600883815481106127ff57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061284557634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061286c8361119a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546128b1906134f9565b90600052602060002090601f0160209004810192826128d35760008555612919565b82601f106128ec57805160ff1916838001178555612919565b82800160010185558215612919579182015b828111156129195782518255916020019190600101906128fe565b50612925929150612929565b5090565b5b80821115612925576000815560010161292a565b600067ffffffffffffffff808411156129595761295961358f565b604051601f8501601f19168101602001828111828210171561297d5761297d61358f565b60405284815291508183850186101561299557600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146106b257600080fd5b6000602082840312156129d6578081fd5b611aa0826129ae565b600080604083850312156129f1578081fd5b6129fa836129ae565b9150612a08602084016129ae565b90509250929050565b600080600060608486031215612a25578081fd5b612a2e846129ae565b9250612a3c602085016129ae565b9150604084013590509250925092565b60008060008060808587031215612a61578081fd5b612a6a856129ae565b9350612a78602086016129ae565b925060408501359150606085013567ffffffffffffffff811115612a9a578182fd5b8501601f81018713612aaa578182fd5b612ab98782356020840161293e565b91505092959194509250565b60008060408385031215612ad7578182fd5b612ae0836129ae565b915060208301358015158114612af4578182fd5b809150509250929050565b60008060408385031215612b11578182fd5b612b1a836129ae565b946020939093013593505050565b600060208284031215612b39578081fd5b8135611aa0816135a5565b600060208284031215612b55578081fd5b8151611aa0816135a5565b600060208284031215612b71578081fd5b813567ffffffffffffffff811115612b87578182fd5b8201601f81018413612b97578182fd5b611eae8482356020840161293e565b600060208284031215612bb7578081fd5b5035919050565b60008060408385031215612bd0578182fd5b50508035926020909101359150565b600080600060608486031215612bf3578283fd5b8335925060208401359150612c0a604085016129ae565b90509250925092565b60008151808452612c2b8160208601602086016134b6565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60008351612c6e8184602088016134b6565b835190830190612c828183602088016134b6565b01949350505050565b90565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612cde90830184612c13565b9695505050505050565b901515815260200190565b931515845260208401929092526001600160a01b03166040830152606082015260800190565b941515855260208501939093526001600160a01b039182166040850152606084015216608082015260a00190565b600060208252611aa06020830184612c13565b6020808252600b908201526a125b9d985b1a5908189a5960aa1b604082015260600190565b60208082526014908201527350756e6b206973206e6f7420666f722073616c6560601b604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601e908201527f4e65656420706179206174206c6561737420636c61696d20616d6f756e740000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600e908201526d24b73b30b634b2103134b23232b960911b604082015260600190565b60208082526015908201527414995c5d5a5c9948189a59d9d95c88185b5bdd5b9d605a1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252600e908201526d155b98589b19481d1bc81cd95b1b60921b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f426964207072696365206973206c6f7760801b604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252600f908201526e2737ba10383ab7359039b2b63632b960891b604082015260600190565b6020808252600e908201526d13dd5d081bd9881d1bdad95b925960921b604082015260600190565b6020808252601a908201527f496e73756666696369656e7420616d6f756e7420746f20706179000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f4e6f2072656d61696e69672070756e6b60801b604082015260600190565b6000821982111561348657613486613563565b500190565b60008261349a5761349a613579565b500490565b6000828210156134b1576134b1613563565b500390565b60005b838110156134d15781810151838201526020016134b9565b8381111561178e5750506000910152565b6000816134f1576134f1613563565b506000190190565b60028104600182168061350d57607f821691505b6020821081141561352e57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561354857613548613563565b5060010190565b60008261355e5761355e613579565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611bb957600080fdfea2646970667358221220573434f5a6881ff3419244ca31dba3049100b36b21499f525008067308c23dab64736f6c63430008000033
Loading...
Loading
Loading...
Loading
OVERVIEW
PolygonPunks are the 1st Punk NFTs on the Polygon blockchain. Each of the PolygonPunks has attributes that make them unique according to a defined rarity system. The entire collection of 10,000 Punks were officially minted on August 3rd, 2021, solidifying their history as the 1st Punks on Polygon.
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.