ERC-721
NFT
Overview
Max Total Supply
9,992 PH
Holders
2,097
Market
Fully Diluted Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
0 PHLoading...
Loading
Loading...
Loading
Loading...
Loading
This contract contains unverified libraries: SplitWithdrawals
Contract Name:
Portalheads
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/interfaces/IERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Counters.sol'; import './interfaces/IERC721TokenIdHasher.sol'; import './interfaces/IPortalheads.sol'; import './presets/ERC721PresetMinterPauserAutoIdRoyalty.sol'; import './utils/ERC721SplitWithdrawals.sol'; import './PortalheadsRoyaltyForwarder.sol'; library SetableCounters { function set(Counters.Counter storage counter, uint256 _value) internal { counter._value = _value; } } contract Portalheads is IPortalheads, IERC721, ERC721SplitWithdrawals, ERC721PresetMinterPauserAutoIdRoyalty, Ownable { using Counters for Counters.Counter; using SetableCounters for Counters.Counter; using Strings for uint256; // basic token info uint256 public mintPrice; uint16 public maxSupply; uint8 public maxPerMint; // royalties address public teamRoyaltyContract; mapping(address => address) public minterToRoyaltyContract; mapping(uint256 => address) public tokenIdToRoyaltyContract; mapping(address => uint256) public royaltyContractToTokenId; address[] public royaltyContracts; address[] public royaltyERC20Tokens; // marketplace approvals mapping(address => bool) private __marketplaces; // token id and metadata Counters.Counter private __tokenIds; string private __tokenBaseURI; IERC721TokenIdHasher private __tokenIdHasher; // contract can be isLocked to prevent changes bool public isLocked = false; bool public isMigrated = false; modifier notLocked() { require(!isLocked, 'Locked: contract is locked.'); _; } modifier contractMigrated(bool _isMigrated) { require((isMigrated && _isMigrated) || (!isMigrated && !_isMigrated), 'Invalid migration status.'); _; } // uses the openzeppelin preset with customization constructor( string memory _tokenBaseURI, uint256 _mintPrice, uint8 _maxPerMint, uint16 _maxSupply, address[] memory _recipients, uint16[] memory _splits, uint16[] memory _royaltySplits, uint16 _royalty, address[] memory _erc20Tokens ) ERC721PresetMinterPauserAutoIdRoyalty('Portalheads', 'PH', _tokenBaseURI, _royalty) ERC721SplitWithdrawals(_recipients, _splits) { // state variables maxSupply = _maxSupply; maxPerMint = _maxPerMint; mintPrice = _mintPrice; // the base URI for the token, can be isLocked later __tokenBaseURI = _tokenBaseURI; // these erc20 tokens are checked for balance when ftm is sent to the royalty contract royaltyERC20Tokens = _erc20Tokens; // royalty contract for the team teamRoyaltyContract = address(new PortalheadsRoyaltyForwarder(address(this), _recipients, _royaltySplits)); } /// @dev Mints a new token during the main sale /// @param _quantity The quantity to mint function mintPortalhead(uint8 _quantity) public payable contractMigrated(true) { require(maxPerMint >= _quantity, 'Too many for one transaction.'); require(mintPrice * _quantity == msg.value, 'The value != minting price.'); require(maxSupply >= __tokenIds.current() + _quantity, 'There are not this many tokens.'); // see if we need to deploy a new contract for this minter _getRoyaltyContractForMinter(msg.sender); for (uint8 i = 0; i < _quantity; i++) { // increment the token id counter __tokenIds.increment(); // mint the token _safeMint(msg.sender, __tokenIds.current()); // associate this ID with the royalty contract tokenIdToRoyaltyContract[__tokenIds.current()] = minterToRoyaltyContract[msg.sender]; } // bloop! emit PortalsOpened(msg.sender, _quantity); } /// @notice Gift an NFT from the reserved set /// @dev Only a minter can call this method /// @param _to the address to gift the NFT to /// @param _tokenId the token ID of the NFT to gift function giftPortalhead(address _to, uint256 _tokenId) external contractMigrated(true) { require(hasRole(MINTER_ROLE, _msgSender()), 'Only minters can gift.'); require(!_exists(_tokenId), 'This token already has an owner.'); require(_tokenId < __tokenIds.current(), 'This token cannot be gifted.'); // get a royalty contract for the gift recipient _getRoyaltyContractForMinter(_to); // mint the gift token _safeMint(_to, _tokenId); // associate this ID with the royalty contract tokenIdToRoyaltyContract[_tokenId] = minterToRoyaltyContract[_to]; // bleep! emit PortalsOpened(_to, 1); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 _tokenId) public view virtual override mustExist(_tokenId) returns (string memory) { return bytes(__tokenBaseURI).length > 0 ? string( abi.encodePacked( _baseURI(), address(__tokenIdHasher) != address(0) ? __tokenIdHasher.getTokenIdHash(_tokenId) : _tokenId.toString(), '.json' ) ) : ''; } /// @dev override the base URI for the token /// @dev this value can be isLocked function _baseURI() internal view override returns (string memory) { return __tokenBaseURI; } /// @dev Override isApprovedForAll() to approve marketplace contracts to enable listings without needing approval. /// @param _owner The owner of the NFT /// @param _operator The operator to check for function isApprovedForAll(address _owner, address _operator) public view override(ERC721, IERC721) returns (bool isOperator) { // check to see if the operator is an approved marketplace contract if (__marketplaces[_operator]) { return true; } // otherwise, call the parent return super.isApprovedForAll(_owner, _operator); } /// @dev override the royalty info to point to the payout contract /// @param _tokenId the token ID of the NFT to get the info for /// @param _salePrice the price of the NFT /// @return a tuple of the royalty contract address and the amount function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view override mustExist(_tokenId) returns (address, uint256) { return (tokenIdToRoyaltyContract[_tokenId], (_salePrice * royalty) / BASE); } /// @dev withdraw ERC20 tokens from royalty contracts /// @param _tokenContract the address of the ERC20 contract /// @param _start the token ID to start withdrawing from /// @param _count number of tokens to withdraw from function withdrawRoyaltyTokens( address _tokenContract, uint256 _start, uint256 _count ) external nonReentrant { // loop over the royalty contracts and withdraw the ERC20 tokens uint256 _max = _start + _count > royaltyContracts.length ? royaltyContracts.length : _start + _count; for (uint256 i = _start; i < _max; i++) { PortalheadsRoyaltyForwarder(payable(royaltyContracts[i])).withdrawTokens(_tokenContract); } } /// @dev Gets the count of royalty contracts function getRoyaltyContractCount() public view returns (uint256) { return royaltyContracts.length; } /// @dev Gets the count of royalty contracts function getRoyaltyERC20TokenCount() public view returns (uint256) { return royaltyERC20Tokens.length; } /// @dev Gets the count of royalty contracts function getRoyaltyERC20Tokens() public view override returns (address[] memory) { return royaltyERC20Tokens; } /// @dev Gets the count of royalty contracts /// @dev Gets the address of the royalty recipient. May not be the original minter if it is updated. function royaltyRecipientOf(uint256 _tokenId) public view returns (address) { // team=0, minter=1 return PortalheadsRoyaltyForwarder(payable(tokenIdToRoyaltyContract[_tokenId])).getRoyaltyRecipients()[1]; } // OWNER /// @dev Set the base URI for the token, only by the owner function setBaseURI(string memory _uri) public onlyOwner notLocked { __tokenBaseURI = _uri; } /// @dev Set the max supply, only by the owner function setMaxSupply(uint16 _maxSupply) public onlyOwner notLocked { // require that the new supply be less than the current max supply require(_maxSupply <= maxSupply, 'Invalid supply.'); maxSupply = _maxSupply; } /// @dev Set the token id hasher address function setTokenIdHasherAddress(address _tokenIdHasherAddress) public onlyOwner notLocked { __tokenIdHasher = IERC721TokenIdHasher(_tokenIdHasherAddress); } /// @notice set the whitelisted marketplace contract addresses /// @dev Only the owner can call this method /// @param _marketplace the marketplace contract address to whitelist /// @param _allowed the whitelist status function setMarketplaceApproval(address _marketplace, bool _allowed) external onlyOwner { emit MarketplaceApprovalUpdated(_marketplace, _allowed, __marketplaces[_marketplace]); __marketplaces[_marketplace] = _allowed; } /// @dev Set a list of ERC20 token addresses to check for royalties /// @param _royaltyERC20Tokens and array of ERC20 contract addresses function setErc20RoyaltyTokens(address[] memory _royaltyERC20Tokens) public onlyOwner { royaltyERC20Tokens = _royaltyERC20Tokens; } /// @dev Migrate tokens from previous contract function migrateTokens(uint256[] memory _tokenIds, address[] memory _minters) public onlyOwner contractMigrated(false) { require(_tokenIds.length == _minters.length, 'Mismatched array lengths.'); for (uint256 i = 0; i < _tokenIds.length; i++) { // make sure we have a royalty contract for this minter _getRoyaltyContractForMinter(_minters[i]); // mint the tokens to the owner _safeMint(_minters[i], _tokenIds[i]); // associate this ID with the royalty contract tokenIdToRoyaltyContract[_tokenIds[i]] = minterToRoyaltyContract[_minters[i]]; // emit the event emit PortalsOpened(_minters[i], 1); } } /// @dev Migrate tokens from previous contract function migrateTransfers( uint256[] memory _tokenIds, address[] memory _froms, address[] memory _tos ) public onlyOwner contractMigrated(false) { require(_tokenIds.length == _froms.length && _tokenIds.length == _tos.length, 'Mismatched array lengths.'); for (uint256 i = 0; i < _tokenIds.length; i++) { // process transfers _safeTransfer(_froms[i], _tos[i], _tokenIds[i], ''); } } /// @dev Migrate the token id counters function migrateTokenIdCounter(uint256 _initialSupply) public onlyOwner contractMigrated(false) mustExist(_initialSupply) { require(!_exists(_initialSupply + 1), 'Invalid initial supply.'); // set the counter for the ids __tokenIds.set(_initialSupply); } /// @dev Allow the token to be destroyed until the migration is complete function destroyContract() public onlyOwner contractMigrated(false) { selfdestruct(payable(msg.sender)); } /// @dev Lock the contract, only by the owner function lockContract() public onlyOwner notLocked { // once isLocked we can't unlock isLocked = true; } /// @dev Mark as isMigrated, only by the owner function migrationComplete() public onlyOwner contractMigrated(false) { // once isLocked we can't unlock isMigrated = true; } // PRIVATE /// @dev Creates a new royalty contract for the minter, or returns an existing one function _getRoyaltyContractForMinter(address _minter) internal returns (address) { // see if we need to deploy a new contract for this minter if (minterToRoyaltyContract[_minter] == address(0)) { // create the payout splits address[] memory _addresses = new address[](2); _addresses[0] = teamRoyaltyContract; _addresses[1] = _minter; uint16[] memory _splits = new uint16[](2); // the total royalty is 5%, so 2.5% for the minter is 50% of the total sent to the royalty contract _splits[0] = 5000; // the other 50% _splits[1] = 5000; // deploy the contract address _royaltyContract = address(new PortalheadsRoyaltyForwarder(address(this), _addresses, _splits)); // map the minter address to the contract minterToRoyaltyContract[_minter] = _royaltyContract; // add the contract to the list of contracts royaltyContracts.push(_royaltyContract); emit AddedRoyaltyContract(_minter, _royaltyContract); } return minterToRoyaltyContract[_minter]; } /// @dev This allows this contract to recieve FTM receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// 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; /** * @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: MIT pragma solidity ^0.8.9; interface IERC721TokenIdHasher { function getTokenIdHash(uint256 _tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IPortalheads { event PortalsOpened(address indexed minter, uint8 amount); event AddedRoyaltyContract(address indexed minter, address royaltyContract); event MarketplaceApprovalUpdated(address indexed marketplace, bool newStatus, bool oldStatus); function getRoyaltyERC20Tokens() external view returns (address[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/token/ERC721/presets/ERC721PresetMinterPauserAutoId.sol'; import '../utils/ERC2981Royalties.sol'; abstract contract ERC721PresetMinterPauserAutoIdRoyalty is ERC2981Royalties, ERC721PresetMinterPauserAutoId { /// @dev Verify that the given token ID exists, or revert modifier mustExist(uint256 _tokenId) { require(_exists(_tokenId), 'This token id does not exist.'); _; } constructor( string memory _name, string memory _symbol, string memory _baseURI, uint16 _royalty ) ERC721PresetMinterPauserAutoId(_name, _symbol, _baseURI) ERC2981Royalties(_royalty) {} /// @dev Override supportsInterface to use ERC2981Royalties function supportsInterface(bytes4 _interfaceID) public view override(ERC721PresetMinterPauserAutoId, ERC2981Royalties) returns (bool) { return ERC2981Royalties.supportsInterface(_interfaceID) || ERC721PresetMinterPauserAutoId.supportsInterface(_interfaceID); } /// @notice Minting is not only through mint() /// @dev only allow minting through safe mint function mint(address) public pure virtual override { /* istanbul ignore next */ require(false, 'The mint() function is not allowed.'); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '../interfaces/IERC721SplitWithdrawals.sol'; import '../libraries/SplitWithdrawals.sol'; import './ERC2981Base.sol'; abstract contract ERC721SplitWithdrawals is ERC2981Base, IERC721SplitWithdrawals, ReentrancyGuard { using SplitWithdrawals for SplitWithdrawals.Payout; SplitWithdrawals.Payout internal _payout; constructor(address[] memory _recipients, uint16[] memory _splits) { _payout.recipients = _recipients; _payout.splits = _splits; _payout.BASE = BASE; // initialize the payout library _payout.initialize(); } // WITHDRAWAL /// @dev withdraw native tokens divided by splits function withdraw() external nonReentrant { _payout.withdraw(); } /// @dev withdraw ERC20 tokens divided by splits function withdrawTokens(address _tokenContract) external nonReentrant { _payout.withdrawTokens(_tokenContract); } /// @dev withdraw ERC721 tokens to the first recipient function withdrawNFT(address _tokenContract, uint256[] memory _id) external nonReentrant { _payout.withdrawNFT(_tokenContract, _id); } /// @dev Allow a recipient to update to a new address function updateRecipient(address _recipient) external override nonReentrant { _payout.updateRecipient(_recipient); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import './interfaces/IPortalheads.sol'; import './utils/ERC721SplitWithdrawals.sol'; contract PortalheadsRoyaltyForwarder is ERC721SplitWithdrawals { // The main ERC721 contract IPortalheads internal immutable portalheads; /// @dev This contract takes an array of addresses and splits in base 10000 constructor( address _portalheads, address[] memory _recipients, uint16[] memory _splits ) ERC721SplitWithdrawals(_recipients, _splits) { // this contract handles splitting the royalty for one or more tokens portalheads = IPortalheads(_portalheads); } /// @dev The is the array of royalty recipients function getRoyaltyRecipients() public view returns (address[] memory) { return _payout.recipients; } /// @dev The recieve function is triggered when FTM is recieved receive() external payable virtual { // check ERC20 token balances while we have the chance, if we send FTM it will forward them address[] memory _tokens = portalheads.getRoyaltyERC20Tokens(); for (uint256 i = 0; i < _tokens.length; i++) { // send the tokens to the recipients IERC20 _token = IERC20(_tokens[i]); if (_token.balanceOf(address(this)) > 0) { this.withdrawTokens(_tokens[i]); } } // withdraw the splits this.withdraw(); } }
// 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; /** * @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; /** * @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 "../ERC721.sol"; import "../extensions/ERC721Enumerable.sol"; import "../extensions/ERC721Burnable.sol"; import "../extensions/ERC721Pausable.sol"; import "../../../access/AccessControlEnumerable.sol"; import "../../../utils/Context.sol"; import "../../../utils/Counters.sol"; /** * @dev {ERC721} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * - token ID and URI autogeneration * * This contract uses {AccessControl} to lock permissioned functions using the * different roles - head to its documentation for details. * * The account that deploys the contract will be granted the minter and pauser * roles, as well as the default admin role, which will let it grant both minter * and pauser roles to other accounts. */ contract ERC721PresetMinterPauserAutoId is Context, AccessControlEnumerable, ERC721Enumerable, ERC721Burnable, ERC721Pausable { using Counters for Counters.Counter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); Counters.Counter private _tokenIdTracker; string private _baseTokenURI; /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the * account that deploys the contract. * * Token URIs will be autogenerated based on `baseURI` and their token IDs. * See {ERC721-tokenURI}. */ constructor( string memory name, string memory symbol, string memory baseTokenURI ) ERC721(name, symbol) { _baseTokenURI = baseTokenURI; _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /** * @dev Creates a new token for `to`. Its token ID will be automatically * assigned (and available on the emitted {IERC721-Transfer} event), and the token * URI autogenerated based on the base URI passed at construction. * * See {ERC721-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */ function mint(address to) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have minter role to mint"); // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. _mint(to, _tokenIdTracker.current()); _tokenIdTracker.increment(); } /** * @dev Pauses all token transfers. * * See {ERC721Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have pauser role to pause"); _pause(); } /** * @dev Unpauses all token transfers. * * See {ERC721Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */ function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have pauser role to unpause"); _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/interfaces/IERC165.sol'; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import './ERC2981Base.sol'; abstract contract ERC2981Royalties is ERC2981Base, ERC165, IERC2981 { uint16 internal royalty = 500; // base 10000, 5% // set royalty in constructor constructor(uint16 _royalty) { royalty = _royalty; } /// @dev Support for IERC-2981, royalties function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// 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 "./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: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// 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 "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// 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; 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; 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 "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; abstract contract ERC2981Base { uint16 public constant BASE = 10000; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IERC721SplitWithdrawals { function updateRecipient(address recipient) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import '@openzeppelin/contracts/interfaces/IERC20.sol'; import '@openzeppelin/contracts/interfaces/IERC721.sol'; library SplitWithdrawals { event SplitWithdrawal(address _tokenAddressOrNone, address recipient, uint256 _amount); struct Payout { address[] recipients; uint16[] splits; uint16 BASE; bool initialized; } modifier onlyWhenInitialized(bool initialized) { require(initialized, 'This withdrawal split must be initialized.'); _; } event PayoutCreated(address indexed _sender, uint256 _amount, uint16 _split); function initialize(Payout storage _payout) external { // configure fee sharing require(_payout.recipients.length > 0, 'You must specify at least one recipient.'); require(_payout.recipients.length == _payout.splits.length, 'Recipients and splits must be the same length.'); uint16 _total = 0; for (uint8 i = 0; i < _payout.splits.length; i++) { _total += _payout.splits[i]; } require(_total == _payout.BASE, 'Total must be equal to 100%.'); // initialized flag _payout.initialized = true; } // WITHDRAWAL /// @dev withdraw native tokens divided by splits function withdraw(Payout storage _payout) external onlyWhenInitialized(_payout.initialized) { uint256 _amount = address(this).balance; if (_amount > 0) { for (uint256 i = 0; i < _payout.recipients.length; i++) { // we don't want to fail here or it can lock the contract withdrawals uint256 _share = i != _payout.recipients.length - 1 ? (_amount * _payout.splits[i]) / _payout.BASE : address(this).balance; (bool _success, ) = payable(_payout.recipients[i]).call{value: _share}(''); if (_success) { emit SplitWithdrawal(address(0), _payout.recipients[i], _share); } } } } /// @dev withdraw ERC20 tokens divided by splits function withdrawTokens(Payout storage _payout, address _tokenContract) external onlyWhenInitialized(_payout.initialized) { IERC20 tokenContract = IERC20(_tokenContract); // transfer the token from address of this contract uint256 _amount = tokenContract.balanceOf(address(this)); /* istanbul ignore else */ if (_amount > 0) { for (uint256 i = 0; i < _payout.recipients.length; i++) { uint256 _share = i != _payout.recipients.length - 1 ? (_amount * _payout.splits[i]) / _payout.BASE : tokenContract.balanceOf(address(this)); tokenContract.transfer(_payout.recipients[i], _share); emit SplitWithdrawal(_tokenContract, _payout.recipients[i], _share); } } } /// @dev withdraw ERC721 tokens to the first recipient function withdrawNFT( Payout storage _payout, address _tokenContract, uint256[] memory _id ) external onlyWhenInitialized(_payout.initialized) { IERC721 tokenContract = IERC721(_tokenContract); for (uint256 i = 0; i < _id.length; i++) { address _recipient = getNftRecipient(_payout); tokenContract.safeTransferFrom(address(this), _recipient, _id[i]); } } /// @dev Allow a recipient to update to a new address function updateRecipient(Payout storage _payout, address _recipient) external onlyWhenInitialized(_payout.initialized) { require(_recipient != address(0), 'Cannot use the zero address.'); require(_recipient != address(this), 'Cannot use the address of this contract.'); // loop over all the recipients and update the address bool _found = false; for (uint256 i = 0; i < _payout.recipients.length; i++) { // if the sender matches one of the recipients, update the address if (_payout.recipients[i] == msg.sender) { _payout.recipients[i] = _recipient; _found = true; break; } } require(_found, 'The sender is not a recipient.'); } function getNftRecipient(Payout storage _payout) internal view onlyWhenInitialized(_payout.initialized) returns (address) { return _payout.recipients[0]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": { "contracts/libraries/SplitWithdrawals.sol": { "SplitWithdrawals": "0x267b3c094d58875d0be4611c9c62180117f43da7" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenBaseURI","type":"string"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint8","name":"_maxPerMint","type":"uint8"},{"internalType":"uint16","name":"_maxSupply","type":"uint16"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint16[]","name":"_splits","type":"uint16[]"},{"internalType":"uint16[]","name":"_royaltySplits","type":"uint16[]"},{"internalType":"uint16","name":"_royalty","type":"uint16"},{"internalType":"address[]","name":"_erc20Tokens","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"royaltyContract","type":"address"}],"name":"AddedRoyaltyContract","type":"event"},{"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":"marketplace","type":"address"},{"indexed":false,"internalType":"bool","name":"newStatus","type":"bool"},{"indexed":false,"internalType":"bool","name":"oldStatus","type":"bool"}],"name":"MarketplaceApprovalUpdated","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":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint8","name":"amount","type":"uint8"}],"name":"PortalsOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"destroyContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyContractCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyERC20TokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyERC20Tokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"giftPortalhead","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerMint","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"}],"name":"migrateTokenIdCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_minters","type":"address[]"}],"name":"migrateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_froms","type":"address[]"},{"internalType":"address[]","name":"_tos","type":"address[]"}],"name":"migrateTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationComplete","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mint","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"_quantity","type":"uint8"}],"name":"mintPortalhead","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minterToRoyaltyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"royaltyContractToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyContracts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyERC20Tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"royaltyRecipientOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_royaltyERC20Tokens","type":"address[]"}],"name":"setErc20RoyaltyTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketplace","type":"address"},{"internalType":"bool","name":"_allowed","type":"bool"}],"name":"setMarketplaceApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxSupply","type":"uint16"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIdHasherAddress","type":"address"}],"name":"setTokenIdHasherAddress","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":[],"name":"teamRoyaltyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"","type":"uint256"}],"name":"tokenIdToRoyaltyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"updateRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"withdrawRoyaltyTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526001805461ffff19166101f4179055601f805461ffff60a01b191690553480156200002e57600080fd5b506040516200763638038062007636833981016040819052620000519162000885565b604080518082018252600b81526a506f7274616c686561647360a81b602080830191909152825180840190935260028352610a0960f31b8382015260016000819055805461ffff191661ffff871617905587519192918c918691859185918591849184918f918f91620000ca91600491850190620004ab565b508051620000e090600590602084019062000515565b506006805461ffff1916612710179055604051630569d7ef60e11b815260048082015273267b3c094d58875d0be4611c9c62180117f43da790630ad3afde9060240160006040518083038186803b1580156200013b57600080fd5b505af415801562000150573d6000803e3d6000fd5b505085516200016c9450600793506020870192509050620005c0565b50805162000182906008906020840190620005c0565b50506011805460ff19169055508051620001a4906013906020840190620005c0565b50620001b2600033620002f0565b620001de7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620002f0565b6200020a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620002f0565b505050505050506200022b62000225620002ec60201b60201c565b62000333565b6016805460ff8916620100000262ffffff1990911661ffff891617179055601588905588516200026390601e9060208c0190620005c0565b5080516200027990601b906020840190620004ab565b503085846040516200028b906200063d565b6200029993929190620009a8565b604051809103906000f080158015620002b6573d6000803e3d6000fd5b50601660036101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050505050505062000a81565b3390565b6200030782826200038560201b62002cb61760201c565b60008281526003602090815260409091206200032e91839062002cc262000395821b17901c565b505050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003918282620003b5565b5050565b6000620003ac836001600160a01b03841662000459565b90505b92915050565b60008281526002602090815260408083206001600160a01b038516845290915290205460ff16620003915760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004153390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620004a257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620003af565b506000620003af565b82805482825590600052602060002090810192821562000503579160200282015b828111156200050357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620004cc565b50620005119291506200064b565b5090565b82805482825590600052602060002090600f01601090048101928215620005035791602002820160005b838211156200058157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200053f565b8015620005b15782816101000a81549061ffff021916905560020160208160010104928301926001030262000581565b5050620005119291506200064b565b828054620005ce9062000a44565b90600052602060002090601f016020900481019282620005f2576000855562000503565b82601f106200060d57805160ff191683800117855562000503565b8280016001018555821562000503579182015b828111156200050357825182559160200191906001019062000620565b610d9f806200689783390190565b5b808211156200051157600081556001016200064c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620006a357620006a362000662565b604052919050565b600082601f830112620006bd57600080fd5b81516001600160401b03811115620006d957620006d962000662565b6020620006ef601f8301601f1916820162000678565b82815285828487010111156200070457600080fd5b60005b838110156200072457858101830151828201840152820162000707565b83811115620007365760008385840101525b5095945050505050565b805160ff811681146200075257600080fd5b919050565b805161ffff811681146200075257600080fd5b60006001600160401b0382111562000786576200078662000662565b5060051b60200190565b600082601f830112620007a257600080fd5b81516020620007bb620007b5836200076a565b62000678565b82815260059290921b84018101918181019086841115620007db57600080fd5b8286015b848110156200080f5780516001600160a01b0381168114620008015760008081fd5b8352918301918301620007df565b509695505050505050565b600082601f8301126200082c57600080fd5b815160206200083f620007b5836200076a565b82815260059290921b840181019181810190868411156200085f57600080fd5b8286015b848110156200080f57620008778162000757565b835291830191830162000863565b60008060008060008060008060006101208a8c031215620008a557600080fd5b89516001600160401b0380821115620008bd57600080fd5b620008cb8d838e01620006ab565b9a5060208c01519950620008e260408d0162000740565b9850620008f260608d0162000757565b975060808c01519150808211156200090957600080fd5b620009178d838e0162000790565b965060a08c01519150808211156200092e57600080fd5b6200093c8d838e016200081a565b955060c08c01519150808211156200095357600080fd5b620009618d838e016200081a565b94506200097160e08d0162000757565b93506101008c01519150808211156200098957600080fd5b50620009988c828d0162000790565b9150509295985092959850929598565b6001600160a01b038481168252606060208084018290528551918401829052600092868201929091906080860190855b81811015620009f8578551851683529483019491830191600101620009d8565b5050858103604087015286518082529082019350915080860160005b8381101562000a3657815161ffff168552938201939082019060010162000a14565b509298975050505050505050565b600181811c9082168062000a5957607f821691505b6020821081141562000a7b57634e487b7160e01b600052602260045260246000fd5b50919050565b615e068062000a916000396000f3fe608060405260043610620004535760003560e01c80636817c76c116200023f578063ab62a884116200013b578063d5abeb0111620000b9578063e74bdd0a1162000084578063e74bdd0a1462000db6578063e985e9c51462000ddb578063ec342ad01462000e00578063f2fde38b1462000e18578063feec756c1462000e3d57600080fd5b8063d5abeb011462000d13578063d8a778e91462000d44578063e090656a1462000d69578063e63ab1e91462000d8057600080fd5b8063b88d4fde1162000106578063b88d4fde1462000c49578063c87b56dd1462000c6e578063ca15c8731462000c93578063d53913931462000cb8578063d547741f1462000cee57600080fd5b8063ab62a8841462000bb7578063b06faf621462000bdc578063b0e25d1f1462000bff578063b4e9f9091462000c2457600080fd5b80639010d07c11620001c95780639bdedea511620001945780639bdedea51462000b0c578063a217fddf1462000b31578063a22cb4651462000b48578063a4e2d6341462000b6d578063aaf6d56d1462000b9057600080fd5b80639010d07c1462000a85578063904e46e11462000aaa57806391d148541462000acf57806395d89b411462000af457600080fd5b8063753868e3116200020a578063753868e31462000a045780638456cb591462000a1c5780638da5cb5b1462000a345780638f53cc891462000a5457600080fd5b80636817c76c146200098a5780636a62784214620009a257806370a0823114620009c7578063715018a614620009ec57600080fd5b806331062623116200034f5780634f6ccce711620002d957806355f804b311620002a457806355f804b314620008ea57806356aaeb92146200090f5780635c975abb146200093457806361ee56f9146200094e5780636352211e146200096557600080fd5b80634f6ccce7146200082d578063507e094f146200085257806350f80d521462000887578063519db64714620008b057600080fd5b806342842e0e116200031a57806342842e0e146200079957806342966c6814620007be57806349df728c14620007e35780634bd7ba59146200080857600080fd5b806331062623146200071f57806336568abe14620007445780633ccfd60b14620007695780633f4ba83a146200078157600080fd5b80632149235111620003dd57806325e8b88f11620003a857806325e8b88f14620006615780632a55205a14620006785780632bff884f14620006bd5780632f2ff15d14620006d55780632f745c5914620006fa57600080fd5b80632149235114620005a957806323b872dd14620005ce578063248a9ca314620005f357806324ebafb3146200062757600080fd5b8063092a5cce116200041e578063092a5cce1462000526578063095ea7b3146200053e57806314248c40146200056357806318160ddd146200058857600080fd5b806301ffc9a7146200046057806306421c2f146200049a57806306fdde0314620004c1578063081812fc14620004e857600080fd5b366200045b57005b600080fd5b3480156200046d57600080fd5b50620004856200047f36600462004311565b62000e62565b60405190151581526020015b60405180910390f35b348015620004a757600080fd5b50620004bf620004b936600462004331565b62000e87565b005b348015620004ce57600080fd5b50620004d962000f50565b604051620004919190620043b4565b348015620004f557600080fd5b506200050d62000507366004620043c9565b62000fea565b6040516001600160a01b03909116815260200162000491565b3480156200053357600080fd5b50620004bf62001076565b3480156200054b57600080fd5b50620004bf6200055d366004620043f9565b620010ff565b3480156200057057600080fd5b506200050d62000582366004620043c9565b62001220565b3480156200059557600080fd5b50600f545b60405190815260200162000491565b348015620005b657600080fd5b50620004bf620005c8366004620043c9565b6200124b565b348015620005db57600080fd5b50620004bf620005ed36600462004428565b6200136d565b3480156200060057600080fd5b506200059a62000612366004620043c9565b60009081526002602052604090206001015490565b3480156200063457600080fd5b506200050d62000646366004620043c9565b6018602052600090815260409020546001600160a01b031681565b620004bf620006723660046200446e565b620013a6565b3480156200068557600080fd5b506200069d6200069736600462004493565b6200161c565b604080516001600160a01b03909316835260208301919091520162000491565b348015620006ca57600080fd5b50620004bf62001694565b348015620006e257600080fd5b50620004bf620006f4366004620044b6565b62001730565b3480156200070757600080fd5b506200059a62000719366004620043f9565b62001756565b3480156200072c57600080fd5b50620004bf6200073e366004620044e9565b620017f0565b3480156200075157600080fd5b50620004bf62000763366004620044b6565b620018ac565b3480156200077657600080fd5b50620004bf620018d2565b3480156200078e57600080fd5b50620004bf62001968565b348015620007a657600080fd5b50620004bf620007b836600462004428565b62001a16565b348015620007cb57600080fd5b50620004bf620007dd366004620043c9565b62001a33565b348015620007f057600080fd5b50620004bf6200080236600462004520565b62001ab3565b3480156200081557600080fd5b506200050d62000827366004620043c9565b62001b5a565b3480156200083a57600080fd5b506200059a6200084c366004620043c9565b62001b6b565b3480156200085f57600080fd5b50601654620008749062010000900460ff1681565b60405160ff909116815260200162000491565b3480156200089457600080fd5b506016546200050d90630100000090046001600160a01b031681565b348015620008bd57600080fd5b506200050d620008cf36600462004520565b6017602052600090815260409020546001600160a01b031681565b348015620008f757600080fd5b50620004bf62000909366004620045f6565b62001c04565b3480156200091c57600080fd5b50620004bf6200092e36600462004643565b62001c77565b3480156200094157600080fd5b5060115460ff1662000485565b3480156200095b57600080fd5b50601a546200059a565b3480156200097257600080fd5b506200050d62000984366004620043c9565b62001d72565b3480156200099757600080fd5b506200059a60155481565b348015620009af57600080fd5b50620004bf620009c136600462004520565b62001deb565b348015620009d457600080fd5b506200059a620009e636600462004520565b62001e40565b348015620009f957600080fd5b50620004bf62001ec9565b34801562000a1157600080fd5b50620004bf62001f02565b34801562000a2957600080fd5b50620004bf62001f71565b34801562000a4157600080fd5b506014546001600160a01b03166200050d565b34801562000a6157600080fd5b506200059a62000a7336600462004520565b60196020526000908152604090205481565b34801562000a9257600080fd5b506200050d62000aa436600462004493565b6200201b565b34801562000ab757600080fd5b50620004bf62000ac936600462004520565b6200203c565b34801562000adc57600080fd5b506200048562000aee366004620044b6565b620020b8565b34801562000b0157600080fd5b50620004d9620020e3565b34801562000b1957600080fd5b50620004bf62000b2b3660046200470e565b620020f4565b34801562000b3e57600080fd5b506200059a600081565b34801562000b5557600080fd5b50620004bf62000b67366004620044e9565b62002197565b34801562000b7a57600080fd5b50601f546200048590600160a01b900460ff1681565b34801562000b9d57600080fd5b5062000ba86200225e565b604051620004919190620047a9565b34801562000bc457600080fd5b50620004bf62000bd6366004620043f9565b620022c1565b34801562000be957600080fd5b50601f546200048590600160a81b900460ff1681565b34801562000c0c57600080fd5b50620004bf62000c1e3660046200482b565b620024c8565b34801562000c3157600080fd5b506200050d62000c43366004620043c9565b62002741565b34801562000c5657600080fd5b50620004bf62000c683660046200488b565b620027f3565b34801562000c7b57600080fd5b50620004d962000c8d366004620043c9565b6200282c565b34801562000ca057600080fd5b506200059a62000cb2366004620043c9565b62002967565b34801562000cc557600080fd5b506200059a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801562000cfb57600080fd5b50620004bf62000d0d366004620044b6565b62002980565b34801562000d2057600080fd5b5060165462000d309061ffff1681565b60405161ffff909116815260200162000491565b34801562000d5157600080fd5b50620004bf62000d6336600462004913565b6200298c565b34801562000d7657600080fd5b50601b546200059a565b34801562000d8d57600080fd5b506200059a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b34801562000dc357600080fd5b50620004bf62000dd53660046200494b565b620029ce565b34801562000de857600080fd5b506200048562000dfa366004620049dc565b62002b4b565b34801562000e0d57600080fd5b5062000d3061271081565b34801562000e2557600080fd5b50620004bf62000e3736600462004520565b62002ba5565b34801562000e4a57600080fd5b50620004bf62000e5c36600462004520565b62002c44565b600062000e6f8262002cd9565b8062000e81575062000e818262002d10565b92915050565b6014546001600160a01b0316331462000ebd5760405162461bcd60e51b815260040162000eb49062004a0f565b60405180910390fd5b601f54600160a01b900460ff161562000eea5760405162461bcd60e51b815260040162000eb49062004a44565b60165461ffff908116908216111562000f385760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21039bab838363c9760891b604482015260640162000eb4565b6016805461ffff191661ffff92909216919091179055565b60606007805462000f619062004a7b565b80601f016020809104026020016040519081016040528092919081815260200182805462000f8f9062004a7b565b801562000fe05780601f1062000fb45761010080835404028352916020019162000fe0565b820191906000526020600020905b81548152906001019060200180831162000fc257829003601f168201915b5050505050905090565b600062000ff78262002d1d565b6200105a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000eb4565b506000908152600b60205260409020546001600160a01b031690565b6014546001600160a01b03163314620010a35760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620010bd5750805b80620010dd5750601f54600160a81b900460ff16158015620010dd575080155b620010fc5760405162461bcd60e51b815260040162000eb49062004ab2565b33ff5b60006200110c8262001d72565b9050806001600160a01b0316836001600160a01b031614156200117c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840162000eb4565b336001600160a01b03821614806200119b57506200119b813362002b4b565b6200120f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840162000eb4565b6200121b838362002d3a565b505050565b601b81815481106200123157600080fd5b6000918252602090912001546001600160a01b0316905081565b6014546001600160a01b03163314620012785760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620012925750805b80620012b25750601f54600160a81b900460ff16158015620012b2575080155b620012d15760405162461bcd60e51b815260040162000eb49062004ab2565b81620012dd8162002d1d565b620012fc5760405162461bcd60e51b815260040162000eb49062004ae9565b620013136200130d84600162004b36565b62002d1d565b15620013625760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420696e697469616c20737570706c792e000000000000000000604482015260640162000eb4565b6200121b601d849055565b6200137a335b8262002daa565b620013995760405162461bcd60e51b815260040162000eb49062004b51565b6200121b83838362002e80565b601f54600190600160a81b900460ff168015620013c05750805b80620013e05750601f54600160a81b900460ff16158015620013e0575080155b620013ff5760405162461bcd60e51b815260040162000eb49062004ab2565b60165460ff808416620100009092041610156200145f5760405162461bcd60e51b815260206004820152601d60248201527f546f6f206d616e7920666f72206f6e65207472616e73616374696f6e2e000000604482015260640162000eb4565b348260ff1660155462001473919062004ba2565b14620014c25760405162461bcd60e51b815260206004820152601b60248201527f5468652076616c756520213d206d696e74696e672070726963652e0000000000604482015260640162000eb4565b8160ff16620014d0601d5490565b620014dc919062004b36565b60165461ffff161015620015335760405162461bcd60e51b815260206004820152601f60248201527f546865726520617265206e6f742074686973206d616e7920746f6b656e732e00604482015260640162000eb4565b6200153e3362003039565b5060005b8260ff168160ff161015620015df5762001560601d80546001019055565b62001575336200156f601d5490565b6200327a565b336000908152601760205260408120546001600160a01b0316906018906200159c601d5490565b8152602081019190915260400160002080546001600160a01b0319166001600160a01b039290921691909117905580620015d68162004bc4565b91505062001542565b5060405160ff8316815233907fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab4570573779060200160405180910390a25050565b600080836200162b8162002d1d565b6200164a5760405162461bcd60e51b815260040162000eb49062004ae9565b6000858152601860205260409020546001546001600160a01b0390911690612710906200167c9061ffff168762004ba2565b62001688919062004bfd565b92509250509250929050565b6014546001600160a01b03163314620016c15760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620016db5750805b80620016fb5750601f54600160a81b900460ff16158015620016fb575080155b6200171a5760405162461bcd60e51b815260040162000eb49062004ab2565b50601f805460ff60a81b1916600160a81b179055565b6200173c828262003296565b60008281526003602052604090206200121b908262002cc2565b6000620017638362001e40565b8210620017c75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840162000eb4565b506001600160a01b03919091166000908152600d60209081526040808320938352929052205490565b6014546001600160a01b031633146200181d5760405162461bcd60e51b815260040162000eb49062004a0f565b6001600160a01b0382166000818152601c6020526040908190205490517f38bf5dda2eb9581a9f83dd8265bcf4534b80d77a2b8a08f8dc0676f962a57f72916200187991859160ff169091151582521515602082015260400190565b60405180910390a26001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b620018b88282620032c0565b60008281526003602052604090206200121b90826200333e565b60026000541415620018f85760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051631c368f5b60e11b815260048082015273267b3c094d58875d0be4611c9c62180117f43da79063386d1eb69060240160006040518083038186803b1580156200194857600080fd5b505af41580156200195d573d6000803e3d6000fd5b505060016000555050565b620019947f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620020b8565b62001a0a576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e7061757365606482015260840162000eb4565b62001a1462003355565b565b6200121b83838360405180602001604052806000815250620027f3565b62001a3e3362001373565b62001aa55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840162000eb4565b62001ab081620033ea565b50565b6002600054141562001ad95760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051636ec2a42360e01b81526004808201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790636ec2a423906044015b60006040518083038186803b15801562001b3957600080fd5b505af415801562001b4e573d6000803e3d6000fd5b50506001600055505050565b601a81815481106200123157600080fd5b600062001b77600f5490565b821062001bdc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840162000eb4565b600f828154811062001bf25762001bf262004c4b565b90600052602060002001549050919050565b6014546001600160a01b0316331462001c315760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff161562001c5e5760405162461bcd60e51b815260040162000eb49062004a44565b805162001c7390601e906020840190620041ee565b5050565b6002600054141562001c9d5760405162461bcd60e51b815260040162000eb49062004c14565b60026000908155601a5462001cb3838562004b36565b1162001ccb5762001cc5828462004b36565b62001ccf565b601a545b9050825b8181101562001b4e57601a818154811062001cf25762001cf262004c4b565b600091825260209091200154604051631277dca360e21b81526001600160a01b038781166004830152909116906349df728c90602401600060405180830381600087803b15801562001d4357600080fd5b505af115801562001d58573d6000803e3d6000fd5b50505050808062001d699062004c61565b91505062001cd3565b6000818152600960205260408120546001600160a01b03168062000e815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840162000eb4565b60405162461bcd60e51b815260206004820152602360248201527f546865206d696e7428292066756e6374696f6e206973206e6f7420616c6c6f7760448201526232b21760e91b606482015260840162000eb4565b60006001600160a01b03821662001ead5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840162000eb4565b506001600160a01b03166000908152600a602052604090205490565b6014546001600160a01b0316331462001ef65760405162461bcd60e51b815260040162000eb49062004a0f565b62001a14600062003499565b6014546001600160a01b0316331462001f2f5760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff161562001f5c5760405162461bcd60e51b815260040162000eb49062004a44565b601f805460ff60a01b1916600160a01b179055565b62001f9d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620020b8565b620020115760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f2070617573650000606482015260840162000eb4565b62001a14620034eb565b600082815260036020526040812062002035908362003569565b9392505050565b6014546001600160a01b03163314620020695760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff1615620020965760405162461bcd60e51b815260040162000eb49062004a44565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606008805462000f619062004a7b565b600260005414156200211a5760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051630ebd542760e21b815273267b3c094d58875d0be4611c9c62180117f43da790633af5509c906200215c9060049086908690830162004c7f565b60006040518083038186803b1580156200217557600080fd5b505af41580156200218a573d6000803e3d6000fd5b5050600160005550505050565b6001600160a01b038216331415620021f25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640162000eb4565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060601b80548060200260200160405190810160405280929190818152602001828054801562000fe057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162002299575050505050905090565b601f54600190600160a81b900460ff168015620022db5750805b80620022fb5750601f54600160a81b900460ff16158015620022fb575080155b6200231a5760405162461bcd60e51b815260040162000eb49062004ab2565b620023467f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620020b8565b6200238d5760405162461bcd60e51b815260206004820152601660248201527527b7363c9036b4b73a32b9399031b0b71033b4b33a1760511b604482015260640162000eb4565b620023988262002d1d565b15620023e75760405162461bcd60e51b815260206004820181905260248201527f5468697320746f6b656e20616c72656164792068617320616e206f776e65722e604482015260640162000eb4565b601d5482106200243a5760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e2063616e6e6f74206265206769667465642e00000000604482015260640162000eb4565b620024458362003039565b506200245283836200327a565b6001600160a01b03838116600081815260176020908152604080832054878452601883529281902080546001600160a01b0319169390951692909217909355516001815290917fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab457057377910160405180910390a2505050565b6014546001600160a01b03163314620024f55760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff1680156200250f5750805b806200252f5750601f54600160a81b900460ff161580156200252f575080155b6200254e5760405162461bcd60e51b815260040162000eb49062004ab2565b81518351146200259d5760405162461bcd60e51b815260206004820152601960248201527826b4b9b6b0ba31b432b21030b93930bc903632b733ba34399760391b604482015260640162000eb4565b60005b83518110156200273b57620025d1838281518110620025c357620025c362004c4b565b602002602001015162003039565b5062002616838281518110620025eb57620025eb62004c4b565b602002602001015185838151811062002608576200260862004c4b565b60200260200101516200327a565b601760008483815181106200262f576200262f62004c4b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166018600086848151811062002684576200268462004c4b565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828181518110620026d357620026d362004c4b565b60200260200101516001600160a01b03167fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab45705737760016040516200271e919060ff91909116815260200190565b60405180910390a280620027328162004c61565b915050620025a0565b50505050565b6000818152601860205260408082205481516309710f3160e21b815291516001600160a01b03909116916325c43cc49160048083019286929190829003018186803b1580156200279057600080fd5b505afa158015620027a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620027cf919081019062004ce0565b600181518110620027e457620027e462004c4b565b60200260200101519050919050565b620027ff338362002daa565b6200281e5760405162461bcd60e51b815260040162000eb49062004b51565b6200273b8484848462003577565b6060816200283a8162002d1d565b620028595760405162461bcd60e51b815260040162000eb49062004ae9565b6000601e80546200286a9062004a7b565b9050116200288857604051806020016040528060008152506200295e565b62002892620035b1565b601f546001600160a01b0316620028b457620028ae84620035c2565b6200293b565b601f5460405160016208b10d60e41b03198152600481018690526001600160a01b039091169063ff74ef309060240160006040518083038186803b158015620028fc57600080fd5b505afa15801562002911573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200293b919081019062004d84565b6040516020016200294e92919062004e03565b6040516020818303038152906040525b91505b50919050565b600081815260036020526040812062000e8190620036d7565b620018b88282620036e2565b6014546001600160a01b03163314620029b95760405162461bcd60e51b815260040162000eb49062004a0f565b805162001c7390601b9060208401906200427d565b6014546001600160a01b03163314620029fb5760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff16801562002a155750805b8062002a355750601f54600160a81b900460ff1615801562002a35575080155b62002a545760405162461bcd60e51b815260040162000eb49062004ab2565b8251845114801562002a67575081518451145b62002ab15760405162461bcd60e51b815260206004820152601960248201527826b4b9b6b0ba31b432b21030b93930bc903632b733ba34399760391b604482015260640162000eb4565b60005b845181101562002b445762002b2f84828151811062002ad75762002ad762004c4b565b602002602001015184838151811062002af45762002af462004c4b565b602002602001015187848151811062002b115762002b1162004c4b565b60200260200101516040518060200160405280600081525062003577565b8062002b3b8162004c61565b91505062002ab4565b5050505050565b6001600160a01b0381166000908152601c602052604081205460ff161562002b765750600162000e81565b6001600160a01b038084166000908152600c602090815260408083209386168352929052205460ff1662002035565b6014546001600160a01b0316331462002bd25760405162461bcd60e51b815260040162000eb49062004a0f565b6001600160a01b03811662002c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000eb4565b62001ab08162003499565b6002600054141562002c6a5760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051630b12ec5d60e11b81526004808201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790631625d8ba9060440162001b20565b62001c7382826200370c565b600062002035836001600160a01b03841662003796565b60006001600160e01b0319821663152a902d60e11b148062000e8157506301ffc9a760e01b6001600160e01b031983161462000e81565b600062000e8182620037e8565b6000908152600960205260409020546001600160a01b0316151590565b6000818152600b6020526040902080546001600160a01b0319166001600160a01b038416908117909155819062002d718262001d72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600062002db78262002d1d565b62002e1a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000eb4565b600062002e278362001d72565b9050806001600160a01b0316846001600160a01b0316148062002e655750836001600160a01b031662002e5a8462000fea565b6001600160a01b0316145b8062002e78575062002e78818562002b4b565b949350505050565b826001600160a01b031662002e958262001d72565b6001600160a01b03161462002eff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840162000eb4565b6001600160a01b03821662002f635760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840162000eb4565b62002f7083838362003810565b62002f7d60008262002d3a565b6001600160a01b0383166000908152600a6020526040812080546001929062002fa890849062004e46565b90915550506001600160a01b0382166000908152600a6020526040812080546001929062002fd890849062004b36565b909155505060008181526009602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038181166000908152601760205260408120549091166200325b57604080516002808252606082018352600092602083019080368337019050509050601660039054906101000a90046001600160a01b031681600081518110620030a857620030a862004c4b565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110620030df57620030df62004c4b565b6001600160a01b039290921660209283029190910182015260408051600280825260608201835260009391929091830190803683370190505090506113888160008151811062003133576200313362004c4b565b602002602001019061ffff16908161ffff16815250506113888160018151811062003162576200316262004c4b565b602002602001019061ffff16908161ffff168152505060003083836040516200318b90620042d5565b620031999392919062004e60565b604051809103906000f080158015620031b6573d6000803e3d6000fd5b506001600160a01b03868116600081815260176020908152604080832080549587166001600160a01b03199687168117909155601a805460018101825594527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e909301805490951683179094559251908152929350917f0709f79330a223d395f8a752fedadcae5ae1a9aea13da43adc3091f7ce20c483910160405180910390a25050505b506001600160a01b039081166000908152601760205260409020541690565b62001c738282604051806020016040528060008152506200381d565b600082815260026020526040902060010154620032b4813362003857565b6200121b83836200370c565b6001600160a01b0381163314620033325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000eb4565b62001c738282620038c6565b600062002035836001600160a01b03841662003930565b60115460ff16620033a05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000eb4565b6011805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000620033f78262001d72565b9050620034078160008462003810565b6200341460008362002d3a565b6001600160a01b0381166000908152600a602052604081208054600192906200343f90849062004e46565b909155505060008281526009602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60115460ff1615620035335760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000eb4565b6011805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620033cd3390565b600062002035838362003a34565b6200358484848462002e80565b620035928484848462003a61565b6200273b5760405162461bcd60e51b815260040162000eb49062004ec0565b6060601e805462000f619062004a7b565b606081620035e75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115620036175780620035fe8162004c61565b91506200360f9050600a8362004bfd565b9150620035eb565b6000816001600160401b0381111562003634576200363462004540565b6040519080825280601f01601f1916602001820160405280156200365f576020820181803683370190505b5090505b841562002e78576200367760018362004e46565b915062003686600a8662004f12565b6200369390603062004b36565b60f81b818381518110620036ab57620036ab62004c4b565b60200101906001600160f81b031916908160001a905350620036cf600a8662004bfd565b945062003663565b600062000e81825490565b60008281526002602052604090206001015462003700813362003857565b6200121b8383620038c6565b620037188282620020b8565b62001c735760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620037523390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620037df5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000e81565b50600062000e81565b60006001600160e01b0319821663780e9d6360e01b148062000e81575062000e818262003b7c565b6200121b83838362003bc0565b62003829838362003c36565b62003838600084848462003a61565b6200121b5760405162461bcd60e51b815260040162000eb49062004ec0565b620038638282620020b8565b62001c73576200387e816001600160a01b0316601462003d7f565b6200388b83602062003d7f565b6040516020016200389e92919062004f29565b60408051601f198184030181529082905262461bcd60e51b825262000eb491600401620043b4565b620038d28282620020b8565b1562001c735760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801562003a295760006200395760018362004e46565b85549091506000906200396d9060019062004e46565b9050818114620039d957600086600001828154811062003991576200399162004c4b565b9060005260206000200154905080876000018481548110620039b757620039b762004c4b565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080620039ed57620039ed62004fa2565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505062000e81565b600091505062000e81565b600082600001828154811062003a4e5762003a4e62004c4b565b9060005260206000200154905092915050565b60006001600160a01b0384163b1562003b7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062003aa890339089908890889060040162004fb8565b602060405180830381600087803b15801562003ac357600080fd5b505af192505050801562003af6575060408051601f3d908101601f1916820190925262003af39181019062004ff7565b60015b62003b56573d80801562003b27576040519150601f19603f3d011682016040523d82523d6000602084013e62003b2c565b606091505b50805162003b4e5760405162461bcd60e51b815260040162000eb49062004ec0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062002e78565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148062003bae57506001600160e01b03198216635b5e139f60e01b145b8062000e81575062000e818262003f38565b62003bcd83838362003f60565b60115460ff16156200121b5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840162000eb4565b6001600160a01b03821662003c8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000eb4565b62003c998162002d1d565b1562003ce85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000eb4565b62003cf66000838362003810565b6001600160a01b0382166000908152600a6020526040812080546001929062003d2190849062004b36565b909155505060008181526009602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060600062003d9083600262004ba2565b62003d9d90600262004b36565b6001600160401b0381111562003db75762003db762004540565b6040519080825280601f01601f19166020018201604052801562003de2576020820181803683370190505b509050600360fc1b8160008151811062003e005762003e0062004c4b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062003e325762003e3262004c4b565b60200101906001600160f81b031916908160001a905350600062003e5884600262004ba2565b62003e6590600162004b36565b90505b600181111562003ee7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062003e9d5762003e9d62004c4b565b1a60f81b82828151811062003eb65762003eb662004c4b565b60200101906001600160f81b031916908160001a90535060049490941c9362003edf8162005017565b905062003e68565b508315620020355760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000eb4565b60006001600160e01b03198216635a05180f60e01b148062000e81575062000e818262004024565b6001600160a01b03831662003fbe5762003fb881600f80546000838152601060205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b62003fe4565b816001600160a01b0316836001600160a01b03161462003fe45762003fe483826200404c565b6001600160a01b03821662003ffe576200121b81620040ee565b826001600160a01b0316826001600160a01b0316146200121b576200121b8282620041a8565b60006001600160e01b03198216637965db0b60e01b148062000e81575062000e818262002cd9565b600060016200405b8462001e40565b62004067919062004e46565b6000838152600e6020526040902054909150808214620040bb576001600160a01b0384166000908152600d602090815260408083208584528252808320548484528184208190558352600e90915290208190555b506000918252600e602090815260408084208490556001600160a01b039094168352600d81528383209183525290812055565b600f54600090620041029060019062004e46565b600083815260106020526040812054600f80549394509092849081106200412d576200412d62004c4b565b9060005260206000200154905080600f838154811062004151576200415162004c4b565b600091825260208083209091019290925582815260109091526040808220849055858252812055600f8054806200418c576200418c62004fa2565b6001900381819060005260206000200160009055905550505050565b6000620041b58362001e40565b6001600160a01b039093166000908152600d602090815260408083208684528252808320859055938252600e9052919091209190915550565b828054620041fc9062004a7b565b90600052602060002090601f0160209004810192826200422057600085556200426b565b82601f106200423b57805160ff19168380011785556200426b565b828001600101855582156200426b579182015b828111156200426b5782518255916020019190600101906200424e565b5062004279929150620042e3565b5090565b8280548282559060005260206000209081019282156200426b579160200282015b828111156200426b57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200429e565b610d9f806200503283390190565b5b80821115620042795760008155600101620042e4565b6001600160e01b03198116811462001ab057600080fd5b6000602082840312156200432457600080fd5b81356200203581620042fa565b6000602082840312156200434457600080fd5b813561ffff811681146200203557600080fd5b60005b83811015620043745781810151838201526020016200435a565b838111156200273b5750506000910152565b60008151808452620043a081602086016020860162004357565b601f01601f19169290920160200192915050565b60208152600062002035602083018462004386565b600060208284031215620043dc57600080fd5b5035919050565b6001600160a01b038116811462001ab057600080fd5b600080604083850312156200440d57600080fd5b82356200441a81620043e3565b946020939093013593505050565b6000806000606084860312156200443e57600080fd5b83356200444b81620043e3565b925060208401356200445d81620043e3565b929592945050506040919091013590565b6000602082840312156200448157600080fd5b813560ff811681146200203557600080fd5b60008060408385031215620044a757600080fd5b50508035926020909101359150565b60008060408385031215620044ca57600080fd5b823591506020830135620044de81620043e3565b809150509250929050565b60008060408385031215620044fd57600080fd5b82356200450a81620043e3565b915060208301358015158114620044de57600080fd5b6000602082840312156200453357600080fd5b81356200203581620043e3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562004581576200458162004540565b604052919050565b60006001600160401b03821115620045a557620045a562004540565b50601f01601f191660200190565b6000620045ca620045c48462004589565b62004556565b9050828152838383011115620045df57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156200460957600080fd5b81356001600160401b038111156200462057600080fd5b8201601f810184136200463257600080fd5b62002e7884823560208401620045b3565b6000806000606084860312156200465957600080fd5b83356200466681620043e3565b95602085013595506040909401359392505050565b60006001600160401b0382111562004697576200469762004540565b5060051b60200190565b600082601f830112620046b357600080fd5b81356020620046c6620045c4836200467b565b82815260059290921b84018101918181019086841115620046e657600080fd5b8286015b84811015620047035780358352918301918301620046ea565b509695505050505050565b600080604083850312156200472257600080fd5b82356200472f81620043e3565b915060208301356001600160401b038111156200474b57600080fd5b6200475985828601620046a1565b9150509250929050565b600081518084526020808501945080840160005b838110156200479e5781516001600160a01b03168752958201959082019060010162004777565b509495945050505050565b60208152600062002035602083018462004763565b600082601f830112620047d057600080fd5b81356020620047e3620045c4836200467b565b82815260059290921b840181019181810190868411156200480357600080fd5b8286015b84811015620047035780356200481d81620043e3565b835291830191830162004807565b600080604083850312156200483f57600080fd5b82356001600160401b03808211156200485757600080fd5b6200486586838701620046a1565b935060208501359150808211156200487c57600080fd5b506200475985828601620047be565b60008060008060808587031215620048a257600080fd5b8435620048af81620043e3565b93506020850135620048c181620043e3565b92506040850135915060608501356001600160401b03811115620048e457600080fd5b8501601f81018713620048f657600080fd5b6200490787823560208401620045b3565b91505092959194509250565b6000602082840312156200492657600080fd5b81356001600160401b038111156200493d57600080fd5b62002e7884828501620047be565b6000806000606084860312156200496157600080fd5b83356001600160401b03808211156200497957600080fd5b6200498787838801620046a1565b945060208601359150808211156200499e57600080fd5b620049ac87838801620047be565b93506040860135915080821115620049c357600080fd5b50620049d286828701620047be565b9150509250925092565b60008060408385031215620049f057600080fd5b8235620049fd81620043e3565b91506020830135620044de81620043e3565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f4c6f636b65643a20636f6e7472616374206973206c6f636b65642e0000000000604082015260600190565b600181811c9082168062004a9057607f821691505b602082108114156200296157634e487b7160e01b600052602260045260246000fd5b60208082526019908201527f496e76616c6964206d6967726174696f6e207374617475732e00000000000000604082015260600190565b6020808252601d908201527f5468697320746f6b656e20696420646f6573206e6f742065786973742e000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111562004b4c5762004b4c62004b20565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161562004bbf5762004bbf62004b20565b500290565b600060ff821660ff81141562004bde5762004bde62004b20565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b60008262004c0f5762004c0f62004be7565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060001982141562004c785762004c7862004b20565b5060010190565b8381526001600160a01b0383166020808301919091526060604083018190528351908301819052600091848101916080850190845b8181101562004cd25784518352938301939183019160010162004cb4565b509098975050505050505050565b6000602080838503121562004cf457600080fd5b82516001600160401b0381111562004d0b57600080fd5b8301601f8101851362004d1d57600080fd5b805162004d2e620045c4826200467b565b81815260059190911b8201830190838101908783111562004d4e57600080fd5b928401925b8284101562004d7957835162004d6981620043e3565b8252928401929084019062004d53565b979650505050505050565b60006020828403121562004d9757600080fd5b81516001600160401b0381111562004dae57600080fd5b8201601f8101841362004dc057600080fd5b805162004dd1620045c48262004589565b81815285602083850101111562004de757600080fd5b62004dfa82602083016020860162004357565b95945050505050565b6000835162004e1781846020880162004357565b83519083019062004e2d81836020880162004357565b64173539b7b760d91b9101908152600501949350505050565b60008282101562004e5b5762004e5b62004b20565b500390565b6001600160a01b03841681526060602080830182905260009162004e879084018662004763565b838103604085015284518082528286019183019060005b8181101562004cd257835161ffff168352928401929184019160010162004e9e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008262004f245762004f2462004be7565b500690565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162004f6381601785016020880162004357565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162004f9681602884016020880162004357565b01602801949350505050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062004fed9083018462004386565b9695505050505050565b6000602082840312156200500a57600080fd5b81516200203581620042fa565b60008162005029576200502962004b20565b50600019019056fe60a06040523480156200001157600080fd5b5060405162000d9f38038062000d9f83398101604081905262000034916200032e565b600160008190558251839183916200005291906020850190620000f6565b5080516200006890600290602084019062000160565b506003805461ffff1916612710179055604051630569d7ef60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da790630ad3afde9060240160006040518083038186803b158015620000c457600080fd5b505af4158015620000d9573d6000803e3d6000fd5b5050506001600160a01b0390951660805250620004129350505050565b8280548282559060005260206000209081019282156200014e579160200282015b828111156200014e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000117565b506200015c92915062000206565b5090565b82805482825590600052602060002090600f016010900481019282156200014e5791602002820160005b83821115620001cc57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200018a565b8015620001fc5782816101000a81549061ffff0219169055600201602081600101049283019260010302620001cc565b50506200015c9291505b5b808211156200015c576000815560010162000207565b80516001600160a01b03811681146200023557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200027b576200027b6200023a565b604052919050565b60006001600160401b038211156200029f576200029f6200023a565b5060051b60200190565b600082601f830112620002bb57600080fd5b81516020620002d4620002ce8362000283565b62000250565b82815260059290921b84018101918181019086841115620002f457600080fd5b8286015b848110156200032357805161ffff81168114620003155760008081fd5b8352918301918301620002f8565b509695505050505050565b6000806000606084860312156200034457600080fd5b6200034f846200021d565b602085810151919450906001600160401b03808211156200036f57600080fd5b818701915087601f8301126200038457600080fd5b815162000395620002ce8262000283565b81815260059190911b8301840190848101908a831115620003b557600080fd5b938501935b82851015620003de57620003ce856200021d565b82529385019390850190620003ba565b60408a01519097509450505080831115620003f857600080fd5b50506200040886828701620002a9565b9150509250925092565b6080516109726200042d6000396000606201526109726000f3fe6080604052600436106100595760003560e01c806325c43cc41461029b5780633ccfd60b146102c657806349df728c146102dd5780639bdedea5146102fd578063ec342ad01461031d578063feec756c1461034657600080fd5b366102965760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaf6d56d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156100b957600080fd5b505afa1580156100cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526100f59190810190610698565b905060005b815181101561023f57600082828151811061011757610117610737565b60209081029190910101516040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b15801561016757600080fd5b505afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f919061074d565b111561022c57306001600160a01b03166349df728c8484815181106101c6576101c6610737565b60200260200101516040518263ffffffff1660e01b81526004016101f991906001600160a01b0391909116815260200190565b600060405180830381600087803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b505050505b508061023781610766565b9150506100fa565b50306001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561027b57600080fd5b505af115801561028f573d6000803e3d6000fd5b5050505050005b600080fd5b3480156102a757600080fd5b506102b0610366565b6040516102bd919061078f565b60405180910390f35b3480156102d257600080fd5b506102db6103cb565b005b3480156102e957600080fd5b506102db6102f83660046107dc565b610466565b34801561030957600080fd5b506102db610318366004610800565b610509565b34801561032957600080fd5b5061033361271081565b60405161ffff90911681526020016102bd565b34801561035257600080fd5b506102db6103613660046107dc565b6105a6565b606060016000018054806020026020016040519081016040528092919081815260200182805480156103c157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116103a3575b5050505050905090565b600260005414156103f75760405162461bcd60e51b81526004016103ee906108a6565b60405180910390fd5b6002600055604051631c368f5b60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da79063386d1eb69060240160006040518083038186803b15801561044757600080fd5b505af415801561045b573d6000803e3d6000fd5b505060016000555050565b600260005414156104895760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051636ec2a42360e01b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790636ec2a423906044015b60006040518083038186803b1580156104e957600080fd5b505af41580156104fd573d6000803e3d6000fd5b50506001600055505050565b6002600054141561052c5760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630ebd542760e21b815273267b3c094d58875d0be4611c9c62180117f43da790633af5509c9061056d90600190869086906004016108dd565b60006040518083038186803b15801561058557600080fd5b505af4158015610599573d6000803e3d6000fd5b5050600160005550505050565b600260005414156105c95760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630b12ec5d60e11b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790631625d8ba906044016104d1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561065457610654610615565b604052919050565b600067ffffffffffffffff82111561067657610676610615565b5060051b60200190565b6001600160a01b038116811461069557600080fd5b50565b600060208083850312156106ab57600080fd5b825167ffffffffffffffff8111156106c257600080fd5b8301601f810185136106d357600080fd5b80516106e66106e18261065c565b61062b565b81815260059190911b8201830190838101908783111561070557600080fd5b928401925b8284101561072c57835161071d81610680565b8252928401929084019061070a565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561075f57600080fd5b5051919050565b600060001982141561078857634e487b7160e01b600052601160045260246000fd5b5060010190565b6020808252825182820181905260009190848201906040850190845b818110156107d05783516001600160a01b0316835292840192918401916001016107ab565b50909695505050505050565b6000602082840312156107ee57600080fd5b81356107f981610680565b9392505050565b6000806040838503121561081357600080fd5b823561081e81610680565b915060208381013567ffffffffffffffff81111561083b57600080fd5b8401601f8101861361084c57600080fd5b803561085a6106e18261065c565b81815260059190911b8201830190838101908883111561087957600080fd5b928401925b828410156108975783358252928401929084019061087e565b80955050505050509250929050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8381526001600160a01b0383166020808301919091526060604083018190528351908301819052600091848101916080850190845b8181101561092e57845183529383019391830191600101610912565b50909897505050505050505056fea2646970667358221220160fdc0a7ed8503026792579cf78ebb75878228553532fd768a079f3bb1b36fd64736f6c63430008090033a2646970667358221220fe1a59244aac7e2a30afa5521c94c53eb819acf54c4f21f2e5547807a5df67f064736f6c6343000809003360a06040523480156200001157600080fd5b5060405162000d9f38038062000d9f83398101604081905262000034916200032e565b600160008190558251839183916200005291906020850190620000f6565b5080516200006890600290602084019062000160565b506003805461ffff1916612710179055604051630569d7ef60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da790630ad3afde9060240160006040518083038186803b158015620000c457600080fd5b505af4158015620000d9573d6000803e3d6000fd5b5050506001600160a01b0390951660805250620004129350505050565b8280548282559060005260206000209081019282156200014e579160200282015b828111156200014e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000117565b506200015c92915062000206565b5090565b82805482825590600052602060002090600f016010900481019282156200014e5791602002820160005b83821115620001cc57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200018a565b8015620001fc5782816101000a81549061ffff0219169055600201602081600101049283019260010302620001cc565b50506200015c9291505b5b808211156200015c576000815560010162000207565b80516001600160a01b03811681146200023557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200027b576200027b6200023a565b604052919050565b60006001600160401b038211156200029f576200029f6200023a565b5060051b60200190565b600082601f830112620002bb57600080fd5b81516020620002d4620002ce8362000283565b62000250565b82815260059290921b84018101918181019086841115620002f457600080fd5b8286015b848110156200032357805161ffff81168114620003155760008081fd5b8352918301918301620002f8565b509695505050505050565b6000806000606084860312156200034457600080fd5b6200034f846200021d565b602085810151919450906001600160401b03808211156200036f57600080fd5b818701915087601f8301126200038457600080fd5b815162000395620002ce8262000283565b81815260059190911b8301840190848101908a831115620003b557600080fd5b938501935b82851015620003de57620003ce856200021d565b82529385019390850190620003ba565b60408a01519097509450505080831115620003f857600080fd5b50506200040886828701620002a9565b9150509250925092565b6080516109726200042d6000396000606201526109726000f3fe6080604052600436106100595760003560e01c806325c43cc41461029b5780633ccfd60b146102c657806349df728c146102dd5780639bdedea5146102fd578063ec342ad01461031d578063feec756c1461034657600080fd5b366102965760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaf6d56d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156100b957600080fd5b505afa1580156100cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526100f59190810190610698565b905060005b815181101561023f57600082828151811061011757610117610737565b60209081029190910101516040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b15801561016757600080fd5b505afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f919061074d565b111561022c57306001600160a01b03166349df728c8484815181106101c6576101c6610737565b60200260200101516040518263ffffffff1660e01b81526004016101f991906001600160a01b0391909116815260200190565b600060405180830381600087803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b505050505b508061023781610766565b9150506100fa565b50306001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561027b57600080fd5b505af115801561028f573d6000803e3d6000fd5b5050505050005b600080fd5b3480156102a757600080fd5b506102b0610366565b6040516102bd919061078f565b60405180910390f35b3480156102d257600080fd5b506102db6103cb565b005b3480156102e957600080fd5b506102db6102f83660046107dc565b610466565b34801561030957600080fd5b506102db610318366004610800565b610509565b34801561032957600080fd5b5061033361271081565b60405161ffff90911681526020016102bd565b34801561035257600080fd5b506102db6103613660046107dc565b6105a6565b606060016000018054806020026020016040519081016040528092919081815260200182805480156103c157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116103a3575b5050505050905090565b600260005414156103f75760405162461bcd60e51b81526004016103ee906108a6565b60405180910390fd5b6002600055604051631c368f5b60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da79063386d1eb69060240160006040518083038186803b15801561044757600080fd5b505af415801561045b573d6000803e3d6000fd5b505060016000555050565b600260005414156104895760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051636ec2a42360e01b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790636ec2a423906044015b60006040518083038186803b1580156104e957600080fd5b505af41580156104fd573d6000803e3d6000fd5b50506001600055505050565b6002600054141561052c5760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630ebd542760e21b815273267b3c094d58875d0be4611c9c62180117f43da790633af5509c9061056d90600190869086906004016108dd565b60006040518083038186803b15801561058557600080fd5b505af4158015610599573d6000803e3d6000fd5b5050600160005550505050565b600260005414156105c95760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630b12ec5d60e11b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790631625d8ba906044016104d1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561065457610654610615565b604052919050565b600067ffffffffffffffff82111561067657610676610615565b5060051b60200190565b6001600160a01b038116811461069557600080fd5b50565b600060208083850312156106ab57600080fd5b825167ffffffffffffffff8111156106c257600080fd5b8301601f810185136106d357600080fd5b80516106e66106e18261065c565b61062b565b81815260059190911b8201830190838101908783111561070557600080fd5b928401925b8284101561072c57835161071d81610680565b8252928401929084019061070a565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561075f57600080fd5b5051919050565b600060001982141561078857634e487b7160e01b600052601160045260246000fd5b5060010190565b6020808252825182820181905260009190848201906040850190845b818110156107d05783516001600160a01b0316835292840192918401916001016107ab565b50909695505050505050565b6000602082840312156107ee57600080fd5b81356107f981610680565b9392505050565b6000806040838503121561081357600080fd5b823561081e81610680565b915060208381013567ffffffffffffffff81111561083b57600080fd5b8401601f8101861361084c57600080fd5b803561085a6106e18261065c565b81815260059190911b8201830190838101908883111561087957600080fd5b928401925b828410156108975783358252928401929084019061087e565b80955050505050509250929050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8381526001600160a01b0383166020808301919091526060604083018190528351908301819052600091848101916080850190845b8181101561092e57845183529383019391830191600101610912565b50909897505050505050505056fea2646970667358221220160fdc0a7ed8503026792579cf78ebb75878228553532fd768a079f3bb1b36fd64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000d8d726b7177a800000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f706f7274616c68656164732e6d7970696e6174612e636c6f75642f697066732f516d577a32336764366e4a314b6371336e75623231424b394366646470433647446e5945503747666935785350532f000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000007bec284d94a6ae981b03e9b8fcf8a6cad97e6ca000000000000000000000000ce1db19c21da28b70fb663ec0c49c8c8e69a16da00000000000000000000000009be68823d2a7a22be569816c9b2c104628545cf00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000001d4c00000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000200000000000000000000000085dec8c4b2680793661bca91a8f129607571863d00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83
Deployed Bytecode
0x608060405260043610620004535760003560e01c80636817c76c116200023f578063ab62a884116200013b578063d5abeb0111620000b9578063e74bdd0a1162000084578063e74bdd0a1462000db6578063e985e9c51462000ddb578063ec342ad01462000e00578063f2fde38b1462000e18578063feec756c1462000e3d57600080fd5b8063d5abeb011462000d13578063d8a778e91462000d44578063e090656a1462000d69578063e63ab1e91462000d8057600080fd5b8063b88d4fde1162000106578063b88d4fde1462000c49578063c87b56dd1462000c6e578063ca15c8731462000c93578063d53913931462000cb8578063d547741f1462000cee57600080fd5b8063ab62a8841462000bb7578063b06faf621462000bdc578063b0e25d1f1462000bff578063b4e9f9091462000c2457600080fd5b80639010d07c11620001c95780639bdedea511620001945780639bdedea51462000b0c578063a217fddf1462000b31578063a22cb4651462000b48578063a4e2d6341462000b6d578063aaf6d56d1462000b9057600080fd5b80639010d07c1462000a85578063904e46e11462000aaa57806391d148541462000acf57806395d89b411462000af457600080fd5b8063753868e3116200020a578063753868e31462000a045780638456cb591462000a1c5780638da5cb5b1462000a345780638f53cc891462000a5457600080fd5b80636817c76c146200098a5780636a62784214620009a257806370a0823114620009c7578063715018a614620009ec57600080fd5b806331062623116200034f5780634f6ccce711620002d957806355f804b311620002a457806355f804b314620008ea57806356aaeb92146200090f5780635c975abb146200093457806361ee56f9146200094e5780636352211e146200096557600080fd5b80634f6ccce7146200082d578063507e094f146200085257806350f80d521462000887578063519db64714620008b057600080fd5b806342842e0e116200031a57806342842e0e146200079957806342966c6814620007be57806349df728c14620007e35780634bd7ba59146200080857600080fd5b806331062623146200071f57806336568abe14620007445780633ccfd60b14620007695780633f4ba83a146200078157600080fd5b80632149235111620003dd57806325e8b88f11620003a857806325e8b88f14620006615780632a55205a14620006785780632bff884f14620006bd5780632f2ff15d14620006d55780632f745c5914620006fa57600080fd5b80632149235114620005a957806323b872dd14620005ce578063248a9ca314620005f357806324ebafb3146200062757600080fd5b8063092a5cce116200041e578063092a5cce1462000526578063095ea7b3146200053e57806314248c40146200056357806318160ddd146200058857600080fd5b806301ffc9a7146200046057806306421c2f146200049a57806306fdde0314620004c1578063081812fc14620004e857600080fd5b366200045b57005b600080fd5b3480156200046d57600080fd5b50620004856200047f36600462004311565b62000e62565b60405190151581526020015b60405180910390f35b348015620004a757600080fd5b50620004bf620004b936600462004331565b62000e87565b005b348015620004ce57600080fd5b50620004d962000f50565b604051620004919190620043b4565b348015620004f557600080fd5b506200050d62000507366004620043c9565b62000fea565b6040516001600160a01b03909116815260200162000491565b3480156200053357600080fd5b50620004bf62001076565b3480156200054b57600080fd5b50620004bf6200055d366004620043f9565b620010ff565b3480156200057057600080fd5b506200050d62000582366004620043c9565b62001220565b3480156200059557600080fd5b50600f545b60405190815260200162000491565b348015620005b657600080fd5b50620004bf620005c8366004620043c9565b6200124b565b348015620005db57600080fd5b50620004bf620005ed36600462004428565b6200136d565b3480156200060057600080fd5b506200059a62000612366004620043c9565b60009081526002602052604090206001015490565b3480156200063457600080fd5b506200050d62000646366004620043c9565b6018602052600090815260409020546001600160a01b031681565b620004bf620006723660046200446e565b620013a6565b3480156200068557600080fd5b506200069d6200069736600462004493565b6200161c565b604080516001600160a01b03909316835260208301919091520162000491565b348015620006ca57600080fd5b50620004bf62001694565b348015620006e257600080fd5b50620004bf620006f4366004620044b6565b62001730565b3480156200070757600080fd5b506200059a62000719366004620043f9565b62001756565b3480156200072c57600080fd5b50620004bf6200073e366004620044e9565b620017f0565b3480156200075157600080fd5b50620004bf62000763366004620044b6565b620018ac565b3480156200077657600080fd5b50620004bf620018d2565b3480156200078e57600080fd5b50620004bf62001968565b348015620007a657600080fd5b50620004bf620007b836600462004428565b62001a16565b348015620007cb57600080fd5b50620004bf620007dd366004620043c9565b62001a33565b348015620007f057600080fd5b50620004bf6200080236600462004520565b62001ab3565b3480156200081557600080fd5b506200050d62000827366004620043c9565b62001b5a565b3480156200083a57600080fd5b506200059a6200084c366004620043c9565b62001b6b565b3480156200085f57600080fd5b50601654620008749062010000900460ff1681565b60405160ff909116815260200162000491565b3480156200089457600080fd5b506016546200050d90630100000090046001600160a01b031681565b348015620008bd57600080fd5b506200050d620008cf36600462004520565b6017602052600090815260409020546001600160a01b031681565b348015620008f757600080fd5b50620004bf62000909366004620045f6565b62001c04565b3480156200091c57600080fd5b50620004bf6200092e36600462004643565b62001c77565b3480156200094157600080fd5b5060115460ff1662000485565b3480156200095b57600080fd5b50601a546200059a565b3480156200097257600080fd5b506200050d62000984366004620043c9565b62001d72565b3480156200099757600080fd5b506200059a60155481565b348015620009af57600080fd5b50620004bf620009c136600462004520565b62001deb565b348015620009d457600080fd5b506200059a620009e636600462004520565b62001e40565b348015620009f957600080fd5b50620004bf62001ec9565b34801562000a1157600080fd5b50620004bf62001f02565b34801562000a2957600080fd5b50620004bf62001f71565b34801562000a4157600080fd5b506014546001600160a01b03166200050d565b34801562000a6157600080fd5b506200059a62000a7336600462004520565b60196020526000908152604090205481565b34801562000a9257600080fd5b506200050d62000aa436600462004493565b6200201b565b34801562000ab757600080fd5b50620004bf62000ac936600462004520565b6200203c565b34801562000adc57600080fd5b506200048562000aee366004620044b6565b620020b8565b34801562000b0157600080fd5b50620004d9620020e3565b34801562000b1957600080fd5b50620004bf62000b2b3660046200470e565b620020f4565b34801562000b3e57600080fd5b506200059a600081565b34801562000b5557600080fd5b50620004bf62000b67366004620044e9565b62002197565b34801562000b7a57600080fd5b50601f546200048590600160a01b900460ff1681565b34801562000b9d57600080fd5b5062000ba86200225e565b604051620004919190620047a9565b34801562000bc457600080fd5b50620004bf62000bd6366004620043f9565b620022c1565b34801562000be957600080fd5b50601f546200048590600160a81b900460ff1681565b34801562000c0c57600080fd5b50620004bf62000c1e3660046200482b565b620024c8565b34801562000c3157600080fd5b506200050d62000c43366004620043c9565b62002741565b34801562000c5657600080fd5b50620004bf62000c683660046200488b565b620027f3565b34801562000c7b57600080fd5b50620004d962000c8d366004620043c9565b6200282c565b34801562000ca057600080fd5b506200059a62000cb2366004620043c9565b62002967565b34801562000cc557600080fd5b506200059a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801562000cfb57600080fd5b50620004bf62000d0d366004620044b6565b62002980565b34801562000d2057600080fd5b5060165462000d309061ffff1681565b60405161ffff909116815260200162000491565b34801562000d5157600080fd5b50620004bf62000d6336600462004913565b6200298c565b34801562000d7657600080fd5b50601b546200059a565b34801562000d8d57600080fd5b506200059a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b34801562000dc357600080fd5b50620004bf62000dd53660046200494b565b620029ce565b34801562000de857600080fd5b506200048562000dfa366004620049dc565b62002b4b565b34801562000e0d57600080fd5b5062000d3061271081565b34801562000e2557600080fd5b50620004bf62000e3736600462004520565b62002ba5565b34801562000e4a57600080fd5b50620004bf62000e5c36600462004520565b62002c44565b600062000e6f8262002cd9565b8062000e81575062000e818262002d10565b92915050565b6014546001600160a01b0316331462000ebd5760405162461bcd60e51b815260040162000eb49062004a0f565b60405180910390fd5b601f54600160a01b900460ff161562000eea5760405162461bcd60e51b815260040162000eb49062004a44565b60165461ffff908116908216111562000f385760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21039bab838363c9760891b604482015260640162000eb4565b6016805461ffff191661ffff92909216919091179055565b60606007805462000f619062004a7b565b80601f016020809104026020016040519081016040528092919081815260200182805462000f8f9062004a7b565b801562000fe05780601f1062000fb45761010080835404028352916020019162000fe0565b820191906000526020600020905b81548152906001019060200180831162000fc257829003601f168201915b5050505050905090565b600062000ff78262002d1d565b6200105a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000eb4565b506000908152600b60205260409020546001600160a01b031690565b6014546001600160a01b03163314620010a35760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620010bd5750805b80620010dd5750601f54600160a81b900460ff16158015620010dd575080155b620010fc5760405162461bcd60e51b815260040162000eb49062004ab2565b33ff5b60006200110c8262001d72565b9050806001600160a01b0316836001600160a01b031614156200117c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840162000eb4565b336001600160a01b03821614806200119b57506200119b813362002b4b565b6200120f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840162000eb4565b6200121b838362002d3a565b505050565b601b81815481106200123157600080fd5b6000918252602090912001546001600160a01b0316905081565b6014546001600160a01b03163314620012785760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620012925750805b80620012b25750601f54600160a81b900460ff16158015620012b2575080155b620012d15760405162461bcd60e51b815260040162000eb49062004ab2565b81620012dd8162002d1d565b620012fc5760405162461bcd60e51b815260040162000eb49062004ae9565b620013136200130d84600162004b36565b62002d1d565b15620013625760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420696e697469616c20737570706c792e000000000000000000604482015260640162000eb4565b6200121b601d849055565b6200137a335b8262002daa565b620013995760405162461bcd60e51b815260040162000eb49062004b51565b6200121b83838362002e80565b601f54600190600160a81b900460ff168015620013c05750805b80620013e05750601f54600160a81b900460ff16158015620013e0575080155b620013ff5760405162461bcd60e51b815260040162000eb49062004ab2565b60165460ff808416620100009092041610156200145f5760405162461bcd60e51b815260206004820152601d60248201527f546f6f206d616e7920666f72206f6e65207472616e73616374696f6e2e000000604482015260640162000eb4565b348260ff1660155462001473919062004ba2565b14620014c25760405162461bcd60e51b815260206004820152601b60248201527f5468652076616c756520213d206d696e74696e672070726963652e0000000000604482015260640162000eb4565b8160ff16620014d0601d5490565b620014dc919062004b36565b60165461ffff161015620015335760405162461bcd60e51b815260206004820152601f60248201527f546865726520617265206e6f742074686973206d616e7920746f6b656e732e00604482015260640162000eb4565b6200153e3362003039565b5060005b8260ff168160ff161015620015df5762001560601d80546001019055565b62001575336200156f601d5490565b6200327a565b336000908152601760205260408120546001600160a01b0316906018906200159c601d5490565b8152602081019190915260400160002080546001600160a01b0319166001600160a01b039290921691909117905580620015d68162004bc4565b91505062001542565b5060405160ff8316815233907fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab4570573779060200160405180910390a25050565b600080836200162b8162002d1d565b6200164a5760405162461bcd60e51b815260040162000eb49062004ae9565b6000858152601860205260409020546001546001600160a01b0390911690612710906200167c9061ffff168762004ba2565b62001688919062004bfd565b92509250509250929050565b6014546001600160a01b03163314620016c15760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff168015620016db5750805b80620016fb5750601f54600160a81b900460ff16158015620016fb575080155b6200171a5760405162461bcd60e51b815260040162000eb49062004ab2565b50601f805460ff60a81b1916600160a81b179055565b6200173c828262003296565b60008281526003602052604090206200121b908262002cc2565b6000620017638362001e40565b8210620017c75760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840162000eb4565b506001600160a01b03919091166000908152600d60209081526040808320938352929052205490565b6014546001600160a01b031633146200181d5760405162461bcd60e51b815260040162000eb49062004a0f565b6001600160a01b0382166000818152601c6020526040908190205490517f38bf5dda2eb9581a9f83dd8265bcf4534b80d77a2b8a08f8dc0676f962a57f72916200187991859160ff169091151582521515602082015260400190565b60405180910390a26001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b620018b88282620032c0565b60008281526003602052604090206200121b90826200333e565b60026000541415620018f85760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051631c368f5b60e11b815260048082015273267b3c094d58875d0be4611c9c62180117f43da79063386d1eb69060240160006040518083038186803b1580156200194857600080fd5b505af41580156200195d573d6000803e3d6000fd5b505060016000555050565b620019947f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620020b8565b62001a0a576040805162461bcd60e51b81526020600482015260248101919091527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f20756e7061757365606482015260840162000eb4565b62001a1462003355565b565b6200121b83838360405180602001604052806000815250620027f3565b62001a3e3362001373565b62001aa55760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840162000eb4565b62001ab081620033ea565b50565b6002600054141562001ad95760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051636ec2a42360e01b81526004808201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790636ec2a423906044015b60006040518083038186803b15801562001b3957600080fd5b505af415801562001b4e573d6000803e3d6000fd5b50506001600055505050565b601a81815481106200123157600080fd5b600062001b77600f5490565b821062001bdc5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840162000eb4565b600f828154811062001bf25762001bf262004c4b565b90600052602060002001549050919050565b6014546001600160a01b0316331462001c315760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff161562001c5e5760405162461bcd60e51b815260040162000eb49062004a44565b805162001c7390601e906020840190620041ee565b5050565b6002600054141562001c9d5760405162461bcd60e51b815260040162000eb49062004c14565b60026000908155601a5462001cb3838562004b36565b1162001ccb5762001cc5828462004b36565b62001ccf565b601a545b9050825b8181101562001b4e57601a818154811062001cf25762001cf262004c4b565b600091825260209091200154604051631277dca360e21b81526001600160a01b038781166004830152909116906349df728c90602401600060405180830381600087803b15801562001d4357600080fd5b505af115801562001d58573d6000803e3d6000fd5b50505050808062001d699062004c61565b91505062001cd3565b6000818152600960205260408120546001600160a01b03168062000e815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840162000eb4565b60405162461bcd60e51b815260206004820152602360248201527f546865206d696e7428292066756e6374696f6e206973206e6f7420616c6c6f7760448201526232b21760e91b606482015260840162000eb4565b60006001600160a01b03821662001ead5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840162000eb4565b506001600160a01b03166000908152600a602052604090205490565b6014546001600160a01b0316331462001ef65760405162461bcd60e51b815260040162000eb49062004a0f565b62001a14600062003499565b6014546001600160a01b0316331462001f2f5760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff161562001f5c5760405162461bcd60e51b815260040162000eb49062004a44565b601f805460ff60a01b1916600160a01b179055565b62001f9d7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620020b8565b620020115760405162461bcd60e51b815260206004820152603e60248201527f4552433732315072657365744d696e7465725061757365724175746f49643a2060448201527f6d75737420686176652070617573657220726f6c6520746f2070617573650000606482015260840162000eb4565b62001a14620034eb565b600082815260036020526040812062002035908362003569565b9392505050565b6014546001600160a01b03163314620020695760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600160a01b900460ff1615620020965760405162461bcd60e51b815260040162000eb49062004a44565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606008805462000f619062004a7b565b600260005414156200211a5760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051630ebd542760e21b815273267b3c094d58875d0be4611c9c62180117f43da790633af5509c906200215c9060049086908690830162004c7f565b60006040518083038186803b1580156200217557600080fd5b505af41580156200218a573d6000803e3d6000fd5b5050600160005550505050565b6001600160a01b038216331415620021f25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640162000eb4565b336000818152600c602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060601b80548060200260200160405190810160405280929190818152602001828054801562000fe057602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831162002299575050505050905090565b601f54600190600160a81b900460ff168015620022db5750805b80620022fb5750601f54600160a81b900460ff16158015620022fb575080155b6200231a5760405162461bcd60e51b815260040162000eb49062004ab2565b620023467f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620020b8565b6200238d5760405162461bcd60e51b815260206004820152601660248201527527b7363c9036b4b73a32b9399031b0b71033b4b33a1760511b604482015260640162000eb4565b620023988262002d1d565b15620023e75760405162461bcd60e51b815260206004820181905260248201527f5468697320746f6b656e20616c72656164792068617320616e206f776e65722e604482015260640162000eb4565b601d5482106200243a5760405162461bcd60e51b815260206004820152601c60248201527f5468697320746f6b656e2063616e6e6f74206265206769667465642e00000000604482015260640162000eb4565b620024458362003039565b506200245283836200327a565b6001600160a01b03838116600081815260176020908152604080832054878452601883529281902080546001600160a01b0319169390951692909217909355516001815290917fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab457057377910160405180910390a2505050565b6014546001600160a01b03163314620024f55760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff1680156200250f5750805b806200252f5750601f54600160a81b900460ff161580156200252f575080155b6200254e5760405162461bcd60e51b815260040162000eb49062004ab2565b81518351146200259d5760405162461bcd60e51b815260206004820152601960248201527826b4b9b6b0ba31b432b21030b93930bc903632b733ba34399760391b604482015260640162000eb4565b60005b83518110156200273b57620025d1838281518110620025c357620025c362004c4b565b602002602001015162003039565b5062002616838281518110620025eb57620025eb62004c4b565b602002602001015185838151811062002608576200260862004c4b565b60200260200101516200327a565b601760008483815181106200262f576200262f62004c4b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166018600086848151811062002684576200268462004c4b565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550828181518110620026d357620026d362004c4b565b60200260200101516001600160a01b03167fda2aa9cef804282a46da79dcae2d8e721e91668fbc87339470e50ab45705737760016040516200271e919060ff91909116815260200190565b60405180910390a280620027328162004c61565b915050620025a0565b50505050565b6000818152601860205260408082205481516309710f3160e21b815291516001600160a01b03909116916325c43cc49160048083019286929190829003018186803b1580156200279057600080fd5b505afa158015620027a5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620027cf919081019062004ce0565b600181518110620027e457620027e462004c4b565b60200260200101519050919050565b620027ff338362002daa565b6200281e5760405162461bcd60e51b815260040162000eb49062004b51565b6200273b8484848462003577565b6060816200283a8162002d1d565b620028595760405162461bcd60e51b815260040162000eb49062004ae9565b6000601e80546200286a9062004a7b565b9050116200288857604051806020016040528060008152506200295e565b62002892620035b1565b601f546001600160a01b0316620028b457620028ae84620035c2565b6200293b565b601f5460405160016208b10d60e41b03198152600481018690526001600160a01b039091169063ff74ef309060240160006040518083038186803b158015620028fc57600080fd5b505afa15801562002911573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200293b919081019062004d84565b6040516020016200294e92919062004e03565b6040516020818303038152906040525b91505b50919050565b600081815260036020526040812062000e8190620036d7565b620018b88282620036e2565b6014546001600160a01b03163314620029b95760405162461bcd60e51b815260040162000eb49062004a0f565b805162001c7390601b9060208401906200427d565b6014546001600160a01b03163314620029fb5760405162461bcd60e51b815260040162000eb49062004a0f565b601f54600090600160a81b900460ff16801562002a155750805b8062002a355750601f54600160a81b900460ff1615801562002a35575080155b62002a545760405162461bcd60e51b815260040162000eb49062004ab2565b8251845114801562002a67575081518451145b62002ab15760405162461bcd60e51b815260206004820152601960248201527826b4b9b6b0ba31b432b21030b93930bc903632b733ba34399760391b604482015260640162000eb4565b60005b845181101562002b445762002b2f84828151811062002ad75762002ad762004c4b565b602002602001015184838151811062002af45762002af462004c4b565b602002602001015187848151811062002b115762002b1162004c4b565b60200260200101516040518060200160405280600081525062003577565b8062002b3b8162004c61565b91505062002ab4565b5050505050565b6001600160a01b0381166000908152601c602052604081205460ff161562002b765750600162000e81565b6001600160a01b038084166000908152600c602090815260408083209386168352929052205460ff1662002035565b6014546001600160a01b0316331462002bd25760405162461bcd60e51b815260040162000eb49062004a0f565b6001600160a01b03811662002c395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000eb4565b62001ab08162003499565b6002600054141562002c6a5760405162461bcd60e51b815260040162000eb49062004c14565b6002600055604051630b12ec5d60e11b81526004808201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790631625d8ba9060440162001b20565b62001c7382826200370c565b600062002035836001600160a01b03841662003796565b60006001600160e01b0319821663152a902d60e11b148062000e8157506301ffc9a760e01b6001600160e01b031983161462000e81565b600062000e8182620037e8565b6000908152600960205260409020546001600160a01b0316151590565b6000818152600b6020526040902080546001600160a01b0319166001600160a01b038416908117909155819062002d718262001d72565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600062002db78262002d1d565b62002e1a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000eb4565b600062002e278362001d72565b9050806001600160a01b0316846001600160a01b0316148062002e655750836001600160a01b031662002e5a8462000fea565b6001600160a01b0316145b8062002e78575062002e78818562002b4b565b949350505050565b826001600160a01b031662002e958262001d72565b6001600160a01b03161462002eff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840162000eb4565b6001600160a01b03821662002f635760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840162000eb4565b62002f7083838362003810565b62002f7d60008262002d3a565b6001600160a01b0383166000908152600a6020526040812080546001929062002fa890849062004e46565b90915550506001600160a01b0382166000908152600a6020526040812080546001929062002fd890849062004b36565b909155505060008181526009602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038181166000908152601760205260408120549091166200325b57604080516002808252606082018352600092602083019080368337019050509050601660039054906101000a90046001600160a01b031681600081518110620030a857620030a862004c4b565b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110620030df57620030df62004c4b565b6001600160a01b039290921660209283029190910182015260408051600280825260608201835260009391929091830190803683370190505090506113888160008151811062003133576200313362004c4b565b602002602001019061ffff16908161ffff16815250506113888160018151811062003162576200316262004c4b565b602002602001019061ffff16908161ffff168152505060003083836040516200318b90620042d5565b620031999392919062004e60565b604051809103906000f080158015620031b6573d6000803e3d6000fd5b506001600160a01b03868116600081815260176020908152604080832080549587166001600160a01b03199687168117909155601a805460018101825594527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e909301805490951683179094559251908152929350917f0709f79330a223d395f8a752fedadcae5ae1a9aea13da43adc3091f7ce20c483910160405180910390a25050505b506001600160a01b039081166000908152601760205260409020541690565b62001c738282604051806020016040528060008152506200381d565b600082815260026020526040902060010154620032b4813362003857565b6200121b83836200370c565b6001600160a01b0381163314620033325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840162000eb4565b62001c738282620038c6565b600062002035836001600160a01b03841662003930565b60115460ff16620033a05760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000eb4565b6011805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000620033f78262001d72565b9050620034078160008462003810565b6200341460008362002d3a565b6001600160a01b0381166000908152600a602052604081208054600192906200343f90849062004e46565b909155505060008281526009602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60115460ff1615620035335760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000eb4565b6011805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620033cd3390565b600062002035838362003a34565b6200358484848462002e80565b620035928484848462003a61565b6200273b5760405162461bcd60e51b815260040162000eb49062004ec0565b6060601e805462000f619062004a7b565b606081620035e75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115620036175780620035fe8162004c61565b91506200360f9050600a8362004bfd565b9150620035eb565b6000816001600160401b0381111562003634576200363462004540565b6040519080825280601f01601f1916602001820160405280156200365f576020820181803683370190505b5090505b841562002e78576200367760018362004e46565b915062003686600a8662004f12565b6200369390603062004b36565b60f81b818381518110620036ab57620036ab62004c4b565b60200101906001600160f81b031916908160001a905350620036cf600a8662004bfd565b945062003663565b600062000e81825490565b60008281526002602052604090206001015462003700813362003857565b6200121b8383620038c6565b620037188282620020b8565b62001c735760008281526002602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620037523390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620037df5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000e81565b50600062000e81565b60006001600160e01b0319821663780e9d6360e01b148062000e81575062000e818262003b7c565b6200121b83838362003bc0565b62003829838362003c36565b62003838600084848462003a61565b6200121b5760405162461bcd60e51b815260040162000eb49062004ec0565b620038638282620020b8565b62001c73576200387e816001600160a01b0316601462003d7f565b6200388b83602062003d7f565b6040516020016200389e92919062004f29565b60408051601f198184030181529082905262461bcd60e51b825262000eb491600401620043b4565b620038d28282620020b8565b1562001c735760008281526002602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801562003a295760006200395760018362004e46565b85549091506000906200396d9060019062004e46565b9050818114620039d957600086600001828154811062003991576200399162004c4b565b9060005260206000200154905080876000018481548110620039b757620039b762004c4b565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080620039ed57620039ed62004fa2565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505062000e81565b600091505062000e81565b600082600001828154811062003a4e5762003a4e62004c4b565b9060005260206000200154905092915050565b60006001600160a01b0384163b1562003b7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062003aa890339089908890889060040162004fb8565b602060405180830381600087803b15801562003ac357600080fd5b505af192505050801562003af6575060408051601f3d908101601f1916820190925262003af39181019062004ff7565b60015b62003b56573d80801562003b27576040519150601f19603f3d011682016040523d82523d6000602084013e62003b2c565b606091505b50805162003b4e5760405162461bcd60e51b815260040162000eb49062004ec0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062002e78565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b148062003bae57506001600160e01b03198216635b5e139f60e01b145b8062000e81575062000e818262003f38565b62003bcd83838362003f60565b60115460ff16156200121b5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840162000eb4565b6001600160a01b03821662003c8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000eb4565b62003c998162002d1d565b1562003ce85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000eb4565b62003cf66000838362003810565b6001600160a01b0382166000908152600a6020526040812080546001929062003d2190849062004b36565b909155505060008181526009602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6060600062003d9083600262004ba2565b62003d9d90600262004b36565b6001600160401b0381111562003db75762003db762004540565b6040519080825280601f01601f19166020018201604052801562003de2576020820181803683370190505b509050600360fc1b8160008151811062003e005762003e0062004c4b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062003e325762003e3262004c4b565b60200101906001600160f81b031916908160001a905350600062003e5884600262004ba2565b62003e6590600162004b36565b90505b600181111562003ee7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062003e9d5762003e9d62004c4b565b1a60f81b82828151811062003eb65762003eb662004c4b565b60200101906001600160f81b031916908160001a90535060049490941c9362003edf8162005017565b905062003e68565b508315620020355760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000eb4565b60006001600160e01b03198216635a05180f60e01b148062000e81575062000e818262004024565b6001600160a01b03831662003fbe5762003fb881600f80546000838152601060205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b62003fe4565b816001600160a01b0316836001600160a01b03161462003fe45762003fe483826200404c565b6001600160a01b03821662003ffe576200121b81620040ee565b826001600160a01b0316826001600160a01b0316146200121b576200121b8282620041a8565b60006001600160e01b03198216637965db0b60e01b148062000e81575062000e818262002cd9565b600060016200405b8462001e40565b62004067919062004e46565b6000838152600e6020526040902054909150808214620040bb576001600160a01b0384166000908152600d602090815260408083208584528252808320548484528184208190558352600e90915290208190555b506000918252600e602090815260408084208490556001600160a01b039094168352600d81528383209183525290812055565b600f54600090620041029060019062004e46565b600083815260106020526040812054600f80549394509092849081106200412d576200412d62004c4b565b9060005260206000200154905080600f838154811062004151576200415162004c4b565b600091825260208083209091019290925582815260109091526040808220849055858252812055600f8054806200418c576200418c62004fa2565b6001900381819060005260206000200160009055905550505050565b6000620041b58362001e40565b6001600160a01b039093166000908152600d602090815260408083208684528252808320859055938252600e9052919091209190915550565b828054620041fc9062004a7b565b90600052602060002090601f0160209004810192826200422057600085556200426b565b82601f106200423b57805160ff19168380011785556200426b565b828001600101855582156200426b579182015b828111156200426b5782518255916020019190600101906200424e565b5062004279929150620042e3565b5090565b8280548282559060005260206000209081019282156200426b579160200282015b828111156200426b57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200429e565b610d9f806200503283390190565b5b80821115620042795760008155600101620042e4565b6001600160e01b03198116811462001ab057600080fd5b6000602082840312156200432457600080fd5b81356200203581620042fa565b6000602082840312156200434457600080fd5b813561ffff811681146200203557600080fd5b60005b83811015620043745781810151838201526020016200435a565b838111156200273b5750506000910152565b60008151808452620043a081602086016020860162004357565b601f01601f19169290920160200192915050565b60208152600062002035602083018462004386565b600060208284031215620043dc57600080fd5b5035919050565b6001600160a01b038116811462001ab057600080fd5b600080604083850312156200440d57600080fd5b82356200441a81620043e3565b946020939093013593505050565b6000806000606084860312156200443e57600080fd5b83356200444b81620043e3565b925060208401356200445d81620043e3565b929592945050506040919091013590565b6000602082840312156200448157600080fd5b813560ff811681146200203557600080fd5b60008060408385031215620044a757600080fd5b50508035926020909101359150565b60008060408385031215620044ca57600080fd5b823591506020830135620044de81620043e3565b809150509250929050565b60008060408385031215620044fd57600080fd5b82356200450a81620043e3565b915060208301358015158114620044de57600080fd5b6000602082840312156200453357600080fd5b81356200203581620043e3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562004581576200458162004540565b604052919050565b60006001600160401b03821115620045a557620045a562004540565b50601f01601f191660200190565b6000620045ca620045c48462004589565b62004556565b9050828152838383011115620045df57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156200460957600080fd5b81356001600160401b038111156200462057600080fd5b8201601f810184136200463257600080fd5b62002e7884823560208401620045b3565b6000806000606084860312156200465957600080fd5b83356200466681620043e3565b95602085013595506040909401359392505050565b60006001600160401b0382111562004697576200469762004540565b5060051b60200190565b600082601f830112620046b357600080fd5b81356020620046c6620045c4836200467b565b82815260059290921b84018101918181019086841115620046e657600080fd5b8286015b84811015620047035780358352918301918301620046ea565b509695505050505050565b600080604083850312156200472257600080fd5b82356200472f81620043e3565b915060208301356001600160401b038111156200474b57600080fd5b6200475985828601620046a1565b9150509250929050565b600081518084526020808501945080840160005b838110156200479e5781516001600160a01b03168752958201959082019060010162004777565b509495945050505050565b60208152600062002035602083018462004763565b600082601f830112620047d057600080fd5b81356020620047e3620045c4836200467b565b82815260059290921b840181019181810190868411156200480357600080fd5b8286015b84811015620047035780356200481d81620043e3565b835291830191830162004807565b600080604083850312156200483f57600080fd5b82356001600160401b03808211156200485757600080fd5b6200486586838701620046a1565b935060208501359150808211156200487c57600080fd5b506200475985828601620047be565b60008060008060808587031215620048a257600080fd5b8435620048af81620043e3565b93506020850135620048c181620043e3565b92506040850135915060608501356001600160401b03811115620048e457600080fd5b8501601f81018713620048f657600080fd5b6200490787823560208401620045b3565b91505092959194509250565b6000602082840312156200492657600080fd5b81356001600160401b038111156200493d57600080fd5b62002e7884828501620047be565b6000806000606084860312156200496157600080fd5b83356001600160401b03808211156200497957600080fd5b6200498787838801620046a1565b945060208601359150808211156200499e57600080fd5b620049ac87838801620047be565b93506040860135915080821115620049c357600080fd5b50620049d286828701620047be565b9150509250925092565b60008060408385031215620049f057600080fd5b8235620049fd81620043e3565b91506020830135620044de81620043e3565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601b908201527f4c6f636b65643a20636f6e7472616374206973206c6f636b65642e0000000000604082015260600190565b600181811c9082168062004a9057607f821691505b602082108114156200296157634e487b7160e01b600052602260045260246000fd5b60208082526019908201527f496e76616c6964206d6967726174696f6e207374617475732e00000000000000604082015260600190565b6020808252601d908201527f5468697320746f6b656e20696420646f6573206e6f742065786973742e000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111562004b4c5762004b4c62004b20565b500190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600081600019048311821515161562004bbf5762004bbf62004b20565b500290565b600060ff821660ff81141562004bde5762004bde62004b20565b60010192915050565b634e487b7160e01b600052601260045260246000fd5b60008262004c0f5762004c0f62004be7565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060001982141562004c785762004c7862004b20565b5060010190565b8381526001600160a01b0383166020808301919091526060604083018190528351908301819052600091848101916080850190845b8181101562004cd25784518352938301939183019160010162004cb4565b509098975050505050505050565b6000602080838503121562004cf457600080fd5b82516001600160401b0381111562004d0b57600080fd5b8301601f8101851362004d1d57600080fd5b805162004d2e620045c4826200467b565b81815260059190911b8201830190838101908783111562004d4e57600080fd5b928401925b8284101562004d7957835162004d6981620043e3565b8252928401929084019062004d53565b979650505050505050565b60006020828403121562004d9757600080fd5b81516001600160401b0381111562004dae57600080fd5b8201601f8101841362004dc057600080fd5b805162004dd1620045c48262004589565b81815285602083850101111562004de757600080fd5b62004dfa82602083016020860162004357565b95945050505050565b6000835162004e1781846020880162004357565b83519083019062004e2d81836020880162004357565b64173539b7b760d91b9101908152600501949350505050565b60008282101562004e5b5762004e5b62004b20565b500390565b6001600160a01b03841681526060602080830182905260009162004e879084018662004763565b838103604085015284518082528286019183019060005b8181101562004cd257835161ffff168352928401929184019160010162004e9e565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008262004f245762004f2462004be7565b500690565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162004f6381601785016020880162004357565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162004f9681602884016020880162004357565b01602801949350505050565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062004fed9083018462004386565b9695505050505050565b6000602082840312156200500a57600080fd5b81516200203581620042fa565b60008162005029576200502962004b20565b50600019019056fe60a06040523480156200001157600080fd5b5060405162000d9f38038062000d9f83398101604081905262000034916200032e565b600160008190558251839183916200005291906020850190620000f6565b5080516200006890600290602084019062000160565b506003805461ffff1916612710179055604051630569d7ef60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da790630ad3afde9060240160006040518083038186803b158015620000c457600080fd5b505af4158015620000d9573d6000803e3d6000fd5b5050506001600160a01b0390951660805250620004129350505050565b8280548282559060005260206000209081019282156200014e579160200282015b828111156200014e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000117565b506200015c92915062000206565b5090565b82805482825590600052602060002090600f016010900481019282156200014e5791602002820160005b83821115620001cc57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200018a565b8015620001fc5782816101000a81549061ffff0219169055600201602081600101049283019260010302620001cc565b50506200015c9291505b5b808211156200015c576000815560010162000207565b80516001600160a01b03811681146200023557600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200027b576200027b6200023a565b604052919050565b60006001600160401b038211156200029f576200029f6200023a565b5060051b60200190565b600082601f830112620002bb57600080fd5b81516020620002d4620002ce8362000283565b62000250565b82815260059290921b84018101918181019086841115620002f457600080fd5b8286015b848110156200032357805161ffff81168114620003155760008081fd5b8352918301918301620002f8565b509695505050505050565b6000806000606084860312156200034457600080fd5b6200034f846200021d565b602085810151919450906001600160401b03808211156200036f57600080fd5b818701915087601f8301126200038457600080fd5b815162000395620002ce8262000283565b81815260059190911b8301840190848101908a831115620003b557600080fd5b938501935b82851015620003de57620003ce856200021d565b82529385019390850190620003ba565b60408a01519097509450505080831115620003f857600080fd5b50506200040886828701620002a9565b9150509250925092565b6080516109726200042d6000396000606201526109726000f3fe6080604052600436106100595760003560e01c806325c43cc41461029b5780633ccfd60b146102c657806349df728c146102dd5780639bdedea5146102fd578063ec342ad01461031d578063feec756c1461034657600080fd5b366102965760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaf6d56d6040518163ffffffff1660e01b815260040160006040518083038186803b1580156100b957600080fd5b505afa1580156100cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526100f59190810190610698565b905060005b815181101561023f57600082828151811061011757610117610737565b60209081029190910101516040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a082319060240160206040518083038186803b15801561016757600080fd5b505afa15801561017b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019f919061074d565b111561022c57306001600160a01b03166349df728c8484815181106101c6576101c6610737565b60200260200101516040518263ffffffff1660e01b81526004016101f991906001600160a01b0391909116815260200190565b600060405180830381600087803b15801561021357600080fd5b505af1158015610227573d6000803e3d6000fd5b505050505b508061023781610766565b9150506100fa565b50306001600160a01b0316633ccfd60b6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561027b57600080fd5b505af115801561028f573d6000803e3d6000fd5b5050505050005b600080fd5b3480156102a757600080fd5b506102b0610366565b6040516102bd919061078f565b60405180910390f35b3480156102d257600080fd5b506102db6103cb565b005b3480156102e957600080fd5b506102db6102f83660046107dc565b610466565b34801561030957600080fd5b506102db610318366004610800565b610509565b34801561032957600080fd5b5061033361271081565b60405161ffff90911681526020016102bd565b34801561035257600080fd5b506102db6103613660046107dc565b6105a6565b606060016000018054806020026020016040519081016040528092919081815260200182805480156103c157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116103a3575b5050505050905090565b600260005414156103f75760405162461bcd60e51b81526004016103ee906108a6565b60405180910390fd5b6002600055604051631c368f5b60e11b81526001600482015273267b3c094d58875d0be4611c9c62180117f43da79063386d1eb69060240160006040518083038186803b15801561044757600080fd5b505af415801561045b573d6000803e3d6000fd5b505060016000555050565b600260005414156104895760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051636ec2a42360e01b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790636ec2a423906044015b60006040518083038186803b1580156104e957600080fd5b505af41580156104fd573d6000803e3d6000fd5b50506001600055505050565b6002600054141561052c5760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630ebd542760e21b815273267b3c094d58875d0be4611c9c62180117f43da790633af5509c9061056d90600190869086906004016108dd565b60006040518083038186803b15801561058557600080fd5b505af4158015610599573d6000803e3d6000fd5b5050600160005550505050565b600260005414156105c95760405162461bcd60e51b81526004016103ee906108a6565b6002600055604051630b12ec5d60e11b8152600160048201526001600160a01b038216602482015273267b3c094d58875d0be4611c9c62180117f43da790631625d8ba906044016104d1565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561065457610654610615565b604052919050565b600067ffffffffffffffff82111561067657610676610615565b5060051b60200190565b6001600160a01b038116811461069557600080fd5b50565b600060208083850312156106ab57600080fd5b825167ffffffffffffffff8111156106c257600080fd5b8301601f810185136106d357600080fd5b80516106e66106e18261065c565b61062b565b81815260059190911b8201830190838101908783111561070557600080fd5b928401925b8284101561072c57835161071d81610680565b8252928401929084019061070a565b979650505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561075f57600080fd5b5051919050565b600060001982141561078857634e487b7160e01b600052601160045260246000fd5b5060010190565b6020808252825182820181905260009190848201906040850190845b818110156107d05783516001600160a01b0316835292840192918401916001016107ab565b50909695505050505050565b6000602082840312156107ee57600080fd5b81356107f981610680565b9392505050565b6000806040838503121561081357600080fd5b823561081e81610680565b915060208381013567ffffffffffffffff81111561083b57600080fd5b8401601f8101861361084c57600080fd5b803561085a6106e18261065c565b81815260059190911b8201830190838101908883111561087957600080fd5b928401925b828410156108975783358252928401929084019061087e565b80955050505050509250929050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8381526001600160a01b0383166020808301919091526060604083018190528351908301819052600091848101916080850190845b8181101561092e57845183529383019391830191600101610912565b50909897505050505050505056fea2646970667358221220160fdc0a7ed8503026792579cf78ebb75878228553532fd768a079f3bb1b36fd64736f6c63430008090033a2646970667358221220fe1a59244aac7e2a30afa5521c94c53eb819acf54c4f21f2e5547807a5df67f064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000d8d726b7177a800000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f706f7274616c68656164732e6d7970696e6174612e636c6f75642f697066732f516d577a32336764366e4a314b6371336e75623231424b394366646470433647446e5945503747666935785350532f000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000007bec284d94a6ae981b03e9b8fcf8a6cad97e6ca000000000000000000000000ce1db19c21da28b70fb663ec0c49c8c8e69a16da00000000000000000000000009be68823d2a7a22be569816c9b2c104628545cf00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000001d4c00000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000200000000000000000000000085dec8c4b2680793661bca91a8f129607571863d00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83
-----Decoded View---------------
Arg [0] : _tokenBaseURI (string): https://portalheads.mypinata.cloud/ipfs/QmWz23gd6nJ1Kcq3nub21BK9CfddpC6GDnYEP7Gfi5xSPS/
Arg [1] : _mintPrice (uint256): 250000000000000000000
Arg [2] : _maxPerMint (uint8): 20
Arg [3] : _maxSupply (uint16): 10000
Arg [4] : _recipients (address[]): 0x07BEC284d94A6ae981b03E9b8FCF8a6cad97E6ca,0xce1DB19c21da28B70FB663EC0c49C8C8e69a16DA,0x09BE68823D2A7a22Be569816c9b2c104628545cF
Arg [5] : _splits (uint16[]): 7500,1250,1250
Arg [6] : _royaltySplits (uint16[]): 8000,1000,1000
Arg [7] : _royalty (uint16): 500
Arg [8] : _erc20Tokens (address[]): 0x85dec8c4B2680793661bCA91a8F129607571863d,0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83
-----Encoded View---------------
28 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000000000d8d726b7177a80000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [10] : 68747470733a2f2f706f7274616c68656164732e6d7970696e6174612e636c6f
Arg [11] : 75642f697066732f516d577a32336764366e4a314b6371336e75623231424b39
Arg [12] : 4366646470433647446e5945503747666935785350532f000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [14] : 00000000000000000000000007bec284d94a6ae981b03e9b8fcf8a6cad97e6ca
Arg [15] : 000000000000000000000000ce1db19c21da28b70fb663ec0c49c8c8e69a16da
Arg [16] : 00000000000000000000000009be68823d2a7a22be569816c9b2c104628545cf
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [18] : 0000000000000000000000000000000000000000000000000000000000001d4c
Arg [19] : 00000000000000000000000000000000000000000000000000000000000004e2
Arg [20] : 00000000000000000000000000000000000000000000000000000000000004e2
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [22] : 0000000000000000000000000000000000000000000000000000000000001f40
Arg [23] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [24] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [26] : 00000000000000000000000085dec8c4b2680793661bca91a8f129607571863d
Arg [27] : 00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.