Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 318 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| _set Public Sale | 14661011 | 1413 days ago | IN | 0 ETH | 0.00140386 | ||||
| Mint | 14660577 | 1413 days ago | IN | 0.1 ETH | 0.00856704 | ||||
| _set Public Sale | 14660559 | 1413 days ago | IN | 0 ETH | 0.0029094 | ||||
| _set All Sale Am... | 14660528 | 1413 days ago | IN | 0 ETH | 0.00137128 | ||||
| _set Pause | 14386198 | 1456 days ago | IN | 0 ETH | 0.00242974 | ||||
| _set Public Sale | 14386198 | 1456 days ago | IN | 0 ETH | 0.00134862 | ||||
| Mint | 14385976 | 1456 days ago | IN | 1 ETH | 0.01366064 | ||||
| _set Public Sale | 14385918 | 1456 days ago | IN | 0 ETH | 0.00188341 | ||||
| _set Public Sale | 14385910 | 1456 days ago | IN | 0 ETH | 0.00150092 | ||||
| _set Pause | 14385910 | 1456 days ago | IN | 0 ETH | 0.0008341 | ||||
| _set All Sale Am... | 14385901 | 1456 days ago | IN | 0 ETH | 0.00113479 | ||||
| _set Pause | 14184762 | 1487 days ago | IN | 0 ETH | 0.00213959 | ||||
| _set Public Sale | 14184760 | 1487 days ago | IN | 0 ETH | 0.00104828 | ||||
| Mint | 14184718 | 1487 days ago | IN | 12.8 ETH | 0.14945716 | ||||
| Mint | 14184562 | 1487 days ago | IN | 0.1 ETH | 0.00464833 | ||||
| Mint | 14184536 | 1487 days ago | IN | 1.7 ETH | 0.02484957 | ||||
| Mint | 14184489 | 1487 days ago | IN | 20 ETH | 0.24170183 | ||||
| Mint | 14181419 | 1487 days ago | IN | 0.3 ETH | 0.0148835 | ||||
| Mint | 14180379 | 1488 days ago | IN | 0.1 ETH | 0.02282203 | ||||
| Mint | 14179816 | 1488 days ago | IN | 0.1 ETH | 0.01975346 | ||||
| Mint | 14179701 | 1488 days ago | IN | 0.3 ETH | 0.02246618 | ||||
| Mint | 14179590 | 1488 days ago | IN | 0.2 ETH | 0.04307948 | ||||
| Mint | 14179442 | 1488 days ago | IN | 0.2 ETH | 0.01499927 | ||||
| Mint | 14179403 | 1488 days ago | IN | 0.3 ETH | 0.01808142 | ||||
| Mint | 14179213 | 1488 days ago | IN | 0.3 ETH | 0.02405823 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14660577 | 1413 days ago | 0.1 ETH | ||||
| - | 14385976 | 1456 days ago | 1 ETH | ||||
| - | 14184718 | 1487 days ago | 12.8 ETH | ||||
| - | 14184562 | 1487 days ago | 0.1 ETH | ||||
| - | 14184536 | 1487 days ago | 1.7 ETH | ||||
| - | 14184489 | 1487 days ago | 20 ETH | ||||
| - | 14181419 | 1487 days ago | 0.3 ETH | ||||
| - | 14180379 | 1488 days ago | 0.1 ETH | ||||
| - | 14179816 | 1488 days ago | 0.1 ETH | ||||
| - | 14179701 | 1488 days ago | 0.3 ETH | ||||
| - | 14179590 | 1488 days ago | 0.2 ETH | ||||
| - | 14179442 | 1488 days ago | 0.2 ETH | ||||
| - | 14179403 | 1488 days ago | 0.3 ETH | ||||
| - | 14179213 | 1488 days ago | 0.3 ETH | ||||
| - | 14179116 | 1488 days ago | 0.1 ETH | ||||
| - | 14179085 | 1488 days ago | 0.6 ETH | ||||
| - | 14179024 | 1488 days ago | 0.1 ETH | ||||
| - | 14178920 | 1488 days ago | 0.1 ETH | ||||
| - | 14178901 | 1488 days ago | 0.1 ETH | ||||
| - | 14178891 | 1488 days ago | 0.2 ETH | ||||
| - | 14178848 | 1488 days ago | 0.1 ETH | ||||
| - | 14178778 | 1488 days ago | 1.5 ETH | ||||
| - | 14178766 | 1488 days ago | 0.1 ETH | ||||
| - | 14178762 | 1488 days ago | 0.1 ETH | ||||
| - | 14178752 | 1488 days ago | 0.1 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
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;
uint public maxPublicSaleAmount = 500;
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, uint _saleCounter) {
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;
saleCounter = _saleCounter;
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 _setSaleCounter(uint _saleCounter)
external
onlyOwner
returns (bool)
{
saleCounter = _saleCounter;
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 _setMaxPublicSaleAmount(uint _maxPublicSaleAmount)
external
onlyOwner
returns(bool)
{
maxPublicSaleAmount = _maxPublicSaleAmount;
return true;
}
function _setPrice(uint _price)
external
onlyOwner
returns(bool)
{
price = _price;
return true;
}
function _setDiscountPrice(uint _discountPrice)
external
onlyOwner
returns(bool)
{
discountPrice = _discountPrice;
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
Contract ABI
API[{"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"},{"internalType":"uint256","name":"_saleCounter","type":"uint256"}],"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":"uint256","name":"_discountPrice","type":"uint256"}],"name":"_setDiscountPrice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicSaleAmount","type":"uint256"}],"name":"_setMaxPublicSaleAmount","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":"uint256","name":"_price","type":"uint256"}],"name":"_setPrice","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":"uint256","name":"_saleCounter","type":"uint256"}],"name":"_setSaleCounter","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
60806040526127106005556101f460075567016345785d8a000060085567013fbe85edc90000600955600d805461ffff191660011790553480156200004357600080fd5b5060405162001aec38038062001aec8339810160408190526200006691620002c6565b62000071336200025d565b6001600160a01b038516158015906200009257506001600160a01b03841615155b8015620000a757506001600160a01b03831615155b620001065760405162461bcd60e51b815260206004820152602560248201527f4d696e744e46543a3a636f6e7374727563746f723a2061646472657373206973604482015264081b9d5b1b60da1b606482015260840160405180910390fd5b600180546001600160a01b039687166001600160a01b0319918216178255600280549688169682169690961790955560048054948716948616949094179093556003805492909516919093161783556006918255336000908152600c602090815260408220805460ff1916909317909255600b9091527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76929092557f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf5560097fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba9163455600f7f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33e55601e7f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c7845560059052605a7febae6141bae5521e99e0a8d610356b0f501fea54980b59c84841db43ba7204f4556200033a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620002c357600080fd5b50565b600080600080600060a08688031215620002df57600080fd5b8551620002ec81620002ad565b6020870151909550620002ff81620002ad565b60408701519094506200031281620002ad565b60608701519093506200032581620002ad565b80925050608086015190509295509295909350565b6117a2806200034a6000396000f3fe6080604052600436106101d85760003560e01c8063a5a865dc11610102578063e203b50611610095578063fbf6df5d11610064578063fbf6df5d14610543578063fc0c546a14610570578063fd01a86a14610590578063fdff9b4d146105b057600080fd5b8063e203b5061461049a578063f2fde38b146104e3578063f7260d3e14610503578063fb0d58801461052357600080fd5b8063b5af4c15116100d1578063b5af4c1514610424578063c6eb3c8c14610444578063ce4ab1e614610464578063dcfad95c1461048457600080fd5b8063a5a865dc146103b8578063a8fecde9146103d7578063abf185c4146103ea578063b187bd261461040a57600080fd5b806369cc27311161017a5780638da5cb5b116101495780638da5cb5b1461035b578063999600c314610379578063a035b1fe1461038f578063a0712d68146103a557600080fd5b806369cc2731146102ee5780636b088bbe1461030e578063715018a61461032e57806384ad8e8f1461034557600080fd5b80633488ed57116101b65780633488ed571461025657806348941e491461027657806351be61a714610296578063521eb273146102ce57600080fd5b80630387b0a2146101dd5780630ea412ab146102065780632a47db1914610236575b600080fd5b3480156101e957600080fd5b506101f360065481565b6040519081526020015b60405180910390f35b34801561021257600080fd5b5061022661022136600461129e565b6105e0565b60405190151581526020016101fd565b34801561024257600080fd5b506102266102513660046113a2565b61061d565b34801561026257600080fd5b5061022661027136600461129e565b610745565b34801561028257600080fd5b50610226610291366004611472565b610779565b3480156102a257600080fd5b506002546102b6906001600160a01b031681565b6040516001600160a01b0390911681526020016101fd565b3480156102da57600080fd5b506004546102b6906001600160a01b031681565b3480156102fa57600080fd5b50610226610309366004611472565b6107c1565b34801561031a57600080fd5b5061022661032936600461148f565b610842565b34801561033a57600080fd5b50610343610892565b005b34801561035157600080fd5b506101f360095481565b34801561036757600080fd5b506000546001600160a01b03166102b6565b34801561038557600080fd5b506101f360055481565b34801561039b57600080fd5b506101f360085481565b6102266103b336600461129e565b6108c8565b3480156103c457600080fd5b50600d5461022690610100900460ff1681565b6102266103e53660046114f8565b6108e0565b3480156103f657600080fd5b50610226610405366004611572565b61095c565b34801561041657600080fd5b50600d546102269060ff1681565b34801561043057600080fd5b5061022661043f3660046115ab565b6109b6565b34801561045057600080fd5b5061022661045f3660046115d9565b610ac2565b34801561047057600080fd5b5061022661047f36600461129e565b610b5f565b34801561049057600080fd5b506101f360075481565b3480156104a657600080fd5b506104ce6104b536600461148f565b600a602052600090815260409020805460019091015482565b604080519283526020830191909152016101fd565b3480156104ef57600080fd5b506103436104fe36600461148f565b610b93565b34801561050f57600080fd5b506003546102b6906001600160a01b031681565b34801561052f57600080fd5b5061022661053e36600461129e565b610c2e565b34801561054f57600080fd5b506101f361055e36600461129e565b600b6020526000908152604090205481565b34801561057c57600080fd5b506001546102b6906001600160a01b031681565b34801561059c57600080fd5b506102266105ab36600461129e565b610c62565b3480156105bc57600080fd5b506102266105cb36600461148f565b600c6020526000908152604090205460ff1681565b600080546001600160a01b031633146106145760405162461bcd60e51b815260040161060b9061161a565b60405180910390fd5b50600855600190565b600080546001600160a01b031633146106485760405162461bcd60e51b815260040161060b9061161a565b81518351146106c95760405162461bcd60e51b815260206004820152604160248201527f4d696e744e46543a3a5f61646457686974656c6973743a20616d6f756e74732060448201527f6c656e677468206d75737420626520657175616c207261746573206c656e67746064820152600d60fb1b608482015260a40161060b565b60005b835181101561073b578281815181106106e7576106e761164f565b6020026020010151600a60008684815181106107055761070561164f565b6020908102919091018101516001600160a01b0316825281019190915260400160002055806107338161167b565b9150506106cc565b5060019392505050565b600080546001600160a01b031633146107705760405162461bcd60e51b815260040161060b9061161a565b50600655600190565b600080546001600160a01b031633146107a45760405162461bcd60e51b815260040161060b9061161a565b50600d80548215156101000261ff00199091161790556001919050565b336000908152600c602052604081205460ff1661082b5760405162461bcd60e51b815260206004820152602260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760448201526132b960f11b606482015260840161060b565b50600d805460ff1916911515919091179055600190565b600080546001600160a01b0316331461086d5760405162461bcd60e51b815260040161060b9061161a565b50600480546001600160a01b0383166001600160a01b03199091161790556001919050565b6000546001600160a01b031633146108bc5760405162461bcd60e51b815260040161060b9061161a565b6108c66000610c96565b565b600060606108d98360008384610ce6565b9392505050565b600061095286600187878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092019190915250610ce692505050565b9695505050505050565b600080546001600160a01b031633146109875760405162461bcd60e51b815260040161060b9061161a565b506001600160a01b0382166000908152600c60205260409020805482151560ff19909116179055600192915050565b600080546001600160a01b031633146109e15760405162461bcd60e51b815260040161060b9061161a565b6040516370a0823160e01b81523060048201526001600160a01b0384169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a539190611696565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073b91906116af565b600080546001600160a01b03163314610aed5760405162461bcd60e51b815260040161060b9061161a565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018490528516906323b872dd90606401600060405180830381600087803b158015610b3d57600080fd5b505af1158015610b51573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610b8a5760405162461bcd60e51b815260040161060b9061161a565b50600555600190565b6000546001600160a01b03163314610bbd5760405162461bcd60e51b815260040161060b9061161a565b6001600160a01b038116610c225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060b565b610c2b81610c96565b50565b600080546001600160a01b03163314610c595760405162461bcd60e51b815260040161060b9061161a565b50600955600190565b600080546001600160a01b03163314610c8d5760405162461bcd60e51b815260040161060b9061161a565b50600755600190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008151835114610d61576040805162461bcd60e51b81526020600482015260248101919091527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7473206c60448201527f656e677468206d75737420626520657175616c207261746573206c656e677468606482015260840161060b565b60055485600654610d7291906116cc565b1115610dd15760405162461bcd60e51b815260206004820152602860248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20746f6b656e732061726044820152670ca40cadcdeeaced60c31b606482015260840161060b565b600d5460ff1615610e345760405162461bcd60e51b815260206004820152602760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a2073616c6573206172656044820152660818db1bdcd95960ca1b606482015260840161060b565b60008415610fbe5785600954610e4a91906116e4565b90506000805b8451811015610f985760025460035487516001600160a01b039283169263f242432a9233929116908a9086908110610e8a57610e8a61164f565b6020026020010151898681518110610ea457610ea461164f565b60209081029190910101516040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610f1157600080fd5b505af1158015610f25573d6000803e3d6000fd5b50505050848181518110610f3b57610f3b61164f565b6020026020010151600b6000888481518110610f5957610f5961164f565b6020026020010151815260200190815260200160002054610f7a91906116e4565b610f8490836116cc565b915080610f908161167b565b915050610e50565b50808714610fb85760405162461bcd60e51b815260040161060b90611703565b5061111b565b85600854610fcc91906116e4565b600d54909150610100900460ff161561104b57600754336000908152600a60205260409020600101546110009088906116cc565b111561101e5760405162461bcd60e51b815260040161060b90611703565b336000908152600a6020526040812060010180548892906110409084906116cc565b9091555061111b9050565b336000908152600a60205260409020548611156110f65760405162461bcd60e51b815260206004820152605760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7420697360448201527f206d6f7265207468616e20616c6c6f776564206f7220796f7520617265206e6f60648201527f74206c6f6767656420696e746f2077686974656c697374000000000000000000608482015260a40161060b565b336000908152600a602052604081208054889290611115908490611755565b90915550505b80341461117f5760405162461bcd60e51b815260206004820152602c60248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a206e6f7420656e6f756760448201526b1a08195d1a195c881cd95b9d60a21b606482015260840161060b565b6004546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156111b8573d6000803e3d6000fd5b5060005b86811015611245576001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af115801561120e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112329190611696565b508061123d8161167b565b9150506111bc565b50856006600082825461125891906116cc565b909155505060405186815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250600195945050505050565b6000602082840312156112b057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112f6576112f66112b7565b604052919050565b600067ffffffffffffffff821115611318576113186112b7565b5060051b60200190565b6001600160a01b0381168114610c2b57600080fd5b600082601f83011261134857600080fd5b8135602061135d611358836112fe565b6112cd565b82815260059290921b8401810191818101908684111561137c57600080fd5b8286015b848110156113975780358352918301918301611380565b509695505050505050565b600080604083850312156113b557600080fd5b823567ffffffffffffffff808211156113cd57600080fd5b818501915085601f8301126113e157600080fd5b813560206113f1611358836112fe565b82815260059290921b8401810191818101908984111561141057600080fd5b948201945b8386101561143757853561142881611322565b82529482019490820190611415565b9650508601359250508082111561144d57600080fd5b5061145a85828601611337565b9150509250929050565b8015158114610c2b57600080fd5b60006020828403121561148457600080fd5b81356108d981611464565b6000602082840312156114a157600080fd5b81356108d981611322565b60008083601f8401126114be57600080fd5b50813567ffffffffffffffff8111156114d657600080fd5b6020830191508360208260051b85010111156114f157600080fd5b9250929050565b60008060008060006060868803121561151057600080fd5b85359450602086013567ffffffffffffffff8082111561152f57600080fd5b61153b89838a016114ac565b9096509450604088013591508082111561155457600080fd5b50611561888289016114ac565b969995985093965092949392505050565b6000806040838503121561158557600080fd5b823561159081611322565b915060208301356115a081611464565b809150509250929050565b600080604083850312156115be57600080fd5b82356115c981611322565b915060208301356115a081611322565b6000806000606084860312156115ee57600080fd5b83356115f981611322565b9250602084013561160981611322565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561168f5761168f611665565b5060010190565b6000602082840312156116a857600080fd5b5051919050565b6000602082840312156116c157600080fd5b81516108d981611464565b600082198211156116df576116df611665565b500190565b60008160001904831182151516156116fe576116fe611665565b500290565b60208082526032908201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e74206973604082015271081b5bdc99481d1a185b88185b1b1bddd95960721b606082015260800190565b60008282101561176757611767611665565b50039056fea2646970667358221220fd797733c1d842f5f80f6e8f45c73a9f2070679a724c40c610e85a95881f912e64736f6c634300080a00330000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf50000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000000000000000000000000000000000000000001b58
Deployed Bytecode
0x6080604052600436106101d85760003560e01c8063a5a865dc11610102578063e203b50611610095578063fbf6df5d11610064578063fbf6df5d14610543578063fc0c546a14610570578063fd01a86a14610590578063fdff9b4d146105b057600080fd5b8063e203b5061461049a578063f2fde38b146104e3578063f7260d3e14610503578063fb0d58801461052357600080fd5b8063b5af4c15116100d1578063b5af4c1514610424578063c6eb3c8c14610444578063ce4ab1e614610464578063dcfad95c1461048457600080fd5b8063a5a865dc146103b8578063a8fecde9146103d7578063abf185c4146103ea578063b187bd261461040a57600080fd5b806369cc27311161017a5780638da5cb5b116101495780638da5cb5b1461035b578063999600c314610379578063a035b1fe1461038f578063a0712d68146103a557600080fd5b806369cc2731146102ee5780636b088bbe1461030e578063715018a61461032e57806384ad8e8f1461034557600080fd5b80633488ed57116101b65780633488ed571461025657806348941e491461027657806351be61a714610296578063521eb273146102ce57600080fd5b80630387b0a2146101dd5780630ea412ab146102065780632a47db1914610236575b600080fd5b3480156101e957600080fd5b506101f360065481565b6040519081526020015b60405180910390f35b34801561021257600080fd5b5061022661022136600461129e565b6105e0565b60405190151581526020016101fd565b34801561024257600080fd5b506102266102513660046113a2565b61061d565b34801561026257600080fd5b5061022661027136600461129e565b610745565b34801561028257600080fd5b50610226610291366004611472565b610779565b3480156102a257600080fd5b506002546102b6906001600160a01b031681565b6040516001600160a01b0390911681526020016101fd565b3480156102da57600080fd5b506004546102b6906001600160a01b031681565b3480156102fa57600080fd5b50610226610309366004611472565b6107c1565b34801561031a57600080fd5b5061022661032936600461148f565b610842565b34801561033a57600080fd5b50610343610892565b005b34801561035157600080fd5b506101f360095481565b34801561036757600080fd5b506000546001600160a01b03166102b6565b34801561038557600080fd5b506101f360055481565b34801561039b57600080fd5b506101f360085481565b6102266103b336600461129e565b6108c8565b3480156103c457600080fd5b50600d5461022690610100900460ff1681565b6102266103e53660046114f8565b6108e0565b3480156103f657600080fd5b50610226610405366004611572565b61095c565b34801561041657600080fd5b50600d546102269060ff1681565b34801561043057600080fd5b5061022661043f3660046115ab565b6109b6565b34801561045057600080fd5b5061022661045f3660046115d9565b610ac2565b34801561047057600080fd5b5061022661047f36600461129e565b610b5f565b34801561049057600080fd5b506101f360075481565b3480156104a657600080fd5b506104ce6104b536600461148f565b600a602052600090815260409020805460019091015482565b604080519283526020830191909152016101fd565b3480156104ef57600080fd5b506103436104fe36600461148f565b610b93565b34801561050f57600080fd5b506003546102b6906001600160a01b031681565b34801561052f57600080fd5b5061022661053e36600461129e565b610c2e565b34801561054f57600080fd5b506101f361055e36600461129e565b600b6020526000908152604090205481565b34801561057c57600080fd5b506001546102b6906001600160a01b031681565b34801561059c57600080fd5b506102266105ab36600461129e565b610c62565b3480156105bc57600080fd5b506102266105cb36600461148f565b600c6020526000908152604090205460ff1681565b600080546001600160a01b031633146106145760405162461bcd60e51b815260040161060b9061161a565b60405180910390fd5b50600855600190565b600080546001600160a01b031633146106485760405162461bcd60e51b815260040161060b9061161a565b81518351146106c95760405162461bcd60e51b815260206004820152604160248201527f4d696e744e46543a3a5f61646457686974656c6973743a20616d6f756e74732060448201527f6c656e677468206d75737420626520657175616c207261746573206c656e67746064820152600d60fb1b608482015260a40161060b565b60005b835181101561073b578281815181106106e7576106e761164f565b6020026020010151600a60008684815181106107055761070561164f565b6020908102919091018101516001600160a01b0316825281019190915260400160002055806107338161167b565b9150506106cc565b5060019392505050565b600080546001600160a01b031633146107705760405162461bcd60e51b815260040161060b9061161a565b50600655600190565b600080546001600160a01b031633146107a45760405162461bcd60e51b815260040161060b9061161a565b50600d80548215156101000261ff00199091161790556001919050565b336000908152600c602052604081205460ff1661082b5760405162461bcd60e51b815260206004820152602260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206d616e616760448201526132b960f11b606482015260840161060b565b50600d805460ff1916911515919091179055600190565b600080546001600160a01b0316331461086d5760405162461bcd60e51b815260040161060b9061161a565b50600480546001600160a01b0383166001600160a01b03199091161790556001919050565b6000546001600160a01b031633146108bc5760405162461bcd60e51b815260040161060b9061161a565b6108c66000610c96565b565b600060606108d98360008384610ce6565b9392505050565b600061095286600187878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808b0282810182019093528a82529093508a925089918291850190849080828437600092019190915250610ce692505050565b9695505050505050565b600080546001600160a01b031633146109875760405162461bcd60e51b815260040161060b9061161a565b506001600160a01b0382166000908152600c60205260409020805482151560ff19909116179055600192915050565b600080546001600160a01b031633146109e15760405162461bcd60e51b815260040161060b9061161a565b6040516370a0823160e01b81523060048201526001600160a01b0384169063a9059cbb90849083906370a0823190602401602060405180830381865afa158015610a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a539190611696565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610a9e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073b91906116af565b600080546001600160a01b03163314610aed5760405162461bcd60e51b815260040161060b9061161a565b6040516323b872dd60e01b81523060048201526001600160a01b038481166024830152604482018490528516906323b872dd90606401600060405180830381600087803b158015610b3d57600080fd5b505af1158015610b51573d6000803e3d6000fd5b506001979650505050505050565b600080546001600160a01b03163314610b8a5760405162461bcd60e51b815260040161060b9061161a565b50600555600190565b6000546001600160a01b03163314610bbd5760405162461bcd60e51b815260040161060b9061161a565b6001600160a01b038116610c225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161060b565b610c2b81610c96565b50565b600080546001600160a01b03163314610c595760405162461bcd60e51b815260040161060b9061161a565b50600955600190565b600080546001600160a01b03163314610c8d5760405162461bcd60e51b815260040161060b9061161a565b50600755600190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008151835114610d61576040805162461bcd60e51b81526020600482015260248101919091527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7473206c60448201527f656e677468206d75737420626520657175616c207261746573206c656e677468606482015260840161060b565b60055485600654610d7291906116cc565b1115610dd15760405162461bcd60e51b815260206004820152602860248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20746f6b656e732061726044820152670ca40cadcdeeaced60c31b606482015260840161060b565b600d5460ff1615610e345760405162461bcd60e51b815260206004820152602760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a2073616c6573206172656044820152660818db1bdcd95960ca1b606482015260840161060b565b60008415610fbe5785600954610e4a91906116e4565b90506000805b8451811015610f985760025460035487516001600160a01b039283169263f242432a9233929116908a9086908110610e8a57610e8a61164f565b6020026020010151898681518110610ea457610ea461164f565b60209081029190910101516040516001600160e01b031960e087901b1681526001600160a01b0394851660048201529390921660248401526044830152606482015260a06084820152600060a482015260c401600060405180830381600087803b158015610f1157600080fd5b505af1158015610f25573d6000803e3d6000fd5b50505050848181518110610f3b57610f3b61164f565b6020026020010151600b6000888481518110610f5957610f5961164f565b6020026020010151815260200190815260200160002054610f7a91906116e4565b610f8490836116cc565b915080610f908161167b565b915050610e50565b50808714610fb85760405162461bcd60e51b815260040161060b90611703565b5061111b565b85600854610fcc91906116e4565b600d54909150610100900460ff161561104b57600754336000908152600a60205260409020600101546110009088906116cc565b111561101e5760405162461bcd60e51b815260040161060b90611703565b336000908152600a6020526040812060010180548892906110409084906116cc565b9091555061111b9050565b336000908152600a60205260409020548611156110f65760405162461bcd60e51b815260206004820152605760248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e7420697360448201527f206d6f7265207468616e20616c6c6f776564206f7220796f7520617265206e6f60648201527f74206c6f6767656420696e746f2077686974656c697374000000000000000000608482015260a40161060b565b336000908152600a602052604081208054889290611115908490611755565b90915550505b80341461117f5760405162461bcd60e51b815260206004820152602c60248201527f4d696e744e46543a3a6d696e74496e7465726e616c3a206e6f7420656e6f756760448201526b1a08195d1a195c881cd95b9d60a21b606482015260840161060b565b6004546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156111b8573d6000803e3d6000fd5b5060005b86811015611245576001546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af115801561120e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112329190611696565b508061123d8161167b565b9150506111bc565b50856006600082825461125891906116cc565b909155505060405186815233907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859060200160405180910390a250600195945050505050565b6000602082840312156112b057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112f6576112f66112b7565b604052919050565b600067ffffffffffffffff821115611318576113186112b7565b5060051b60200190565b6001600160a01b0381168114610c2b57600080fd5b600082601f83011261134857600080fd5b8135602061135d611358836112fe565b6112cd565b82815260059290921b8401810191818101908684111561137c57600080fd5b8286015b848110156113975780358352918301918301611380565b509695505050505050565b600080604083850312156113b557600080fd5b823567ffffffffffffffff808211156113cd57600080fd5b818501915085601f8301126113e157600080fd5b813560206113f1611358836112fe565b82815260059290921b8401810191818101908984111561141057600080fd5b948201945b8386101561143757853561142881611322565b82529482019490820190611415565b9650508601359250508082111561144d57600080fd5b5061145a85828601611337565b9150509250929050565b8015158114610c2b57600080fd5b60006020828403121561148457600080fd5b81356108d981611464565b6000602082840312156114a157600080fd5b81356108d981611322565b60008083601f8401126114be57600080fd5b50813567ffffffffffffffff8111156114d657600080fd5b6020830191508360208260051b85010111156114f157600080fd5b9250929050565b60008060008060006060868803121561151057600080fd5b85359450602086013567ffffffffffffffff8082111561152f57600080fd5b61153b89838a016114ac565b9096509450604088013591508082111561155457600080fd5b50611561888289016114ac565b969995985093965092949392505050565b6000806040838503121561158557600080fd5b823561159081611322565b915060208301356115a081611464565b809150509250929050565b600080604083850312156115be57600080fd5b82356115c981611322565b915060208301356115a081611322565b6000806000606084860312156115ee57600080fd5b83356115f981611322565b9250602084013561160981611322565b929592945050506040919091013590565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561168f5761168f611665565b5060010190565b6000602082840312156116a857600080fd5b5051919050565b6000602082840312156116c157600080fd5b81516108d981611464565b600082198211156116df576116df611665565b500190565b60008160001904831182151516156116fe576116fe611665565b500290565b60208082526032908201527f4d696e744e46543a3a6d696e74496e7465726e616c3a20616d6f756e74206973604082015271081b5bdc99481d1a185b88185b1b1bddd95960721b606082015260800190565b60008282101561176757611767611665565b50039056fea2646970667358221220fd797733c1d842f5f80f6e8f45c73a9f2070679a724c40c610e85a95881f912e64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf50000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d0000000000000000000000000000000000000000000000000000000000001b58
-----Decoded View---------------
Arg [0] : _token (address): 0x4dF461F8c22c0bfB40a51560597D5b946d869d5c
Arg [1] : _mintingPass (address): 0x34cb8B0212D0944821012993A9dd57659F070cF5
Arg [2] : _wallet (address): 0x6D209F75a1a487A1DB6fbfd7C0619B17622F603d
Arg [3] : _receiver (address): 0x6D209F75a1a487A1DB6fbfd7C0619B17622F603d
Arg [4] : _saleCounter (uint256): 7000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000004df461f8c22c0bfb40a51560597d5b946d869d5c
Arg [1] : 00000000000000000000000034cb8b0212d0944821012993a9dd57659f070cf5
Arg [2] : 0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
Arg [3] : 0000000000000000000000006d209f75a1a487a1db6fbfd7c0619b17622f603d
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001b58
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.