Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
Latest 25 from a total of 2,910 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 17228574 | 426 days ago | IN | 0 ETH | 0.00149426 | ||||
Withdraw | 13281425 | 1020 days ago | IN | 1 ETH | 0.00114661 | ||||
Mint Public | 13270511 | 1021 days ago | IN | 0.08888 ETH | 0.00534053 | ||||
Mint Public | 13254226 | 1024 days ago | IN | 0.08888 ETH | 0.00187515 | ||||
Mint Public | 13254221 | 1024 days ago | IN | 0.08888 ETH | 0.00179407 | ||||
Mint Public | 13253069 | 1024 days ago | IN | 0.08888 ETH | 0.00181787 | ||||
Mint Public | 13252972 | 1024 days ago | IN | 0.26664 ETH | 0.00162355 | ||||
Mint Public | 13252507 | 1024 days ago | IN | 0.17776 ETH | 0.00237755 | ||||
Mint Public | 13252247 | 1024 days ago | IN | 0.08888 ETH | 0.00210279 | ||||
Mint Public | 13251565 | 1024 days ago | IN | 0.08888 ETH | 0.00278375 | ||||
Mint Public | 13251565 | 1024 days ago | IN | 0.08888 ETH | 0.00282592 | ||||
Mint Public | 13251565 | 1024 days ago | IN | 0.17776 ETH | 0.00941975 | ||||
Mint Public | 13251565 | 1024 days ago | IN | 0.17776 ETH | 0.00288133 | ||||
Mint Public | 13251535 | 1024 days ago | IN | 0.08888 ETH | 0.00384564 | ||||
Mint Public | 13251525 | 1024 days ago | IN | 0.8888 ETH | 0.00417107 | ||||
Mint Public | 13251508 | 1024 days ago | IN | 0.08888 ETH | 0.00454683 | ||||
Mint Public | 13251508 | 1024 days ago | IN | 0.4444 ETH | 0.0045972 | ||||
Mint Public | 13251505 | 1024 days ago | IN | 0.26664 ETH | 0.00521466 | ||||
Mint Public | 13251500 | 1024 days ago | IN | 0.08888 ETH | 0.00607794 | ||||
Mint Public | 13251500 | 1024 days ago | IN | 0.8888 ETH | 0.00609719 | ||||
Mint Public | 13251495 | 1024 days ago | IN | 0.17776 ETH | 0.00800322 | ||||
Mint Public | 13251494 | 1024 days ago | IN | 0.08888 ETH | 0.00809839 | ||||
Mint Public | 13251493 | 1024 days ago | IN | 0.08888 ETH | 0.00750604 | ||||
Mint Public | 13251493 | 1024 days ago | IN | 1.7776 ETH | 0.00750604 | ||||
Reserve Team Tok... | 13251493 | 1024 days ago | IN | 0 ETH | 0.86795177 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
13281425 | 1020 days ago | 613.03128 ETH |
Loading...
Loading
Contract Name:
NonFungibleHeroesMinter
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./INonFungibleHeroesToken.sol"; contract NonFungibleHeroesMinter is Ownable, ReentrancyGuard { // ======== Supply ========= uint256 public constant MAX_MINTS_PER_TX = 20; uint256 public constant WHITELIST_MAX_MINTS = 3; uint256 public maxMintsPerAddress; uint256 public reservedHeroes; uint256 public maxHeroes; // ======== Cost ========= uint256 public constant HERO_COST = 0.08888 ether; // ======== Sale status ========= bool public saleIsActive = false; uint256 public preSaleStart; // When the community + whitelist claiming/minting starts uint256 public publicSaleStart; // Public sale start (20 mints per tx, max 200 mints per address) // ======== Claim Tracking ========= mapping(address => uint256) private addressToMintCount; mapping(address => uint256) private addressToClaimableHeroes; mapping(address => bool) private saleWhitelist; // ======== External Storage Contract ========= INonFungibleHeroesToken public heroesToken; // ======== Constructor ========= constructor(address nonFungibleHeroesAddress, uint256 preSaleStartTimestamp, uint256 publicSaleStartTimestamp, uint256 heroSupply, uint256 reserveSupply, uint256 maxMintsAddress) { heroesToken = INonFungibleHeroesToken(nonFungibleHeroesAddress); preSaleStart = preSaleStartTimestamp; publicSaleStart = publicSaleStartTimestamp; maxHeroes = heroSupply; reservedHeroes = reserveSupply; maxMintsPerAddress = maxMintsAddress; } // ======== Claim / Minting ========= function mintCommunity(uint amount) external nonReentrant { require(saleIsActive, "Sale must be active to claim!"); require(block.timestamp >= preSaleStart && block.timestamp < publicSaleStart, "Presale not active!"); require(amount > 0, "Enter valid amount to claim"); require(amount <= addressToClaimableHeroes[msg.sender], "Invalid hero amount!"); require(amount <= MAX_MINTS_PER_TX, "Exceeds max mint per tx!"); heroesToken.mint(amount, msg.sender); addressToClaimableHeroes[msg.sender] -= amount; } function mintPublic(uint amount) public payable nonReentrant { uint256 supply = heroesToken.totalSupply(); require(saleIsActive, "Sale must be active to claim!"); require(block.timestamp >= preSaleStart, "Sale not started!"); require(amount <= MAX_MINTS_PER_TX, "Exceeds max mint per tx!"); require(addressToMintCount[msg.sender] + amount <= maxMintsPerAddress, "Exceeded wallet mint limit!"); // Whitelist period if (block.timestamp < publicSaleStart) { require(saleWhitelist[msg.sender], "Must be on the sale whitelist"); uint256 remainingMints = WHITELIST_MAX_MINTS - addressToMintCount[msg.sender]; require(amount <= remainingMints, "You can mint max 3 during whitelist sale"); } require(supply + amount <= maxHeroes - reservedHeroes, "Exceeds max hero supply!"); require(msg.value >= HERO_COST * amount, "Invalid Eth value sent!"); heroesToken.mint(amount, msg.sender); addressToMintCount[msg.sender] += amount; } function reserveTeamTokens(address _to, uint256 _reserveAmount) public onlyOwner { require(_reserveAmount <= reservedHeroes, "Not enough reserves"); heroesToken.mint(_reserveAmount, _to); reservedHeroes = reservedHeroes - _reserveAmount; } // ======== Snapshot / Whitelisting function snapshot(address[] memory _addresses, uint[] memory _heroesToClaim) external onlyOwner { require(_addresses.length == _heroesToClaim.length, "Invalid snapshot data"); for (uint i = 0; i < _addresses.length; i++) { addressToClaimableHeroes[_addresses[i]] = _heroesToClaim[i]; } } function addWhitelisted(address[] memory _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { saleWhitelist[_addresses[i]] = true; } } function removeWhitelisted(address[] memory _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { saleWhitelist[_addresses[i]] = false; } } // ======== Max Minting ========= function setMaxMintPerAddress(uint _max) public onlyOwner { maxMintsPerAddress = _max; } // ======== Utilities ========= function isWhitelisted(address _address) external view returns (bool) { return saleWhitelist[_address]; } function remainingHeroesForClaim(address _address) external view returns (uint) { return addressToClaimableHeroes[_address]; } function mintCount(address _address) external view returns (uint) { return addressToMintCount[_address]; } function isPreSaleActive() external view returns (bool) { return block.timestamp >= preSaleStart && block.timestamp < publicSaleStart && saleIsActive; } function isPublicSaleActive() external view returns (bool) { return block.timestamp >= publicSaleStart && saleIsActive; } // ======== State management ========= function flipSaleStatus() public onlyOwner { saleIsActive = !saleIsActive; } // ======== Withdraw ========= function withdraw() public payable onlyOwner { uint balance = address(this).balance; require(payable(msg.sender).send(balance)); } }
// 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; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721 // SPDX-License-Identifier: MIT /// @title Interface for NonFungibleHeroesToken pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; abstract contract INonFungibleHeroesToken is ERC721Enumerable { function setProvenanceHash(string memory _provenanceHash) virtual external; function mint(uint256 _count, address _recipient) virtual external; function setBaseURI(string memory baseURI) virtual external; function updateMinter(address _minter) virtual external; function lockMinter() virtual external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"nonFungibleHeroesAddress","type":"address"},{"internalType":"uint256","name":"preSaleStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTimestamp","type":"uint256"},{"internalType":"uint256","name":"heroSupply","type":"uint256"},{"internalType":"uint256","name":"reserveSupply","type":"uint256"},{"internalType":"uint256","name":"maxMintsAddress","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"HERO_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"heroesToken","outputs":[{"internalType":"contract INonFungibleHeroesToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxHeroes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintCommunity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"remainingHeroesForClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"reserveTeamTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedHeroes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_heroesToClaim","type":"uint256[]"}],"name":"snapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526000600560006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162002a5338038062002a538339818101604052810190620000529190620001e3565b6200007262000066620000e960201b60201c565b620000f160201b60201c565b6001808190555085600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460068190555083600781905550826004819055508160038190555080600281905550505050505050620002f6565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001c681620002c2565b92915050565b600081519050620001dd81620002dc565b92915050565b60008060008060008060c08789031215620002035762000202620002bd565b5b60006200021389828a01620001b5565b96505060206200022689828a01620001cc565b95505060406200023989828a01620001cc565b94505060606200024c89828a01620001cc565b93505060806200025f89828a01620001cc565b92505060a06200027289828a01620001cc565b9150509295509295509295565b60006200028c8262000293565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b620002cd816200027f565b8114620002d957600080fd5b50565b620002e781620002b3565b8114620002f357600080fd5b50565b61274d80620003066000396000f3fe60806040526004361061019c5760003560e01c806387322816116100ec578063ce03ec931161008a578063ed394b2b11610064578063ed394b2b1461054d578063ed9ec88814610578578063efd0cbf9146105b5578063f2fde38b146105d15761019c565b8063ce03ec93146104e2578063e71433d6146104f9578063eb8d2444146105225761019c565b80639f5ee96d116100c65780639f5ee96d14610436578063aade56a414610461578063ae6a80d51461048c578063c6a91b42146104b75761019c565b806387322816146103b75780638da5cb5b146103e05780639d044ed31461040b5761019c565b80633360caa0116101595780633ccfd60b116101335780633ccfd60b1461032e578063513cd4a2146103385780636908d0a814610363578063715018a6146103a05761019c565b80633360caa01461029d5780633af32abf146102c85780633ca8a8e4146103055761019c565b80630d5624b3146101a15780631b2885fb146101cc5780631e14d44b146101f55780631e84c4131461021e578063227275ef146102495780632d58af1d14610272575b600080fd5b3480156101ad57600080fd5b506101b66105fa565b6040516101c391906120bf565b60405180910390f35b3480156101d857600080fd5b506101f360048036038101906101ee9190611ba8565b610600565b005b34801561020157600080fd5b5061021c60048036038101906102179190611ba8565b6108e7565b005b34801561022a57600080fd5b5061023361096d565b6040516102409190611e89565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b9190611ae7565b610992565b005b34801561027e57600080fd5b50610287610aa3565b6040516102949190611ea4565b60405180910390f35b3480156102a957600080fd5b506102b2610ac9565b6040516102bf91906120bf565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190611a7a565b610acf565b6040516102fc9190611e89565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190611b30565b610b25565b005b610336610c81565b005b34801561034457600080fd5b5061034d610d43565b60405161035a91906120bf565b60405180910390f35b34801561036f57600080fd5b5061038a60048036038101906103859190611a7a565b610d48565b60405161039791906120bf565b60405180910390f35b3480156103ac57600080fd5b506103b5610d91565b005b3480156103c357600080fd5b506103de60048036038101906103d99190611ae7565b610e19565b005b3480156103ec57600080fd5b506103f5610f2a565b6040516104029190611e6e565b60405180910390f35b34801561041757600080fd5b50610420610f53565b60405161042d9190611e89565b60405180910390f35b34801561044257600080fd5b5061044b610f85565b60405161045891906120bf565b60405180910390f35b34801561046d57600080fd5b50610476610f8b565b60405161048391906120bf565b60405180910390f35b34801561049857600080fd5b506104a1610f91565b6040516104ae91906120bf565b60405180910390f35b3480156104c357600080fd5b506104cc610f97565b6040516104d991906120bf565b60405180910390f35b3480156104ee57600080fd5b506104f7610f9c565b005b34801561050557600080fd5b50610520600480360381019061051b9190611aa7565b611044565b005b34801561052e57600080fd5b506105376111ac565b6040516105449190611e89565b60405180910390f35b34801561055957600080fd5b506105626111bf565b60405161056f91906120bf565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190611a7a565b6111cb565b6040516105ac91906120bf565b60405180910390f35b6105cf60048036038101906105ca9190611ba8565b611214565b005b3480156105dd57600080fd5b506105f860048036038101906105f39190611a7a565b61173b565b005b60065481565b60026001541415610646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063d9061207f565b60405180910390fd5b6002600181905550600560009054906101000a900460ff1661069d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106949061203f565b60405180910390fd5b60065442101580156106b0575060075442105b6106ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e690611fdf565b60405180910390fd5b60008111610732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072990611fff565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548111156107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab90611f7f565b60405180910390fd5b60148111156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ef9061205f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82336040518363ffffffff1660e01b81526004016108559291906120da565b600060405180830381600087803b15801561086f57600080fd5b505af1158015610883573d6000803e3d6000fd5b5050505080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108d69190612241565b925050819055506001808190555050565b6108ef611833565b73ffffffffffffffffffffffffffffffffffffffff1661090d610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90611fbf565b60405180910390fd5b8060028190555050565b6000600754421015801561098d5750600560009054906101000a900460ff165b905090565b61099a611833565b73ffffffffffffffffffffffffffffffffffffffff166109b8610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0590611fbf565b60405180910390fd5b60005b8151811015610a9f576001600a6000848481518110610a3357610a3261238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610a9790612312565b915050610a11565b5050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610b2d611833565b73ffffffffffffffffffffffffffffffffffffffff16610b4b610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890611fbf565b60405180910390fd5b8051825114610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc90611f5f565b60405180910390fd5b60005b8251811015610c7c57818181518110610c0457610c0361238a565b5b602002602001015160096000858481518110610c2357610c2261238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610c7490612312565b915050610be8565b505050565b610c89611833565b73ffffffffffffffffffffffffffffffffffffffff16610ca7610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490611fbf565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610d4057600080fd5b50565b600381565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610d99611833565b73ffffffffffffffffffffffffffffffffffffffff16610db7610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610e0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0490611fbf565b60405180910390fd5b610e17600061183b565b565b610e21611833565b73ffffffffffffffffffffffffffffffffffffffff16610e3f610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8c90611fbf565b60405180910390fd5b60005b8151811015610f26576000600a6000848481518110610eba57610eb961238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f1e90612312565b915050610e98565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006544210158015610f68575060075442105b8015610f805750600560009054906101000a900460ff165b905090565b60045481565b60035481565b60025481565b601481565b610fa4611833565b73ffffffffffffffffffffffffffffffffffffffff16610fc2610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90611fbf565b60405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b61104c611833565b73ffffffffffffffffffffffffffffffffffffffff1661106a610f2a565b73ffffffffffffffffffffffffffffffffffffffff16146110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b790611fbf565b60405180910390fd5b600354811115611105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fc90611f3f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82846040518363ffffffff1660e01b81526004016111629291906120da565b600060405180830381600087803b15801561117c57600080fd5b505af1158015611190573d6000803e3d6000fd5b50505050806003546111a29190612241565b6003819055505050565b600560009054906101000a900460ff1681565b67013bc3e39ba3000081565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600154141561125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112519061207f565b60405180910390fd5b60026001819055506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112cc57600080fd5b505afa1580156112e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113049190611bd5565b9050600560009054906101000a900460ff16611355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134c9061203f565b60405180910390fd5b60065442101561139a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139190611f1f565b60405180910390fd5b60148211156113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d59061205f565b60405180910390fd5b60025482600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461142c9190612191565b111561146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146490611edf565b60405180910390fd5b60075442101561159857600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fa90611f9f565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460036115519190612241565b905080831115611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d9061209f565b60405180910390fd5b505b6003546004546115a89190612241565b82826115b49190612191565b11156115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec90611ebf565b60405180910390fd5b8167013bc3e39ba3000061160991906121e7565b34101561164b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116429061201f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83336040518363ffffffff1660e01b81526004016116a89291906120da565b600060405180830381600087803b1580156116c257600080fd5b505af11580156116d6573d6000803e3d6000fd5b5050505081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117299190612191565b92505081905550506001808190555050565b611743611833565b73ffffffffffffffffffffffffffffffffffffffff16611761610f2a565b73ffffffffffffffffffffffffffffffffffffffff16146117b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ae90611fbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90611eff565b60405180910390fd5b6118308161183b565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061191261190d84612128565b612103565b90508083825260208201905082856020860282011115611935576119346123ed565b5b60005b85811015611965578161194b88826119df565b845260208401935060208301925050600181019050611938565b5050509392505050565b600061198261197d84612154565b612103565b905080838252602082019050828560208602820111156119a5576119a46123ed565b5b60005b858110156119d557816119bb8882611a50565b8452602084019350602083019250506001810190506119a8565b5050509392505050565b6000813590506119ee816126e9565b92915050565b600082601f830112611a0957611a086123e8565b5b8135611a198482602086016118ff565b91505092915050565b600082601f830112611a3757611a366123e8565b5b8135611a4784826020860161196f565b91505092915050565b600081359050611a5f81612700565b92915050565b600081519050611a7481612700565b92915050565b600060208284031215611a9057611a8f6123f7565b5b6000611a9e848285016119df565b91505092915050565b60008060408385031215611abe57611abd6123f7565b5b6000611acc858286016119df565b9250506020611add85828601611a50565b9150509250929050565b600060208284031215611afd57611afc6123f7565b5b600082013567ffffffffffffffff811115611b1b57611b1a6123f2565b5b611b27848285016119f4565b91505092915050565b60008060408385031215611b4757611b466123f7565b5b600083013567ffffffffffffffff811115611b6557611b646123f2565b5b611b71858286016119f4565b925050602083013567ffffffffffffffff811115611b9257611b916123f2565b5b611b9e85828601611a22565b9150509250929050565b600060208284031215611bbe57611bbd6123f7565b5b6000611bcc84828501611a50565b91505092915050565b600060208284031215611beb57611bea6123f7565b5b6000611bf984828501611a65565b91505092915050565b611c0b81612275565b82525050565b611c1a81612287565b82525050565b611c29816122bd565b82525050565b6000611c3c601883612180565b9150611c478261240d565b602082019050919050565b6000611c5f601b83612180565b9150611c6a82612436565b602082019050919050565b6000611c82602683612180565b9150611c8d8261245f565b604082019050919050565b6000611ca5601183612180565b9150611cb0826124ae565b602082019050919050565b6000611cc8601383612180565b9150611cd3826124d7565b602082019050919050565b6000611ceb601583612180565b9150611cf682612500565b602082019050919050565b6000611d0e601483612180565b9150611d1982612529565b602082019050919050565b6000611d31601d83612180565b9150611d3c82612552565b602082019050919050565b6000611d54602083612180565b9150611d5f8261257b565b602082019050919050565b6000611d77601383612180565b9150611d82826125a4565b602082019050919050565b6000611d9a601b83612180565b9150611da5826125cd565b602082019050919050565b6000611dbd601783612180565b9150611dc8826125f6565b602082019050919050565b6000611de0601d83612180565b9150611deb8261261f565b602082019050919050565b6000611e03601883612180565b9150611e0e82612648565b602082019050919050565b6000611e26601f83612180565b9150611e3182612671565b602082019050919050565b6000611e49602883612180565b9150611e548261269a565b604082019050919050565b611e68816122b3565b82525050565b6000602082019050611e836000830184611c02565b92915050565b6000602082019050611e9e6000830184611c11565b92915050565b6000602082019050611eb96000830184611c20565b92915050565b60006020820190508181036000830152611ed881611c2f565b9050919050565b60006020820190508181036000830152611ef881611c52565b9050919050565b60006020820190508181036000830152611f1881611c75565b9050919050565b60006020820190508181036000830152611f3881611c98565b9050919050565b60006020820190508181036000830152611f5881611cbb565b9050919050565b60006020820190508181036000830152611f7881611cde565b9050919050565b60006020820190508181036000830152611f9881611d01565b9050919050565b60006020820190508181036000830152611fb881611d24565b9050919050565b60006020820190508181036000830152611fd881611d47565b9050919050565b60006020820190508181036000830152611ff881611d6a565b9050919050565b6000602082019050818103600083015261201881611d8d565b9050919050565b6000602082019050818103600083015261203881611db0565b9050919050565b6000602082019050818103600083015261205881611dd3565b9050919050565b6000602082019050818103600083015261207881611df6565b9050919050565b6000602082019050818103600083015261209881611e19565b9050919050565b600060208201905081810360008301526120b881611e3c565b9050919050565b60006020820190506120d46000830184611e5f565b92915050565b60006040820190506120ef6000830185611e5f565b6120fc6020830184611c02565b9392505050565b600061210d61211e565b905061211982826122e1565b919050565b6000604051905090565b600067ffffffffffffffff821115612143576121426123b9565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561216f5761216e6123b9565b5b602082029050602081019050919050565b600082825260208201905092915050565b600061219c826122b3565b91506121a7836122b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121dc576121db61235b565b5b828201905092915050565b60006121f2826122b3565b91506121fd836122b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122365761223561235b565b5b828202905092915050565b600061224c826122b3565b9150612257836122b3565b92508282101561226a5761226961235b565b5b828203905092915050565b600061228082612293565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006122c8826122cf565b9050919050565b60006122da82612293565b9050919050565b6122ea826123fc565b810181811067ffffffffffffffff82111715612309576123086123b9565b5b80604052505050565b600061231d826122b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123505761234f61235b565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45786365656473206d6178206865726f20737570706c79210000000000000000600082015250565b7f45786365656465642077616c6c6574206d696e74206c696d6974210000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74207374617274656421000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820726573657276657300000000000000000000000000600082015250565b7f496e76616c696420736e617073686f7420646174610000000000000000000000600082015250565b7f496e76616c6964206865726f20616d6f756e7421000000000000000000000000600082015250565b7f4d757374206265206f6e207468652073616c652077686974656c697374000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f50726573616c65206e6f74206163746976652100000000000000000000000000600082015250565b7f456e7465722076616c696420616d6f756e7420746f20636c61696d0000000000600082015250565b7f496e76616c6964204574682076616c75652073656e7421000000000000000000600082015250565b7f53616c65206d7573742062652061637469766520746f20636c61696d21000000600082015250565b7f45786365656473206d6178206d696e7420706572207478210000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f596f752063616e206d696e74206d6178203320647572696e672077686974656c60008201527f6973742073616c65000000000000000000000000000000000000000000000000602082015250565b6126f281612275565b81146126fd57600080fd5b50565b612709816122b3565b811461271457600080fd5b5056fea2646970667358221220281a3713a4625b19387ff88e78f320c6b3631b24f941e62d3dbb9d65514c044664736f6c63430008060033000000000000000000000000345974220a845ddeceed011e8e6106b59724b6610000000000000000000000000000000000000000000000000000000061435bf0000000000000000000000000000000000000000000000000000000006146373000000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000096
Deployed Bytecode
0x60806040526004361061019c5760003560e01c806387322816116100ec578063ce03ec931161008a578063ed394b2b11610064578063ed394b2b1461054d578063ed9ec88814610578578063efd0cbf9146105b5578063f2fde38b146105d15761019c565b8063ce03ec93146104e2578063e71433d6146104f9578063eb8d2444146105225761019c565b80639f5ee96d116100c65780639f5ee96d14610436578063aade56a414610461578063ae6a80d51461048c578063c6a91b42146104b75761019c565b806387322816146103b75780638da5cb5b146103e05780639d044ed31461040b5761019c565b80633360caa0116101595780633ccfd60b116101335780633ccfd60b1461032e578063513cd4a2146103385780636908d0a814610363578063715018a6146103a05761019c565b80633360caa01461029d5780633af32abf146102c85780633ca8a8e4146103055761019c565b80630d5624b3146101a15780631b2885fb146101cc5780631e14d44b146101f55780631e84c4131461021e578063227275ef146102495780632d58af1d14610272575b600080fd5b3480156101ad57600080fd5b506101b66105fa565b6040516101c391906120bf565b60405180910390f35b3480156101d857600080fd5b506101f360048036038101906101ee9190611ba8565b610600565b005b34801561020157600080fd5b5061021c60048036038101906102179190611ba8565b6108e7565b005b34801561022a57600080fd5b5061023361096d565b6040516102409190611e89565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b9190611ae7565b610992565b005b34801561027e57600080fd5b50610287610aa3565b6040516102949190611ea4565b60405180910390f35b3480156102a957600080fd5b506102b2610ac9565b6040516102bf91906120bf565b60405180910390f35b3480156102d457600080fd5b506102ef60048036038101906102ea9190611a7a565b610acf565b6040516102fc9190611e89565b60405180910390f35b34801561031157600080fd5b5061032c60048036038101906103279190611b30565b610b25565b005b610336610c81565b005b34801561034457600080fd5b5061034d610d43565b60405161035a91906120bf565b60405180910390f35b34801561036f57600080fd5b5061038a60048036038101906103859190611a7a565b610d48565b60405161039791906120bf565b60405180910390f35b3480156103ac57600080fd5b506103b5610d91565b005b3480156103c357600080fd5b506103de60048036038101906103d99190611ae7565b610e19565b005b3480156103ec57600080fd5b506103f5610f2a565b6040516104029190611e6e565b60405180910390f35b34801561041757600080fd5b50610420610f53565b60405161042d9190611e89565b60405180910390f35b34801561044257600080fd5b5061044b610f85565b60405161045891906120bf565b60405180910390f35b34801561046d57600080fd5b50610476610f8b565b60405161048391906120bf565b60405180910390f35b34801561049857600080fd5b506104a1610f91565b6040516104ae91906120bf565b60405180910390f35b3480156104c357600080fd5b506104cc610f97565b6040516104d991906120bf565b60405180910390f35b3480156104ee57600080fd5b506104f7610f9c565b005b34801561050557600080fd5b50610520600480360381019061051b9190611aa7565b611044565b005b34801561052e57600080fd5b506105376111ac565b6040516105449190611e89565b60405180910390f35b34801561055957600080fd5b506105626111bf565b60405161056f91906120bf565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190611a7a565b6111cb565b6040516105ac91906120bf565b60405180910390f35b6105cf60048036038101906105ca9190611ba8565b611214565b005b3480156105dd57600080fd5b506105f860048036038101906105f39190611a7a565b61173b565b005b60065481565b60026001541415610646576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063d9061207f565b60405180910390fd5b6002600181905550600560009054906101000a900460ff1661069d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106949061203f565b60405180910390fd5b60065442101580156106b0575060075442105b6106ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e690611fdf565b60405180910390fd5b60008111610732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072990611fff565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548111156107b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ab90611f7f565b60405180910390fd5b60148111156107f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ef9061205f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82336040518363ffffffff1660e01b81526004016108559291906120da565b600060405180830381600087803b15801561086f57600080fd5b505af1158015610883573d6000803e3d6000fd5b5050505080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546108d69190612241565b925050819055506001808190555050565b6108ef611833565b73ffffffffffffffffffffffffffffffffffffffff1661090d610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90611fbf565b60405180910390fd5b8060028190555050565b6000600754421015801561098d5750600560009054906101000a900460ff165b905090565b61099a611833565b73ffffffffffffffffffffffffffffffffffffffff166109b8610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0590611fbf565b60405180910390fd5b60005b8151811015610a9f576001600a6000848481518110610a3357610a3261238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610a9790612312565b915050610a11565b5050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610b2d611833565b73ffffffffffffffffffffffffffffffffffffffff16610b4b610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9890611fbf565b60405180910390fd5b8051825114610be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdc90611f5f565b60405180910390fd5b60005b8251811015610c7c57818181518110610c0457610c0361238a565b5b602002602001015160096000858481518110610c2357610c2261238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610c7490612312565b915050610be8565b505050565b610c89611833565b73ffffffffffffffffffffffffffffffffffffffff16610ca7610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf490611fbf565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050610d4057600080fd5b50565b600381565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610d99611833565b73ffffffffffffffffffffffffffffffffffffffff16610db7610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610e0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0490611fbf565b60405180910390fd5b610e17600061183b565b565b610e21611833565b73ffffffffffffffffffffffffffffffffffffffff16610e3f610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614610e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8c90611fbf565b60405180910390fd5b60005b8151811015610f26576000600a6000848481518110610eba57610eb961238a565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f1e90612312565b915050610e98565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006544210158015610f68575060075442105b8015610f805750600560009054906101000a900460ff165b905090565b60045481565b60035481565b60025481565b601481565b610fa4611833565b73ffffffffffffffffffffffffffffffffffffffff16610fc2610f2a565b73ffffffffffffffffffffffffffffffffffffffff1614611018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100f90611fbf565b60405180910390fd5b600560009054906101000a900460ff1615600560006101000a81548160ff021916908315150217905550565b61104c611833565b73ffffffffffffffffffffffffffffffffffffffff1661106a610f2a565b73ffffffffffffffffffffffffffffffffffffffff16146110c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b790611fbf565b60405180910390fd5b600354811115611105576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fc90611f3f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d82846040518363ffffffff1660e01b81526004016111629291906120da565b600060405180830381600087803b15801561117c57600080fd5b505af1158015611190573d6000803e3d6000fd5b50505050806003546111a29190612241565b6003819055505050565b600560009054906101000a900460ff1681565b67013bc3e39ba3000081565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6002600154141561125a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112519061207f565b60405180910390fd5b60026001819055506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112cc57600080fd5b505afa1580156112e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113049190611bd5565b9050600560009054906101000a900460ff16611355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134c9061203f565b60405180910390fd5b60065442101561139a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139190611f1f565b60405180910390fd5b60148211156113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d59061205f565b60405180910390fd5b60025482600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461142c9190612191565b111561146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146490611edf565b60405180910390fd5b60075442101561159857600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fa90611f9f565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460036115519190612241565b905080831115611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d9061209f565b60405180910390fd5b505b6003546004546115a89190612241565b82826115b49190612191565b11156115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec90611ebf565b60405180910390fd5b8167013bc3e39ba3000061160991906121e7565b34101561164b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116429061201f565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394bf804d83336040518363ffffffff1660e01b81526004016116a89291906120da565b600060405180830381600087803b1580156116c257600080fd5b505af11580156116d6573d6000803e3d6000fd5b5050505081600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117299190612191565b92505081905550506001808190555050565b611743611833565b73ffffffffffffffffffffffffffffffffffffffff16611761610f2a565b73ffffffffffffffffffffffffffffffffffffffff16146117b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ae90611fbf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90611eff565b60405180910390fd5b6118308161183b565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061191261190d84612128565b612103565b90508083825260208201905082856020860282011115611935576119346123ed565b5b60005b85811015611965578161194b88826119df565b845260208401935060208301925050600181019050611938565b5050509392505050565b600061198261197d84612154565b612103565b905080838252602082019050828560208602820111156119a5576119a46123ed565b5b60005b858110156119d557816119bb8882611a50565b8452602084019350602083019250506001810190506119a8565b5050509392505050565b6000813590506119ee816126e9565b92915050565b600082601f830112611a0957611a086123e8565b5b8135611a198482602086016118ff565b91505092915050565b600082601f830112611a3757611a366123e8565b5b8135611a4784826020860161196f565b91505092915050565b600081359050611a5f81612700565b92915050565b600081519050611a7481612700565b92915050565b600060208284031215611a9057611a8f6123f7565b5b6000611a9e848285016119df565b91505092915050565b60008060408385031215611abe57611abd6123f7565b5b6000611acc858286016119df565b9250506020611add85828601611a50565b9150509250929050565b600060208284031215611afd57611afc6123f7565b5b600082013567ffffffffffffffff811115611b1b57611b1a6123f2565b5b611b27848285016119f4565b91505092915050565b60008060408385031215611b4757611b466123f7565b5b600083013567ffffffffffffffff811115611b6557611b646123f2565b5b611b71858286016119f4565b925050602083013567ffffffffffffffff811115611b9257611b916123f2565b5b611b9e85828601611a22565b9150509250929050565b600060208284031215611bbe57611bbd6123f7565b5b6000611bcc84828501611a50565b91505092915050565b600060208284031215611beb57611bea6123f7565b5b6000611bf984828501611a65565b91505092915050565b611c0b81612275565b82525050565b611c1a81612287565b82525050565b611c29816122bd565b82525050565b6000611c3c601883612180565b9150611c478261240d565b602082019050919050565b6000611c5f601b83612180565b9150611c6a82612436565b602082019050919050565b6000611c82602683612180565b9150611c8d8261245f565b604082019050919050565b6000611ca5601183612180565b9150611cb0826124ae565b602082019050919050565b6000611cc8601383612180565b9150611cd3826124d7565b602082019050919050565b6000611ceb601583612180565b9150611cf682612500565b602082019050919050565b6000611d0e601483612180565b9150611d1982612529565b602082019050919050565b6000611d31601d83612180565b9150611d3c82612552565b602082019050919050565b6000611d54602083612180565b9150611d5f8261257b565b602082019050919050565b6000611d77601383612180565b9150611d82826125a4565b602082019050919050565b6000611d9a601b83612180565b9150611da5826125cd565b602082019050919050565b6000611dbd601783612180565b9150611dc8826125f6565b602082019050919050565b6000611de0601d83612180565b9150611deb8261261f565b602082019050919050565b6000611e03601883612180565b9150611e0e82612648565b602082019050919050565b6000611e26601f83612180565b9150611e3182612671565b602082019050919050565b6000611e49602883612180565b9150611e548261269a565b604082019050919050565b611e68816122b3565b82525050565b6000602082019050611e836000830184611c02565b92915050565b6000602082019050611e9e6000830184611c11565b92915050565b6000602082019050611eb96000830184611c20565b92915050565b60006020820190508181036000830152611ed881611c2f565b9050919050565b60006020820190508181036000830152611ef881611c52565b9050919050565b60006020820190508181036000830152611f1881611c75565b9050919050565b60006020820190508181036000830152611f3881611c98565b9050919050565b60006020820190508181036000830152611f5881611cbb565b9050919050565b60006020820190508181036000830152611f7881611cde565b9050919050565b60006020820190508181036000830152611f9881611d01565b9050919050565b60006020820190508181036000830152611fb881611d24565b9050919050565b60006020820190508181036000830152611fd881611d47565b9050919050565b60006020820190508181036000830152611ff881611d6a565b9050919050565b6000602082019050818103600083015261201881611d8d565b9050919050565b6000602082019050818103600083015261203881611db0565b9050919050565b6000602082019050818103600083015261205881611dd3565b9050919050565b6000602082019050818103600083015261207881611df6565b9050919050565b6000602082019050818103600083015261209881611e19565b9050919050565b600060208201905081810360008301526120b881611e3c565b9050919050565b60006020820190506120d46000830184611e5f565b92915050565b60006040820190506120ef6000830185611e5f565b6120fc6020830184611c02565b9392505050565b600061210d61211e565b905061211982826122e1565b919050565b6000604051905090565b600067ffffffffffffffff821115612143576121426123b9565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561216f5761216e6123b9565b5b602082029050602081019050919050565b600082825260208201905092915050565b600061219c826122b3565b91506121a7836122b3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156121dc576121db61235b565b5b828201905092915050565b60006121f2826122b3565b91506121fd836122b3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122365761223561235b565b5b828202905092915050565b600061224c826122b3565b9150612257836122b3565b92508282101561226a5761226961235b565b5b828203905092915050565b600061228082612293565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006122c8826122cf565b9050919050565b60006122da82612293565b9050919050565b6122ea826123fc565b810181811067ffffffffffffffff82111715612309576123086123b9565b5b80604052505050565b600061231d826122b3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156123505761234f61235b565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f45786365656473206d6178206865726f20737570706c79210000000000000000600082015250565b7f45786365656465642077616c6c6574206d696e74206c696d6974210000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74207374617274656421000000000000000000000000000000600082015250565b7f4e6f7420656e6f75676820726573657276657300000000000000000000000000600082015250565b7f496e76616c696420736e617073686f7420646174610000000000000000000000600082015250565b7f496e76616c6964206865726f20616d6f756e7421000000000000000000000000600082015250565b7f4d757374206265206f6e207468652073616c652077686974656c697374000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f50726573616c65206e6f74206163746976652100000000000000000000000000600082015250565b7f456e7465722076616c696420616d6f756e7420746f20636c61696d0000000000600082015250565b7f496e76616c6964204574682076616c75652073656e7421000000000000000000600082015250565b7f53616c65206d7573742062652061637469766520746f20636c61696d21000000600082015250565b7f45786365656473206d6178206d696e7420706572207478210000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f596f752063616e206d696e74206d6178203320647572696e672077686974656c60008201527f6973742073616c65000000000000000000000000000000000000000000000000602082015250565b6126f281612275565b81146126fd57600080fd5b50565b612709816122b3565b811461271457600080fd5b5056fea2646970667358221220281a3713a4625b19387ff88e78f320c6b3631b24f941e62d3dbb9d65514c044664736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000345974220a845ddeceed011e8e6106b59724b6610000000000000000000000000000000000000000000000000000000061435bf0000000000000000000000000000000000000000000000000000000006146373000000000000000000000000000000000000000000000000000000000000022b8000000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000096
-----Decoded View---------------
Arg [0] : nonFungibleHeroesAddress (address): 0x345974220a845DdeCEed011e8e6106b59724b661
Arg [1] : preSaleStartTimestamp (uint256): 1631804400
Arg [2] : publicSaleStartTimestamp (uint256): 1631991600
Arg [3] : heroSupply (uint256): 8888
Arg [4] : reserveSupply (uint256): 125
Arg [5] : maxMintsAddress (uint256): 150
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000345974220a845ddeceed011e8e6106b59724b661
Arg [1] : 0000000000000000000000000000000000000000000000000000000061435bf0
Arg [2] : 0000000000000000000000000000000000000000000000000000000061463730
Arg [3] : 00000000000000000000000000000000000000000000000000000000000022b8
Arg [4] : 000000000000000000000000000000000000000000000000000000000000007d
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000096
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
MATIC | 100.00% | $0.500457 | 0.0889 | $0.044481 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.