Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 759 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
_set Pause | 14167115 | 898 days ago | IN | 0 ETH | 0.00632823 | ||||
Mint | 14167109 | 898 days ago | IN | 0.3 ETH | 0.01678236 | ||||
Mint | 14167106 | 898 days ago | IN | 0.3 ETH | 0.01511275 | ||||
Mint | 14167095 | 898 days ago | IN | 0.27 ETH | 0.0212694 | ||||
Mint | 14167095 | 898 days ago | IN | 0.3 ETH | 0.02049454 | ||||
Mint | 14167088 | 898 days ago | IN | 0.27 ETH | 0.02300052 | ||||
Mint | 14166877 | 898 days ago | IN | 0.27 ETH | 0.01277573 | ||||
Mint | 14166758 | 898 days ago | IN | 1.35 ETH | 0.04254267 | ||||
Mint | 14166579 | 898 days ago | IN | 0.1 ETH | 0.01052089 | ||||
Mint | 14166117 | 898 days ago | IN | 0.1 ETH | 0.00997634 | ||||
_add Whitelist | 14165988 | 898 days ago | IN | 0 ETH | 0.0117662 | ||||
Mint | 14165788 | 898 days ago | IN | 0.2 ETH | 0.00815841 | ||||
Mint | 14164920 | 898 days ago | IN | 0.3 ETH | 0.0080807 | ||||
Mint | 14164791 | 898 days ago | IN | 0.1 ETH | 0.00595428 | ||||
Mint | 14164633 | 898 days ago | IN | 0.3 ETH | 0.01081387 | ||||
Mint | 14164523 | 898 days ago | IN | 0.1 ETH | 0.00582399 | ||||
Mint | 14164226 | 898 days ago | IN | 0.3 ETH | 0.01085702 | ||||
Mint | 14163779 | 898 days ago | IN | 0.27 ETH | 0.01805004 | ||||
Mint | 14161603 | 899 days ago | IN | 0.81 ETH | 0.03408673 | ||||
Mint | 14160944 | 899 days ago | IN | 0.54 ETH | 0.03697186 | ||||
Mint | 14160841 | 899 days ago | IN | 0.27 ETH | 0.03613449 | ||||
Mint | 14160817 | 899 days ago | IN | 1.35 ETH | 0.08056899 | ||||
Mint | 14160378 | 899 days ago | IN | 0.1 ETH | 0.00883112 | ||||
Mint | 14160155 | 899 days ago | IN | 0.27 ETH | 0.03217878 | ||||
Mint | 14159330 | 899 days ago | IN | 24.3 ETH | 0.66339577 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14167109 | 898 days ago | 0.3 ETH | ||||
14167106 | 898 days ago | 0.3 ETH | ||||
14167095 | 898 days ago | 0.27 ETH | ||||
14167095 | 898 days ago | 0.3 ETH | ||||
14167088 | 898 days ago | 0.27 ETH | ||||
14166877 | 898 days ago | 0.27 ETH | ||||
14166758 | 898 days ago | 1.35 ETH | ||||
14166579 | 898 days ago | 0.1 ETH | ||||
14166117 | 898 days ago | 0.1 ETH | ||||
14165788 | 898 days ago | 0.2 ETH | ||||
14164920 | 898 days ago | 0.3 ETH | ||||
14164791 | 898 days ago | 0.1 ETH | ||||
14164633 | 898 days ago | 0.3 ETH | ||||
14164523 | 898 days ago | 0.1 ETH | ||||
14164226 | 898 days ago | 0.3 ETH | ||||
14163779 | 898 days ago | 0.27 ETH | ||||
14161603 | 899 days ago | 0.81 ETH | ||||
14160944 | 899 days ago | 0.54 ETH | ||||
14160841 | 899 days ago | 0.27 ETH | ||||
14160817 | 899 days ago | 1.35 ETH | ||||
14160378 | 899 days ago | 0.1 ETH | ||||
14160155 | 899 days ago | 0.27 ETH | ||||
14159330 | 899 days ago | 24.3 ETH | ||||
14159195 | 899 days ago | 0.81 ETH | ||||
14158613 | 899 days ago | 0.81 ETH |
Loading...
Loading
Contract Name:
MintNFT
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import './ERC721Mint.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol'; contract MintNFT is Ownable { ERC721Mint public token; IERC1155 public mintingPass; address public receiver; address payable public wallet; uint public allSaleAmount = 10000; uint public saleCounter = 0; uint public maxPublicSaleAmount = 3; uint public price = 0.1 ether; uint public discountPrice = 0.09 ether; struct userData { uint allowedAmount; uint publicBought; } mapping(address => userData) public Accounts; mapping(uint => uint) public amountsFromId; mapping(address => bool) public managers; bool public isPaused = true; bool public isPublicSale = false; event Mint(address indexed user, uint tokenAmount); modifier onlyManager() { require(managers[msg.sender], "Ownable: caller is not the manager"); _; } constructor(address _token, address _mintingPass, address payable _wallet, address _receiver) { require( _token != address(0) && _mintingPass != address(0) && _wallet != address(0), 'MintNFT::constructor: address is null' ); token = ERC721Mint(_token); mintingPass = IERC1155(_mintingPass); wallet = _wallet; receiver = _receiver; managers[msg.sender] = true; amountsFromId[0] = 3; amountsFromId[1] = 6; amountsFromId[2] = 9; amountsFromId[3] = 15; amountsFromId[4] = 30; amountsFromId[5] = 90; } function mint(uint256 _tokenAmount) external payable returns (bool) { uint[] memory a; return mintInternal({_tokenAmount: _tokenAmount, useMintingPass: false, mintingPassIds: a, amounts:a}); } function mint(uint256 _tokenAmount, uint[] calldata mintingPassIds, uint[] calldata amounts) external payable returns (bool) { return mintInternal(_tokenAmount, true, mintingPassIds, amounts); } function mintInternal(uint _tokenAmount, bool useMintingPass, uint[] memory mintingPassIds, uint[] memory amounts) internal returns (bool) { require(mintingPassIds.length == amounts.length, 'MintNFT::mintInternal: amounts length must be equal rates length'); require(saleCounter + _tokenAmount <= allSaleAmount, 'MintNFT::mintInternal: tokens are enough'); require(!isPaused, 'MintNFT::mintInternal: sales are closed'); uint sum; if (useMintingPass) { sum = discountPrice * _tokenAmount; uint totalAmount = 0; for(uint i = 0; i < amounts.length; i++) { mintingPass.safeTransferFrom(msg.sender, receiver, mintingPassIds[i], amounts[i], ''); totalAmount += amountsFromId[mintingPassIds[i]] * amounts[i]; } require(_tokenAmount == totalAmount, 'MintNFT::mintInternal: amount is more than allowed'); } else { sum = price * _tokenAmount; if (isPublicSale) { require( Accounts[msg.sender].publicBought + _tokenAmount <= maxPublicSaleAmount, 'MintNFT::mintInternal: amount is more than allowed' ); Accounts[msg.sender].publicBought += _tokenAmount; } else { require( Accounts[msg.sender].allowedAmount >= _tokenAmount, 'MintNFT::mintInternal: amount is more than allowed or you are not logged into whitelist' ); Accounts[msg.sender].allowedAmount -= _tokenAmount; } } require( msg.value == sum, 'MintNFT::mintInternal: not enough ether sent' ); wallet.transfer(msg.value); for(uint i = 0; i < _tokenAmount; i++) { token.mint(msg.sender); } saleCounter += _tokenAmount; emit Mint(msg.sender, _tokenAmount); return true; } function _setPublicSale(bool _isPublicSale) external onlyOwner returns (bool) { isPublicSale = _isPublicSale; return true; } function _setPause(bool _isPaused) external onlyManager returns (bool) { isPaused = _isPaused; return true; } function _addWhitelist(address[] memory users, uint[] memory _amounts) external onlyOwner returns (bool) { require(users.length == _amounts.length, 'MintNFT::_addWhitelist: amounts length must be equal rates length'); for(uint i = 0; i < users.length; i++) { Accounts[users[i]].allowedAmount = _amounts[i]; } return true; } function _setWallet(address payable _wallet) external onlyOwner returns (bool) { wallet = _wallet; return true; } function _setAllSaleAmount(uint _amount) external onlyOwner returns(bool) { allSaleAmount = _amount; return true; } function updateManagerList(address _manager, bool _status) external onlyOwner returns(bool) { managers[_manager] = _status; return true; } function _withdrawERC20(address _token, address _recepient) external onlyOwner returns(bool) { IERC20(_token).transfer(_recepient, IERC20(_token).balanceOf(address(this))); return true; } function _withdrawERC721(address _token, address _recepient, uint _tokenId) external onlyOwner returns(bool) { IERC721(_token).transferFrom(address(this), _recepient, _tokenId); return true; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; contract ERC721Mint is ERC721, Ownable { string public uri; mapping(address => bool) public managers; uint public tokenId = 0; address public metadata; bool public isPaused = false; modifier onlyManager() { require( managers[msg.sender], 'ERC721Mint: caller is not the manager' ); _; } constructor(string memory _name, string memory _symbol, string memory _uri) ERC721 (_name, _symbol) { uri = _uri; managers[msg.sender] = true; } function _updateManagerList(address _manager, bool _status) external onlyOwner returns(bool) { managers[_manager] = _status; return true; } function _setPause(bool _isPaused) external onlyOwner returns (bool) { isPaused = _isPaused; return true; } function mint(address to) external onlyManager returns(uint) { _mint(to, tokenId); tokenId++; return tokenId; } function burn(uint _tokenId) external returns(bool) { require(msg.sender == ownerOf(_tokenId), 'ERC721Mint:burn: only token owner can be burned'); _burn(_tokenId); return true; } function _baseURI() internal view override returns(string memory) { return uri; } function _setURI(string memory _newURI) external onlyOwner returns(bool) { uri = _newURI; return true; } function _setMetadata(address _metadata) public onlyOwner returns(bool) { metadata = _metadata; return true; } function transferFrom(address _from, address _to, uint256 _tokenId) public virtual override { require(!isPaused, 'ERC721Mint::transferFrom: transfers are closed'); super.transferFrom(_from, _to, _tokenId); } function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) public virtual override { require(!isPaused, 'ERC721Mint::safeTransferFrom: transfers are closed'); super.safeTransferFrom(_from, _to, _tokenId, _data); } function _withdrawERC20(address _token, address _recepient) external onlyOwner returns(bool) { IERC20(_token).transfer(_recepient, IERC20(_token).balanceOf(address(this))); return true; } function _withdrawERC721(address _token, address _recepient, uint _tokenId) external onlyOwner returns(bool) { IERC721(_token).transferFrom(address(this), _recepient, _tokenId); return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) 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() { _transferOwnership(_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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_mintingPass","type":"address"},{"internalType":"address payable","name":"_wallet","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Accounts","outputs":[{"internalType":"uint256","name":"allowedAmount","type":"uint256"},{"internalType":"uint256","name":"publicBought","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"_addWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"_setAllSaleAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPaused","type":"bool"}],"name":"_setPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSale","type":"bool"}],"name":"_setPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_wallet","type":"address"}],"name":"_setWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recepient","type":"address"}],"name":"_withdrawERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recepient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_withdrawERC721","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allSaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"amountsFromId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"managers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256[]","name":"mintingPassIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintingPass","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC721Mint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateManagerList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526127106005556000600655600360075567016345785d8a000060085567013fbe85edc90000600955600d805461ffff191660011790553480156200004757600080fd5b5060405162001950380380620019508339810160408190526200006a91620002c2565b620000753362000259565b6001600160a01b038416158015906200009657506001600160a01b03831615155b8015620000ab57506001600160a01b03821615155b6200010a5760405162461bcd60e51b815260206004820152602560248201527f4d696e744e46543a3a636f6e7374727563746f723a2061646472657373206973604482015264081b9d5b1b60da1b606482015260840160405180910390fd5b600180546001600160a01b03199081166001600160a01b039687161782556002805482169587169590951790945560048054851693861693909317909255600380549093169316929092178155336000908152600c602090815260408220805460ff1916909417909355600b9092527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765560067f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf5560097fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba9163455600f7f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33e55601e7f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c7845560059052605a7febae6141bae5521e99e0a8d610356b0f501fea54980b59c84841db43ba7204f4556200032a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620002bf57600080fd5b50565b60008060008060808587031215620002d957600080fd5b8451620002e681620002a9565b6020860151909450620002f981620002a9565b60408601519093506200030c81620002a9565b60608601519092506200031f81620002a9565b939692955090935050565b611616806200033a6000396000f3fe60806040526004361061019c5760003560e01c8063a5a865dc116100ec578063dcfad95c1161008a578063f7260d3e11610064578063f7260d3e14610487578063fbf6df5d146104a7578063fc0c546a146104d4578063fdff9b4d146104f457600080fd5b8063dcfad95c14610408578063e203b5061461041e578063f2fde38b1461046757600080fd5b8063b187bd26116100c6578063b187bd261461038e578063b5af4c15146103a8578063c6eb3c8c146103c8578063ce4ab1e6146103e857600080fd5b8063a5a865dc1461033c578063a8fecde91461035b578063abf185c41461036e57600080fd5b80636b088bbe116101595780638da5cb5b116101335780638da5cb5b146102df578063999600c3146102fd578063a035b1fe14610313578063a0712d681461032957600080fd5b80636b088bbe14610292578063715018a6146102b257806384ad8e8f146102c957600080fd5b80630387b0a2146101a15780632a47db19146101ca57806348941e49146101fa57806351be61a71461021a578063521eb2731461025257806369cc273114610272575b600080fd5b3480156101ad57600080fd5b506101b760065481565b6040519081526020015b60405180910390f35b3480156101d657600080fd5b506101ea6101e53660046111fd565b610524565b60405190151581526020016101c1565b34801561020657600080fd5b506101ea6102153660046112cd565b610655565b34801561022657600080fd5b5060025461023a906001600160a01b031681565b6040516001600160a01b0390911681526020016101c1565b34801561025e57600080fd5b5060045461023a906001600160a01b031681565b34801561027e57600080fd5b506101ea61028d3660046112cd565b61069d565b34801561029e57600080fd5b506101ea6102ad3660046112ea565b61071e565b3480156102be57600080fd5b506102c761076e565b005b3480156102d557600080fd5b506101b760095481565b3480156102eb57600080fd5b506000546001600160a01b031661023a565b34801561030957600080fd5b506101b760055481565b34801561031f57600080fd5b506101b760085481565b6101ea610337366004611307565b6107a4565b34801561034857600080fd5b50600d546101ea90610100900460ff1681565b6101ea61036936600461136c565b6107bc565b34801561037a57600080fd5b506101ea6103893660046113e6565b610838565b34801561039a57600080fd5b50600d546101ea9060ff1681565b3480156103b457600080fd5b506101ea6103c336600461141f565b610892565b3480156103d457600080fd5b506101ea6103e336600461144d565b61099e565b3480156103f457600080fd5b506101ea610403366004611307565b610a3b565b34801561041457600080fd5b506101b760075481565b34801561042a57600080fd5b506104526104393660046112ea565b600a602052600090815260409020805460019091015482565b604080519283526020830191909152016101c1565b34801561047357600080fd5b506102c76104823660046112ea565b610a6f565b34801561049357600080fd5b5060035461023a906001600160a01b031681565b3480156104b357600080fd5b506101b76104c2366004611307565b600b6020526000908152604090205481565b3480156104e057600080fd5b5060015461023a906001600160a01b031681565b34801561050057600080fd5b506101ea61050f3660046112ea565b600c6020526000908152604090205460ff1681565b600080546001600160a01b031633146105585760405162461bcd60e51b815260040161054f9061148e565b60405180910390fd5b81518351146105d95760405162461bcd60e51b815260206004820152604160248201527f4d696e744e46543a3a5f61646457686974656c6973743a20616d6f756e74732060448201527f6c656e677468206d75737420626520657175616c207261746573206c656e67746064820152600d60fb1b608482015260a40161054f565b60005b835181101561064b578281815181106105f7576105f76114c3565b6020026020010151600a6000868481518110610615576106156114c3565b6020908102919091018101516001600160a01b031682528101919091526040016000205580610643816114ef565b9150506105dc565b5060019392505050565b600080546001600160a01b031633146106805760405162461bcd60e51b815260040161054f9061148e565b50600d80548215156101000261ff00199091161790556001919050565b336000908152600c602052604081205460ff166107075760405162461bcd60e51b815260206004820152602260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760448201526132b960f11b606482015260840161054f565b50600d805460ff1916911515919091179055600190565b600080546001600160a01b031633146107495760405162461bcd60e51b815260040161054f9061148e565b50600480546001600160a01b0383166001600160a01b03199091161790556001919050565b6000546001600160a01b031633146107985760405162461bcd60e51b815260040161054f9061148e565b6107a26000610b0a565b565b600060606107b58360008384610b5a565b9392505050565b600061082e86600187878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092019190915250610b5a92505050565b9695505050505050565b600080546001600160a01b031633146108635760405162461bcd60e51b815260040161054f9061148e565b506001600160a01b0382166000908152600c60205260409020805482151560ff19909116179055600192915050565b600080546001600160a01b031633146108bd5760405162461bcd60e51b815260040161054f9061148e565b6040516370a0823160e01b81523060048201526001600160a01b0384169063a9059cbb90849083906370a0823190602401602060405180830381865afa15801561090b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092f919061150a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561097a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190611523565b600080546001600160a01b031633146109c95760405162461bcd60e51b815260040161054f9061148e565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018490528516906323b872dd90606401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610a665760405162461bcd60e51b815260040161054f9061148e565b50600555600190565b6000546001600160a01b03163314610a995760405162461bcd60e51b815260040161054f9061148e565b6001600160a01b038116610afe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054f565b610b0781610b0a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008151835114610bd5576040805162461bcd60e51b81526020600482015260248101919091527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7473206c60448201527f656e677468206d75737420626520657175616c207261746573206c656e677468606482015260840161054f565b60055485600654610be69190611540565b1115610c455760405162461bcd60e51b815260206004820152602860248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20746f6b656e732061726044820152670ca40cadcdeeaced60c31b606482015260840161054f565b600d5460ff1615610ca85760405162461bcd60e51b815260206004820152602760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a2073616c6573206172656044820152660818db1bdcd95960ca1b606482015260840161054f565b60008415610e325785600954610cbe9190611558565b90506000805b8451811015610e0c5760025460035487516001600160a01b039283169263f242432a9233929116908a9086908110610cfe57610cfe6114c3565b6020026020010151898681518110610d1857610d186114c3565b60209081029190910101516040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610d8557600080fd5b505af1158015610d99573d6000803e3d6000fd5b50505050848181518110610daf57610daf6114c3565b6020026020010151600b6000888481518110610dcd57610dcd6114c3565b6020026020010151815260200190815260200160002054610dee9190611558565b610df89083611540565b915080610e04816114ef565b915050610cc4565b50808714610e2c5760405162461bcd60e51b815260040161054f90611577565b50610f8f565b85600854610e409190611558565b600d54909150610100900460ff1615610ebf57600754336000908152600a6020526040902060010154610e74908890611540565b1115610e925760405162461bcd60e51b815260040161054f90611577565b336000908152600a602052604081206001018054889290610eb4908490611540565b90915550610f8f9050565b336000908152600a6020526040902054861115610f6a5760405162461bcd60e51b815260206004820152605760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7420697360448201527f206d6f7265207468616e20616c6c6f776564206f7220796f7520617265206e6f60648201527f74206c6f6767656420696e746f2077686974656c697374000000000000000000608482015260a40161054f565b336000908152600a602052604081208054889290610f899084906115c9565b90915550505b803414610ff35760405162461bcd60e51b815260206004820152602c60248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a206e6f7420656e6f756760448201526b1a08195d1a195c881cd95b9d60a21b606482015260840161054f565b6004546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561102c573d6000803e3d6000fd5b5060005b868110156110b9576001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af1158015611082573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a6919061150a565b50806110b1816114ef565b915050611030565b5085600660008282546110cc9190611540565b909155505060405186815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250600195945050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561115157611151611112565b604052919050565b600067ffffffffffffffff82111561117357611173611112565b5060051b60200190565b6001600160a01b0381168114610b0757600080fd5b600082601f8301126111a357600080fd5b813560206111b86111b383611159565b611128565b82815260059290921b840181019181810190868411156111d757600080fd5b8286015b848110156111f257803583529183019183016111db565b509695505050505050565b6000806040838503121561121057600080fd5b823567ffffffffffffffff8082111561122857600080fd5b818501915085601f83011261123c57600080fd5b8135602061124c6111b383611159565b82815260059290921b8401810191818101908984111561126b57600080fd5b948201945b838610156112925785356112838161117d565b82529482019490820190611270565b965050860135925050808211156112a857600080fd5b506112b585828601611192565b9150509250929050565b8015158114610b0757600080fd5b6000602082840312156112df57600080fd5b81356107b5816112bf565b6000602082840312156112fc57600080fd5b81356107b58161117d565b60006020828403121561131957600080fd5b5035919050565b60008083601f84011261133257600080fd5b50813567ffffffffffffffff81111561134a57600080fd5b6020830191508360208260051b850101111561136557600080fd5b9250929050565b60008060008060006060868803121561138457600080fd5b85359450602086013567ffffffffffffffff808211156113a357600080fd5b6113af89838a01611320565b909650945060408801359150808211156113c857600080fd5b506113d588828901611320565b969995985093965092949392505050565b600080604083850312156113f957600080fd5b82356114048161117d565b91506020830135611414816112bf565b809150509250929050565b6000806040838503121561143257600080fd5b823561143d8161117d565b915060208301356114148161117d565b60008060006060848603121561146257600080fd5b833561146d8161117d565b9250602084013561147d8161117d565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611503576115036114d9565b5060010190565b60006020828403121561151c57600080fd5b5051919050565b60006020828403121561153557600080fd5b81516107b5816112bf565b60008219821115611553576115536114d9565b500190565b6000816000190483118215151615611572576115726114d9565b500290565b60208082526032908201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e74206973604082015271081b5bdc99481d1a185b88185b1b1bddd95960721b606082015260800190565b6000828210156115db576115db6114d9565b50039056fea2646970667358221220564e9ba230ec476f5de367e5032a48d70a3caa23a149a0484146e637eef320e764736f6c634300080a00330000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf50000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
Deployed Bytecode
0x60806040526004361061019c5760003560e01c8063a5a865dc116100ec578063dcfad95c1161008a578063f7260d3e11610064578063f7260d3e14610487578063fbf6df5d146104a7578063fc0c546a146104d4578063fdff9b4d146104f457600080fd5b8063dcfad95c14610408578063e203b5061461041e578063f2fde38b1461046757600080fd5b8063b187bd26116100c6578063b187bd261461038e578063b5af4c15146103a8578063c6eb3c8c146103c8578063ce4ab1e6146103e857600080fd5b8063a5a865dc1461033c578063a8fecde91461035b578063abf185c41461036e57600080fd5b80636b088bbe116101595780638da5cb5b116101335780638da5cb5b146102df578063999600c3146102fd578063a035b1fe14610313578063a0712d681461032957600080fd5b80636b088bbe14610292578063715018a6146102b257806384ad8e8f146102c957600080fd5b80630387b0a2146101a15780632a47db19146101ca57806348941e49146101fa57806351be61a71461021a578063521eb2731461025257806369cc273114610272575b600080fd5b3480156101ad57600080fd5b506101b760065481565b6040519081526020015b60405180910390f35b3480156101d657600080fd5b506101ea6101e53660046111fd565b610524565b60405190151581526020016101c1565b34801561020657600080fd5b506101ea6102153660046112cd565b610655565b34801561022657600080fd5b5060025461023a906001600160a01b031681565b6040516001600160a01b0390911681526020016101c1565b34801561025e57600080fd5b5060045461023a906001600160a01b031681565b34801561027e57600080fd5b506101ea61028d3660046112cd565b61069d565b34801561029e57600080fd5b506101ea6102ad3660046112ea565b61071e565b3480156102be57600080fd5b506102c761076e565b005b3480156102d557600080fd5b506101b760095481565b3480156102eb57600080fd5b506000546001600160a01b031661023a565b34801561030957600080fd5b506101b760055481565b34801561031f57600080fd5b506101b760085481565b6101ea610337366004611307565b6107a4565b34801561034857600080fd5b50600d546101ea90610100900460ff1681565b6101ea61036936600461136c565b6107bc565b34801561037a57600080fd5b506101ea6103893660046113e6565b610838565b34801561039a57600080fd5b50600d546101ea9060ff1681565b3480156103b457600080fd5b506101ea6103c336600461141f565b610892565b3480156103d457600080fd5b506101ea6103e336600461144d565b61099e565b3480156103f457600080fd5b506101ea610403366004611307565b610a3b565b34801561041457600080fd5b506101b760075481565b34801561042a57600080fd5b506104526104393660046112ea565b600a602052600090815260409020805460019091015482565b604080519283526020830191909152016101c1565b34801561047357600080fd5b506102c76104823660046112ea565b610a6f565b34801561049357600080fd5b5060035461023a906001600160a01b031681565b3480156104b357600080fd5b506101b76104c2366004611307565b600b6020526000908152604090205481565b3480156104e057600080fd5b5060015461023a906001600160a01b031681565b34801561050057600080fd5b506101ea61050f3660046112ea565b600c6020526000908152604090205460ff1681565b600080546001600160a01b031633146105585760405162461bcd60e51b815260040161054f9061148e565b60405180910390fd5b81518351146105d95760405162461bcd60e51b815260206004820152604160248201527f4d696e744e46543a3a5f61646457686974656c6973743a20616d6f756e74732060448201527f6c656e677468206d75737420626520657175616c207261746573206c656e67746064820152600d60fb1b608482015260a40161054f565b60005b835181101561064b578281815181106105f7576105f76114c3565b6020026020010151600a6000868481518110610615576106156114c3565b6020908102919091018101516001600160a01b031682528101919091526040016000205580610643816114ef565b9150506105dc565b5060019392505050565b600080546001600160a01b031633146106805760405162461bcd60e51b815260040161054f9061148e565b50600d80548215156101000261ff00199091161790556001919050565b336000908152600c602052604081205460ff166107075760405162461bcd60e51b815260206004820152602260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760448201526132b960f11b606482015260840161054f565b50600d805460ff1916911515919091179055600190565b600080546001600160a01b031633146107495760405162461bcd60e51b815260040161054f9061148e565b50600480546001600160a01b0383166001600160a01b03199091161790556001919050565b6000546001600160a01b031633146107985760405162461bcd60e51b815260040161054f9061148e565b6107a26000610b0a565b565b600060606107b58360008384610b5a565b9392505050565b600061082e86600187878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092019190915250610b5a92505050565b9695505050505050565b600080546001600160a01b031633146108635760405162461bcd60e51b815260040161054f9061148e565b506001600160a01b0382166000908152600c60205260409020805482151560ff19909116179055600192915050565b600080546001600160a01b031633146108bd5760405162461bcd60e51b815260040161054f9061148e565b6040516370a0823160e01b81523060048201526001600160a01b0384169063a9059cbb90849083906370a0823190602401602060405180830381865afa15801561090b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092f919061150a565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561097a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064b9190611523565b600080546001600160a01b031633146109c95760405162461bcd60e51b815260040161054f9061148e565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018490528516906323b872dd90606401600060405180830381600087803b158015610a1957600080fd5b505af1158015610a2d573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610a665760405162461bcd60e51b815260040161054f9061148e565b50600555600190565b6000546001600160a01b03163314610a995760405162461bcd60e51b815260040161054f9061148e565b6001600160a01b038116610afe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054f565b610b0781610b0a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008151835114610bd5576040805162461bcd60e51b81526020600482015260248101919091527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7473206c60448201527f656e677468206d75737420626520657175616c207261746573206c656e677468606482015260840161054f565b60055485600654610be69190611540565b1115610c455760405162461bcd60e51b815260206004820152602860248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20746f6b656e732061726044820152670ca40cadcdeeaced60c31b606482015260840161054f565b600d5460ff1615610ca85760405162461bcd60e51b815260206004820152602760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a2073616c6573206172656044820152660818db1bdcd95960ca1b606482015260840161054f565b60008415610e325785600954610cbe9190611558565b90506000805b8451811015610e0c5760025460035487516001600160a01b039283169263f242432a9233929116908a9086908110610cfe57610cfe6114c3565b6020026020010151898681518110610d1857610d186114c3565b60209081029190910101516040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610d8557600080fd5b505af1158015610d99573d6000803e3d6000fd5b50505050848181518110610daf57610daf6114c3565b6020026020010151600b6000888481518110610dcd57610dcd6114c3565b6020026020010151815260200190815260200160002054610dee9190611558565b610df89083611540565b915080610e04816114ef565b915050610cc4565b50808714610e2c5760405162461bcd60e51b815260040161054f90611577565b50610f8f565b85600854610e409190611558565b600d54909150610100900460ff1615610ebf57600754336000908152600a6020526040902060010154610e74908890611540565b1115610e925760405162461bcd60e51b815260040161054f90611577565b336000908152600a602052604081206001018054889290610eb4908490611540565b90915550610f8f9050565b336000908152600a6020526040902054861115610f6a5760405162461bcd60e51b815260206004820152605760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7420697360448201527f206d6f7265207468616e20616c6c6f776564206f7220796f7520617265206e6f60648201527f74206c6f6767656420696e746f2077686974656c697374000000000000000000608482015260a40161054f565b336000908152600a602052604081208054889290610f899084906115c9565b90915550505b803414610ff35760405162461bcd60e51b815260206004820152602c60248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a206e6f7420656e6f756760448201526b1a08195d1a195c881cd95b9d60a21b606482015260840161054f565b6004546040516001600160a01b03909116903480156108fc02916000818181858888f1935050505015801561102c573d6000803e3d6000fd5b5060005b868110156110b9576001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af1158015611082573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a6919061150a565b50806110b1816114ef565b915050611030565b5085600660008282546110cc9190611540565b909155505060405186815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250600195945050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561115157611151611112565b604052919050565b600067ffffffffffffffff82111561117357611173611112565b5060051b60200190565b6001600160a01b0381168114610b0757600080fd5b600082601f8301126111a357600080fd5b813560206111b86111b383611159565b611128565b82815260059290921b840181019181810190868411156111d757600080fd5b8286015b848110156111f257803583529183019183016111db565b509695505050505050565b6000806040838503121561121057600080fd5b823567ffffffffffffffff8082111561122857600080fd5b818501915085601f83011261123c57600080fd5b8135602061124c6111b383611159565b82815260059290921b8401810191818101908984111561126b57600080fd5b948201945b838610156112925785356112838161117d565b82529482019490820190611270565b965050860135925050808211156112a857600080fd5b506112b585828601611192565b9150509250929050565b8015158114610b0757600080fd5b6000602082840312156112df57600080fd5b81356107b5816112bf565b6000602082840312156112fc57600080fd5b81356107b58161117d565b60006020828403121561131957600080fd5b5035919050565b60008083601f84011261133257600080fd5b50813567ffffffffffffffff81111561134a57600080fd5b6020830191508360208260051b850101111561136557600080fd5b9250929050565b60008060008060006060868803121561138457600080fd5b85359450602086013567ffffffffffffffff808211156113a357600080fd5b6113af89838a01611320565b909650945060408801359150808211156113c857600080fd5b506113d588828901611320565b969995985093965092949392505050565b600080604083850312156113f957600080fd5b82356114048161117d565b91506020830135611414816112bf565b809150509250929050565b6000806040838503121561143257600080fd5b823561143d8161117d565b915060208301356114148161117d565b60008060006060848603121561146257600080fd5b833561146d8161117d565b9250602084013561147d8161117d565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611503576115036114d9565b5060010190565b60006020828403121561151c57600080fd5b5051919050565b60006020828403121561153557600080fd5b81516107b5816112bf565b60008219821115611553576115536114d9565b500190565b6000816000190483118215151615611572576115726114d9565b500290565b60208082526032908201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e74206973604082015271081b5bdc99481d1a185b88185b1b1bddd95960721b606082015260800190565b6000828210156115db576115db6114d9565b50039056fea2646970667358221220564e9ba230ec476f5de367e5032a48d70a3caa23a149a0484146e637eef320e764736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf50000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
-----Decoded View---------------
Arg [0] : _token (address): 0x4dF461F8c22c0bfB40a51560597D5b946d869d5c
Arg [1] : _mintingPass (address): 0x34cb8B0212D0944821012993A9dd57659F070cF5
Arg [2] : _wallet (address): 0x6D209F75a1a487A1DB6fbfd7C0619B17622F603d
Arg [3] : _receiver (address): 0x6D209F75a1a487A1DB6fbfd7C0619B17622F603d
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c
Arg [1] : 00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf5
Arg [2] : 0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
Arg [3] : 0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.