More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,784 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21403676 | 10 days ago | IN | 0 ETH | 0.00055208 | ||||
Set Approval For... | 21386225 | 13 days ago | IN | 0 ETH | 0.00083865 | ||||
Set Approval For... | 20550168 | 129 days ago | IN | 0 ETH | 0.00006543 | ||||
Set Approval For... | 20504370 | 136 days ago | IN | 0 ETH | 0.00005452 | ||||
Set Approval For... | 19976499 | 209 days ago | IN | 0 ETH | 0.00127281 | ||||
Set Approval For... | 19601979 | 262 days ago | IN | 0 ETH | 0.00044452 | ||||
Set Approval For... | 19502307 | 276 days ago | IN | 0 ETH | 0.00070607 | ||||
Set Approval For... | 19470742 | 280 days ago | IN | 0 ETH | 0.00166789 | ||||
Set Approval For... | 19450470 | 283 days ago | IN | 0 ETH | 0.0012853 | ||||
Set Approval For... | 19138995 | 327 days ago | IN | 0 ETH | 0.00084678 | ||||
Set Approval For... | 19046811 | 340 days ago | IN | 0 ETH | 0.00071407 | ||||
Set Approval For... | 18940720 | 355 days ago | IN | 0 ETH | 0.00081327 | ||||
Set Approval For... | 18919604 | 358 days ago | IN | 0 ETH | 0.00079165 | ||||
Set Approval For... | 18905266 | 360 days ago | IN | 0 ETH | 0.00053738 | ||||
Set Approval For... | 18895873 | 361 days ago | IN | 0 ETH | 0.00070563 | ||||
Set Approval For... | 18892423 | 361 days ago | IN | 0 ETH | 0.0014171 | ||||
Set Approval For... | 18863453 | 365 days ago | IN | 0 ETH | 0.00123844 | ||||
Set Approval For... | 18755683 | 381 days ago | IN | 0 ETH | 0.00114681 | ||||
Set Approval For... | 18753565 | 381 days ago | IN | 0 ETH | 0.00102773 | ||||
Safe Transfer Fr... | 18745002 | 382 days ago | IN | 0 ETH | 0.0049942 | ||||
Set Approval For... | 18647507 | 396 days ago | IN | 0 ETH | 0.00094604 | ||||
Set Approval For... | 18645762 | 396 days ago | IN | 0 ETH | 0.00051964 | ||||
Set Approval For... | 18645761 | 396 days ago | IN | 0 ETH | 0.00086494 | ||||
Set Approval For... | 18640265 | 397 days ago | IN | 0 ETH | 0.0012699 | ||||
Set Approval For... | 18606025 | 402 days ago | IN | 0 ETH | 0.00069243 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15025446 | 913 days ago | 0.1888 ETH | ||||
14292993 | 1031 days ago | 0.1888 ETH | ||||
14234089 | 1040 days ago | 0.1888 ETH | ||||
14163901 | 1051 days ago | 0.1888 ETH | ||||
14043210 | 1069 days ago | 0.1888 ETH | ||||
13875497 | 1095 days ago | 0.1888 ETH | ||||
13839980 | 1101 days ago | 0.1888 ETH | ||||
13666270 | 1128 days ago | 0.1888 ETH | ||||
13664302 | 1129 days ago | 0.1888 ETH | ||||
13648488 | 1131 days ago | 0.1888 ETH | ||||
13643448 | 1132 days ago | 0.1888 ETH | ||||
13630126 | 1134 days ago | 0.1888 ETH | ||||
13624993 | 1135 days ago | 0.1888 ETH | ||||
13624769 | 1135 days ago | 0.1888 ETH | ||||
13624769 | 1135 days ago | 0.1888 ETH | ||||
13624277 | 1135 days ago | 0.1888 ETH | ||||
13623045 | 1135 days ago | 0.1888 ETH | ||||
13611406 | 1137 days ago | 0.1888 ETH | ||||
13608846 | 1137 days ago | 0.1888 ETH | ||||
13604917 | 1138 days ago | 0.1888 ETH | ||||
13604126 | 1138 days ago | 0.1888 ETH | ||||
13604121 | 1138 days ago | 0.1888 ETH | ||||
13602787 | 1138 days ago | 0.1888 ETH | ||||
13602610 | 1138 days ago | 0.1888 ETH | ||||
13601825 | 1138 days ago | 0.1888 ETH |
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./PrometheusPassPausable.sol"; import "./PrometheusPassDistribution.sol"; import "./PrometheusPassOpenSeaApproval.sol"; string constant TOKEN_NAME = "Prometheus Pass (Gold)"; string constant TOKEN_SYMBOL = "PPG"; contract PrometheusPass is Ownable, ERC721, ERC721Enumerable, ERC721Pausable, PrometheusPassPausable, PrometheusPassDistribution, PrometheusPassOpenSeaApproval { constructor( address owner, address payable treasury, address voucherSigner, address proxyRegistryAddress ) ERC721(TOKEN_NAME, TOKEN_SYMBOL) PrometheusPassTreasury(treasury) PrometheusPassVoucherSigner(voucherSigner) PrometheusPassOpenSeaApproval(proxyRegistryAddress) { transferOwnership(owner); } function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { tokenId; // To suppress unused variable warning return "ipfs://QmWiZ5kJqKftqF2i1k6qpESPg8VLfGJ5mCEFxCeU7fkf8s"; // View it at: https://gateway.pinata.cloud/ipfs/QmWiZ5kJqKftqF2i1k6qpESPg8VLfGJ5mCEFxCeU7fkf8s } // Explicit default disambiguation of multiple inheritance function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Pausable, ERC721Enumerable, PrometheusPassDistribution) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, PrometheusPassDistribution) returns (bool) { return super.supportsInterface(interfaceId); } function transferFrom(address from, address to, uint256 tokenId) public override(ERC721) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override(ERC721) { super.safeTransferFrom(from, to, tokenId, _data); } function isApprovedForAll(address owner, address operator) public view override(ERC721, PrometheusPassOpenSeaApproval) virtual returns (bool) { return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; abstract contract PrometheusPassPausable is Ownable, ERC721Pausable { function pause() public virtual onlyOwner { _pause(); } function unpause() public virtual onlyOwner { _unpause(); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./PrometheusPassTreasury.sol"; import "./PrometheusPassVoucherSigner.sol"; import "./PrometheusPassVoucher.sol"; abstract contract PrometheusPassDistribution is Ownable, PrometheusPassTreasury, PrometheusPassVoucherSigner, ERC721, ERC721Enumerable { using Counters for Counters.Counter; uint public constant MAX_SUPPLY = 1888; uint public constant RESERVED_SUPPLY = 88; // Reserved for Prometheus uint public constant FOR_SALE_SUPPLY = MAX_SUPPLY - RESERVED_SUPPLY; uint256 public constant SALE_PRICE = 0.1888 ether; // In ETH uint256 public constant PRIVATE_SALE_OPEN_TIME = 1634299200; // Fri Oct 15 2021 20:00:00 GMT+0800 (Singapore Standard Time) uint256 public constant PUBLIC_SALE_OPEN_TIME = 1634385600; // Sat Oct 16 2021 20:00:00 GMT+0800 (Singapore Standard Time) Counters.Counter internal _latestTokenId; mapping(uint => bool) claimedVouchers; constructor() { _mintReserved(); } function isPrivateSaleOpen() public view returns (bool) { return block.timestamp >= PRIVATE_SALE_OPEN_TIME; } function isPublicSaleOpen() public view returns (bool) { return block.timestamp >= PUBLIC_SALE_OPEN_TIME; } function _mint(address to) internal { require( totalSupply() < FOR_SALE_SUPPLY, "PrometheusPass: Sold out, unable to mint" ); require( SALE_PRICE == msg.value, "PrometheusPass: ETH value not the same as sale price" ); _latestTokenId.increment(); _sendToTreasury(SALE_PRICE); _mint(to, _latestTokenId.current()); } function validateVoucher(PrometheusPassVoucher.Voucher calldata v) external view returns (bool) { return PrometheusPassVoucher.validateVoucher(v, getVoucherSigner()); } function publicSaleMint(address to) external payable { require( block.timestamp >= PUBLIC_SALE_OPEN_TIME, "PrometheusPass: Public sale not open" ); _mint(to); } function privateSaleMint(PrometheusPassVoucher.Voucher calldata v) external payable { require( block.timestamp >= PRIVATE_SALE_OPEN_TIME, "PrometheusPass: Private sale not open" ); require( claimedVouchers[v.voucherId] == false, "PrometheusPass: Voucher already claimed" ); require( PrometheusPassVoucher.validateVoucher(v, getVoucherSigner()), "PrometheusPass: Invalid voucher" ); claimedVouchers[v.voucherId] = true; _mint(v.to); } function _mintRangeReserved(address to, uint tokenIdStart, uint tokenIdEnd) private { for (uint tokenId = tokenIdStart; tokenId < tokenIdEnd; tokenId++) { _mint(to, tokenId); } } function _mintReserved() internal { _mint(0x00A4eBa3E508f5eD9a69c1fb276A2659EC420AEE, 1801); _mint(0xC45c8E56a92310990Cd950fb5Ff59bD28E5cCda7, 1802); _mint(0xB32B4350C25141e779D392C1DBe857b62b60B4c9, 1803); _mint(0x0a2542a170aA02B96B588aA3AF8B09AB22a9D7ac, 1804); _mint(0x45c109b4dFE64f14810e3207371557Bb9b1540d2, 1805); _mint(0xcac77543C1Be5A5580aB9C772061a598219F71C7, 1806); _mint(0x973f18c0eAA0292A9c7F40cd8c228e949097fA15, 1807); _mint(0xA2c504Ac82B8364927EA646F62403A7C58C6FbCb, 1808); _mint(0xd15246f8821131A86c037ab36e8713bE704deeC2, 1809); _mint(0x9C30842c78Bec02F212Bd9c832746e0987a2dd79, 1810); _mint(0x3A32B201632EAa604fB2AaBeE4af4C3e71eee8e7, 1811); _mint(0x4caB1d07ba5D44A25E21E4CCDB85AE19f8a8b85E, 1812); _mint(0x96d6c4526e726AdA54a0094a2ff9745D358e6B07, 1813); _mint(0xC9FAe6a7efA781F856cD929bC05F1FFD420d39c9, 1814); _mint(0xed87d0aC2e19D5591B9a4b1EAE6Cd8D8429035A5, 1815); _mint(0xe1185396eC5B406526F7b3965094F44C8B1FC079, 1816); _mint(0x914Dc8e36f6CD89Ec538875740a5D04dA761ae4b, 1817); _mint(0xd8Bb7fab88C754f78F64d71DA1C82433CD926039, 1818); _mint(0x52755642f947D3A7F36e66741B5EbF9039707393, 1819); _mintRangeReserved(0xC45c8E56a92310990Cd950fb5Ff59bD28E5cCda7, 1820, 1888); _mint(0xb8D19c18B0EE7CF985432323663caed44F5cc41A, 1888); } // Section: Explicit default disambiguation of multiple inheritance function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; abstract contract OwnableDelegateProxy {} abstract contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } abstract contract PrometheusPassOpenSeaApproval is ERC721 { address private _proxyRegistryAddress; constructor( address proxyRegistryAddress ) { _proxyRegistryAddress = proxyRegistryAddress; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override virtual public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. 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;` */ library Counters { 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 { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract PrometheusPassTreasury is Ownable { address payable private _treasury; event SetTreasury(address prevTreasury, address newTreasury); event TreasuryReceivedValue(address treasury, uint amount); function setTreasury(address payable newTreasury) public onlyOwner { require( newTreasury != address(0), "Setting treasury to 0 address" ); _treasury = newTreasury; emit SetTreasury(_treasury, newTreasury); } function getTreasury() public view returns (address) { return _treasury; } function _sendToTreasury(uint amount) internal { (bool sendValueSuccess, ) = getTreasury().call{value: amount}(""); require(sendValueSuccess, "Failed to send value to treasury"); emit TreasuryReceivedValue(_treasury, amount); } constructor(address payable treasury) { setTreasury(treasury); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract PrometheusPassVoucherSigner is Ownable { address private _voucherSigner; event SetVoucherSigner(address prevVoucherSigner, address newVoucherSigner); function setVoucherSigner(address newVoucherSigner) public onlyOwner { require(newVoucherSigner != address(0), "Setting voucher signer to 0 address"); _voucherSigner = newVoucherSigner; emit SetVoucherSigner(_voucherSigner, newVoucherSigner); } function getVoucherSigner() public view returns (address) { return _voucherSigner; } constructor(address voucherSigner) { setVoucherSigner(voucherSigner); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; library PrometheusPassVoucher { struct Sig { bytes32 r; bytes32 s; uint8 v; } struct Voucher { uint voucherId; address to; Sig sig; } function validateVoucher(Voucher calldata v, address signer) internal pure returns (bool) { bytes32 h1 = keccak256(abi.encodePacked(v.voucherId, v.to)); bytes32 h2 = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", h1)); return ecrecover(h2, v.sig.v, v.sig.r, v.sig.s) == signer; } }
{ "optimizer": { "enabled": true, "runs": 1800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address payable","name":"treasury","type":"address"},{"internalType":"address","name":"voucherSigner","type":"address"},{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"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":"prevTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"SetTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevVoucherSigner","type":"address"},{"indexed":false,"internalType":"address","name":"newVoucherSigner","type":"address"}],"name":"SetVoucherSigner","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":"treasury","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TreasuryReceivedValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"FOR_SALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIVATE_SALE_OPEN_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_OPEN_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVoucherSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"voucherId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PrometheusPassVoucher.Sig","name":"sig","type":"tuple"}],"internalType":"struct PrometheusPassVoucher.Voucher","name":"v","type":"tuple"}],"name":"privateSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVoucherSigner","type":"address"}],"name":"setVoucherSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"voucherId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct PrometheusPassVoucher.Sig","name":"sig","type":"tuple"}],"internalType":"struct PrometheusPassVoucher.Voucher","name":"v","type":"tuple"}],"name":"validateVoucher","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200380138038062003801833981016040819052620000349162000d33565b806040518060400160405280601681526020017f50726f6d65746865757320506173732028476f6c6429000000000000000000008152506040518060400160405280600381526020016250504760e81b8152508486620000a36200009d6200013260201b60201c565b62000136565b620000ae8162000186565b50620000ba8162000289565b508151620000d090600390602085019062000c77565b508051620000e690600490602084019062000c77565b50506009805460ff1916905550620000fd6200038e565b601080546001600160a01b0319166001600160a01b039290921691909117905562000128846200065c565b5050505062000e6d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001d55760405162461bcd60e51b81526020600482018190526024820152600080516020620037e183398151915260448201526064015b60405180910390fd5b6001600160a01b0381166200022d5760405162461bcd60e51b815260206004820152601d60248201527f53657474696e6720747265617375727920746f203020616464726573730000006044820152606401620001cc565b600180546001600160a01b0319166001600160a01b0383169081179091556040805182815260208101929092527f190c262dc6f09322c68a13bf67c9659e58367755ba6190fa7ce5ca8aa45a877d91015b60405180910390a150565b6000546001600160a01b03163314620002d45760405162461bcd60e51b81526020600482018190526024820152600080516020620037e18339815191526044820152606401620001cc565b6001600160a01b038116620003385760405162461bcd60e51b815260206004820152602360248201527f53657474696e6720766f7563686572207369676e657220746f2030206164647260448201526265737360e81b6064820152608401620001cc565b600280546001600160a01b0319166001600160a01b0383169081179091556040805182815260208101929092527f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb91016200027e565b620003af72a4eba3e508f5ed9a69c1fb276a2659ec420aee6107096200071c565b620003d173c45c8e56a92310990cd950fb5ff59bd28e5ccda761070a6200071c565b620003f373b32b4350c25141e779d392c1dbe857b62b60b4c961070b6200071c565b62000415730a2542a170aa02b96b588aa3af8b09ab22a9d7ac61070c6200071c565b620004377345c109b4dfe64f14810e3207371557bb9b1540d261070d6200071c565b6200045973cac77543c1be5a5580ab9c772061a598219f71c761070e6200071c565b6200047b73973f18c0eaa0292a9c7f40cd8c228e949097fa1561070f6200071c565b6200049d73a2c504ac82b8364927ea646f62403a7c58c6fbcb6107106200071c565b620004bf73d15246f8821131a86c037ab36e8713be704deec26107116200071c565b620004e1739c30842c78bec02f212bd9c832746e0987a2dd796107126200071c565b62000503733a32b201632eaa604fb2aabee4af4c3e71eee8e76107136200071c565b62000525734cab1d07ba5d44a25e21e4ccdb85ae19f8a8b85e6107146200071c565b620005477396d6c4526e726ada54a0094a2ff9745d358e6b076107156200071c565b6200056973c9fae6a7efa781f856cd929bc05f1ffd420d39c96107166200071c565b6200058b73ed87d0ac2e19d5591b9a4b1eae6cd8d8429035a56107176200071c565b620005ad73e1185396ec5b406526f7b3965094f44c8b1fc0796107186200071c565b620005cf73914dc8e36f6cd89ec538875740a5d04da761ae4b6107196200071c565b620005f173d8bb7fab88c754f78f64d71da1c82433cd92603961071a6200071c565b620006137352755642f947d3a7f36e66741b5ebf903970739361071b6200071c565b6200063873c45c8e56a92310990cd950fb5ff59bd28e5ccda761071c61076062000872565b6200065a73b8d19c18b0ee7cf985432323663caed44f5cc41a6107606200071c565b565b6000546001600160a01b03163314620006a75760405162461bcd60e51b81526020600482018190526024820152600080516020620037e18339815191526044820152606401620001cc565b6001600160a01b0381166200070e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001cc565b620007198162000136565b50565b6001600160a01b038216620007745760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001cc565b6000818152600560205260409020546001600160a01b031615620007db5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001cc565b620007e960008383620008a4565b6001600160a01b03821660009081526006602052604081208054600192906200081490849062000db1565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b815b818110156200089e576200088984826200071c565b80620008958162000dcc565b91505062000874565b50505050565b620008bc838383620008c160201b6200137d1760201c565b505050565b620008bc838383620008d960201b620013841760201c565b620008f18383836200095a60201b620014081760201c565b60095460ff1615620008bc5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401620001cc565b62000972838383620008bc60201b620009211760201c565b6001600160a01b038316620009d057620009ca81600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b620009f6565b816001600160a01b0316836001600160a01b031614620009f657620009f6838262000a36565b6001600160a01b03821662000a1057620008bc8162000ae3565b826001600160a01b0316826001600160a01b031614620008bc57620008bc828262000b9d565b6000600162000a508462000bee60201b62000c291760201c565b62000a5c919062000dea565b6000838152600b602052604090205490915080821462000ab0576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c5460009062000af79060019062000dea565b6000838152600d6020526040812054600c805493945090928490811062000b225762000b2262000e04565b9060005260206000200154905080600c838154811062000b465762000b4662000e04565b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c80548062000b815762000b8162000e1a565b6001900381819060005260206000200160009055905550505050565b600062000bb58362000bee60201b62000c291760201c565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b60006001600160a01b03821662000c5b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401620001cc565b506001600160a01b031660009081526006602052604090205490565b82805462000c859062000e30565b90600052602060002090601f01602090048101928262000ca9576000855562000cf4565b82601f1062000cc457805160ff191683800117855562000cf4565b8280016001018555821562000cf4579182015b8281111562000cf457825182559160200191906001019062000cd7565b5062000d0292915062000d06565b5090565b5b8082111562000d02576000815560010162000d07565b6001600160a01b03811681146200071957600080fd5b6000806000806080858703121562000d4a57600080fd5b845162000d578162000d1d565b602086015190945062000d6a8162000d1d565b604086015190935062000d7d8162000d1d565b606086015190925062000d908162000d1d565b939692955090935050565b634e487b7160e01b600052601160045260246000fd5b6000821982111562000dc75762000dc762000d9b565b500190565b600060001982141562000de35762000de362000d9b565b5060010190565b60008282101562000dff5762000dff62000d9b565b500390565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600181811c9082168062000e4557607f821691505b6020821081141562000e6757634e487b7160e01b600052602260045260246000fd5b50919050565b6129648062000e7d6000396000f3fe6080604052600436106102695760003560e01c80635c975abb11610153578063a22cb465116100cb578063e57c58e51161007f578063f0f4426011610064578063f0f4426014610651578063f1106b0714610671578063f2fde38b1461068657600080fd5b8063e57c58e514610613578063e985e9c51461063157600080fd5b8063af6e40d0116100b0578063af6e40d0146105b3578063b88d4fde146105d3578063c87b56dd146105f357600080fd5b8063a22cb4651461057b578063a417e06e1461059b57600080fd5b80637f205a74116101225780638da5cb5b116101075780638da5cb5b1461053557806392b936361461055357806395d89b411461056657600080fd5b80637f205a74146105045780638456cb591461052057600080fd5b80635c975abb146104975780636352211e146104af57806370a08231146104cf578063715018a6146104ef57600080fd5b80632f745c59116101e65780633f4ba83a116101b55780634838d5521161019a5780634838d5521461044c5780634aac3a56146104645780634f6ccce71461047757600080fd5b80633f4ba83a1461041757806342842e0e1461042c57600080fd5b80632f745c59146103ae57806331a53e9a146103ce57806332cb6b0c146103e35780633b19e84a146103f957600080fd5b8063095ea7b31161023d57806318cc50c81161022257806318cc50c8146103545780631a6949e31461037457806323b872dd1461038e57600080fd5b8063095ea7b31461031357806318160ddd1461033557600080fd5b8062f3be3c1461026e57806301ffc9a71461029957806306fdde03146102b9578063081812fc146102db575b600080fd5b34801561027a57600080fd5b506361696d404210155b60405190151581526020015b60405180910390f35b3480156102a557600080fd5b506102846102b436600461250b565b6106a6565b3480156102c557600080fd5b506102ce6106b7565b6040516102909190612575565b3480156102e757600080fd5b506102fb6102f6366004612588565b610749565b6040516001600160a01b039091168152602001610290565b34801561031f57600080fd5b5061033361032e3660046125b6565b6107f4565b005b34801561034157600080fd5b50600c545b604051908152602001610290565b34801561036057600080fd5b5061028461036f3660046125e2565b610926565b34801561038057600080fd5b5063616abec0421015610284565b34801561039a57600080fd5b506103336103a93660046125fa565b610943565b3480156103ba57600080fd5b506103466103c93660046125b6565b61094e565b3480156103da57600080fd5b50610346605881565b3480156103ef57600080fd5b5061034661076081565b34801561040557600080fd5b506001546001600160a01b03166102fb565b34801561042357600080fd5b506103336109f6565b34801561043857600080fd5b506103336104473660046125fa565b610a5a565b34801561045857600080fd5b506103466361696d4081565b61033361047236600461263b565b610a75565b34801561048357600080fd5b50610346610492366004612588565b610afa565b3480156104a357600080fd5b5060095460ff16610284565b3480156104bb57600080fd5b506102fb6104ca366004612588565b610b9e565b3480156104db57600080fd5b506103466104ea36600461263b565b610c29565b3480156104fb57600080fd5b50610333610cc3565b34801561051057600080fd5b5061034667029ec0998598000081565b34801561052c57600080fd5b50610333610d27565b34801561054157600080fd5b506000546001600160a01b03166102fb565b6103336105613660046125e2565b610d89565b34801561057257600080fd5b506102ce610f23565b34801561058757600080fd5b50610333610596366004612658565b610f32565b3480156105a757600080fd5b5061034663616abec081565b3480156105bf57600080fd5b506103336105ce36600461263b565b610ff7565b3480156105df57600080fd5b506103336105ee3660046126ac565b611136565b3480156105ff57600080fd5b506102ce61060e366004612588565b611148565b34801561061f57600080fd5b506002546001600160a01b03166102fb565b34801561063d57600080fd5b5061028461064c36600461278c565b611169565b34801561065d57600080fd5b5061033361066c36600461263b565b61117c565b34801561067d57600080fd5b5061034661128e565b34801561069257600080fd5b506103336106a136600461263b565b61129e565b60006106b1826114c0565b92915050565b6060600380546106c6906127ba565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906127ba565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166107d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107ff82610b9e565b9050806001600160a01b0316836001600160a01b031614156108895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b336001600160a01b03821614806108a557506108a58133611169565b6109175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107cf565b61092183836114cb565b505050565b60006106b18261093e6002546001600160a01b031690565b611546565b61092183838361169b565b600061095983610c29565b82106109cd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016107cf565b506001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b6000546001600160a01b03163314610a505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a58611722565b565b61092183838360405180602001604052806000815250611136565b63616abec0421015610aee5760405162461bcd60e51b8152602060048201526024808201527f50726f6d657468657573506173733a205075626c69632073616c65206e6f742060448201527f6f70656e0000000000000000000000000000000000000000000000000000000060648201526084016107cf565b610af7816117be565b50565b6000610b05600c5490565b8210610b795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016107cf565b600c8281548110610b8c57610b8c6127ef565b90600052602060002001549050919050565b6000818152600560205260408120546001600160a01b0316806106b15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107cf565b60006001600160a01b038216610ca75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107cf565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b03163314610d1d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a5860006118ef565b6000546001600160a01b03163314610d815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a5861194c565b6361696d40421015610e035760405162461bcd60e51b815260206004820152602560248201527f50726f6d657468657573506173733a20507269766174652073616c65206e6f7460448201527f206f70656e00000000000000000000000000000000000000000000000000000060648201526084016107cf565b80356000908152600f602052604090205460ff1615610e8a5760405162461bcd60e51b815260206004820152602760248201527f50726f6d657468657573506173733a20566f756368657220616c72656164792060448201527f636c61696d65640000000000000000000000000000000000000000000000000060648201526084016107cf565b610ea08161093e6002546001600160a01b031690565b610eec5760405162461bcd60e51b815260206004820152601f60248201527f50726f6d657468657573506173733a20496e76616c696420766f75636865720060448201526064016107cf565b80356000908152600f6020908152604091829020805460ff19166001179055610af791610f1e9190840190840161263b565b6117be565b6060600480546106c6906127ba565b6001600160a01b038216331415610f8b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107cf565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146110515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b0381166110cd5760405162461bcd60e51b815260206004820152602360248201527f53657474696e6720766f7563686572207369676e657220746f2030206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805182815260208101929092527f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb91015b60405180910390a150565b611142848484846119d4565b50505050565b60606040518060600160405280603581526020016128fa6035913992915050565b60006111758383611a5c565b9392505050565b6000546001600160a01b031633146111d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b03811661122c5760405162461bcd60e51b815260206004820152601d60248201527f53657474696e6720747265617375727920746f2030206164647265737300000060448201526064016107cf565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805182815260208101929092527f190c262dc6f09322c68a13bf67c9659e58367755ba6190fa7ce5ca8aa45a877d910161112b565b61129b605861076061281b565b81565b6000546001600160a01b031633146112f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b0381166113745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107cf565b610af7816118ef565b6109218383835b61138f838383611408565b60095460ff16156109215760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c652070617573656400000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b0383166114635761145e81600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b611486565b816001600160a01b0316836001600160a01b031614611486576114868382611b45565b6001600160a01b03821661149d5761092181611be2565b826001600160a01b0316826001600160a01b031614610921576109218282611c91565b60006106b182611cd5565b6000818152600760205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061150d82610b9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080833561155b604086016020870161263b565b60405160200161159a92919091825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b6040516020818303038152906040528051906020012090506000816040516020016115f191907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f19818403018152919052805160209091012090506001600160a01b03841660018261162860a0890160808a01612832565b6040805160008152602081018083529390935260ff90911682820152880135606080830191909152880135608082015260a0016020604051602081039080840390855afa15801561167d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149250505092915050565b6116a53382611d13565b6117175760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107cf565b610921838383611df3565b60095460ff166117745760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107cf565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6117cb605861076061281b565b600c54106118415760405162461bcd60e51b815260206004820152602860248201527f50726f6d657468657573506173733a20536f6c64206f75742c20756e61626c6560448201527f20746f206d696e7400000000000000000000000000000000000000000000000060648201526084016107cf565b3467029ec09985980000146118be5760405162461bcd60e51b815260206004820152603460248201527f50726f6d657468657573506173733a204554482076616c7565206e6f7420746860448201527f652073616d652061732073616c6520707269636500000000000000000000000060648201526084016107cf565b6118cc600e80546001019055565b6118dd67029ec09985980000611fd8565b610af7816118ea600e5490565b6120d6565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60095460ff161561199f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107cf565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117a13390565b6119de3383611d13565b611a505760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107cf565b61114284848484612231565b6010546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611ac257600080fd5b505afa158015611ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afa9190612855565b6001600160a01b03161415611b135760019150506106b1565b6001600160a01b0380851660009081526008602090815260408083209387168352929052205460ff165b949350505050565b60006001611b5284610c29565b611b5c919061281b565b6000838152600b6020526040902054909150808214611baf576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c54600090611bf49060019061281b565b6000838152600d6020526040812054600c8054939450909284908110611c1c57611c1c6127ef565b9060005260206000200154905080600c8381548110611c3d57611c3d6127ef565b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c805480611c7557611c75612872565b6001900381819060005260206000200160009055905550505050565b6000611c9c83610c29565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806106b157506106b1826122ba565b6000818152600560205260408120546001600160a01b0316611d9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107cf565b6000611da883610b9e565b9050806001600160a01b0316846001600160a01b03161480611de35750836001600160a01b0316611dd884610749565b6001600160a01b0316145b80611b3d5750611b3d8185611169565b826001600160a01b0316611e0682610b9e565b6001600160a01b031614611e825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b038216611efd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107cf565b611f08838383612355565b611f136000826114cb565b6001600160a01b0383166000908152600660205260408120805460019290611f3c90849061281b565b90915550506001600160a01b0382166000908152600660205260408120805460019290611f6a908490612888565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611fec6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612036576040519150601f19603f3d011682016040523d82523d6000602084013e61203b565b606091505b505090508061208c5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642076616c756520746f20747265617375727960448201526064016107cf565b600154604080516001600160a01b039092168252602082018490527fdbeef99a798d86f26499031abd89a10f2857d90257997c1c028a1cd5c00bfebc910160405180910390a15050565b6001600160a01b03821661212c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107cf565b6000818152600560205260409020546001600160a01b0316156121915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107cf565b61219d60008383612355565b6001600160a01b03821660009081526006602052604081208054600192906121c6908490612888565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61223c848484611df3565b61224884848484612360565b6111425760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107cf565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061231d57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106b157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146106b1565b61092183838361137d565b60006001600160a01b0384163b156124ea576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906123bd9033908990889088906004016128a0565b602060405180830381600087803b1580156123d757600080fd5b505af1925050508015612407575060408051601f3d908101601f19168201909252612404918101906128dc565b60015b6124b7573d808015612435576040519150601f19603f3d011682016040523d82523d6000602084013e61243a565b606091505b5080516124af5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107cf565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b3d565b506001949350505050565b6001600160e01b031981168114610af757600080fd5b60006020828403121561251d57600080fd5b8135611175816124f5565b6000815180845260005b8181101561254e57602081850181015186830182015201612532565b81811115612560576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006111756020830184612528565b60006020828403121561259a57600080fd5b5035919050565b6001600160a01b0381168114610af757600080fd5b600080604083850312156125c957600080fd5b82356125d4816125a1565b946020939093013593505050565b600060a082840312156125f457600080fd5b50919050565b60008060006060848603121561260f57600080fd5b833561261a816125a1565b9250602084013561262a816125a1565b929592945050506040919091013590565b60006020828403121561264d57600080fd5b8135611175816125a1565b6000806040838503121561266b57600080fd5b8235612676816125a1565b91506020830135801515811461268b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156126c257600080fd5b84356126cd816125a1565b935060208501356126dd816125a1565b925060408501359150606085013567ffffffffffffffff8082111561270157600080fd5b818701915087601f83011261271557600080fd5b81358181111561272757612727612696565b604051601f8201601f19908116603f0116810190838211818310171561274f5761274f612696565b816040528281528a602084870101111561276857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561279f57600080fd5b82356127aa816125a1565b9150602083013561268b816125a1565b600181811c908216806127ce57607f821691505b602082108114156125f457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561282d5761282d612805565b500390565b60006020828403121561284457600080fd5b813560ff8116811461117557600080fd5b60006020828403121561286757600080fd5b8151611175816125a1565b634e487b7160e01b600052603160045260246000fd5b6000821982111561289b5761289b612805565b500190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526128d26080830184612528565b9695505050505050565b6000602082840312156128ee57600080fd5b8151611175816124f556fe697066733a2f2f516d57695a356b4a714b667471463269316b3671704553506738564c66474a356d4345467843655537666b663873a2646970667358221220b733e7e357db2ac9ef01fd56c9027547f6478c4d4fc297f698d48f9cf44177c564736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000c45c8e56a92310990cd950fb5ff59bd28e5ccda7000000000000000000000000c09c938774d0696f5522e7af668c088d4cc5571b000000000000000000000000fd98fc120459ed7dfc17963a6c0179c2e50efa83000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102695760003560e01c80635c975abb11610153578063a22cb465116100cb578063e57c58e51161007f578063f0f4426011610064578063f0f4426014610651578063f1106b0714610671578063f2fde38b1461068657600080fd5b8063e57c58e514610613578063e985e9c51461063157600080fd5b8063af6e40d0116100b0578063af6e40d0146105b3578063b88d4fde146105d3578063c87b56dd146105f357600080fd5b8063a22cb4651461057b578063a417e06e1461059b57600080fd5b80637f205a74116101225780638da5cb5b116101075780638da5cb5b1461053557806392b936361461055357806395d89b411461056657600080fd5b80637f205a74146105045780638456cb591461052057600080fd5b80635c975abb146104975780636352211e146104af57806370a08231146104cf578063715018a6146104ef57600080fd5b80632f745c59116101e65780633f4ba83a116101b55780634838d5521161019a5780634838d5521461044c5780634aac3a56146104645780634f6ccce71461047757600080fd5b80633f4ba83a1461041757806342842e0e1461042c57600080fd5b80632f745c59146103ae57806331a53e9a146103ce57806332cb6b0c146103e35780633b19e84a146103f957600080fd5b8063095ea7b31161023d57806318cc50c81161022257806318cc50c8146103545780631a6949e31461037457806323b872dd1461038e57600080fd5b8063095ea7b31461031357806318160ddd1461033557600080fd5b8062f3be3c1461026e57806301ffc9a71461029957806306fdde03146102b9578063081812fc146102db575b600080fd5b34801561027a57600080fd5b506361696d404210155b60405190151581526020015b60405180910390f35b3480156102a557600080fd5b506102846102b436600461250b565b6106a6565b3480156102c557600080fd5b506102ce6106b7565b6040516102909190612575565b3480156102e757600080fd5b506102fb6102f6366004612588565b610749565b6040516001600160a01b039091168152602001610290565b34801561031f57600080fd5b5061033361032e3660046125b6565b6107f4565b005b34801561034157600080fd5b50600c545b604051908152602001610290565b34801561036057600080fd5b5061028461036f3660046125e2565b610926565b34801561038057600080fd5b5063616abec0421015610284565b34801561039a57600080fd5b506103336103a93660046125fa565b610943565b3480156103ba57600080fd5b506103466103c93660046125b6565b61094e565b3480156103da57600080fd5b50610346605881565b3480156103ef57600080fd5b5061034661076081565b34801561040557600080fd5b506001546001600160a01b03166102fb565b34801561042357600080fd5b506103336109f6565b34801561043857600080fd5b506103336104473660046125fa565b610a5a565b34801561045857600080fd5b506103466361696d4081565b61033361047236600461263b565b610a75565b34801561048357600080fd5b50610346610492366004612588565b610afa565b3480156104a357600080fd5b5060095460ff16610284565b3480156104bb57600080fd5b506102fb6104ca366004612588565b610b9e565b3480156104db57600080fd5b506103466104ea36600461263b565b610c29565b3480156104fb57600080fd5b50610333610cc3565b34801561051057600080fd5b5061034667029ec0998598000081565b34801561052c57600080fd5b50610333610d27565b34801561054157600080fd5b506000546001600160a01b03166102fb565b6103336105613660046125e2565b610d89565b34801561057257600080fd5b506102ce610f23565b34801561058757600080fd5b50610333610596366004612658565b610f32565b3480156105a757600080fd5b5061034663616abec081565b3480156105bf57600080fd5b506103336105ce36600461263b565b610ff7565b3480156105df57600080fd5b506103336105ee3660046126ac565b611136565b3480156105ff57600080fd5b506102ce61060e366004612588565b611148565b34801561061f57600080fd5b506002546001600160a01b03166102fb565b34801561063d57600080fd5b5061028461064c36600461278c565b611169565b34801561065d57600080fd5b5061033361066c36600461263b565b61117c565b34801561067d57600080fd5b5061034661128e565b34801561069257600080fd5b506103336106a136600461263b565b61129e565b60006106b1826114c0565b92915050565b6060600380546106c6906127ba565b80601f01602080910402602001604051908101604052809291908181526020018280546106f2906127ba565b801561073f5780601f106107145761010080835404028352916020019161073f565b820191906000526020600020905b81548152906001019060200180831161072257829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166107d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60006107ff82610b9e565b9050806001600160a01b0316836001600160a01b031614156108895760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b336001600160a01b03821614806108a557506108a58133611169565b6109175760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107cf565b61092183836114cb565b505050565b60006106b18261093e6002546001600160a01b031690565b611546565b61092183838361169b565b600061095983610c29565b82106109cd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016107cf565b506001600160a01b03919091166000908152600a60209081526040808320938352929052205490565b6000546001600160a01b03163314610a505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a58611722565b565b61092183838360405180602001604052806000815250611136565b63616abec0421015610aee5760405162461bcd60e51b8152602060048201526024808201527f50726f6d657468657573506173733a205075626c69632073616c65206e6f742060448201527f6f70656e0000000000000000000000000000000000000000000000000000000060648201526084016107cf565b610af7816117be565b50565b6000610b05600c5490565b8210610b795760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016107cf565b600c8281548110610b8c57610b8c6127ef565b90600052602060002001549050919050565b6000818152600560205260408120546001600160a01b0316806106b15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107cf565b60006001600160a01b038216610ca75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107cf565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b03163314610d1d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a5860006118ef565b6000546001600160a01b03163314610d815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b610a5861194c565b6361696d40421015610e035760405162461bcd60e51b815260206004820152602560248201527f50726f6d657468657573506173733a20507269766174652073616c65206e6f7460448201527f206f70656e00000000000000000000000000000000000000000000000000000060648201526084016107cf565b80356000908152600f602052604090205460ff1615610e8a5760405162461bcd60e51b815260206004820152602760248201527f50726f6d657468657573506173733a20566f756368657220616c72656164792060448201527f636c61696d65640000000000000000000000000000000000000000000000000060648201526084016107cf565b610ea08161093e6002546001600160a01b031690565b610eec5760405162461bcd60e51b815260206004820152601f60248201527f50726f6d657468657573506173733a20496e76616c696420766f75636865720060448201526064016107cf565b80356000908152600f6020908152604091829020805460ff19166001179055610af791610f1e9190840190840161263b565b6117be565b6060600480546106c6906127ba565b6001600160a01b038216331415610f8b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107cf565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146110515760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b0381166110cd5760405162461bcd60e51b815260206004820152602360248201527f53657474696e6720766f7563686572207369676e657220746f2030206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016107cf565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805182815260208101929092527f6c61302b47e872d08552b17b5c3219414ee4a6e333af5955e372540f8dcc42bb91015b60405180910390a150565b611142848484846119d4565b50505050565b60606040518060600160405280603581526020016128fa6035913992915050565b60006111758383611a5c565b9392505050565b6000546001600160a01b031633146111d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b03811661122c5760405162461bcd60e51b815260206004820152601d60248201527f53657474696e6720747265617375727920746f2030206164647265737300000060448201526064016107cf565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040805182815260208101929092527f190c262dc6f09322c68a13bf67c9659e58367755ba6190fa7ce5ca8aa45a877d910161112b565b61129b605861076061281b565b81565b6000546001600160a01b031633146112f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107cf565b6001600160a01b0381166113745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107cf565b610af7816118ef565b6109218383835b61138f838383611408565b60095460ff16156109215760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c652070617573656400000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b0383166114635761145e81600c80546000838152600d60205260408120829055600182018355919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70155565b611486565b816001600160a01b0316836001600160a01b031614611486576114868382611b45565b6001600160a01b03821661149d5761092181611be2565b826001600160a01b0316826001600160a01b031614610921576109218282611c91565b60006106b182611cd5565b6000818152600760205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061150d82610b9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080833561155b604086016020870161263b565b60405160200161159a92919091825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b6040516020818303038152906040528051906020012090506000816040516020016115f191907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60408051601f19818403018152919052805160209091012090506001600160a01b03841660018261162860a0890160808a01612832565b6040805160008152602081018083529390935260ff90911682820152880135606080830191909152880135608082015260a0016020604051602081039080840390855afa15801561167d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149250505092915050565b6116a53382611d13565b6117175760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107cf565b610921838383611df3565b60095460ff166117745760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107cf565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6117cb605861076061281b565b600c54106118415760405162461bcd60e51b815260206004820152602860248201527f50726f6d657468657573506173733a20536f6c64206f75742c20756e61626c6560448201527f20746f206d696e7400000000000000000000000000000000000000000000000060648201526084016107cf565b3467029ec09985980000146118be5760405162461bcd60e51b815260206004820152603460248201527f50726f6d657468657573506173733a204554482076616c7565206e6f7420746860448201527f652073616d652061732073616c6520707269636500000000000000000000000060648201526084016107cf565b6118cc600e80546001019055565b6118dd67029ec09985980000611fd8565b610af7816118ea600e5490565b6120d6565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60095460ff161561199f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107cf565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117a13390565b6119de3383611d13565b611a505760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107cf565b61114284848484612231565b6010546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611ac257600080fd5b505afa158015611ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afa9190612855565b6001600160a01b03161415611b135760019150506106b1565b6001600160a01b0380851660009081526008602090815260408083209387168352929052205460ff165b949350505050565b60006001611b5284610c29565b611b5c919061281b565b6000838152600b6020526040902054909150808214611baf576001600160a01b0384166000908152600a602090815260408083208584528252808320548484528184208190558352600b90915290208190555b506000918252600b602090815260408084208490556001600160a01b039094168352600a81528383209183525290812055565b600c54600090611bf49060019061281b565b6000838152600d6020526040812054600c8054939450909284908110611c1c57611c1c6127ef565b9060005260206000200154905080600c8381548110611c3d57611c3d6127ef565b6000918252602080832090910192909255828152600d9091526040808220849055858252812055600c805480611c7557611c75612872565b6001900381819060005260206000200160009055905550505050565b6000611c9c83610c29565b6001600160a01b039093166000908152600a602090815260408083208684528252808320859055938252600b9052919091209190915550565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806106b157506106b1826122ba565b6000818152600560205260408120546001600160a01b0316611d9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107cf565b6000611da883610b9e565b9050806001600160a01b0316846001600160a01b03161480611de35750836001600160a01b0316611dd884610749565b6001600160a01b0316145b80611b3d5750611b3d8185611169565b826001600160a01b0316611e0682610b9e565b6001600160a01b031614611e825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107cf565b6001600160a01b038216611efd5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107cf565b611f08838383612355565b611f136000826114cb565b6001600160a01b0383166000908152600660205260408120805460019290611f3c90849061281b565b90915550506001600160a01b0382166000908152600660205260408120805460019290611f6a908490612888565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611fec6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114612036576040519150601f19603f3d011682016040523d82523d6000602084013e61203b565b606091505b505090508061208c5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f2073656e642076616c756520746f20747265617375727960448201526064016107cf565b600154604080516001600160a01b039092168252602082018490527fdbeef99a798d86f26499031abd89a10f2857d90257997c1c028a1cd5c00bfebc910160405180910390a15050565b6001600160a01b03821661212c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107cf565b6000818152600560205260409020546001600160a01b0316156121915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107cf565b61219d60008383612355565b6001600160a01b03821660009081526006602052604081208054600192906121c6908490612888565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61223c848484611df3565b61224884848484612360565b6111425760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107cf565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061231d57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106b157507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146106b1565b61092183838361137d565b60006001600160a01b0384163b156124ea576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906123bd9033908990889088906004016128a0565b602060405180830381600087803b1580156123d757600080fd5b505af1925050508015612407575060408051601f3d908101601f19168201909252612404918101906128dc565b60015b6124b7573d808015612435576040519150601f19603f3d011682016040523d82523d6000602084013e61243a565b606091505b5080516124af5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107cf565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611b3d565b506001949350505050565b6001600160e01b031981168114610af757600080fd5b60006020828403121561251d57600080fd5b8135611175816124f5565b6000815180845260005b8181101561254e57602081850181015186830182015201612532565b81811115612560576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006111756020830184612528565b60006020828403121561259a57600080fd5b5035919050565b6001600160a01b0381168114610af757600080fd5b600080604083850312156125c957600080fd5b82356125d4816125a1565b946020939093013593505050565b600060a082840312156125f457600080fd5b50919050565b60008060006060848603121561260f57600080fd5b833561261a816125a1565b9250602084013561262a816125a1565b929592945050506040919091013590565b60006020828403121561264d57600080fd5b8135611175816125a1565b6000806040838503121561266b57600080fd5b8235612676816125a1565b91506020830135801515811461268b57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156126c257600080fd5b84356126cd816125a1565b935060208501356126dd816125a1565b925060408501359150606085013567ffffffffffffffff8082111561270157600080fd5b818701915087601f83011261271557600080fd5b81358181111561272757612727612696565b604051601f8201601f19908116603f0116810190838211818310171561274f5761274f612696565b816040528281528a602084870101111561276857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561279f57600080fd5b82356127aa816125a1565b9150602083013561268b816125a1565b600181811c908216806127ce57607f821691505b602082108114156125f457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561282d5761282d612805565b500390565b60006020828403121561284457600080fd5b813560ff8116811461117557600080fd5b60006020828403121561286757600080fd5b8151611175816125a1565b634e487b7160e01b600052603160045260246000fd5b6000821982111561289b5761289b612805565b500190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526128d26080830184612528565b9695505050505050565b6000602082840312156128ee57600080fd5b8151611175816124f556fe697066733a2f2f516d57695a356b4a714b667471463269316b3671704553506738564c66474a356d4345467843655537666b663873a2646970667358221220b733e7e357db2ac9ef01fd56c9027547f6478c4d4fc297f698d48f9cf44177c564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c45c8e56a92310990cd950fb5ff59bd28e5ccda7000000000000000000000000c09c938774d0696f5522e7af668c088d4cc5571b000000000000000000000000fd98fc120459ed7dfc17963a6c0179c2e50efa83000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : owner (address): 0xC45c8E56a92310990Cd950fb5Ff59bD28E5cCda7
Arg [1] : treasury (address): 0xc09C938774d0696f5522e7aF668C088d4CC5571b
Arg [2] : voucherSigner (address): 0xfd98fC120459Ed7DfC17963A6c0179C2e50Efa83
Arg [3] : proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c45c8e56a92310990cd950fb5ff59bd28e5ccda7
Arg [1] : 000000000000000000000000c09c938774d0696f5522e7af668c088d4cc5571b
Arg [2] : 000000000000000000000000fd98fc120459ed7dfc17963a6c0179c2e50efa83
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
OVERVIEW
The Prometheus Project was founded on a simple premise - to unlock the gateway to exclusive high value products once only accessible to the well heeled and well connected, and make it available to all.
From there, the Prometheus Project expanded its network in order...
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.