ERC-721
NFT
Overview
Max Total Supply
280 XRVR
Holders
69
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 XRVRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract contains unverified libraries: __CACHE_BREAKER__
Contract Name:
XRaver
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // __ __ _______ // / | / |/ \ // $$ | $$ |$$$$$$$ | ______ __ __ ______ ______ _______ // $$ \/$$/ $$ |__$$ | / \ / \ / |/ \ / \ / | // $$ $$< $$ $$< $$$$$$ |$$ \ /$$//$$$$$$ |/$$$$$$ |/$$$$$$$/ // $$$$ \ $$$$$$$ | / $$ | $$ /$$/ $$ $$ |$$ | $$/ $$ \ // $$ /$$ |$$ | $$ |/$$$$$$$ | $$ $$/ $$$$$$$$/ $$ | $$$$$$ | // $$ | $$ |$$ | $$ |$$ $$ | $$$/ $$ |$$ | / $$/ // $$/ $$/ $$/ $$/ $$$$$$$/ $/ $$$$$$$/ $$/ $$$$$$$/ // pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./@rarible/royalties/contracts/impl/SingleRoyaltiesV2Impl.sol"; import "./@rarible/royalties/contracts/LibPart.sol"; import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol"; import "./MintCooldown.sol"; /** * @title XRaver contract * @dev Extends ERC721 Enumerable Non-Fungible Token Standard basic implementation */ contract XRaver is MintCooldown, ERC721Enumerable, Ownable, SingleRoyaltiesV2Impl { uint256 public immutable MAX_XRAVERS; uint256 public immutable MAX_PURCHASE_COUNT; uint256 public constant RESERVED_MINT_LIMIT = 50; uint256 public constant RESERVED_XRAVERS = 100; uint256 public constant PRICE_MUTATE_DELTA = 10000000000000000; // 0.01 ETH uint256 public constant XRAVER_PRICE = 40000000000000000; // 0.04 ETH uint96 public constant ROYALTY = 1000; // 10% bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; uint256 public constant SHARE_DENOMINATOR = 10000; bool public saleIsActive; string public uri; uint256 private _reserveCursor; uint256 private _mutateCursor; mapping(uint256 => uint256) private _mutateIndexer; bool public mutateSet; struct StakeHolder { address payable addr; uint256 share; } StakeHolder[] private _stakeHolders; constructor( string memory name_, string memory symbol_, string memory uri_, uint256 _maxXravers, uint256 _maxPurchaseCount, address payable royaltyOwner_, StakeHolder[] memory stakeHolders_ ) ERC721(name_, symbol_) { require(_maxXravers > RESERVED_XRAVERS, "XRaver: INSUFFICIENT_COUNT"); MAX_XRAVERS = _maxXravers; MAX_PURCHASE_COUNT = _maxPurchaseCount; uri = uri_; _setOwnerRoyalties(royaltyOwner_); _updateStakeHolders(stakeHolders_); } function _updateStakeHolders(StakeHolder[] memory stakeHolders_) private { uint256 totalShare; for (uint256 i = 0; i < stakeHolders_.length; i++) { StakeHolder memory sh = stakeHolders_[i]; totalShare += sh.share; _stakeHolders.push(sh); } require(totalShare <= SHARE_DENOMINATOR, "XRaver: WRONG_SHARES"); } // NOTE: You need to understand what u are doing // executed only once function setMutates( uint256[] calldata mutateIndexes_, uint256[] calldata mutateCounts_ ) public onlyOwner { require(!mutateSet, "XRaver: ALREADY_SET"); require(mutateIndexes_.length != 0, "XRaver: EMPTY_LIST"); require( mutateIndexes_.length == mutateCounts_.length, "XRaver: WORNG_LENGTH" ); for (uint256 i = 0; i < mutateIndexes_.length; i++) { _mutateIndexer[mutateIndexes_[i]] = mutateCounts_[i]; } mutateSet = true; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable) returns (bool) { if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) { return true; } if (interfaceId == _INTERFACE_ID_ERC2981) { return true; } return super.supportsInterface(interfaceId); } function getStakeHolders() public view returns (address[] memory addrs) { addrs = new address[](_stakeHolders.length); for (uint256 i = 0; i < _stakeHolders.length; i++) { addrs[i] = _stakeHolders[i].addr; } } /** * Withdraw ethers from the mint */ function withdraw() public onlyOwner { uint256 amount = address(this).balance; for (uint256 i = 0; i < _stakeHolders.length; i++) { StakeHolder memory sh = _stakeHolders[i]; // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = sh.addr.call{ value: (amount * sh.share) / SHARE_DENOMINATOR }(""); require(success, "XRaver: SEND_REVERT"); } } /* * Pause sale if active, make active if paused */ function flipSaleState() public onlyOwner { saleIsActive = !saleIsActive; } function calculatePrice(uint256 numberOfTokens) public view returns (uint256 price) { require(numberOfTokens != 0, "XRaver: MINT_MIN_AT_LEAST_ONE"); uint256 supply = totalSupply(); uint256 cursor = _mutateCursor; // copy for (uint256 i = 0; i < numberOfTokens; i++) { // mutate price if it get new cycle uint256 indexer = _mutateIndexer[cursor]; if (indexer != 0 && (supply + i) % indexer == 0) { cursor++; } } price = numberOfTokens * (XRAVER_PRICE + PRICE_MUTATE_DELTA * cursor); } /** * Mints X Ravers */ function mint(uint256 numberOfTokens) public payable onCooldown(MAX_PURCHASE_COUNT, numberOfTokens) { require(saleIsActive, "XRaver: SALE_NOT_ACTIVE"); require(numberOfTokens != 0, "XRaver: MINT_MIN_AT_LEAST_ONE"); require( totalSupply() >= RESERVED_XRAVERS, "XRaver: RESERVE_NOT_MINTED" ); require( totalSupply() + numberOfTokens <= MAX_XRAVERS, "XRaver: TOTAL_SUPPLY_OVERFLOW" ); uint256 price; uint256 supply = totalSupply(); for (uint256 i = 0; i < numberOfTokens; i++) { // mutate price if it get new cycle uint256 indexer = _mutateIndexer[_mutateCursor]; if (indexer != 0 && (supply + i) % indexer == 0) { _mutateCursor++; } price += XRAVER_PRICE + PRICE_MUTATE_DELTA * _mutateCursor; _safeMint(_msgSender(), supply + i); } require(price <= msg.value, "XRaver: NOT_ENOUGH_ETHER"); // return rest amount if (price < msg.value) { payable(_msgSender()).transfer(msg.value - price); } } /** * Get royalty info */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { LibPart.Part[] memory _royalties = _getRoyalties(); if (_royalties.length > 0) { return ( _royalties[0].account, (_salePrice * _royalties[0].value) / 10000 ); } return (address(0), 0); } /** * Change owner for royalty, expensive transaction */ function changeRoyaltyOwner(address payable newRoyaltyOwner) public onlyOwner { require(newRoyaltyOwner != address(0), "XRaver: ZERO_OWNER"); _updateAccountRoyalties(newRoyaltyOwner); } /** * Set some XRavers aside for fantom, dev team and promo */ function reserve() external onlyOwner { uint256 supply = totalSupply(); require(supply < RESERVED_XRAVERS, "XRaver: FULL_RESERVE"); for (uint256 i = 0; i < RESERVED_MINT_LIMIT; i++) { _safeMint(_msgSender(), supply + i); } } /** * Modify URI */ function setBaseURI(string memory uri_) external onlyOwner { uri = uri_; } /** * @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 override returns (string memory) { return uri; } function _setOwnerRoyalties(address royaltyAddress) internal { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0].value = ROYALTY; _royalties[0].account = payable(royaltyAddress); _saveRoyalties(_royalties); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../RoyaltiesV2.sol"; contract SingleRoyaltiesV2Impl is RoyaltiesV2 { LibPart.Part internal royalty; function getRaribleV2Royalties(uint256 id) external view override returns (LibPart.Part[] memory) { return _getRoyalties(); } function royaltyOwner() public view returns (address) { return royalty.account; } function _getRoyalties() internal view returns (LibPart.Part[] memory) { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0] = royalty; return _royalties; } function _saveRoyalties(LibPart.Part[] memory _royalties) internal { require(royalty.account == address(0), "RoyaltiesV2Impl: ALREADY_SET"); require( _royalties.length == 1, "RoyaltiesV2Impl: ONLY_ONE_MASTERWALLET_ALLOWED" ); LibPart.Part memory _royalty = _royalties[0]; require( _royalty.account != address(0x0), "Recipient should be present" ); require(_royalty.value != 0, "Royalty value should be positive"); require( _royalty.value < 10000, "Royalty total value should be < 10000" ); royalty = _royalty; emit RoyaltiesSet(0, _royalties); } function _updateAccountRoyalties(address payable _to) internal { require( royalty.account != address(0), "RoyaltiesV2Impl: ROYALTIES_NOT_SET" ); royalty.account = _to; } function _onRoyaltiesSet(uint256 id) internal { require( royalty.account != address(0), "RoyaltiesV2Impl: ROYALTIES_NOT_SET" ); emit RoyaltiesSet(id, _getRoyalties()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./LibPart.sol"; interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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; library LibRoyaltiesV2 { /* * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent mint calls per limit by tx to a function. * * Inheriting from `MintCooldown` will make the {onCooldown} modifier * available, which can be applied to functions to make sure there are no more mint * (cooldown) calls to them. */ contract MintCooldown { mapping(address => mapping(uint256 => uint256)) private _counter; modifier onCooldown(uint256 limit, uint256 count) { // Verify limit (not mandatory, but will prevent some gas costs) require(count <= limit, "MintCooldown: MINT_LIMIT_OVERFLOW"); // Preserve cache address sender = tx.origin; uint256 blockNumber = block.number; // Get current cooldown for origin sender and current block uint256 current = _counter[sender][blockNumber]; // If limit overflow, abort the tx require(current + count <= limit, "MintCooldown: TX_MINT_COOLDOWN"); // Update before execution (for reentrancy) _counter[sender][blockNumber] += count; _; } }
// 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 "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "./IMint.sol"; contract FastAndFuriousMinter is IERC721Receiver { receive() external payable {} function massMint( address nftAddr, uint256 count, uint256 price ) public payable { IMint nft = IMint(nftAddr); for (uint256 i = 0; i < count; i++) { nft.mint{value: 1 * price}(1); } } function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external pure override returns (bytes4) { return bytes4( keccak256("onERC721Received(address,address,uint256,bytes)") ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IMint { function mint(uint256 numberOfTokens) external payable; }
{ "optimizer": { "enabled": true, "runs": 400 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": { "": { "__CACHE_BREAKER__": "0x00000000d41867734bbee4c6863d9255b2b06ac1" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"_maxXravers","type":"uint256"},{"internalType":"uint256","name":"_maxPurchaseCount","type":"uint256"},{"internalType":"address payable","name":"royaltyOwner_","type":"address"},{"components":[{"internalType":"address payable","name":"addr","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"internalType":"struct XRaver.StakeHolder[]","name":"stakeHolders_","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PURCHASE_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_XRAVERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_MUTATE_DELTA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_XRAVERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHARE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XRAVER_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newRoyaltyOwner","type":"address"}],"name":"changeRoyaltyOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","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":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakeHolders","outputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mutateSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyOwner","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256[]","name":"mutateIndexes_","type":"uint256[]"},{"internalType":"uint256[]","name":"mutateCounts_","type":"uint256[]"}],"name":"setMutates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b50604051620039fb380380620039fb8339810160408190526200003491620007f5565b8651879087906200004d906001906020850190620005de565b50805162000063906002906020840190620005de565b505050620000806200007a6200011960201b60201c565b6200011d565b60648411620000d65760405162461bcd60e51b815260206004820152601a60248201527f5852617665723a20494e53554646494349454e545f434f554e5400000000000060448201526064015b60405180910390fd5b608084905260a08390528451620000f590600e906020880190620005de565b5062000101826200016f565b6200010c816200022b565b5050505050505062000a56565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081620001865790505090506103e881600081518110620001c957620001c962000a2a565b6020026020010151602001906001600160601b031690816001600160601b031681525050818160008151811062000204576200020462000a2a565b60209081029190910101516001600160a01b03909116905262000227816200035e565b5050565b6000805b82518110156200030957600083828151811062000250576200025062000a2a565b602002602001015190508060200151836200026c91906200099e565b6013805460018101825560009190915282517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090600290920291820180546001600160a01b0319166001600160a01b039092169190911790556020909201517f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a091909201919091559150806200030081620009f6565b9150506200022f565b50612710811115620002275760405162461bcd60e51b815260206004820152601460248201527f5852617665723a2057524f4e475f5348415245530000000000000000000000006044820152606401620000cd565b600c546001600160a01b031615620003b95760405162461bcd60e51b815260206004820152601c60248201527f526f79616c746965735632496d706c3a20414c52454144595f534554000000006044820152606401620000cd565b8051600114620004235760405162461bcd60e51b815260206004820152602e60248201527f526f79616c746965735632496d706c3a204f4e4c595f4f4e455f4d415354455260448201526d15d05313115517d0531313d5d15160921b6064820152608401620000cd565b6000816000815181106200043b576200043b62000a2a565b6020026020010151905060006001600160a01b031681600001516001600160a01b03161415620004ae5760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e7400000000006044820152606401620000cd565b60208101516001600160601b03166200050a5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f7369746976656044820152606401620000cd565b61271081602001516001600160601b031610620005785760405162461bcd60e51b815260206004820152602560248201527f526f79616c747920746f74616c2076616c75652073686f756c64206265203c20604482015264031303030360dc1b6064820152608401620000cd565b805160208201516001600160601b0316600160a01b026001600160a01b0390911617600c556040517f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df90620005d2906000908590620008d4565b60405180910390a15050565b828054620005ec90620009b9565b90600052602060002090601f0160209004810192826200061057600085556200065b565b82601f106200062b57805160ff19168380011785556200065b565b828001600101855582156200065b579182015b828111156200065b5782518255916020019190600101906200063e565b50620006699291506200066d565b5090565b5b808211156200066957600081556001016200066e565b80516001600160a01b03811681146200069c57600080fd5b919050565b600082601f830112620006b357600080fd5b815160206001600160401b03821115620006d157620006d162000a40565b620006e1818360051b016200096b565b80838252828201915082860187848660061b89010111156200070257600080fd5b6000805b868110156200075257604080848c03121562000720578283fd5b6200072a62000940565b620007358562000684565b815284880151888201528652948601949092019160010162000706565b509198975050505050505050565b600082601f8301126200077257600080fd5b81516001600160401b038111156200078e576200078e62000a40565b6020620007a4601f8301601f191682016200096b565b8281528582848701011115620007b957600080fd5b60005b83811015620007d9578581018301518282018401528201620007bc565b83811115620007eb5760008385840101525b5095945050505050565b600080600080600080600060e0888a0312156200081157600080fd5b87516001600160401b03808211156200082957600080fd5b620008378b838c0162000760565b985060208a01519150808211156200084e57600080fd5b6200085c8b838c0162000760565b975060408a01519150808211156200087357600080fd5b620008818b838c0162000760565b965060608a0151955060808a015194506200089f60a08b0162000684565b935060c08a0151915080821115620008b657600080fd5b50620008c58a828b01620006a1565b91505092959891949750929550565b6000604080830185845260208281860152818651808452606087019150828801935060005b818110156200093257845180516001600160a01b031684528401516001600160601b0316848401529383019391850191600101620008f9565b509098975050505050505050565b604080519081016001600160401b038111828210171562000965576200096562000a40565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000996576200099662000a40565b604052919050565b60008219821115620009b457620009b462000a14565b500190565b600181811c90821680620009ce57607f821691505b60208210811415620009f057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000a0d5762000a0d62000a14565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160a051612f7162000a8a6000396000818161052001526112b20152600081816106e001526114cf0152612f716000f3fe6080604052600436106102715760003560e01c80637a5e952d11610149578063c87b56dd116100c6578063e6d2e7711161008a578063eb8d244411610064578063eb8d244414610793578063f2fde38b146107ad578063f7fecc27146107cd57600080fd5b8063e6d2e77114610720578063e985e9c514610735578063eac989f81461077e57600080fd5b8063c87b56dd1461066c578063cad96cca1461068c578063cd3293de146106b9578063d9d21052146106ce578063db5eb7021461070257600080fd5b806395d89b411161010d57806395d89b41146105e4578063a0712d68146105f9578063a22cb4651461060c578063ae1042651461062c578063b88d4fde1461064c57600080fd5b80637a5e952d146105425780637eb118451461056257806381fab8b1146105785780638704a208146105935780638da5cb5b146105c657600080fd5b80633374417c116101f25780634f6ccce7116101b657806370a082311161019057806370a08231146104d9578063715018a6146104f9578063752c0ace1461050e57600080fd5b80634f6ccce71461047957806355f804b3146104995780636352211e146104b957600080fd5b80633374417c146103ff57806334918dfd1461041a57806335b1f0031461042f5780633ccfd60b1461044457806342842e0e1461045957600080fd5b806318160ddd1161023957806318160ddd1461034757806323b872dd146103665780632a55205a146103865780632d0b3bbe146103c55780632f745c59146103df57600080fd5b806301ffc9a71461027657806306fdde03146102ab578063081812fc146102cd578063095ea7b3146103055780630f91325e14610327575b600080fd5b34801561028257600080fd5b50610296610291366004612b12565b6107ef565b60405190151581526020015b60405180910390f35b3480156102b757600080fd5b506102c0610842565b6040516102a29190612d1a565b3480156102d957600080fd5b506102ed6102e8366004612b95565b6108d4565b6040516001600160a01b0390911681526020016102a2565b34801561031157600080fd5b50610325610320366004612a7a565b61096e565b005b34801561033357600080fd5b50610325610342366004612930565b610a84565b34801561035357600080fd5b506009545b6040519081526020016102a2565b34801561037257600080fd5b50610325610381366004612986565b610b2e565b34801561039257600080fd5b506103a66103a1366004612bae565b610ba9565b604080516001600160a01b0390931683526020830191909152016102a2565b3480156103d157600080fd5b506012546102969060ff1681565b3480156103eb57600080fd5b506103586103fa366004612a7a565b610c3e565b34801561040b57600080fd5b50610358662386f26fc1000081565b34801561042657600080fd5b50610325610cd4565b34801561043b57600080fd5b50610358606481565b34801561045057600080fd5b50610325610d30565b34801561046557600080fd5b50610325610474366004612986565b610e95565b34801561048557600080fd5b50610358610494366004612b95565b610eb0565b3480156104a557600080fd5b506103256104b4366004612b4c565b610f43565b3480156104c557600080fd5b506102ed6104d4366004612b95565b610f9e565b3480156104e557600080fd5b506103586104f4366004612930565b611015565b34801561050557600080fd5b5061032561109c565b34801561051a57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b34801561054e57600080fd5b5061032561055d366004612aa6565b6110f0565b34801561056e57600080fd5b5061035861271081565b34801561058457600080fd5b50610358668e1bc9bf04000081565b34801561059f57600080fd5b506105a96103e881565b6040516bffffffffffffffffffffffff90911681526020016102a2565b3480156105d257600080fd5b50600b546001600160a01b03166102ed565b3480156105f057600080fd5b506102c06112a1565b610325610607366004612b95565b6112b0565b34801561061857600080fd5b50610325610627366004612a47565b6116a9565b34801561063857600080fd5b50610358610647366004612b95565b61176e565b34801561065857600080fd5b506103256106673660046129c7565b611864565b34801561067857600080fd5b506102c0610687366004612b95565b6118e6565b34801561069857600080fd5b506106ac6106a7366004612b95565b6119c1565b6040516102a29190612cb4565b3480156106c557600080fd5b506103256119cb565b3480156106da57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000081565b34801561070e57600080fd5b50600c546001600160a01b03166102ed565b34801561072c57600080fd5b50610358603281565b34801561074157600080fd5b5061029661075036600461294d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561078a57600080fd5b506102c0611a9c565b34801561079f57600080fd5b50600d546102969060ff1681565b3480156107b957600080fd5b506103256107c8366004612930565b611b2a565b3480156107d957600080fd5b506107e2611be0565b6040516102a29190612c67565b60006001600160e01b0319821663656cb66560e11b141561081257506001919050565b6001600160e01b0319821663152a902d60e11b141561083357506001919050565b61083c82611ca9565b92915050565b60606001805461085190612e18565b80601f016020809104026020016040519081016040528092919081815260200182805461087d90612e18565b80156108ca5780601f1061089f576101008083540402835291602001916108ca565b820191906000526020600020905b8154815290600101906020018083116108ad57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061097982610f9e565b9050806001600160a01b0316836001600160a01b031614156109e75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610949565b336001600160a01b0382161480610a035750610a038133610750565b610a755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610949565b610a7f8383611cce565b505050565b600b546001600160a01b03163314610acc5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6001600160a01b038116610b225760405162461bcd60e51b815260206004820152601260248201527f5852617665723a205a45524f5f4f574e455200000000000000000000000000006044820152606401610949565b610b2b81611d3c565b50565b610b383382611dc1565b610b9e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610949565b610a7f838383611eb4565b6000806000610bb661205f565b805190915015610c2e5780600081518110610bd357610bd3612ec4565b60200260200101516000015161271082600081518110610bf557610bf5612ec4565b6020026020010151602001516bffffffffffffffffffffffff1686610c1a9190612db6565b610c249190612da2565b9250925050610c37565b60008092509250505b9250929050565b6000610c4983611015565b8210610cab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610949565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600b546001600160a01b03163314610d1c5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b600d805460ff19811660ff90911615179055565b600b546001600160a01b03163314610d785760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b4760005b601354811015610e9157600060138281548110610d9b57610d9b612ec4565b600091825260208083206040805180820190915260029093020180546001600160a01b031680845260019091015491830182905291935061271090610de09087612db6565b610dea9190612da2565b604051600081818185875af1925050503d8060008114610e26576040519150601f19603f3d011682016040523d82523d6000602084013e610e2b565b606091505b5050905080610e7c5760405162461bcd60e51b815260206004820152601360248201527f5852617665723a2053454e445f524556455254000000000000000000000000006044820152606401610949565b50508080610e8990612e53565b915050610d7c565b5050565b610a7f83838360405180602001604052806000815250611864565b6000610ebb60095490565b8210610f1e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610949565b60098281548110610f3157610f31612ec4565b90600052602060002001549050919050565b600b546001600160a01b03163314610f8b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b8051610e9190600e9060208401906127e5565b6000818152600360205260408120546001600160a01b03168061083c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610949565b60006001600160a01b0382166110805760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610949565b506001600160a01b031660009081526004602052604090205490565b600b546001600160a01b031633146110e45760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6110ee60006120fb565b565b600b546001600160a01b031633146111385760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b60125460ff161561118b5760405162461bcd60e51b815260206004820152601360248201527f5852617665723a20414c52454144595f534554000000000000000000000000006044820152606401610949565b826111d85760405162461bcd60e51b815260206004820152601260248201527f5852617665723a20454d5054595f4c49535400000000000000000000000000006044820152606401610949565b8281146112275760405162461bcd60e51b815260206004820152601460248201527f5852617665723a20574f524e475f4c454e4754480000000000000000000000006044820152606401610949565b60005b8381101561128d5782828281811061124457611244612ec4565b905060200201356011600087878581811061126157611261612ec4565b90506020020135815260200190815260200160002081905550808061128590612e53565b91505061122a565b50506012805460ff19166001179055505050565b60606002805461085190612e18565b7f0000000000000000000000000000000000000000000000000000000000000000818181111561132c5760405162461bcd60e51b815260206004820152602160248201527f4d696e74436f6f6c646f776e3a204d494e545f4c494d49545f4f564552464c4f6044820152605760f81b6064820152608401610949565b3260008181526020818152604080832043808552925290912054846113518583612d8a565b111561139f5760405162461bcd60e51b815260206004820152601e60248201527f4d696e74436f6f6c646f776e3a2054585f4d494e545f434f4f4c444f574e00006044820152606401610949565b6001600160a01b038316600090815260208181526040808320858452909152812080548692906113d0908490612d8a565b9091555050600d5460ff166114275760405162461bcd60e51b815260206004820152601760248201527f5852617665723a2053414c455f4e4f545f4143544956450000000000000000006044820152606401610949565b856114745760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a204d494e545f4d494e5f41545f4c454153545f4f4e450000006044820152606401610949565b606461147f60095490565b10156114cd5760405162461bcd60e51b815260206004820152601a60248201527f5852617665723a20524553455256455f4e4f545f4d494e5445440000000000006044820152606401610949565b7f0000000000000000000000000000000000000000000000000000000000000000866114f860095490565b6115029190612d8a565b11156115505760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a20544f54414c5f535550504c595f4f564552464c4f570000006044820152606401610949565b60008061155c60095490565b905060005b8881101561160e57601054600090815260116020526040902054801580159061159c5750806115908385612d8a565b61159a9190612e6e565b155b156115b757601080549060006115b183612e53565b91905055505b6010546115cb90662386f26fc10000612db6565b6115dc90668e1bc9bf040000612d8a565b6115e69085612d8a565b93506115fb336115f68486612d8a565b61214d565b508061160681612e53565b915050611561565b503482111561165f5760405162461bcd60e51b815260206004820152601860248201527f5852617665723a204e4f545f454e4f5547485f455448455200000000000000006044820152606401610949565b3482101561169f57336108fc6116758434612dd5565b6040518115909202916000818181858888f1935050505015801561169d573d6000803e3d6000fd5b505b5050505050505050565b6001600160a01b0382163314156117025760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610949565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000816117bd5760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a204d494e545f4d494e5f41545f4c454153545f4f4e450000006044820152606401610949565b60006117c860095490565b60105490915060005b8481101561182f5760008281526011602052604090205480158015906118095750806117fd8386612d8a565b6118079190612e6e565b155b1561181c578261181881612e53565b9350505b508061182781612e53565b9150506117d1565b5061184181662386f26fc10000612db6565b61185290668e1bc9bf040000612d8a565b61185c9085612db6565b949350505050565b61186e3383611dc1565b6118d45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610949565b6118e084848484612167565b50505050565b6000818152600360205260409020546060906001600160a01b03166119655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b600061196f61219a565b9050600081511161198f57604051806020016040528060008152506119ba565b80611999846121a9565b6040516020016119aa929190612bfc565b6040516020818303038152906040525b9392505050565b606061083c61205f565b600b546001600160a01b03163314611a135760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6000611a1e60095490565b905060648110611a705760405162461bcd60e51b815260206004820152601460248201527f5852617665723a2046554c4c5f524553455256450000000000000000000000006044820152606401610949565b60005b6032811015610e9157611a8a336115f68385612d8a565b80611a9481612e53565b915050611a73565b600e8054611aa990612e18565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad590612e18565b8015611b225780601f10611af757610100808354040283529160200191611b22565b820191906000526020600020905b815481529060010190602001808311611b0557829003601f168201915b505050505081565b600b546001600160a01b03163314611b725760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6001600160a01b038116611bd75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610949565b610b2b816120fb565b60135460609067ffffffffffffffff811115611bfe57611bfe612eda565b604051908082528060200260200182016040528015611c27578160200160208202803683370190505b50905060005b601354811015611ca55760138181548110611c4a57611c4a612ec4565b600091825260209091206002909102015482516001600160a01b0390911690839083908110611c7b57611c7b612ec4565b6001600160a01b039092166020928302919091019091015280611c9d81612e53565b915050611c2d565b5090565b60006001600160e01b0319821663780e9d6360e01b148061083c575061083c826122bf565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d0382610f9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b0316611d9f5760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965735632496d706c3a20524f59414c544945535f4e4f545f53604482015261115560f21b6064820152608401610949565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260408120546001600160a01b0316611e3a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610949565b6000611e4583610f9e565b9050806001600160a01b0316846001600160a01b03161480611e805750836001600160a01b0316611e75846108d4565b6001600160a01b0316145b8061185c57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661185c565b826001600160a01b0316611ec782610f9e565b6001600160a01b031614611f2f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610949565b6001600160a01b038216611f915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610949565b611f9c83838361230f565b611fa7600082611cce565b6001600160a01b0383166000908152600460205260408120805460019290611fd0908490612dd5565b90915550506001600160a01b0382166000908152600460205260408120805460019290611ffe908490612d8a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60408051600180825281830190925260609160009190816020015b604080518082019091526000808252602082015281526020019060019003908161207a5790505060408051808201909152600c546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff16602082015281519192509082906000906120eb576120eb612ec4565b6020908102919091010152919050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e918282604051806020016040528060008152506123c7565b612172848484611eb4565b61217e848484846123fa565b6118e05760405162461bcd60e51b815260040161094990612d2d565b6060600e805461085190612e18565b6060816121cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f757806121e181612e53565b91506121f09050600a83612da2565b91506121d1565b60008167ffffffffffffffff81111561221257612212612eda565b6040519080825280601f01601f19166020018201604052801561223c576020820181803683370190505b5090505b841561185c57612251600183612dd5565b915061225e600a86612e6e565b612269906030612d8a565b60f81b81838151811061227e5761227e612ec4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122b8600a86612da2565b9450612240565b60006001600160e01b031982166380ac58cd60e01b14806122f057506001600160e01b03198216635b5e139f60e01b145b8061083c57506301ffc9a760e01b6001600160e01b031983161461083c565b6001600160a01b03831661236a5761236581600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61238d565b816001600160a01b0316836001600160a01b03161461238d5761238d8382612507565b6001600160a01b0382166123a457610a7f816125a4565b826001600160a01b0316826001600160a01b031614610a7f57610a7f8282612653565b6123d18383612697565b6123de60008484846123fa565b610a7f5760405162461bcd60e51b815260040161094990612d2d565b60006001600160a01b0384163b156124fc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243e903390899088908890600401612c2b565b602060405180830381600087803b15801561245857600080fd5b505af1925050508015612488575060408051601f3d908101601f1916820190925261248591810190612b2f565b60015b6124e2573d8080156124b6576040519150601f19603f3d011682016040523d82523d6000602084013e6124bb565b606091505b5080516124da5760405162461bcd60e51b815260040161094990612d2d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185c565b506001949350505050565b6000600161251484611015565b61251e9190612dd5565b600083815260086020526040902054909150808214612571576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906125b690600190612dd5565b6000838152600a6020526040812054600980549394509092849081106125de576125de612ec4565b9060005260206000200154905080600983815481106125ff576125ff612ec4565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061263757612637612eae565b6001900381819060005260206000200160009055905550505050565b600061265e83611015565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166126ed5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610949565b6000818152600360205260409020546001600160a01b0316156127525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610949565b61275e6000838361230f565b6001600160a01b0382166000908152600460205260408120805460019290612787908490612d8a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127f190612e18565b90600052602060002090601f0160209004810192826128135760008555612859565b82601f1061282c57805160ff1916838001178555612859565b82800160010185558215612859579182015b8281111561285957825182559160200191906001019061283e565b50611ca59291505b80821115611ca55760008155600101612861565b600067ffffffffffffffff8084111561289057612890612eda565b604051601f8501601f19908116603f011681019082821181831017156128b8576128b8612eda565b816040528093508581528686860111156128d157600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126128fd57600080fd5b50813567ffffffffffffffff81111561291557600080fd5b6020830191508360208260051b8501011115610c3757600080fd5b60006020828403121561294257600080fd5b81356119ba81612ef0565b6000806040838503121561296057600080fd5b823561296b81612ef0565b9150602083013561297b81612ef0565b809150509250929050565b60008060006060848603121561299b57600080fd5b83356129a681612ef0565b925060208401356129b681612ef0565b929592945050506040919091013590565b600080600080608085870312156129dd57600080fd5b84356129e881612ef0565b935060208501356129f881612ef0565b925060408501359150606085013567ffffffffffffffff811115612a1b57600080fd5b8501601f81018713612a2c57600080fd5b612a3b87823560208401612875565b91505092959194509250565b60008060408385031215612a5a57600080fd5b8235612a6581612ef0565b91506020830135801515811461297b57600080fd5b60008060408385031215612a8d57600080fd5b8235612a9881612ef0565b946020939093013593505050565b60008060008060408587031215612abc57600080fd5b843567ffffffffffffffff80821115612ad457600080fd5b612ae0888389016128eb565b90965094506020870135915080821115612af957600080fd5b50612b06878288016128eb565b95989497509550505050565b600060208284031215612b2457600080fd5b81356119ba81612f05565b600060208284031215612b4157600080fd5b81516119ba81612f05565b600060208284031215612b5e57600080fd5b813567ffffffffffffffff811115612b7557600080fd5b8201601f81018413612b8657600080fd5b61185c84823560208401612875565b600060208284031215612ba757600080fd5b5035919050565b60008060408385031215612bc157600080fd5b50508035926020909101359150565b60008151808452612be8816020860160208601612dec565b601f01601f19169290920160200192915050565b60008351612c0e818460208801612dec565b835190830190612c22818360208801612dec565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612c5d6080830184612bd0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612ca85783516001600160a01b031683529284019291840191600101612c83565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612d0d57815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101612cd1565b5091979650505050505050565b6020815260006119ba6020830184612bd0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60008219821115612d9d57612d9d612e82565b500190565b600082612db157612db1612e98565b500490565b6000816000190483118215151615612dd057612dd0612e82565b500290565b600082821015612de757612de7612e82565b500390565b60005b83811015612e07578181015183820152602001612def565b838111156118e05750506000910152565b600181811c90821680612e2c57607f821691505b60208210811415612e4d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e6757612e67612e82565b5060010190565b600082612e7d57612e7d612e98565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b2b57600080fd5b6001600160e01b031981168114610b2b57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212204030faee416a8795c9d6c78c7ed911a35e6a210f7af5c9937d379cb8765392be64736f6c6343000806003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000015f93a9ed6084112e536ac0bf15765575695c7fa00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000075852415645525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000458525652000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d524677313678794d46417831586f41426662416d41345674394b4d683566686d48547435375553634a3854562f000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000e1e4c09fac353612ded154323c737722430903aa00000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000ab344f2347d1dddfeee18d0fcd3672b05658118c00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000094dbd7d06c3e2eaf4e82387629e4b5cd9f86d36500000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000206d18d1a098a1a8144c6e2ca1ce280bfab925f400000000000000000000000000000000000000000000000000000000000007d000000000000000000000000095a97ba895f0d8d8abf678ad3a1029fca1ce0ce600000000000000000000000000000000000000000000000000000000000002580000000000000000000000002d7f075559f068c748dbc06bc3efef46cb101cf700000000000000000000000000000000000000000000000000000000000000c800000000000000000000000095741db8f8dfbec01cb2440ea0f43395b9962c1700000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000158080848a461ff8d53cc46e55a10ce9b3d6038a00000000000000000000000000000000000000000000000000000000000000c8
Deployed Bytecode
0x6080604052600436106102715760003560e01c80637a5e952d11610149578063c87b56dd116100c6578063e6d2e7711161008a578063eb8d244411610064578063eb8d244414610793578063f2fde38b146107ad578063f7fecc27146107cd57600080fd5b8063e6d2e77114610720578063e985e9c514610735578063eac989f81461077e57600080fd5b8063c87b56dd1461066c578063cad96cca1461068c578063cd3293de146106b9578063d9d21052146106ce578063db5eb7021461070257600080fd5b806395d89b411161010d57806395d89b41146105e4578063a0712d68146105f9578063a22cb4651461060c578063ae1042651461062c578063b88d4fde1461064c57600080fd5b80637a5e952d146105425780637eb118451461056257806381fab8b1146105785780638704a208146105935780638da5cb5b146105c657600080fd5b80633374417c116101f25780634f6ccce7116101b657806370a082311161019057806370a08231146104d9578063715018a6146104f9578063752c0ace1461050e57600080fd5b80634f6ccce71461047957806355f804b3146104995780636352211e146104b957600080fd5b80633374417c146103ff57806334918dfd1461041a57806335b1f0031461042f5780633ccfd60b1461044457806342842e0e1461045957600080fd5b806318160ddd1161023957806318160ddd1461034757806323b872dd146103665780632a55205a146103865780632d0b3bbe146103c55780632f745c59146103df57600080fd5b806301ffc9a71461027657806306fdde03146102ab578063081812fc146102cd578063095ea7b3146103055780630f91325e14610327575b600080fd5b34801561028257600080fd5b50610296610291366004612b12565b6107ef565b60405190151581526020015b60405180910390f35b3480156102b757600080fd5b506102c0610842565b6040516102a29190612d1a565b3480156102d957600080fd5b506102ed6102e8366004612b95565b6108d4565b6040516001600160a01b0390911681526020016102a2565b34801561031157600080fd5b50610325610320366004612a7a565b61096e565b005b34801561033357600080fd5b50610325610342366004612930565b610a84565b34801561035357600080fd5b506009545b6040519081526020016102a2565b34801561037257600080fd5b50610325610381366004612986565b610b2e565b34801561039257600080fd5b506103a66103a1366004612bae565b610ba9565b604080516001600160a01b0390931683526020830191909152016102a2565b3480156103d157600080fd5b506012546102969060ff1681565b3480156103eb57600080fd5b506103586103fa366004612a7a565b610c3e565b34801561040b57600080fd5b50610358662386f26fc1000081565b34801561042657600080fd5b50610325610cd4565b34801561043b57600080fd5b50610358606481565b34801561045057600080fd5b50610325610d30565b34801561046557600080fd5b50610325610474366004612986565b610e95565b34801561048557600080fd5b50610358610494366004612b95565b610eb0565b3480156104a557600080fd5b506103256104b4366004612b4c565b610f43565b3480156104c557600080fd5b506102ed6104d4366004612b95565b610f9e565b3480156104e557600080fd5b506103586104f4366004612930565b611015565b34801561050557600080fd5b5061032561109c565b34801561051a57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000000a81565b34801561054e57600080fd5b5061032561055d366004612aa6565b6110f0565b34801561056e57600080fd5b5061035861271081565b34801561058457600080fd5b50610358668e1bc9bf04000081565b34801561059f57600080fd5b506105a96103e881565b6040516bffffffffffffffffffffffff90911681526020016102a2565b3480156105d257600080fd5b50600b546001600160a01b03166102ed565b3480156105f057600080fd5b506102c06112a1565b610325610607366004612b95565b6112b0565b34801561061857600080fd5b50610325610627366004612a47565b6116a9565b34801561063857600080fd5b50610358610647366004612b95565b61176e565b34801561065857600080fd5b506103256106673660046129c7565b611864565b34801561067857600080fd5b506102c0610687366004612b95565b6118e6565b34801561069857600080fd5b506106ac6106a7366004612b95565b6119c1565b6040516102a29190612cb4565b3480156106c557600080fd5b506103256119cb565b3480156106da57600080fd5b506103587f000000000000000000000000000000000000000000000000000000000000271081565b34801561070e57600080fd5b50600c546001600160a01b03166102ed565b34801561072c57600080fd5b50610358603281565b34801561074157600080fd5b5061029661075036600461294d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561078a57600080fd5b506102c0611a9c565b34801561079f57600080fd5b50600d546102969060ff1681565b3480156107b957600080fd5b506103256107c8366004612930565b611b2a565b3480156107d957600080fd5b506107e2611be0565b6040516102a29190612c67565b60006001600160e01b0319821663656cb66560e11b141561081257506001919050565b6001600160e01b0319821663152a902d60e11b141561083357506001919050565b61083c82611ca9565b92915050565b60606001805461085190612e18565b80601f016020809104026020016040519081016040528092919081815260200182805461087d90612e18565b80156108ca5780601f1061089f576101008083540402835291602001916108ca565b820191906000526020600020905b8154815290600101906020018083116108ad57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061097982610f9e565b9050806001600160a01b0316836001600160a01b031614156109e75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610949565b336001600160a01b0382161480610a035750610a038133610750565b610a755760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610949565b610a7f8383611cce565b505050565b600b546001600160a01b03163314610acc5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6001600160a01b038116610b225760405162461bcd60e51b815260206004820152601260248201527f5852617665723a205a45524f5f4f574e455200000000000000000000000000006044820152606401610949565b610b2b81611d3c565b50565b610b383382611dc1565b610b9e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610949565b610a7f838383611eb4565b6000806000610bb661205f565b805190915015610c2e5780600081518110610bd357610bd3612ec4565b60200260200101516000015161271082600081518110610bf557610bf5612ec4565b6020026020010151602001516bffffffffffffffffffffffff1686610c1a9190612db6565b610c249190612da2565b9250925050610c37565b60008092509250505b9250929050565b6000610c4983611015565b8210610cab5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610949565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600b546001600160a01b03163314610d1c5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b600d805460ff19811660ff90911615179055565b600b546001600160a01b03163314610d785760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b4760005b601354811015610e9157600060138281548110610d9b57610d9b612ec4565b600091825260208083206040805180820190915260029093020180546001600160a01b031680845260019091015491830182905291935061271090610de09087612db6565b610dea9190612da2565b604051600081818185875af1925050503d8060008114610e26576040519150601f19603f3d011682016040523d82523d6000602084013e610e2b565b606091505b5050905080610e7c5760405162461bcd60e51b815260206004820152601360248201527f5852617665723a2053454e445f524556455254000000000000000000000000006044820152606401610949565b50508080610e8990612e53565b915050610d7c565b5050565b610a7f83838360405180602001604052806000815250611864565b6000610ebb60095490565b8210610f1e5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610949565b60098281548110610f3157610f31612ec4565b90600052602060002001549050919050565b600b546001600160a01b03163314610f8b5760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b8051610e9190600e9060208401906127e5565b6000818152600360205260408120546001600160a01b03168061083c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610949565b60006001600160a01b0382166110805760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610949565b506001600160a01b031660009081526004602052604090205490565b600b546001600160a01b031633146110e45760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6110ee60006120fb565b565b600b546001600160a01b031633146111385760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b60125460ff161561118b5760405162461bcd60e51b815260206004820152601360248201527f5852617665723a20414c52454144595f534554000000000000000000000000006044820152606401610949565b826111d85760405162461bcd60e51b815260206004820152601260248201527f5852617665723a20454d5054595f4c49535400000000000000000000000000006044820152606401610949565b8281146112275760405162461bcd60e51b815260206004820152601460248201527f5852617665723a20574f524e475f4c454e4754480000000000000000000000006044820152606401610949565b60005b8381101561128d5782828281811061124457611244612ec4565b905060200201356011600087878581811061126157611261612ec4565b90506020020135815260200190815260200160002081905550808061128590612e53565b91505061122a565b50506012805460ff19166001179055505050565b60606002805461085190612e18565b7f000000000000000000000000000000000000000000000000000000000000000a818181111561132c5760405162461bcd60e51b815260206004820152602160248201527f4d696e74436f6f6c646f776e3a204d494e545f4c494d49545f4f564552464c4f6044820152605760f81b6064820152608401610949565b3260008181526020818152604080832043808552925290912054846113518583612d8a565b111561139f5760405162461bcd60e51b815260206004820152601e60248201527f4d696e74436f6f6c646f776e3a2054585f4d494e545f434f4f4c444f574e00006044820152606401610949565b6001600160a01b038316600090815260208181526040808320858452909152812080548692906113d0908490612d8a565b9091555050600d5460ff166114275760405162461bcd60e51b815260206004820152601760248201527f5852617665723a2053414c455f4e4f545f4143544956450000000000000000006044820152606401610949565b856114745760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a204d494e545f4d494e5f41545f4c454153545f4f4e450000006044820152606401610949565b606461147f60095490565b10156114cd5760405162461bcd60e51b815260206004820152601a60248201527f5852617665723a20524553455256455f4e4f545f4d494e5445440000000000006044820152606401610949565b7f0000000000000000000000000000000000000000000000000000000000002710866114f860095490565b6115029190612d8a565b11156115505760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a20544f54414c5f535550504c595f4f564552464c4f570000006044820152606401610949565b60008061155c60095490565b905060005b8881101561160e57601054600090815260116020526040902054801580159061159c5750806115908385612d8a565b61159a9190612e6e565b155b156115b757601080549060006115b183612e53565b91905055505b6010546115cb90662386f26fc10000612db6565b6115dc90668e1bc9bf040000612d8a565b6115e69085612d8a565b93506115fb336115f68486612d8a565b61214d565b508061160681612e53565b915050611561565b503482111561165f5760405162461bcd60e51b815260206004820152601860248201527f5852617665723a204e4f545f454e4f5547485f455448455200000000000000006044820152606401610949565b3482101561169f57336108fc6116758434612dd5565b6040518115909202916000818181858888f1935050505015801561169d573d6000803e3d6000fd5b505b5050505050505050565b6001600160a01b0382163314156117025760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610949565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000816117bd5760405162461bcd60e51b815260206004820152601d60248201527f5852617665723a204d494e545f4d494e5f41545f4c454153545f4f4e450000006044820152606401610949565b60006117c860095490565b60105490915060005b8481101561182f5760008281526011602052604090205480158015906118095750806117fd8386612d8a565b6118079190612e6e565b155b1561181c578261181881612e53565b9350505b508061182781612e53565b9150506117d1565b5061184181662386f26fc10000612db6565b61185290668e1bc9bf040000612d8a565b61185c9085612db6565b949350505050565b61186e3383611dc1565b6118d45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610949565b6118e084848484612167565b50505050565b6000818152600360205260409020546060906001600160a01b03166119655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b600061196f61219a565b9050600081511161198f57604051806020016040528060008152506119ba565b80611999846121a9565b6040516020016119aa929190612bfc565b6040516020818303038152906040525b9392505050565b606061083c61205f565b600b546001600160a01b03163314611a135760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6000611a1e60095490565b905060648110611a705760405162461bcd60e51b815260206004820152601460248201527f5852617665723a2046554c4c5f524553455256450000000000000000000000006044820152606401610949565b60005b6032811015610e9157611a8a336115f68385612d8a565b80611a9481612e53565b915050611a73565b600e8054611aa990612e18565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad590612e18565b8015611b225780601f10611af757610100808354040283529160200191611b22565b820191906000526020600020905b815481529060010190602001808311611b0557829003601f168201915b505050505081565b600b546001600160a01b03163314611b725760405162461bcd60e51b81526020600482018190526024820152600080516020612f1c8339815191526044820152606401610949565b6001600160a01b038116611bd75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610949565b610b2b816120fb565b60135460609067ffffffffffffffff811115611bfe57611bfe612eda565b604051908082528060200260200182016040528015611c27578160200160208202803683370190505b50905060005b601354811015611ca55760138181548110611c4a57611c4a612ec4565b600091825260209091206002909102015482516001600160a01b0390911690839083908110611c7b57611c7b612ec4565b6001600160a01b039092166020928302919091019091015280611c9d81612e53565b915050611c2d565b5090565b60006001600160e01b0319821663780e9d6360e01b148061083c575061083c826122bf565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d0382610f9e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b0316611d9f5760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965735632496d706c3a20524f59414c544945535f4e4f545f53604482015261115560f21b6064820152608401610949565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600360205260408120546001600160a01b0316611e3a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610949565b6000611e4583610f9e565b9050806001600160a01b0316846001600160a01b03161480611e805750836001600160a01b0316611e75846108d4565b6001600160a01b0316145b8061185c57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661185c565b826001600160a01b0316611ec782610f9e565b6001600160a01b031614611f2f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610949565b6001600160a01b038216611f915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610949565b611f9c83838361230f565b611fa7600082611cce565b6001600160a01b0383166000908152600460205260408120805460019290611fd0908490612dd5565b90915550506001600160a01b0382166000908152600460205260408120805460019290611ffe908490612d8a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60408051600180825281830190925260609160009190816020015b604080518082019091526000808252602082015281526020019060019003908161207a5790505060408051808201909152600c546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff16602082015281519192509082906000906120eb576120eb612ec4565b6020908102919091010152919050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e918282604051806020016040528060008152506123c7565b612172848484611eb4565b61217e848484846123fa565b6118e05760405162461bcd60e51b815260040161094990612d2d565b6060600e805461085190612e18565b6060816121cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121f757806121e181612e53565b91506121f09050600a83612da2565b91506121d1565b60008167ffffffffffffffff81111561221257612212612eda565b6040519080825280601f01601f19166020018201604052801561223c576020820181803683370190505b5090505b841561185c57612251600183612dd5565b915061225e600a86612e6e565b612269906030612d8a565b60f81b81838151811061227e5761227e612ec4565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506122b8600a86612da2565b9450612240565b60006001600160e01b031982166380ac58cd60e01b14806122f057506001600160e01b03198216635b5e139f60e01b145b8061083c57506301ffc9a760e01b6001600160e01b031983161461083c565b6001600160a01b03831661236a5761236581600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b61238d565b816001600160a01b0316836001600160a01b03161461238d5761238d8382612507565b6001600160a01b0382166123a457610a7f816125a4565b826001600160a01b0316826001600160a01b031614610a7f57610a7f8282612653565b6123d18383612697565b6123de60008484846123fa565b610a7f5760405162461bcd60e51b815260040161094990612d2d565b60006001600160a01b0384163b156124fc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061243e903390899088908890600401612c2b565b602060405180830381600087803b15801561245857600080fd5b505af1925050508015612488575060408051601f3d908101601f1916820190925261248591810190612b2f565b60015b6124e2573d8080156124b6576040519150601f19603f3d011682016040523d82523d6000602084013e6124bb565b606091505b5080516124da5760405162461bcd60e51b815260040161094990612d2d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061185c565b506001949350505050565b6000600161251484611015565b61251e9190612dd5565b600083815260086020526040902054909150808214612571576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906125b690600190612dd5565b6000838152600a6020526040812054600980549394509092849081106125de576125de612ec4565b9060005260206000200154905080600983815481106125ff576125ff612ec4565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061263757612637612eae565b6001900381819060005260206000200160009055905550505050565b600061265e83611015565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166126ed5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610949565b6000818152600360205260409020546001600160a01b0316156127525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610949565b61275e6000838361230f565b6001600160a01b0382166000908152600460205260408120805460019290612787908490612d8a565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546127f190612e18565b90600052602060002090601f0160209004810192826128135760008555612859565b82601f1061282c57805160ff1916838001178555612859565b82800160010185558215612859579182015b8281111561285957825182559160200191906001019061283e565b50611ca59291505b80821115611ca55760008155600101612861565b600067ffffffffffffffff8084111561289057612890612eda565b604051601f8501601f19908116603f011681019082821181831017156128b8576128b8612eda565b816040528093508581528686860111156128d157600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126128fd57600080fd5b50813567ffffffffffffffff81111561291557600080fd5b6020830191508360208260051b8501011115610c3757600080fd5b60006020828403121561294257600080fd5b81356119ba81612ef0565b6000806040838503121561296057600080fd5b823561296b81612ef0565b9150602083013561297b81612ef0565b809150509250929050565b60008060006060848603121561299b57600080fd5b83356129a681612ef0565b925060208401356129b681612ef0565b929592945050506040919091013590565b600080600080608085870312156129dd57600080fd5b84356129e881612ef0565b935060208501356129f881612ef0565b925060408501359150606085013567ffffffffffffffff811115612a1b57600080fd5b8501601f81018713612a2c57600080fd5b612a3b87823560208401612875565b91505092959194509250565b60008060408385031215612a5a57600080fd5b8235612a6581612ef0565b91506020830135801515811461297b57600080fd5b60008060408385031215612a8d57600080fd5b8235612a9881612ef0565b946020939093013593505050565b60008060008060408587031215612abc57600080fd5b843567ffffffffffffffff80821115612ad457600080fd5b612ae0888389016128eb565b90965094506020870135915080821115612af957600080fd5b50612b06878288016128eb565b95989497509550505050565b600060208284031215612b2457600080fd5b81356119ba81612f05565b600060208284031215612b4157600080fd5b81516119ba81612f05565b600060208284031215612b5e57600080fd5b813567ffffffffffffffff811115612b7557600080fd5b8201601f81018413612b8657600080fd5b61185c84823560208401612875565b600060208284031215612ba757600080fd5b5035919050565b60008060408385031215612bc157600080fd5b50508035926020909101359150565b60008151808452612be8816020860160208601612dec565b601f01601f19169290920160200192915050565b60008351612c0e818460208801612dec565b835190830190612c22818360208801612dec565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612c5d6080830184612bd0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612ca85783516001600160a01b031683529284019291840191600101612c83565b50909695505050505050565b602080825282518282018190526000919060409081850190868401855b82811015612d0d57815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101612cd1565b5091979650505050505050565b6020815260006119ba6020830184612bd0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60008219821115612d9d57612d9d612e82565b500190565b600082612db157612db1612e98565b500490565b6000816000190483118215151615612dd057612dd0612e82565b500290565b600082821015612de757612de7612e82565b500390565b60005b83811015612e07578181015183820152602001612def565b838111156118e05750506000910152565b600181811c90821680612e2c57607f821691505b60208210811415612e4d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612e6757612e67612e82565b5060010190565b600082612e7d57612e7d612e98565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b2b57600080fd5b6001600160e01b031981168114610b2b57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212204030faee416a8795c9d6c78c7ed911a35e6a210f7af5c9937d379cb8765392be64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000015f93a9ed6084112e536ac0bf15765575695c7fa00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000075852415645525300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000458525652000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d524677313678794d46417831586f41426662416d41345674394b4d683566686d48547435375553634a3854562f000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000e1e4c09fac353612ded154323c737722430903aa00000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000ab344f2347d1dddfeee18d0fcd3672b05658118c00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000094dbd7d06c3e2eaf4e82387629e4b5cd9f86d36500000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000206d18d1a098a1a8144c6e2ca1ce280bfab925f400000000000000000000000000000000000000000000000000000000000007d000000000000000000000000095a97ba895f0d8d8abf678ad3a1029fca1ce0ce600000000000000000000000000000000000000000000000000000000000002580000000000000000000000002d7f075559f068c748dbc06bc3efef46cb101cf700000000000000000000000000000000000000000000000000000000000000c800000000000000000000000095741db8f8dfbec01cb2440ea0f43395b9962c1700000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000158080848a461ff8d53cc46e55a10ce9b3d6038a00000000000000000000000000000000000000000000000000000000000000c8
-----Decoded View---------------
Arg [0] : name_ (string): XRAVERS
Arg [1] : symbol_ (string): XRVR
Arg [2] : uri_ (string): ipfs://QmRFw16xyMFAx1XoABfbAmA4Vt9KMh5fhmHTt57UScJ8TV/
Arg [3] : _maxXravers (uint256): 10000
Arg [4] : _maxPurchaseCount (uint256): 10
Arg [5] : royaltyOwner_ (address): 0x15f93A9ed6084112E536aC0bF15765575695C7Fa
Arg [6] : stakeHolders_ (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
31 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 00000000000000000000000015f93a9ed6084112e536ac0bf15765575695c7fa
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 5852415645525300000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 5852565200000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [12] : 697066733a2f2f516d524677313678794d46417831586f41426662416d413456
Arg [13] : 74394b4d683566686d48547435375553634a3854562f00000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [15] : 000000000000000000000000e1e4c09fac353612ded154323c737722430903aa
Arg [16] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [17] : 000000000000000000000000ab344f2347d1dddfeee18d0fcd3672b05658118c
Arg [18] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [19] : 00000000000000000000000094dbd7d06c3e2eaf4e82387629e4b5cd9f86d365
Arg [20] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [21] : 000000000000000000000000206d18d1a098a1a8144c6e2ca1ce280bfab925f4
Arg [22] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [23] : 00000000000000000000000095a97ba895f0d8d8abf678ad3a1029fca1ce0ce6
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [25] : 0000000000000000000000002d7f075559f068c748dbc06bc3efef46cb101cf7
Arg [26] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [27] : 00000000000000000000000095741db8f8dfbec01cb2440ea0f43395b9962c17
Arg [28] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [29] : 000000000000000000000000158080848a461ff8d53cc46e55a10ce9b3d6038a
Arg [30] : 00000000000000000000000000000000000000000000000000000000000000c8
Loading...
Loading
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.