More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 14,851 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24067106 | 28 hrs ago | IN | 0 ETH | 0.00009345 | ||||
| Burn | 24046491 | 4 days ago | IN | 0 ETH | 0.00000495 | ||||
| Burn | 24046490 | 4 days ago | IN | 0 ETH | 0.00000455 | ||||
| Burn | 24046489 | 4 days ago | IN | 0 ETH | 0.00000437 | ||||
| Burn | 24046484 | 4 days ago | IN | 0 ETH | 0.00000545 | ||||
| Burn | 24044182 | 4 days ago | IN | 0 ETH | 0.00010227 | ||||
| Transfer From | 24044160 | 4 days ago | IN | 0 ETH | 0.00010537 | ||||
| Set Approval For... | 24044056 | 4 days ago | IN | 0 ETH | 0.00004607 | ||||
| Set Approval For... | 24043740 | 4 days ago | IN | 0 ETH | 0.00000148 | ||||
| Transfer From | 24043734 | 4 days ago | IN | 0 ETH | 0.00000337 | ||||
| Set Approval For... | 24042323 | 4 days ago | IN | 0 ETH | 0.00000073 | ||||
| Set Approval For... | 24040051 | 4 days ago | IN | 0 ETH | 0.00001362 | ||||
| Set Approval For... | 24038639 | 5 days ago | IN | 0 ETH | 0.00004598 | ||||
| Set Approval For... | 24038627 | 5 days ago | IN | 0 ETH | 0.00004607 | ||||
| Safe Transfer Fr... | 24033490 | 5 days ago | IN | 0 ETH | 0.0000504 | ||||
| Burn | 24032860 | 5 days ago | IN | 0 ETH | 0.00020812 | ||||
| Set Approval For... | 24031450 | 6 days ago | IN | 0 ETH | 0.00009406 | ||||
| Set Approval For... | 24030801 | 6 days ago | IN | 0 ETH | 0.00004607 | ||||
| Burn | 24028069 | 6 days ago | IN | 0 ETH | 0.00001087 | ||||
| Set Approval For... | 24019226 | 7 days ago | IN | 0 ETH | 0.00004504 | ||||
| Burn | 24018841 | 7 days ago | IN | 0 ETH | 0.0001773 | ||||
| Set Approval For... | 24009833 | 9 days ago | IN | 0 ETH | 0.00000531 | ||||
| Set Approval For... | 24009521 | 9 days ago | IN | 0 ETH | 0.00002421 | ||||
| Set Approval For... | 23991381 | 11 days ago | IN | 0 ETH | 0.00001026 | ||||
| Set Approval For... | 23990874 | 11 days ago | IN | 0 ETH | 0.00009789 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60806040 | 23922482 | 21 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23799798 | 38 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23671226 | 56 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23636958 | 61 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23523902 | 77 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23420343 | 91 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23370378 | 98 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23370329 | 98 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23369767 | 98 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23228197 | 118 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23225623 | 119 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23223893 | 119 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23223292 | 119 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23206430 | 121 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23206170 | 121 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23190588 | 123 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23140005 | 130 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22994501 | 151 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22727358 | 188 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22717949 | 189 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22712017 | 190 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22702786 | 192 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22651106 | 199 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22638375 | 201 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22634451 | 201 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WrappedPunk
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-09-08
*/
// File: contracts\gsn\Context.sol
pragma solidity ^0.5.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 GSN 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.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: contracts\access\Ownable.sol
pragma solidity ^0.5.0;
/**
* @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.
*/
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 () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view 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 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 onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: contracts\utils\Pausable.sol
pragma solidity ^0.5.0;
/**
* @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.
*/
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 () internal {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view 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 whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
// File: contracts\token\erc721\IERC721Enumerable.sol
pragma solidity ^0.5.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable {
/**
* @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);
}
// File: contracts\libs\SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
}
// File: contracts\libs\Counters.sol
pragma solidity ^0.5.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
* Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
* overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
* directly accessed.
*/
library Counters {
using SafeMath for uint256;
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
// The {SafeMath} overflow check can be skipped here, see the comment at the top
counter._value += 1;
}
function decrement(Counter storage counter) internal {
counter._value = counter._value.sub(1);
}
}
// File: contracts\libs\Address.sol
pragma solidity ^0.5.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) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Converts an `address` into `address payable`. Note that this is
* simply a type cast: the actual underlying value is not changed.
*
* _Available since v2.4.0._
*/
function toPayable(address account) internal pure returns (address payable) {
return address(uint160(account));
}
}
// File: contracts\token\erc721\IERC721.sol
pragma solidity ^0.5.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 {
/**
* @dev Emitted when `tokenId` token is transfered 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`, `to` cannot be zero.
* - `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`, `to` cannot be zero.
* - `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`, `to` cannot be zero.
* - `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;
}
// File: contracts\token\erc721\IERC721Receiver.sol
pragma solidity ^0.5.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @notice Handle the receipt of an NFT
* @dev The ERC721 smart contract calls this function on the recipient
* after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
* otherwise the caller will revert the transaction. The selector to be
* returned can be obtained as `this.onERC721Received.selector`. This
* function MAY throw to revert and reject the transfer.
* Note: the ERC721 contract address is always the message sender.
* @param operator The address which called `safeTransferFrom` function
* @param from The address which previously owned the token
* @param tokenId The NFT identifier which is being transferred
* @param data Additional data with no specified format
* @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
*/
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}
// File: contracts\token\erc721\IERC165.sol
pragma solidity ^0.5.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);
}
// File: contracts\token\erc721\ERC165.sol
pragma solidity ^0.5.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view returns (bool) {
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}
// File: contracts\token\erc721\ERC721.sol
pragma solidity ^0.5.0;
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721 is Context, ERC165, IERC721 {
using SafeMath for uint256;
using Address for address;
using Counters for Counters.Counter;
// Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
// which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
// Mapping from token ID to owner
mapping (uint256 => address) private _tokenOwner;
// Mapping from token ID to approved address
mapping (uint256 => address) private _tokenApprovals;
// Mapping from owner to number of owned token
mapping (address => Counters.Counter) private _ownedTokensCount;
// Mapping from owner to operator approvals
mapping (address => mapping (address => bool)) private _operatorApprovals;
/*
* bytes4(keccak256('balanceOf(address)')) == 0x70a08231
* bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
* bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
* bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
* bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
* bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
* bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
*
* => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
* 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
*/
bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
constructor () public {
// Register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(_INTERFACE_ID_ERC721);
}
/**
* @dev Gets the balance of the specified address.
* @param owner address to query the balance of
* @return uint256 representing the amount owned by the passed address
*/
function balanceOf(address owner) public view returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _ownedTokensCount[owner].current();
}
/**
* @dev Gets the owner of the specified token ID.
* @param tokenId uint256 ID of the token to query the owner of
* @return address currently marked as the owner of the given token ID
*/
function ownerOf(uint256 tokenId) public view returns (address) {
address owner = _tokenOwner[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev Approves another address to transfer the given token ID
* The zero address indicates there is no approved address.
* There can only be one approved address per token at a given time.
* Can only be called by the token owner or an approved operator.
* @param to address to be approved for the given token ID
* @param tokenId uint256 ID of the token to be approved
*/
function approve(address to, uint256 tokenId) public {
address owner = 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"
);
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Gets the approved address for a token ID, or zero if no address set
* Reverts if the token ID does not exist.
* @param tokenId uint256 ID of the token to query the approval of
* @return address currently approved for the given token ID
*/
function getApproved(uint256 tokenId) public view returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev Sets or unsets the approval of a given operator
* An operator is allowed to transfer all tokens of the sender on their behalf.
* @param to operator address to set the approval
* @param approved representing the status of the approval to be set
*/
function setApprovalForAll(address to, bool approved) public {
address msgSender = _msgSender();
require(to != msgSender, "ERC721: approve to caller");
_operatorApprovals[msgSender][to] = approved;
emit ApprovalForAll(msgSender, to, approved);
}
/**
* @dev Tells whether an operator is approved by a given owner.
* @param owner owner address which you want to query the approval of
* @param operator operator address which you want to query the approval of
* @return bool whether the given operator is approved by the given owner
*/
function isApprovedForAll(address owner, address operator) public view returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev Transfers the ownership of a given token ID to another address.
* Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
* Requires the msg.sender to be the owner, approved, or operator.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function transferFrom(address from, address to, uint256 tokenId) public {
// solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transferFrom(from, to, tokenId);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg.sender to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the _msgSender() to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransferFrom(from, to, tokenId, _data);
}
/**
* @dev Safely transfers the ownership of a given token ID to another address
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* Requires the msg.sender to be the owner, approved, or operator
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes data to send along with a safe transfer check
*/
function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal {
_transferFrom(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether the specified token exists.
* @param tokenId uint256 ID of the token to query the existence of
* @return bool whether the token exists
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return _tokenOwner[tokenId] != address(0);
}
/**
* @dev Returns whether the given spender can transfer a given token ID.
* @param spender address of the spender to query
* @param tokenId uint256 ID of the token to be transferred
* @return bool whether the msg.sender is approved for the given token ID,
* is an operator of the owner, or is the owner of the token
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Internal function to safely mint a new token.
* Reverts if the given token ID already exists.
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _safeMint(address to, uint256 tokenId) internal {
_safeMint(to, tokenId, "");
}
/**
* @dev Internal function to safely mint a new token.
* Reverts if the given token ID already exists.
* If the target address is a contract, it must implement `onERC721Received`,
* which is called upon a safe transfer, and return the magic value
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
* the transfer is reverted.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
* @param _data bytes data to send along with a safe transfer check
*/
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Internal function to mint a new token.
* Reverts if the given token ID already exists.
* @param to The address that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _mint(address to, uint256 tokenId) internal {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_tokenOwner[tokenId] = to;
_ownedTokensCount[to].increment();
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use {_burn} instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned
*/
function _burn(address owner, uint256 tokenId) internal {
require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own");
_clearApproval(tokenId);
_ownedTokensCount[owner].decrement();
_tokenOwner[tokenId] = address(0);
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* @param tokenId uint256 ID of the token being burned
*/
function _burn(uint256 tokenId) internal {
_burn(ownerOf(tokenId), tokenId);
}
/**
* @dev Internal function to transfer ownership of a given token ID to another address.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function _transferFrom(address from, address to, uint256 tokenId) internal {
require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_clearApproval(tokenId);
_ownedTokensCount[from].decrement();
_ownedTokensCount[to].increment();
_tokenOwner[tokenId] = to;
emit Transfer(from, 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.
*
* This is an internal detail of the `ERC721` contract and its use is deprecated.
* @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) internal returns (bool) {
if (!to.isContract()) {
return true;
}
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
IERC721Receiver(to).onERC721Received.selector,
_msgSender(),
from,
tokenId,
_data
));
if (!success) {
if (returndata.length > 0) {
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert("ERC721: transfer to non ERC721Receiver implementer");
}
} else {
bytes4 retval = abi.decode(returndata, (bytes4));
return (retval == _ERC721_RECEIVED);
}
}
/**
* @dev Private function to clear current approval of a given token ID.
* @param tokenId uint256 ID of the token to be transferred
*/
function _clearApproval(uint256 tokenId) private {
if (_tokenApprovals[tokenId] != address(0)) {
_tokenApprovals[tokenId] = address(0);
}
}
}
// File: contracts\token\erc721\ERC721Enumerable.sol
pragma solidity ^0.5.0;
/**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => 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;
/*
* bytes4(keccak256('totalSupply()')) == 0x18160ddd
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
* bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
*
* => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
*/
bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
constructor () public {
// Register the supported interface to conform to ERC721Enumerable via ERC165
_registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
}
/**
* @dev Gets the token ID at a given index of the tokens list of the requested owner.
* @param owner address owning the tokens list to be accessed
* @param index uint256 representing the index to be accessed of the requested tokens list
* @return uint256 token ID at the given index of the tokens list owned by the requested address
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev Gets the total amount of tokens stored by the contract.
* @return uint256 representing the total amount of tokens
*/
function totalSupply() public view returns (uint256) {
return _allTokens.length;
}
/**
* @dev Gets the token ID at a given index of all the tokens in this contract
* Reverts if the index is greater or equal to the total number of tokens.
* @param index uint256 representing the index to be accessed of the tokens list
* @return uint256 token ID at the given index of the tokens list
*/
function tokenByIndex(uint256 index) public view returns (uint256) {
require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Internal function to transfer ownership of a given token ID to another address.
* As opposed to transferFrom, this imposes no restrictions on msg.sender.
* @param from current owner of the token
* @param to address to receive the ownership of the given token ID
* @param tokenId uint256 ID of the token to be transferred
*/
function _transferFrom(address from, address to, uint256 tokenId) internal {
super._transferFrom(from, to, tokenId);
_removeTokenFromOwnerEnumeration(from, tokenId);
_addTokenToOwnerEnumeration(to, tokenId);
}
/**
* @dev Internal function to mint a new token.
* Reverts if the given token ID already exists.
* @param to address the beneficiary that will own the minted token
* @param tokenId uint256 ID of the token to be minted
*/
function _mint(address to, uint256 tokenId) internal {
super._mint(to, tokenId);
_addTokenToOwnerEnumeration(to, tokenId);
_addTokenToAllTokensEnumeration(tokenId);
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use {ERC721-_burn} instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned
*/
function _burn(address owner, uint256 tokenId) internal {
super._burn(owner, tokenId);
_removeTokenFromOwnerEnumeration(owner, tokenId);
// Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
_ownedTokensIndex[tokenId] = 0;
_removeTokenFromAllTokensEnumeration(tokenId);
}
/**
* @dev Gets the list of token IDs of the requested owner.
* @param owner address owning the tokens
* @return uint256[] List of token IDs owned by the requested address
*/
function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
return _ownedTokens[owner];
}
/**
* @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 {
_ownedTokensIndex[tokenId] = _ownedTokens[to].length;
_ownedTokens[to].push(tokenId);
}
/**
* @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 = _ownedTokens[from].length.sub(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
_ownedTokens[from].length--;
// Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by
// lastTokenId, or just over the end of the array if the token was the last one).
}
/**
* @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.sub(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
_allTokens.length--;
_allTokensIndex[tokenId] = 0;
}
}
// File: contracts\libs\Strings.sol
pragma solidity ^0.5.0;
/**
* @title Strings
* @dev String operations.
*/
library Strings {
/**
* @dev Converts a `uint256` to a `string`.
* via OraclizeAPI - MIT licence
* https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
*/
function fromUint256(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
uint256 index = digits - 1;
temp = value;
while (temp != 0) {
buffer[index--] = byte(uint8(48 + temp % 10));
temp /= 10;
}
return string(buffer);
}
}
// File: contracts\token\erc721\IERC721Metadata.sol
pragma solidity ^0.5.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata {
/**
* @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);
}
// File: contracts\token\erc721\ERC721Metadata.sol
pragma solidity ^0.5.0;
contract ERC721Metadata is ERC721, IERC721Metadata {
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/*
* bytes4(keccak256('name()')) == 0x06fdde03
* bytes4(keccak256('symbol()')) == 0x95d89b41
* bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
*
* => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
*/
bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
/**
* @dev Constructor function
*/
constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
// Register the supported interfaces to conform to ERC721 via ERC165
_registerInterface(_INTERFACE_ID_ERC721_METADATA);
}
/**
* @dev Gets the token name.
* @return string representing the token name
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Gets the token symbol.
* @return string representing the token symbol
*/
function symbol() public view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the URI for a given token ID. May return an empty string.
*
* If a base URI is set (via {_setBaseURI}), it is added as a prefix to the
* token's own URI (via {_setTokenURI}).
*
* If there is a base URI but no token URI, the token's ID will be used as
* its URI when appending it to the base URI. This pattern for autogenerated
* token URIs can lead to large gas savings.
*
* .Examples
* |===
* |`_setBaseURI()` |`_setTokenURI()` |`tokenURI()`
* | ""
* | ""
* | ""
* | ""
* | "token.uri/123"
* | "token.uri/123"
* | "token.uri/"
* | "123"
* | "token.uri/123"
* | "token.uri/"
* | ""
* | "token.uri/<tokenId>"
* |===
*
* Requirements:
*
* - `tokenId` must exist.
*/
function tokenURI(uint256 tokenId) public view returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
// If there is no base URI, return the token URI.
if (bytes(_baseURI).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(_baseURI, _tokenURI));
}
// If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
return string(abi.encodePacked(_baseURI, tokenId.fromUint256()));
}
/**
* @dev Internal function to set the token URI for a given token.
*
* Reverts if the token ID does not exist.
*
* TIP: if all token IDs share a prefix (e.g. if your URIs look like
* `http://api.myproject.com/token/<id>`), use {_setBaseURI} to store
* it and save gas.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Internal function to set the base URI for all token IDs. It is
* automatically added as a prefix to the value returned in {tokenURI}.
*
* _Available since v2.5.0._
*/
function _setBaseURI(string memory baseURI) internal {
_baseURI = baseURI;
}
/**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/
function baseURI() public view returns (string memory) {
return _baseURI;
}
/**
* @dev Internal function to burn a specific token.
* Reverts if the token does not exist.
* Deprecated, use _burn(uint256) instead.
* @param owner owner of the token to burn
* @param tokenId uint256 ID of the token being burned by the msg.sender
*/
function _burn(address owner, uint256 tokenId) internal {
super._burn(owner, tokenId);
// Clears metadata (if any)
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}
// File: contracts\token\erc721\ERC721Full.sol
pragma solidity ^0.5.0;
/**
* @title Full ERC721 Token
* @dev This implementation includes all the required and some optional functionality of the ERC721 standard
* Moreover, it includes approve all functionality using operator terminology.
*
* See https://eips.ethereum.org/EIPS/eip-721
*/
contract ERC721Full is ERC721Enumerable, ERC721Metadata {
constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
// solhint-disable-previous-line no-empty-blocks
}
}
// File: contracts\cryptopunk\ICryptoPunk.sol
pragma solidity ^0.5.0;
interface ICryptoPunk {
function punkIndexToAddress(uint256 punkIndex) external returns (address);
function punksOfferedForSale(uint256 punkIndex) external returns (bool, uint256, address, uint256, address);
function buyPunk(uint punkIndex) external payable;
function transferPunk(address to, uint punkIndex) external;
}
// File: contracts\cryptopunk\wrapped-punk\UserProxy.sol
pragma solidity ^0.5.0;
contract UserProxy {
address private _owner;
/**
* @dev Initializes the contract settings
*/
constructor()
public
{
_owner = msg.sender;
}
/**
* @dev Transfers punk to the smart contract owner
*/
function transfer(address punkContract, uint256 punkIndex)
external
returns (bool)
{
if (_owner != msg.sender) {
return false;
}
(bool result,) = punkContract.call(abi.encodeWithSignature("transferPunk(address,uint256)", _owner, punkIndex));
return result;
}
}
// File: contracts\cryptopunk\wrapped-punk\WrappedPunk.sol
pragma solidity ^0.5.0;
contract WrappedPunk is Ownable, ERC721Full, Pausable {
event ProxyRegistered(address user, address proxy);
// Instance of cryptopunk smart contract
ICryptoPunk private _punkContract;
// Mapping from user address to proxy address
mapping(address => address) private _proxies;
/**
* @dev Initializes the contract settings
*/
constructor(address punkContract)
public
ERC721Full("Wrapped Cryptopunks", "WPUNKS")
{
_punkContract = ICryptoPunk(punkContract);
}
/**
* @dev Gets address of cryptopunk smart contract
*/
function punkContract()
public
view
returns (address)
{
return address(_punkContract);
}
/**
* @dev Sets the base URI for all token
*/
function setBaseURI(string memory baseUri)
public
onlyOwner
{
_setBaseURI(baseUri);
}
/**
* @dev Triggers smart contract to stopped state
*/
function pause()
public
onlyOwner
{
_pause();
}
/**
* @dev Returns smart contract to normal state
*/
function unpause()
public
onlyOwner
{
_unpause();
}
/**
* @dev Registers proxy
*/
function registerProxy()
public
{
address sender = _msgSender();
require(_proxies[sender] == address(0), "PunkWrapper: caller has registered the proxy");
address proxy = address(new UserProxy());
_proxies[sender] = proxy;
emit ProxyRegistered(sender, proxy);
}
/**
* @dev Gets proxy address
*/
function proxyInfo(address user)
public
view
returns (address)
{
return _proxies[user];
}
/**
* @dev Mints a wrapped punk
*/
function mint(uint256 punkIndex)
public
whenNotPaused
{
address sender = _msgSender();
UserProxy proxy = UserProxy(_proxies[sender]);
require(proxy.transfer(address(_punkContract), punkIndex), "PunkWrapper: transfer fail");
_mint(sender, punkIndex);
}
/**
* @dev Burns a specific wrapped punk
*/
function burn(uint256 punkIndex)
public
whenNotPaused
{
address sender = _msgSender();
require(_isApprovedOrOwner(sender, punkIndex), "PunkWrapper: caller is not owner nor approved");
_burn(punkIndex);
// Transfers ownership of punk on original cryptopunk smart contract to caller
_punkContract.transferPunk(sender, punkIndex);
}
/**
* @dev Internal function to transfer ownership of a given punk index to another address
*/
function _transferFrom(address from, address to, uint256 punkIndex)
internal
whenNotPaused
{
super._transferFrom(from, to, punkIndex);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"punkContract","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"proxy","type":"address"}],"name":"ProxyRegistered","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"punkIndex","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"punkIndex","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"proxyInfo","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"punkContract","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"registerProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162002c3138038062002c31833981810160405260208110156200003757600080fd5b5051604080518082018252601381527f577261707065642043727970746f70756e6b7300000000000000000000000000602082810191909152825180840190935260068352655750554e4b5360d01b908301529081816000620000a26001600160e01b03620001b516565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001076301ffc9a760e01b6001600160e01b03620001ba16565b620001226380ac58cd60e01b6001600160e01b03620001ba16565b6200013d63780e9d6360e01b6001600160e01b03620001ba16565b81516200015290600a90602085019062000242565b5080516200016890600b90602084019062000242565b5062000184635b5e139f60e01b6001600160e01b03620001ba16565b5050600e80546001600160a01b03909416610100026001600160a81b03199094169390931790925550620002e49050565b335b90565b6001600160e01b031980821614156200021a576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200028557805160ff1916838001178555620002b5565b82800160010185558215620002b5579182015b82811115620002b557825182559160200191906001019062000298565b50620002c3929150620002c7565b5090565b620001b791905b80821115620002c35760008155600101620002ce565b61293d80620002f46000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063ddd81f8211610071578063ddd81f8214610654578063e985e9c51461065c578063f2fde38b1461068a578063f97e48ee146106b0576101cf565b8063a22cb4651461051d578063a9c7b2c81461054b578063b88d4fde14610571578063c87b56dd14610637576101cf565b80638456cb59116100de5780638456cb59146104e85780638da5cb5b146104f057806395d89b41146104f8578063a0712d6814610500576101cf565b80636c0360eb146104b257806370a08231146104ba578063715018a6146104e0576101cf565b80633f4ba83a116101715780634f6ccce71161014b5780634f6ccce7146103ca57806355f804b3146103e75780635c975abb1461048d5780636352211e14610495576101cf565b80633f4ba83a1461036f57806342842e0e1461037757806342966c68146103ad576101cf565b8063095ea7b3116101ad578063095ea7b3146102c557806318160ddd146102f357806323b872dd1461030d5780632f745c5914610343576101cf565b806301ffc9a7146101d457806306fdde031461020f578063081812fc1461028c575b600080fd5b6101fb600480360360208110156101ea57600080fd5b50356001600160e01b0319166106b8565b604080519115158252519081900360200190f35b6102176106db565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610251578181015183820152602001610239565b50505050905090810190601f16801561027e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a9600480360360208110156102a257600080fd5b5035610772565b604080516001600160a01b039092168252519081900360200190f35b6102f1600480360360408110156102db57600080fd5b506001600160a01b0381351690602001356107d4565b005b6102fb6108fc565b60408051918252519081900360200190f35b6102f16004803603606081101561032357600080fd5b506001600160a01b03813581169160208101359091169060400135610902565b6102fb6004803603604081101561035957600080fd5b506001600160a01b03813516906020013561095e565b6102f16109dd565b6102f16004803603606081101561038d57600080fd5b506001600160a01b03813581169160208101359091169060400135610a3f565b6102f1600480360360208110156103c357600080fd5b5035610a5a565b6102fb600480360360208110156103e057600080fd5b5035610b76565b6102f1600480360360208110156103fd57600080fd5b81019060208101813564010000000081111561041857600080fd5b82018360208201111561042a57600080fd5b8035906020019184600183028401116401000000008311171561044c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bdc945050505050565b6101fb610c40565b6102a9600480360360208110156104ab57600080fd5b5035610c49565b610217610ca3565b6102fb600480360360208110156104d057600080fd5b50356001600160a01b0316610d04565b6102f1610d6c565b6102f1610e0e565b6102a9610e6e565b610217610e7d565b6102f16004803603602081101561051657600080fd5b5035610ede565b6102f16004803603604081101561053357600080fd5b506001600160a01b0381351690602001351515611029565b6102a96004803603602081101561056157600080fd5b50356001600160a01b031661110a565b6102f16004803603608081101561058757600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105c257600080fd5b8201836020820111156105d457600080fd5b803590602001918460018302840111640100000000831117156105f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611128945050505050565b6102176004803603602081101561064d57600080fd5b5035611186565b6102f161142d565b6101fb6004803603604081101561067257600080fd5b506001600160a01b038135811691602001351661152c565b6102f1600480360360208110156106a057600080fd5b50356001600160a01b031661155a565b6102a9611652565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b820191906000526020600020905b81548152906001019060200180831161074a57829003601f168201915b505050505090505b90565b600061077d82611666565b6107b85760405162461bcd60e51b815260040180806020018281038252602c8152602001806127c2602c913960400191505060405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107df82610c49565b9050806001600160a01b0316836001600160a01b031614156108325760405162461bcd60e51b81526004018080602001828103825260218152602001806128666021913960400191505060405180910390fd5b806001600160a01b0316610844611683565b6001600160a01b03161480610865575061086581610860611683565b61152c565b6108a05760405162461bcd60e51b815260040180806020018281038252603881526020018061270b6038913960400191505060405180910390fd5b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60085490565b61091361090d611683565b82611687565b61094e5760405162461bcd60e51b81526004018080602001828103825260318152602001806128876031913960400191505060405180910390fd5b61095983838361172b565b505050565b600061096983610d04565b82106109a65760405162461bcd60e51b815260040180806020018281038252602b815260200180612638602b913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090208054839081106109ca57fe5b9060005260206000200154905092915050565b6109e5611683565b6000546001600160a01b03908116911614610a35576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610a3d611781565b565b61095983838360405180602001604052806000815250611128565b600e5460ff1615610aa5576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000610aaf611683565b9050610abb8183611687565b610af65760405162461bcd60e51b815260040180806020018281038252602d81526020018061260b602d913960400191505060405180910390fd5b610aff8261181f565b600e54604080516322dca8bb60e21b81526001600160a01b03848116600483015260248201869052915161010090930490911691638b72a2ec9160448082019260009290919082900301818387803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b505050505050565b6000610b806108fc565b8210610bbd5760405162461bcd60e51b815260040180806020018281038252602c8152602001806128b8602c913960400191505060405180910390fd5b60088281548110610bca57fe5b90600052602060002001549050919050565b610be4611683565b6000546001600160a01b03908116911614610c34576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610c3d81611831565b50565b600e5460ff1690565b6000818152600260205260408120546001600160a01b031680610c9d5760405162461bcd60e51b815260040180806020018281038252602981526020018061276d6029913960400191505060405180910390fd5b92915050565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b60006001600160a01b038216610d4b5760405162461bcd60e51b815260040180806020018281038252602a815260200180612743602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600460205260409020610c9d90611848565b610d74611683565b6000546001600160a01b03908116911614610dc4576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610e16611683565b6000546001600160a01b03908116911614610e66576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610a3d61184c565b6000546001600160a01b031690565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b600e5460ff1615610f29576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000610f33611683565b6001600160a01b038082166000908152600f6020908152604080832054600e54825163a9059cbb60e01b81526101009091048616600482015260248101899052915195965090931693849363a9059cbb9360448083019493928390030190829087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050506040513d6020811015610fcc57600080fd5b505161101f576040805162461bcd60e51b815260206004820152601a60248201527f50756e6b577261707065723a207472616e73666572206661696c000000000000604482015290519081900360640190fd5b61095982846118cd565b6000611033611683565b9050806001600160a01b0316836001600160a01b0316141561109c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b6001600160a01b03818116600081815260056020908152604080832094881680845294825291829020805460ff1916871515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b6001600160a01b039081166000908152600f60205260409020541690565b611139611133611683565b83611687565b6111745760405162461bcd60e51b81526004018080602001828103825260318152602001806128876031913960400191505060405180910390fd5b611180848484846118ea565b50505050565b606061119182611666565b6111cc5760405162461bcd60e51b815260040180806020018281038252602f815260200180612837602f913960400191505060405180910390fd5b6000828152600d602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156112615780601f1061123657610100808354040283529160200191611261565b820191906000526020600020905b81548152906001019060200180831161124457829003601f168201915b5050600c549394505050506002600019610100600184161502019091160461128a5790506106d6565b80511561135b57600c8160405160200180838054600181600116156101000203166002900480156112f25780601f106112d05761010080835404028352918201916112f2565b820191906000526020600020905b8154815290600101906020018083116112de575b5050825160208401908083835b6020831061131e5780518252601f1990920191602091820191016112ff565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506106d6565b600c6113668461193c565b60405160200180838054600181600116156101000203166002900480156113c45780601f106113a25761010080835404028352918201916113c4565b820191906000526020600020905b8154815290600101906020018083116113b0575b5050825160208401908083835b602083106113f05780518252601f1990920191602091820191016113d1565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000611437611683565b6001600160a01b038082166000908152600f602052604090205491925016156114915760405162461bcd60e51b815260040180806020018281038252602c815260200180612796602c913960400191505060405180910390fd5b600060405161149f9061231e565b604051809103906000f0801580156114bb573d6000803e3d6000fd5b506001600160a01b038381166000818152600f602090815260409182902080546001600160a01b0319169486169485179055815192835282019290925281519293507f3623f8bd4da9524cfaa08c81b8194f759ca625e8d761f4cc2cea23e63d3f4b12929081900390910190a15050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611562611683565b6000546001600160a01b039081169116146115b2576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b6001600160a01b0381166115f75760405162461bcd60e51b81526004018080602001828103825260268152602001806126956026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600e5461010090046001600160a01b031690565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600061169282611666565b6116cd5760405162461bcd60e51b815260040180806020018281038252602c8152602001806126df602c913960400191505060405180910390fd5b60006116d883610c49565b9050806001600160a01b0316846001600160a01b031614806117135750836001600160a01b031661170884610772565b6001600160a01b0316145b806117235750611723818561152c565b949350505050565b600e5460ff1615611776576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610959838383611a00565b600e5460ff166117cf576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600e805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611802611683565b604080516001600160a01b039092168252519081900360200190a1565b610c3d61182b82610c49565b82611a1f565b805161184490600c90602084019061232b565b5050565b5490565b600e5460ff1615611897576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600e805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611802611683565b6118d78282611a67565b6118e18282611b98565b61184481611bd6565b6118f584848461172b565b61190184848484611c1a565b6111805760405162461bcd60e51b81526004018080602001828103825260328152602001806126636032913960400191505060405180910390fd5b60608161196157506040805180820190915260018152600360fc1b60208201526106d6565b8160005b811561197957600101600a82049150611965565b6060816040519080825280601f01601f1916602001820160405280156119a6576020820181803883390190505b50859350905060001982015b83156119f757600a840660300160f81b828280600190039350815181106119d557fe5b60200101906001600160f81b031916908160001a905350600a840493506119b2565b50949350505050565b611a0b838383611e55565b611a158382611f99565b6109598282611b98565b611a29828261208e565b6000818152600d60205260409020546002600019610100600184161502019091160415611844576000818152600d60205260408120611844916123a9565b6001600160a01b038216611ac2576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b611acb81611666565b15611b1d576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611b5c906120ba565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0390911660009081526006602081815260408084208054868652600784529185208290559282526001810183559183529091200155565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000611c2e846001600160a01b03166120c3565b611c3a57506001611723565b600060606001600160a01b038616630a85bd0160e11b611c58611683565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611cd1578181015183820152602001611cb9565b50505050905090810190601f168015611cfe5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b60208310611d665780518252601f199092019160209182019101611d47565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611dc8576040519150601f19603f3d011682016040523d82523d6000602084013e611dcd565b606091505b509150915081611e1e57805115611de75780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806126636032913960400191505060405180910390fd5b6000818060200190516020811015611e3557600080fd5b50516001600160e01b031916630a85bd0160e11b14935061172392505050565b826001600160a01b0316611e6882610c49565b6001600160a01b031614611ead5760405162461bcd60e51b815260040180806020018281038252602981526020018061280e6029913960400191505060405180910390fd5b6001600160a01b038216611ef25760405162461bcd60e51b81526004018080602001828103825260248152602001806126bb6024913960400191505060405180910390fd5b611efb816120fc565b6001600160a01b0383166000908152600460205260409020611f1c90612137565b6001600160a01b0382166000908152600460205260409020611f3d906120ba565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260066020526040812054611fc390600163ffffffff61214e16565b60008381526007602052604090205490915080821461205e576001600160a01b038416600090815260066020526040812080548490811061200057fe5b906000526020600020015490508060066000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061203e57fe5b600091825260208083209091019290925591825260079052604090208190555b6001600160a01b03841660009081526006602052604090208054906120879060001983016123ed565b5050505050565b61209882826121ab565b6120a28282611f99565b60008181526007602052604081205561184481612282565b80546001019055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611723575050151592915050565b6000818152600360205260409020546001600160a01b031615610c3d57600090815260036020526040902080546001600160a01b0319169055565b805461214a90600163ffffffff61214e16565b9055565b6000828211156121a5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b816001600160a01b03166121be82610c49565b6001600160a01b0316146122035760405162461bcd60e51b81526004018080602001828103825260258152602001806128e46025913960400191505060405180910390fd5b61220c816120fc565b6001600160a01b038216600090815260046020526040902061222d90612137565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085460009061229990600163ffffffff61214e16565b600083815260096020526040812054600880549394509092849081106122bb57fe5b9060005260206000200154905080600883815481106122d657fe5b600091825260208083209091019290925582815260099091526040902082905560088054906123099060001983016123ed565b50505060009182525060096020526040812055565b6101e38061242883390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061236c57805160ff1916838001178555612399565b82800160010185558215612399579182015b8281111561239957825182559160200191906001019061237e565b506123a592915061240d565b5090565b50805460018160011615610100020316600290046000825580601f106123cf5750610c3d565b601f016020900490600052602060002090810190610c3d919061240d565b815481835581811115610959576000838152602090206109599181019083015b61076f91905b808211156123a5576000815560010161241356fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101b1806100326000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a9059cbb14610030575b600080fd5b61005c6004803603604081101561004657600080fd5b506001600160a01b038135169060200135610070565b604080519115158252519081900360200190f35b600080546001600160a01b0316331461008b57506000610176565b60008054604080516001600160a01b039283166024820152604480820187905282518083039091018152606490910182526020810180516001600160e01b03166322dca8bb60e21b1781529151815193881693919290918291908083835b602083106101085780518252601f1990920191602091820191016100e9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461016a576040519150601f19603f3d011682016040523d82523d6000602084013e61016f565b606091505b5090925050505b9291505056fea265627a7a723158202431eb3db44f6d4e7b3be276b8da5ceb848f136661ca00c86b8403d61ac6d1bf64736f6c6343000511003250756e6b577261707065723a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e50756e6b577261707065723a2063616c6c6572206861732072656769737465726564207468652070726f78794552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776ea265627a7a7231582057ebcf2453163f5205f6bf60229bf26cbe9ae34ba12eb3eb46f1b3ca269dc37c64736f6c63430005110032000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636c0360eb11610104578063a22cb465116100a2578063ddd81f8211610071578063ddd81f8214610654578063e985e9c51461065c578063f2fde38b1461068a578063f97e48ee146106b0576101cf565b8063a22cb4651461051d578063a9c7b2c81461054b578063b88d4fde14610571578063c87b56dd14610637576101cf565b80638456cb59116100de5780638456cb59146104e85780638da5cb5b146104f057806395d89b41146104f8578063a0712d6814610500576101cf565b80636c0360eb146104b257806370a08231146104ba578063715018a6146104e0576101cf565b80633f4ba83a116101715780634f6ccce71161014b5780634f6ccce7146103ca57806355f804b3146103e75780635c975abb1461048d5780636352211e14610495576101cf565b80633f4ba83a1461036f57806342842e0e1461037757806342966c68146103ad576101cf565b8063095ea7b3116101ad578063095ea7b3146102c557806318160ddd146102f357806323b872dd1461030d5780632f745c5914610343576101cf565b806301ffc9a7146101d457806306fdde031461020f578063081812fc1461028c575b600080fd5b6101fb600480360360208110156101ea57600080fd5b50356001600160e01b0319166106b8565b604080519115158252519081900360200190f35b6102176106db565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610251578181015183820152602001610239565b50505050905090810190601f16801561027e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a9600480360360208110156102a257600080fd5b5035610772565b604080516001600160a01b039092168252519081900360200190f35b6102f1600480360360408110156102db57600080fd5b506001600160a01b0381351690602001356107d4565b005b6102fb6108fc565b60408051918252519081900360200190f35b6102f16004803603606081101561032357600080fd5b506001600160a01b03813581169160208101359091169060400135610902565b6102fb6004803603604081101561035957600080fd5b506001600160a01b03813516906020013561095e565b6102f16109dd565b6102f16004803603606081101561038d57600080fd5b506001600160a01b03813581169160208101359091169060400135610a3f565b6102f1600480360360208110156103c357600080fd5b5035610a5a565b6102fb600480360360208110156103e057600080fd5b5035610b76565b6102f1600480360360208110156103fd57600080fd5b81019060208101813564010000000081111561041857600080fd5b82018360208201111561042a57600080fd5b8035906020019184600183028401116401000000008311171561044c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610bdc945050505050565b6101fb610c40565b6102a9600480360360208110156104ab57600080fd5b5035610c49565b610217610ca3565b6102fb600480360360208110156104d057600080fd5b50356001600160a01b0316610d04565b6102f1610d6c565b6102f1610e0e565b6102a9610e6e565b610217610e7d565b6102f16004803603602081101561051657600080fd5b5035610ede565b6102f16004803603604081101561053357600080fd5b506001600160a01b0381351690602001351515611029565b6102a96004803603602081101561056157600080fd5b50356001600160a01b031661110a565b6102f16004803603608081101561058757600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105c257600080fd5b8201836020820111156105d457600080fd5b803590602001918460018302840111640100000000831117156105f657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611128945050505050565b6102176004803603602081101561064d57600080fd5b5035611186565b6102f161142d565b6101fb6004803603604081101561067257600080fd5b506001600160a01b038135811691602001351661152c565b6102f1600480360360208110156106a057600080fd5b50356001600160a01b031661155a565b6102a9611652565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b820191906000526020600020905b81548152906001019060200180831161074a57829003601f168201915b505050505090505b90565b600061077d82611666565b6107b85760405162461bcd60e51b815260040180806020018281038252602c8152602001806127c2602c913960400191505060405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006107df82610c49565b9050806001600160a01b0316836001600160a01b031614156108325760405162461bcd60e51b81526004018080602001828103825260218152602001806128666021913960400191505060405180910390fd5b806001600160a01b0316610844611683565b6001600160a01b03161480610865575061086581610860611683565b61152c565b6108a05760405162461bcd60e51b815260040180806020018281038252603881526020018061270b6038913960400191505060405180910390fd5b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60085490565b61091361090d611683565b82611687565b61094e5760405162461bcd60e51b81526004018080602001828103825260318152602001806128876031913960400191505060405180910390fd5b61095983838361172b565b505050565b600061096983610d04565b82106109a65760405162461bcd60e51b815260040180806020018281038252602b815260200180612638602b913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090208054839081106109ca57fe5b9060005260206000200154905092915050565b6109e5611683565b6000546001600160a01b03908116911614610a35576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610a3d611781565b565b61095983838360405180602001604052806000815250611128565b600e5460ff1615610aa5576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000610aaf611683565b9050610abb8183611687565b610af65760405162461bcd60e51b815260040180806020018281038252602d81526020018061260b602d913960400191505060405180910390fd5b610aff8261181f565b600e54604080516322dca8bb60e21b81526001600160a01b03848116600483015260248201869052915161010090930490911691638b72a2ec9160448082019260009290919082900301818387803b158015610b5a57600080fd5b505af1158015610b6e573d6000803e3d6000fd5b505050505050565b6000610b806108fc565b8210610bbd5760405162461bcd60e51b815260040180806020018281038252602c8152602001806128b8602c913960400191505060405180910390fd5b60088281548110610bca57fe5b90600052602060002001549050919050565b610be4611683565b6000546001600160a01b03908116911614610c34576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610c3d81611831565b50565b600e5460ff1690565b6000818152600260205260408120546001600160a01b031680610c9d5760405162461bcd60e51b815260040180806020018281038252602981526020018061276d6029913960400191505060405180910390fd5b92915050565b600c8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b60006001600160a01b038216610d4b5760405162461bcd60e51b815260040180806020018281038252602a815260200180612743602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600460205260409020610c9d90611848565b610d74611683565b6000546001600160a01b03908116911614610dc4576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610e16611683565b6000546001600160a01b03908116911614610e66576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b610a3d61184c565b6000546001600160a01b031690565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156107675780601f1061073c57610100808354040283529160200191610767565b600e5460ff1615610f29576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000610f33611683565b6001600160a01b038082166000908152600f6020908152604080832054600e54825163a9059cbb60e01b81526101009091048616600482015260248101899052915195965090931693849363a9059cbb9360448083019493928390030190829087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050506040513d6020811015610fcc57600080fd5b505161101f576040805162461bcd60e51b815260206004820152601a60248201527f50756e6b577261707065723a207472616e73666572206661696c000000000000604482015290519081900360640190fd5b61095982846118cd565b6000611033611683565b9050806001600160a01b0316836001600160a01b0316141561109c576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b6001600160a01b03818116600081815260056020908152604080832094881680845294825291829020805460ff1916871515908117909155825190815291517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319281900390910190a3505050565b6001600160a01b039081166000908152600f60205260409020541690565b611139611133611683565b83611687565b6111745760405162461bcd60e51b81526004018080602001828103825260318152602001806128876031913960400191505060405180910390fd5b611180848484846118ea565b50505050565b606061119182611666565b6111cc5760405162461bcd60e51b815260040180806020018281038252602f815260200180612837602f913960400191505060405180910390fd5b6000828152600d602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156112615780601f1061123657610100808354040283529160200191611261565b820191906000526020600020905b81548152906001019060200180831161124457829003601f168201915b5050600c549394505050506002600019610100600184161502019091160461128a5790506106d6565b80511561135b57600c8160405160200180838054600181600116156101000203166002900480156112f25780601f106112d05761010080835404028352918201916112f2565b820191906000526020600020905b8154815290600101906020018083116112de575b5050825160208401908083835b6020831061131e5780518252601f1990920191602091820191016112ff565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506106d6565b600c6113668461193c565b60405160200180838054600181600116156101000203166002900480156113c45780601f106113a25761010080835404028352918201916113c4565b820191906000526020600020905b8154815290600101906020018083116113b0575b5050825160208401908083835b602083106113f05780518252601f1990920191602091820191016113d1565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000611437611683565b6001600160a01b038082166000908152600f602052604090205491925016156114915760405162461bcd60e51b815260040180806020018281038252602c815260200180612796602c913960400191505060405180910390fd5b600060405161149f9061231e565b604051809103906000f0801580156114bb573d6000803e3d6000fd5b506001600160a01b038381166000818152600f602090815260409182902080546001600160a01b0319169486169485179055815192835282019290925281519293507f3623f8bd4da9524cfaa08c81b8194f759ca625e8d761f4cc2cea23e63d3f4b12929081900390910190a15050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611562611683565b6000546001600160a01b039081169116146115b2576040805162461bcd60e51b815260206004820181905260248201526000805160206127ee833981519152604482015290519081900360640190fd5b6001600160a01b0381166115f75760405162461bcd60e51b81526004018080602001828103825260268152602001806126956026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600e5461010090046001600160a01b031690565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600061169282611666565b6116cd5760405162461bcd60e51b815260040180806020018281038252602c8152602001806126df602c913960400191505060405180910390fd5b60006116d883610c49565b9050806001600160a01b0316846001600160a01b031614806117135750836001600160a01b031661170884610772565b6001600160a01b0316145b806117235750611723818561152c565b949350505050565b600e5460ff1615611776576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610959838383611a00565b600e5460ff166117cf576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600e805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611802611683565b604080516001600160a01b039092168252519081900360200190a1565b610c3d61182b82610c49565b82611a1f565b805161184490600c90602084019061232b565b5050565b5490565b600e5460ff1615611897576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600e805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611802611683565b6118d78282611a67565b6118e18282611b98565b61184481611bd6565b6118f584848461172b565b61190184848484611c1a565b6111805760405162461bcd60e51b81526004018080602001828103825260328152602001806126636032913960400191505060405180910390fd5b60608161196157506040805180820190915260018152600360fc1b60208201526106d6565b8160005b811561197957600101600a82049150611965565b6060816040519080825280601f01601f1916602001820160405280156119a6576020820181803883390190505b50859350905060001982015b83156119f757600a840660300160f81b828280600190039350815181106119d557fe5b60200101906001600160f81b031916908160001a905350600a840493506119b2565b50949350505050565b611a0b838383611e55565b611a158382611f99565b6109598282611b98565b611a29828261208e565b6000818152600d60205260409020546002600019610100600184161502019091160415611844576000818152600d60205260408120611844916123a9565b6001600160a01b038216611ac2576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b611acb81611666565b15611b1d576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611b5c906120ba565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0390911660009081526006602081815260408084208054868652600784529185208290559282526001810183559183529091200155565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000611c2e846001600160a01b03166120c3565b611c3a57506001611723565b600060606001600160a01b038616630a85bd0160e11b611c58611683565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611cd1578181015183820152602001611cb9565b50505050905090810190601f168015611cfe5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b60208310611d665780518252601f199092019160209182019101611d47565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611dc8576040519150601f19603f3d011682016040523d82523d6000602084013e611dcd565b606091505b509150915081611e1e57805115611de75780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806126636032913960400191505060405180910390fd5b6000818060200190516020811015611e3557600080fd5b50516001600160e01b031916630a85bd0160e11b14935061172392505050565b826001600160a01b0316611e6882610c49565b6001600160a01b031614611ead5760405162461bcd60e51b815260040180806020018281038252602981526020018061280e6029913960400191505060405180910390fd5b6001600160a01b038216611ef25760405162461bcd60e51b81526004018080602001828103825260248152602001806126bb6024913960400191505060405180910390fd5b611efb816120fc565b6001600160a01b0383166000908152600460205260409020611f1c90612137565b6001600160a01b0382166000908152600460205260409020611f3d906120ba565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216600090815260066020526040812054611fc390600163ffffffff61214e16565b60008381526007602052604090205490915080821461205e576001600160a01b038416600090815260066020526040812080548490811061200057fe5b906000526020600020015490508060066000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061203e57fe5b600091825260208083209091019290925591825260079052604090208190555b6001600160a01b03841660009081526006602052604090208054906120879060001983016123ed565b5050505050565b61209882826121ab565b6120a28282611f99565b60008181526007602052604081205561184481612282565b80546001019055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611723575050151592915050565b6000818152600360205260409020546001600160a01b031615610c3d57600090815260036020526040902080546001600160a01b0319169055565b805461214a90600163ffffffff61214e16565b9055565b6000828211156121a5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b816001600160a01b03166121be82610c49565b6001600160a01b0316146122035760405162461bcd60e51b81526004018080602001828103825260258152602001806128e46025913960400191505060405180910390fd5b61220c816120fc565b6001600160a01b038216600090815260046020526040902061222d90612137565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085460009061229990600163ffffffff61214e16565b600083815260096020526040812054600880549394509092849081106122bb57fe5b9060005260206000200154905080600883815481106122d657fe5b600091825260208083209091019290925582815260099091526040902082905560088054906123099060001983016123ed565b50505060009182525060096020526040812055565b6101e38061242883390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061236c57805160ff1916838001178555612399565b82800160010185558215612399579182015b8281111561239957825182559160200191906001019061237e565b506123a592915061240d565b5090565b50805460018160011615610100020316600290046000825580601f106123cf5750610c3d565b601f016020900490600052602060002090810190610c3d919061240d565b815481835581811115610959576000838152602090206109599181019083015b61076f91905b808211156123a5576000815560010161241356fe608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101b1806100326000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a9059cbb14610030575b600080fd5b61005c6004803603604081101561004657600080fd5b506001600160a01b038135169060200135610070565b604080519115158252519081900360200190f35b600080546001600160a01b0316331461008b57506000610176565b60008054604080516001600160a01b039283166024820152604480820187905282518083039091018152606490910182526020810180516001600160e01b03166322dca8bb60e21b1781529151815193881693919290918291908083835b602083106101085780518252601f1990920191602091820191016100e9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461016a576040519150601f19603f3d011682016040523d82523d6000602084013e61016f565b606091505b5090925050505b9291505056fea265627a7a723158202431eb3db44f6d4e7b3be276b8da5ceb848f136661ca00c86b8403d61ac6d1bf64736f6c6343000511003250756e6b577261707065723a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e50756e6b577261707065723a2063616c6c6572206861732072656769737465726564207468652070726f78794552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776ea265627a7a7231582057ebcf2453163f5205f6bf60229bf26cbe9ae34ba12eb3eb46f1b3ca269dc37c64736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb
-----Decoded View---------------
Arg [0] : punkContract (address): 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b47e3cd837ddf8e4c57f05d70ab865de6e193bbb
Deployed Bytecode Sourcemap
54850:3021:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54850:3021:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20987:133;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20987:133:0;-1:-1:-1;;;;;;20987:133:0;;:::i;:::-;;;;;;;;;;;;;;;;;;49356:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;49356:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25945:204;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25945:204:0;;:::i;:::-;;;;-1:-1:-1;;;;;25945:204:0;;;;;;;;;;;;;;25223:429;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;25223:429:0;;;;;;;;:::i;:::-;;39777:96;;;:::i;:::-;;;;;;;;;;;;;;;;27666:293;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;27666:293:0;;;;;;;;;;;;;;;;;:::i;39384:234::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;39384:234:0;;;;;;;;:::i;56047:88::-;;;:::i;28621:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;28621:134:0;;;;;;;;;;;;;;;;;:::i;57165:408::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57165:408:0;;:::i;40219:201::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40219:201:0;;:::i;55683:122::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55683:122:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;55683:122:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;55683:122:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;55683:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;55683:122:0;;-1:-1:-1;55683:122:0;;-1:-1:-1;;;;;55683:122:0:i;4514:78::-;;;:::i;24562:230::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24562:230:0;;:::i;52372:89::-;;;:::i;24125:211::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24125:211:0;-1:-1:-1;;;;;24125:211:0;;:::i;2912:142::-;;;:::i;55885:84::-;;;:::i;2270:79::-;;;:::i;49554:87::-;;;:::i;56775:321::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56775:321:0;;:::i;26450:292::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;26450:292:0;;;;;;;;;;:::i;56580:135::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56580:135:0;-1:-1:-1;;;;;56580:135:0;;:::i;29492:274::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;29492:274:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;29492:274:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;29492:274:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;29492:274:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;29492:274:0;;-1:-1:-1;29492:274:0;;-1:-1:-1;;;;;29492:274:0:i;50517:753::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50517:753:0;;:::i;56190:332::-;;;:::i;27072:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;27072:147:0;;;;;;;;;;:::i;3209:240::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3209:240:0;-1:-1:-1;;;;;3209:240:0;;:::i;55478:134::-;;;:::i;20987:133::-;-1:-1:-1;;;;;;21079:33:0;;21055:4;21079:33;;;:20;:33;;;;;;;;20987:133;;;;:::o;49356:83::-;49426:5;49419:12;;;;;;;;-1:-1:-1;;49419:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49393:13;;49419:12;;49426:5;;49419:12;;49426:5;49419:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49356:83;;:::o;25945:204::-;26004:7;26032:16;26040:7;26032;:16::i;:::-;26024:73;;;;-1:-1:-1;;;26024:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26117:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;26117:24:0;;25945:204::o;25223:429::-;25287:13;25303:16;25311:7;25303;:16::i;:::-;25287:32;;25346:5;-1:-1:-1;;;;;25340:11:0;:2;-1:-1:-1;;;;;25340:11:0;;;25332:57;;;;-1:-1:-1;;;25332:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25426:5;-1:-1:-1;;;;;25410:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;25410:21:0;;:62;;;;25435:37;25452:5;25459:12;:10;:12::i;:::-;25435:16;:37::i;:::-;25402:154;;;;-1:-1:-1;;;25402:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25569:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;25569:29:0;-1:-1:-1;;;;;25569:29:0;;;;;;;;;25616:28;;25569:24;;25616:28;;;;;;;25223:429;;;:::o;39777:96::-;39848:10;:17;39777:96;:::o;27666:293::-;27811:41;27830:12;:10;:12::i;:::-;27844:7;27811:18;:41::i;:::-;27803:103;;;;-1:-1:-1;;;27803:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27919:32;27933:4;27939:2;27943:7;27919:13;:32::i;:::-;27666:293;;;:::o;39384:234::-;39464:7;39500:16;39510:5;39500:9;:16::i;:::-;39492:5;:24;39484:80;;;;-1:-1:-1;;;39484:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39584:19:0;;;;;;:12;:19;;;;;:26;;39604:5;;39584:26;;;;;;;;;;;;;;39577:33;;39384:234;;;;:::o;56047:88::-;2492:12;:10;:12::i;:::-;2482:6;;-1:-1:-1;;;;;2482:6:0;;;:22;;;2474:67;;;;;-1:-1:-1;;;2474:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2474:67:0;;;;;;;;;;;;;;;56117:10;:8;:10::i;:::-;56047:88::o;28621:134::-;28708:39;28725:4;28731:2;28735:7;28708:39;;;;;;;;;;;;:16;:39::i;57165:408::-;4832:7;;;;4831:8;4823:37;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;;;;57253:14;57270:12;:10;:12::i;:::-;57253:29;;57303:37;57322:6;57330:9;57303:18;:37::i;:::-;57295:95;;;;-1:-1:-1;;;57295:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57403:16;57409:9;57403:5;:16::i;:::-;57520:13;;:45;;;-1:-1:-1;;;57520:45:0;;-1:-1:-1;;;;;57520:45:0;;;;;;;;;;;;;;;:13;;;;;;;;:26;;:45;;;;;-1:-1:-1;;57520:45:0;;;;;;;;-1:-1:-1;57520:13:0;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;57520:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57520:45:0;;;;4871:1;57165:408;:::o;40219:201::-;40277:7;40313:13;:11;:13::i;:::-;40305:5;:21;40297:78;;;;-1:-1:-1;;;40297:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40395:10;40406:5;40395:17;;;;;;;;;;;;;;;;40388:24;;40219:201;;;:::o;55683:122::-;2492:12;:10;:12::i;:::-;2482:6;;-1:-1:-1;;;;;2482:6:0;;;:22;;;2474:67;;;;;-1:-1:-1;;;2474:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2474:67:0;;;;;;;;;;;;;;;55777:20;55789:7;55777:11;:20::i;:::-;55683:122;:::o;4514:78::-;4577:7;;;;4514:78;:::o;24562:230::-;24617:7;24653:20;;;:11;:20;;;;;;-1:-1:-1;;;;;24653:20:0;24694:19;24686:73;;;;-1:-1:-1;;;24686:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24779:5;24562:230;-1:-1:-1;;24562:230:0:o;52372:89::-;52445:8;52438:15;;;;;;;;-1:-1:-1;;52438:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52412:13;;52438:15;;52445:8;;52438:15;;52445:8;52438:15;;;;;;;;;;;;;;;;;;;;;;;;24125:211;24180:7;-1:-1:-1;;;;;24208:19:0;;24200:74;;;;-1:-1:-1;;;24200:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24294:24:0;;;;;;:17;:24;;;;;:34;;:32;:34::i;2912:142::-;2492:12;:10;:12::i;:::-;2482:6;;-1:-1:-1;;;;;2482:6:0;;;:22;;;2474:67;;;;;-1:-1:-1;;;2474:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2474:67:0;;;;;;;;;;;;;;;3011:1;2995:6;;2974:40;;-1:-1:-1;;;;;2995:6:0;;;;2974:40;;3011:1;;2974:40;3044:1;3027:19;;-1:-1:-1;;;;;;3027:19:0;;;2912:142::o;55885:84::-;2492:12;:10;:12::i;:::-;2482:6;;-1:-1:-1;;;;;2482:6:0;;;:22;;;2474:67;;;;;-1:-1:-1;;;2474:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2474:67:0;;;;;;;;;;;;;;;55953:8;:6;:8::i;2270:79::-;2308:7;2335:6;-1:-1:-1;;;;;2335:6:0;2270:79;:::o;49554:87::-;49626:7;49619:14;;;;;;;;-1:-1:-1;;49619:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49593:13;;49619:14;;49626:7;;49619:14;;49626:7;49619:14;;;;;;;;;;;;;;;;;;;;;;;;56775:321;4832:7;;;;4831:8;4823:37;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;;;;56863:14;56880:12;:10;:12::i;:::-;-1:-1:-1;;;;;56933:16:0;;;56905:15;56933:16;;;:8;:16;;;;;;;;;56994:13;;56971:49;;-1:-1:-1;;;56971:49:0;;56933:16;56994:13;;;;;56971:49;;;;;;;;;;;;56863:29;;-1:-1:-1;56933:16:0;;;;;;56971:14;;:49;;;;;56933:16;56971:49;;;;;;;;56933:16;56971:49;;;5:2:-1;;;;30:1;27;20:12;5:2;56971:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56971:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56971:49:0;56963:88;;;;;-1:-1:-1;;;56963:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;57064:24;57070:6;57078:9;57064:5;:24::i;26450:292::-;26522:17;26542:12;:10;:12::i;:::-;26522:32;;26581:9;-1:-1:-1;;;;;26575:15:0;:2;-1:-1:-1;;;;;26575:15:0;;;26567:53;;;;;-1:-1:-1;;;26567:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26633:29:0;;;;;;;:18;:29;;;;;;;;:33;;;;;;;;;;;;;:44;;-1:-1:-1;;26633:44:0;;;;;;;;;;26695:39;;;;;;;;;;;;;;;;;26450:292;;;:::o;56580:135::-;-1:-1:-1;;;;;56693:14:0;;;56661:7;56693:14;;;:8;:14;;;;;;;;56580:135::o;29492:274::-;29607:41;29626:12;:10;:12::i;:::-;29640:7;29607:18;:41::i;:::-;29599:103;;;;-1:-1:-1;;;29599:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29715:43;29733:4;29739:2;29743:7;29752:5;29715:17;:43::i;:::-;29492:274;;;;:::o;50517:753::-;50573:13;50607:16;50615:7;50607;:16::i;:::-;50599:76;;;;-1:-1:-1;;;50599:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50714:19;;;;:10;:19;;;;;;;;;50688:45;;;;;;-1:-1:-1;;50688:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;50714:19;50688:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50815:8:0;50809:22;50688:45;;-1:-1:-1;;;;50809:22:0;-1:-1:-1;;50809:22:0;;;;;;;;;;;50805:76;;50860:9;-1:-1:-1;50853:16:0;;50805:76;50987:23;;:27;50983:112;;51062:8;51072:9;51045:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51045:37:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;51045:37:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51045:37:0;;;51031:52;;;;;50983:112;51229:8;51239:21;:7;:19;:21::i;:::-;51212:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51212:49:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;51212:49:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51212::0;;;51198:64;;;50517:753;;;:::o;56190:332::-;56247:14;56264:12;:10;:12::i;:::-;-1:-1:-1;;;;;56297:16:0;;;56325:1;56297:16;;;:8;:16;;;;;;56247:29;;-1:-1:-1;56297:16:0;:30;56289:87;;;;-1:-1:-1;;;56289:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56389:13;56413:15;;;;;:::i;:::-;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;;;56442:16:0;;;;;;;:8;:16;;;;;;;;;:24;;-1:-1:-1;;;;;;56442:24:0;;;;;;;;;56484:30;;;;;;;;;;;;;56442:24;;-1:-1:-1;56484:30:0;;;;;;;;;;;56190:332;;:::o;27072:147::-;-1:-1:-1;;;;;27176:25:0;;;27152:4;27176:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27072:147::o;3209:240::-;2492:12;:10;:12::i;:::-;2482:6;;-1:-1:-1;;;;;2482:6:0;;;:22;;;2474:67;;;;;-1:-1:-1;;;2474:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2474:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3290:22:0;;3282:73;;;;-1:-1:-1;;;3282:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3394:6;;;3373:38;;-1:-1:-1;;;;;3373:38:0;;;;3394:6;;;3373:38;;;3424:6;:17;;-1:-1:-1;;;;;;3424:17:0;-1:-1:-1;;;;;3424:17:0;;;;;;;;;;3209:240::o;55478:134::-;55590:13;;;;;-1:-1:-1;;;;;55590:13:0;;55478:134::o;30961:123::-;31018:4;31042:20;;;:11;:20;;;;;;-1:-1:-1;;;;;31042:20:0;:34;;;30961:123::o;846:98::-;926:10;846:98;:::o;31454:337::-;31539:4;31564:16;31572:7;31564;:16::i;:::-;31556:73;;;;-1:-1:-1;;;31556:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31642:13;31658:16;31666:7;31658;:16::i;:::-;31642:32;;31706:5;-1:-1:-1;;;;;31695:16:0;:7;-1:-1:-1;;;;;31695:16:0;;:51;;;;31739:7;-1:-1:-1;;;;;31715:31:0;:20;31727:7;31715:11;:20::i;:::-;-1:-1:-1;;;;;31715:31:0;;31695:51;:87;;;;31750:32;31767:5;31774:7;31750:16;:32::i;:::-;31687:96;31454:337;-1:-1:-1;;;;31454:337:0:o;57693:173::-;4832:7;;;;4831:8;4823:37;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;;;;57818:40;57838:4;57844:2;57848:9;57818:19;:40::i;5557:114::-;5108:7;;;;5100:40;;;;;-1:-1:-1;;;5100:40:0;;;;;;;;;;;;-1:-1:-1;;;5100:40:0;;;;;;;;;;;;;;;5608:7;:15;;-1:-1:-1;;5608:15:0;;;5641:22;5650:12;:10;:12::i;:::-;5641:22;;;-1:-1:-1;;;;;5641:22:0;;;;;;;;;;;;;;5557:114::o;34678:92::-;34730:32;34736:16;34744:7;34736;:16::i;:::-;34754:7;34730:5;:32::i;52035:90::-;52099:18;;;;:8;;:18;;;;;:::i;:::-;;52035:90;:::o;11218:114::-;11310:14;;11218:114::o;5304:112::-;4832:7;;;;4831:8;4823:37;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;-1:-1:-1;;;4823:37:0;;;;;;;;;;;;;;;5356:7;:14;;-1:-1:-1;;5356:14:0;5366:4;5356:14;;;5388:20;5395:12;:10;:12::i;41314:202::-;41378:24;41390:2;41394:7;41378:11;:24::i;:::-;41415:40;41443:2;41447:7;41415:27;:40::i;:::-;41468;41500:7;41468:31;:40::i;30485:274::-;30595:32;30609:4;30615:2;30619:7;30595:13;:32::i;:::-;30648:48;30671:4;30677:2;30681:7;30690:5;30648:22;:48::i;:::-;30640:111;;;;-1:-1:-1;;;30640:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46896:568;46955:13;46985:10;46981:53;;-1:-1:-1;47012:10:0;;;;;;;;;;;;-1:-1:-1;;;47012:10:0;;;;;;46981:53;47061:5;47046:12;47104:78;47111:9;;47104:78;;47137:8;;47168:2;47160:10;;;;47104:78;;;47194:19;47226:6;47216:17;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;47216:17:0;87:34:-1;135:17;;-1:-1;47216:17:0;-1:-1:-1;47290:5:0;;-1:-1:-1;47194:39:0;-1:-1:-1;;;47260:10:0;;47308:115;47315:9;;47308:115;;47382:2;47375:4;:9;47370:2;:14;47359:27;;47341:6;47348:7;;;;;;;47341:15;;;;;;;;;;;:45;-1:-1:-1;;;;;47341:45:0;;;;;;;;-1:-1:-1;47409:2:0;47401:10;;;;47308:115;;;-1:-1:-1;47449:6:0;46896:568;-1:-1:-1;;;;46896:568:0:o;40804:245::-;40890:38;40910:4;40916:2;40920:7;40890:19;:38::i;:::-;40941:47;40974:4;40980:7;40941:32;:47::i;:::-;41001:40;41029:2;41033:7;41001:27;:40::i;52763:248::-;52830:27;52842:5;52849:7;52830:11;:27::i;:::-;52917:19;;;;:10;:19;;;;;52911:33;;-1:-1:-1;;52911:33:0;;;;;;;;;;;:38;52907:97;;52973:19;;;;:10;:19;;;;;52966:26;;;:::i;33545:335::-;-1:-1:-1;;;;;33617:16:0;;33609:61;;;;;-1:-1:-1;;;33609:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33690:16;33698:7;33690;:16::i;:::-;33689:17;33681:58;;;;;-1:-1:-1;;;33681:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33752:20;;;;:11;:20;;;;;;;;:25;;-1:-1:-1;;;;;;33752:25:0;-1:-1:-1;;;;;33752:25:0;;;;;;;;33788:21;;:17;:21;;;;;:33;;:31;:33::i;:::-;33839;;33864:7;;-1:-1:-1;;;;;33839:33:0;;;33856:1;;33839:33;;33856:1;;33839:33;33545:335;;:::o;42813:186::-;-1:-1:-1;;;;;42927:16:0;;;;;;;:12;:16;;;;;;;;:23;;42898:26;;;:17;:26;;;;;:52;;;42961:16;;;39:1:-1;23:18;;45:23;;42961:30:0;;;;;;;;42813:186::o;43200:164::-;43304:10;:17;;43277:24;;;;:15;:24;;;;;:44;;;39:1:-1;23:18;;45:23;;43332:24:0;;;;;;;43200:164::o;36267:1073::-;36380:4;36402:15;:2;-1:-1:-1;;;;;36402:13:0;;:15::i;:::-;36397:60;;-1:-1:-1;36441:4:0;36434:11;;36397:60;36530:12;36544:23;-1:-1:-1;;;;;36571:7:0;;-1:-1:-1;;;36676:12:0;:10;:12::i;:::-;36703:4;36722:7;36744:5;36579:181;;;;;;-1:-1:-1;;;;;36579:181:0;-1:-1:-1;;;;;36579:181:0;;;;;;-1:-1:-1;;;;;36579:181:0;-1:-1:-1;;;;;36579:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;36579:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36579:181:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;36579:181:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;36579:181:0;;;179:29:-1;;;;160:49;;36571:190:0;;;36579:181;;36571:190;;-1:-1:-1;36571:190:0;;-1:-1:-1;25:18;-1:-1;36571:190:0;-1:-1:-1;36571:190:0;;-1:-1:-1;36571:190:0;;-1:-1:-1;25:18;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;36571:190:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;36529:232:0;;;;36779:7;36774:559;;36807:17;;:21;36803:386;;36975:10;36969:17;37036:15;37023:10;37019:2;37015:19;37008:44;36923:148;37113:60;;-1:-1:-1;;;37113:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36774:559;37223:13;37250:10;37239:32;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37239:32:0;-1:-1:-1;;;;;;37294:26:0;-1:-1:-1;;;37294:26:0;;-1:-1:-1;37286:35:0;;-1:-1:-1;;;37286:35:0;35156:459;35270:4;-1:-1:-1;;;;;35250:24:0;:16;35258:7;35250;:16::i;:::-;-1:-1:-1;;;;;35250:24:0;;35242:78;;;;-1:-1:-1;;;35242:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35339:16:0;;35331:65;;;;-1:-1:-1;;;35331:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35409:23;35424:7;35409:14;:23::i;:::-;-1:-1:-1;;;;;35445:23:0;;;;;;:17;:23;;;;;:35;;:33;:35::i;:::-;-1:-1:-1;;;;;35491:21:0;;;;;;:17;:21;;;;;:33;;:31;:33::i;:::-;35537:20;;;;:11;:20;;;;;;:25;;-1:-1:-1;;;;;;35537:25:0;-1:-1:-1;;;;;35537:25:0;;;;;;;;;35580:27;;35537:20;;35580:27;;;;;;;35156:459;;;:::o;43991:1148::-;-1:-1:-1;;;;;44282:18:0;;44257:22;44282:18;;;:12;:18;;;;;:25;:32;;44312:1;44282:32;:29;:32;:::i;:::-;44325:18;44346:26;;;:17;:26;;;;;;44257:57;;-1:-1:-1;44479:28:0;;;44475:328;;-1:-1:-1;;;;;44546:18:0;;44524:19;44546:18;;;:12;:18;;;;;:34;;44565:14;;44546:34;;;;;;;;;;;;;;44524:56;;44630:11;44597:12;:18;44610:4;-1:-1:-1;;;;;44597:18:0;-1:-1:-1;;;;;44597:18:0;;;;;;;;;;;;44616:10;44597:30;;;;;;;;;;;;;;;;;;;:44;;;;44714:30;;;:17;:30;;;;;:43;;;44475:328;-1:-1:-1;;;;;44892:18:0;;;;;;:12;:18;;;;;:27;;;;;-1:-1:-1;;44892:27:0;;;:::i;:::-;;43991:1148;;;;:::o;41800:374::-;41867:27;41879:5;41886:7;41867:11;:27::i;:::-;41907:48;41940:5;41947:7;41907:32;:48::i;:::-;42107:1;42078:26;;;:17;:26;;;;;:30;42121:45;42096:7;42121:36;:45::i;11340:181::-;11494:19;;11512:1;11494:19;;;11340:181::o;12397:623::-;12457:4;12927:20;;12768:66;12969:23;;;;;;:42;;-1:-1:-1;;12996:15:0;;;12961:51;-1:-1:-1;;12397:623:0:o;37508:175::-;37608:1;37572:24;;;:15;:24;;;;;;-1:-1:-1;;;;;37572:24:0;:38;37568:108;;37662:1;37627:24;;;:15;:24;;;;;:37;;-1:-1:-1;;;;;;37627:37:0;;;37508:175::o;11529:110::-;11610:14;;:21;;11629:1;11610:21;:18;:21;:::i;:::-;11593:38;;11529:110::o;7992:160::-;8050:7;8083:1;8078;:6;;8070:49;;;;;-1:-1:-1;;;8070:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8139:5:0;;;7992:160::o;34157:333::-;34252:5;-1:-1:-1;;;;;34232:25:0;:16;34240:7;34232;:16::i;:::-;-1:-1:-1;;;;;34232:25:0;;34224:75;;;;-1:-1:-1;;;34224:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34312:23;34327:7;34312:14;:23::i;:::-;-1:-1:-1;;;;;34348:24:0;;;;;;:17;:24;;;;;:36;;:34;:36::i;:::-;34426:1;34395:20;;;:11;:20;;;;;;:33;;-1:-1:-1;;;;;;34395:33:0;;;34446:36;34407:7;;34426:1;-1:-1:-1;;;;;34446:36:0;;;;;34426:1;;34446:36;34157:333;;:::o;45434:1082::-;45712:10;:17;45687:22;;45712:24;;45734:1;45712:24;:21;:24;:::i;:::-;45747:18;45768:24;;;:15;:24;;;;;;46141:10;:26;;45687:49;;-1:-1:-1;45768:24:0;;45687:49;;46141:26;;;;;;;;;;;;;;46119:48;;46205:11;46180:10;46191;46180:22;;;;;;;;;;;;;;;;;;;:36;;;;46285:28;;;:15;:28;;;;;;:41;;;46450:10;:19;;;;;-1:-1:-1;;46450:19:0;;;:::i;:::-;-1:-1:-1;;;46507:1:0;46480:24;;;-1:-1:-1;46480:15:0;:24;;;;;:28;45434:1082::o;54850:3021::-;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54850:3021:0;;;-1:-1:-1;54850:3021:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://57ebcf2453163f5205f6bf60229bf26cbe9ae34ba12eb3eb46f1b3ca269dc37c
Loading...
Loading
Loading...
Loading
OVERVIEW
Wrapped Punks are ERC721 Tokens, each one backed 1:1 by an original Cryptopunk by Larvalabs.Loading...
Loading
[ 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.