Source Code
Latest 25 from a total of 4,573 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Buy Single | 14248855 | 1462 days ago | IN | 0.3 ETH | 0.00194477 | ||||
| Buy | 14172616 | 1474 days ago | IN | 0.6 ETH | 0.00370537 | ||||
| Buy | 14172614 | 1474 days ago | IN | 0.6 ETH | 0.00418576 | ||||
| Buy | 14172612 | 1474 days ago | IN | 0.6 ETH | 0.00414762 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14119629 | 1482 days ago | IN | 0.3 ETH | 0.00335846 | ||||
| Buy Single | 14112328 | 1483 days ago | IN | 0.3 ETH | 0.00335982 | ||||
| Buy Single | 14108288 | 1484 days ago | IN | 0.3 ETH | 0.00534288 | ||||
| Buy | 14102068 | 1485 days ago | IN | 0.9 ETH | 0.00498728 | ||||
| Buy | 14102068 | 1485 days ago | IN | 0.9 ETH | 0.00498728 | ||||
| Buy | 14102068 | 1485 days ago | IN | 0.9 ETH | 0.00498728 | ||||
| Withdraw | 14101226 | 1485 days ago | IN | 0 ETH | 0.00380008 |
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MintablePresale
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 "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "./interfaces/IMintableERC721.sol";
/**
* @title Mintable Presale
*
* @notice Mintable Presale sales fixed amount of NFTs (tokens) for a fixed price in a fixed period of time;
* it can be used in a 10k sale campaign and the smart contract is generic and
* can sell any type of mintable NFT (see MintableERC721 interface)
*
* @dev Technically, all the "fixed" parameters can be changed on the go after smart contract is deployed
* and operational, but this ability is reserved for quick fix-like adjustments, and to provide
* an ability to restart and run a similar sale after the previous one ends
*
* @dev When buying a token from this smart contract, next token is minted to the recipient
*
* @dev Supports functionality to limit amount of tokens that can be minted to each address
*
* @dev Deployment and setup:
* 1. Deploy smart contract, specify smart contract address during the deployment:
* - Mintable ER721 deployed instance address
* 2. Execute `initialize` function and set up the sale parameters;
* sale is not active until it's initialized
*
*/
contract MintablePresale is Ownable {
// Use Zeppelin MerkleProof Library to verify Merkle proofs
using MerkleProof for bytes32[];
// ----- SLOT.1 (192/256)
/**
* @dev Next token ID to mint;
* initially this is the first "free" ID which can be minted;
* at any point in time this should point to a free, mintable ID
* for the token
*
* @dev `nextId` cannot be zero, we do not ever mint NFTs with zero IDs
*/
uint32 public nextId = 1;
/**
* @dev Last token ID to mint;
* once `nextId` exceeds `finalId` the sale pauses
*/
uint32 public finalId;
/**
* @notice Once set, limits the amount of tokens one can buy in a single transaction;
* When unset (zero) the amount of tokens is limited only by block size and
* amount of tokens left for sale
*/
uint32 public batchLimit;
/**
* @notice Once set, limits the amount of tokens one address can buy for the duration of the sale;
* When unset (zero) the amount of tokens is limited only by the amount of tokens left for sale
*/
uint32 public mintLimit;
/**
* @notice Counter of the tokens sold (minted) by this sale smart contract
*/
uint32 public soldCounter;
/**
* @notice Merkle tree root to validate (address, cost, startDate, endDate)
* tuples
*/
bytes32 public root;
/**
* @dev Smart contract unique identifier, a random number
*
* @dev Should be regenerated each time smart contact source code is changed
* and changes smart contract itself is to be redeployed
*
* @dev Generated using https://www.random.org/bytes/
*/
uint256 public constant UID = 0xacc007b3ac718da27530715cb02078bcd68024f42f435651f0c2b4231f0e399;
// ----- NON-SLOTTED
/**
* @dev Mintable ERC721 contract address to mint
*/
address public immutable tokenContract;
// ----- NON-SLOTTED
/**
* @dev Address of developer to receive withdraw fees
*/
address public immutable developerAddress;
// ----- NON-SLOTTED
/**
* @dev Number of mints performed by address
*/
mapping(address => uint32) public mints;
/**
* @dev Fired in initialize()
*
* @param _by an address which executed the initialization
* @param _nextId next ID of the token to mint
* @param _finalId final ID of the token to mint
* @param _batchLimit how many tokens is allowed to buy in a single transaction
* @param _root merkle tree root
*/
event Initialized(
address indexed _by,
uint32 _nextId,
uint32 _finalId,
uint32 _batchLimit,
uint32 _limit,
bytes32 _root
);
/**
* @dev Fired in buy(), buyTo(), buySingle(), and buySingleTo()
*
* @param _by an address which executed and payed the transaction, probably a buyer
* @param _to an address which received token(s) minted
* @param _amount number of tokens minted
* @param _value ETH amount charged
*/
event Bought(address indexed _by, address indexed _to, uint256 _amount, uint256 _value);
/**
* @dev Fired in withdraw() and withdrawTo()
*
* @param _by an address which executed the withdrawal
* @param _to an address which received the ETH withdrawn
* @param _value ETH amount withdrawn
*/
event Withdrawn(address indexed _by, address indexed _to, uint256 _value);
/**
* @dev Creates/deploys MintableSale and binds it to Mintable ERC721
* smart contract on construction
*
* @param _tokenContract deployed Mintable ERC721 smart contract; sale will mint ERC721
* tokens of that type to the recipient
*/
constructor(address _tokenContract, address _developerAddress) {
// verify the input is set
require(_tokenContract != address(0), "token contract is not set");
// verify input is valid smart contract of the expected interfaces
require(
IERC165(_tokenContract).supportsInterface(type(IMintableERC721).interfaceId)
&& IERC165(_tokenContract).supportsInterface(type(IMintableERC721).interfaceId),
"unexpected token contract type"
);
// assign the addresses
tokenContract = _tokenContract;
developerAddress = _developerAddress;
}
/**
* @notice Number of tokens left on sale
*
* @dev Doesn't take into account if sale is active or not,
* if `nextId - finalId < 1` returns zero
*
* @return number of tokens left on sale
*/
function itemsOnSale() public view returns(uint32) {
// calculate items left on sale, taking into account that
// finalId is on sale (inclusive bound)
return finalId > nextId? finalId + 1 - nextId: 0;
}
/**
* @notice Number of tokens available on sale
*
* @dev Takes into account if sale is active or not, doesn't throw,
* returns zero if sale is inactive
*
* @return number of tokens available on sale
*/
function itemsAvailable() public view returns(uint32) {
// delegate to itemsOnSale() if sale is active, return zero otherwise
return isActive() ? itemsOnSale(): 0;
}
/**
* @notice Active sale is an operational sale capable of minting and selling tokens
*
* @dev The sale is active when all the requirements below are met:
* 1. `finalId` is not reached (`nextId <= finalId`)
*
* @dev Function is marked as virtual to be overridden in the helper test smart contract (mock)
* in order to test how it affects the sale process
*
* @return true if sale is active (operational) and can sell tokens, false otherwise
*/
function isActive() public view virtual returns(bool) {
// evaluate sale state based on the internal state variables and return
return nextId <= finalId;
}
/**
* @dev Restricted access function to set up sale parameters, all at once,
* or any subset of them
*
* @dev To skip parameter initialization, set it to `-1`,
* that is a maximum value for unsigned integer of the corresponding type;
* `_aliSource` and `_aliValue` must both be either set or skipped
*
* @dev Example: following initialization will update only _itemPrice and _batchLimit,
* leaving the rest of the fields unchanged
* initialize(
* 0xFFFFFFFF,
* 0xFFFFFFFF,
* 10,
* 0xFFFFFFFF
* )
*
* @dev Requires next ID to be greater than zero (strict): `_nextId > 0`
*
* @dev Requires transaction sender to have `ROLE_SALE_MANAGER` role
*
* @param _nextId next ID of the token to mint, will be increased
* in smart contract storage after every successful buy
* @param _finalId final ID of the token to mint; sale is capable of producing
* `_finalId - _nextId + 1` tokens
* when current time is within _saleStart (inclusive) and _saleEnd (exclusive)
* @param _batchLimit how many tokens is allowed to buy in a single transaction,
* set to zero to disable the limit
* @param _mintLimit how many tokens is allowed to buy for the duration of the sale,
* set to zero to disable the limit
* @param _root merkle tree root used to verify whether an address can mint
*/
function initialize(
uint32 _nextId, // <<<--- keep type in sync with the body type(uint32).max !!!
uint32 _finalId, // <<<--- keep type in sync with the body type(uint32).max !!!
uint32 _batchLimit, // <<<--- keep type in sync with the body type(uint32).max !!!
uint32 _mintLimit, // <<<--- keep type in sync with the body type(uint32).max !!!
bytes32 _root // <<<--- keep type in sync with the 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF !!!
) public onlyOwner {
// verify the inputs
require(_nextId > 0, "zero nextId");
// no need to verify extra parameters - "incorrect" values will deactivate the sale
// initialize contract state based on the values supplied
// take into account our convention that value `-1` means "do not set"
// 0xFFFFFFFFFFFFFFFF, 64 bits
// 0xFFFFFFFF, 32 bits
if(_nextId != type(uint32).max) {
nextId = _nextId;
}
// 0xFFFFFFFF, 32 bits
if(_finalId != type(uint32).max) {
finalId = _finalId;
}
// 0xFFFFFFFF, 32 bits
if(_batchLimit != type(uint32).max) {
batchLimit = _batchLimit;
}
// 0xFFFFFFFF, 32 bits
if(_mintLimit != type(uint32).max) {
mintLimit = _mintLimit;
}
// 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF, 256 bits
if(_root != 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) {
root = _root;
}
// emit an event - read values from the storage since not all of them might be set
emit Initialized(
msg.sender,
nextId,
finalId,
batchLimit,
mintLimit,
root
);
}
/**
* @notice Buys several (at least two) tokens in a batch.
* Accepts ETH as payment and mints a token
*
* @param _amount amount of tokens to create, two or more
*/
function buy(uint256 _price, uint256 _start, uint256 _end, bytes32[] memory _proof, uint32 _amount) public payable {
// delegate to `buyTo` with the transaction sender set to be a recipient
buyTo(msg.sender, _price, _start, _end, _proof, _amount);
}
/**
* @notice Buys several (at least two) tokens in a batch to an address specified.
* Accepts ETH as payment and mints tokens
*
* @param _to address to mint tokens to
* @param _amount amount of tokens to create, two or more
*/
function buyTo(address _to, uint256 _price, uint256 _start, uint256 _end, bytes32[] memory _proof, uint32 _amount) public payable {
// construct Merkle tree leaf from the inputs supplied
bytes32 leaf = keccak256(abi.encodePacked(msg.sender, _price, _start, _end));
// verify proof
require(_proof.verify(root, leaf), "invalid proof");
// verify the inputs
require(_to != address(0), "recipient not set");
require(_amount > 1 && (batchLimit == 0 || _amount <= batchLimit), "incorrect amount");
require(block.timestamp >= _start, "sale not yet started");
require(block.timestamp <= _end, "sale ended");
// verify mint limit
if(mintLimit != 0) {
require(mints[msg.sender] + _amount <= mintLimit, "mint limit reached");
}
// verify there is enough items available to buy the amount
// verifies sale is in active state under the hood
require(itemsAvailable() >= _amount, "inactive sale or not enough items available");
// calculate the total price required and validate the transaction value
uint256 totalPrice = _price * _amount;
require(msg.value >= totalPrice, "not enough funds");
// mint token to to the recipient
IMintableERC721(tokenContract).mintBatch(_to, nextId, _amount);
// increment `nextId`
nextId += _amount;
// increment `soldCounter`
soldCounter += _amount;
// increment sender mints
mints[msg.sender] += _amount;
// if ETH amount supplied exceeds the price
if(msg.value > totalPrice) {
// send excess amount back to sender
payable(msg.sender).transfer(msg.value - totalPrice);
}
// emit en event
emit Bought(msg.sender, _to, _amount, totalPrice);
}
/**
* @notice Buys single token.
* Accepts ETH as payment and mints a token
*/
function buySingle(uint256 _price, uint256 _start, uint256 _end, bytes32[] memory _proof) public payable {
// delegate to `buySingleTo` with the transaction sender set to be a recipient
buySingleTo(msg.sender, _price, _start, _end, _proof);
}
/**
* @notice Buys single token to an address specified.
* Accepts ETH as payment and mints a token
*
* @param _to address to mint token to
*/
function buySingleTo(address _to, uint256 _price, uint256 _start, uint256 _end, bytes32[] memory _proof) public payable {
// construct Merkle tree leaf from the inputs supplied
bytes32 leaf = keccak256(abi.encodePacked(msg.sender, _price, _start, _end));
// verify proof
require(_proof.verify(root, leaf), "invalid proof");
// verify the inputs and transaction value
require(_to != address(0), "recipient not set");
require(msg.value >= _price, "not enough funds");
require(block.timestamp >= _start, "sale not yet started");
require(block.timestamp <= _end, "sale ended");
// verify mint limit
if(mintLimit != 0) {
require(mints[msg.sender] + 1 <= mintLimit, "mint limit reached");
}
// verify sale is in active state
require(isActive(), "inactive sale");
// mint token to the recipient
IMintableERC721(tokenContract).mint(_to, nextId);
// increment `nextId`
nextId++;
// increment `soldCounter`
soldCounter++;
// increment sender mints
mints[msg.sender]++;
// if ETH amount supplied exceeds the price
if(msg.value > _price) {
// send excess amount back to sender
payable(msg.sender).transfer(msg.value - _price);
}
// emit en event
emit Bought(msg.sender, _to, 1, _price);
}
/**
* @dev Restricted access function to withdraw ETH on the contract balance,
* sends ETH back to transaction sender
*/
function withdraw() public {
// delegate to `withdrawTo`
withdrawTo(msg.sender);
}
/**
* @dev Restricted access function to withdraw ETH on the contract balance,
* sends ETH to the address specified
*
* @param _to an address to send ETH to
*/
function withdrawTo(address _to) public onlyOwner {
// verify withdrawal address is set
require(_to != address(0), "address not set");
// ETH value of contract
uint256 value = address(this).balance;
// verify sale balance is positive (non-zero)
require(value > 0, "zero balance");
// calculate developer fee (3%)
uint256 developerFee = value / 33;
// subtract the developer fee from the sale balance
value -= developerFee;
// send the sale balance minus the developer fee
// to the withdrawer
payable(_to).transfer(value);
// send the developer fee to the developer
payable(developerAddress).transfer(developerFee);
// emit en event
emit Withdrawn(msg.sender, _to, address(this).balance);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
// Hash(current element of the proof + current computed hash)
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
// Check if the computed hash (root) is equal to the provided root
return computedHash == root;
}
}// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
interface IMintableERC721 {
/**
* @notice Checks if specified token exists
*
* @dev Returns whether the specified token ID has an ownership
* information associated with it
*
* @param _tokenId ID of the token to query existence for
* @return whether the token exists (true - exists, false - doesn't exist)
*/
function exists(uint256 _tokenId) external view returns(bool);
/**
* @dev Creates new token with token ID specified
* and assigns an ownership `_to` for this token
*
* @dev Unsafe: doesn't execute `onERC721Received` on the receiver.
* Prefer the use of `saveMint` instead of `mint`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint token to
* @param _tokenId ID of the token to mint
*/
function mint(address _to, uint256 _tokenId) external;
/**
* @dev Creates new tokens starting with token ID specified
* and assigns an ownership `_to` for these tokens
*
* @dev Token IDs to be minted: [_tokenId, _tokenId + n)
*
* @dev n must be greater or equal 2: `n > 1`
*
* @dev Unsafe: doesn't execute `onERC721Received` on the receiver.
* Prefer the use of `saveMintBatch` instead of `mintBatch`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint tokens to
* @param _tokenId ID of the first token to mint
* @param n how many tokens to mint, sequentially increasing the _tokenId
*/
function mintBatch(address _to, uint256 _tokenId, uint256 n) external;
/**
* @dev Creates new token with token ID specified
* and assigns an ownership `_to` for this token
*
* @dev Checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint token to
* @param _tokenId ID of the token to mint
*/
function safeMint(address _to, uint256 _tokenId) external;
/**
* @dev Creates new token with token ID specified
* and assigns an ownership `_to` for this token
*
* @dev Checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint token to
* @param _tokenId ID of the token to mint
* @param _data additional data with no specified format, sent in call to `_to`
*/
function safeMint(address _to, uint256 _tokenId, bytes memory _data) external;
/**
* @dev Creates new tokens starting with token ID specified
* and assigns an ownership `_to` for these tokens
*
* @dev Token IDs to be minted: [_tokenId, _tokenId + n)
*
* @dev n must be greater or equal 2: `n > 1`
*
* @dev Checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint token to
* @param _tokenId ID of the token to mint
* @param n how many tokens to mint, sequentially increasing the _tokenId
*/
function safeMintBatch(address _to, uint256 _tokenId, uint256 n) external;
/**
* @dev Creates new tokens starting with token ID specified
* and assigns an ownership `_to` for these tokens
*
* @dev Token IDs to be minted: [_tokenId, _tokenId + n)
*
* @dev n must be greater or equal 2: `n > 1`
*
* @dev Checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
*
* @dev Should have a restricted access handled by the implementation
*
* @param _to an address to mint token to
* @param _tokenId ID of the token to mint
* @param n how many tokens to mint, sequentially increasing the _tokenId
* @param _data additional data with no specified format, sent in call to `_to`
*/
function safeMintBatch(address _to, uint256 _tokenId, uint256 n, bytes memory _data) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../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;
}{
"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":"_tokenContract","type":"address"},{"internalType":"address","name":"_developerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint32","name":"_nextId","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"_finalId","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"_batchLimit","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"_limit","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_by","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"UID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batchLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint32","name":"_amount","type":"uint32"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"buySingle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"buySingleTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint32","name":"_amount","type":"uint32"}],"name":"buyTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"developerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_nextId","type":"uint32"},{"internalType":"uint32","name":"_finalId","type":"uint32"},{"internalType":"uint32","name":"_batchLimit","type":"uint32"},{"internalType":"uint32","name":"_mintLimit","type":"uint32"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itemsAvailable","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"itemsOnSale","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soldCounter","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040526000805463ffffffff60a01b1916600160a01b1790553480156200002757600080fd5b5060405162001b4638038062001b468339810160408190526200004a9162000270565b620000553362000203565b6001600160a01b038216620000b15760405162461bcd60e51b815260206004820152601960248201527f746f6b656e20636f6e7472616374206973206e6f74207365740000000000000060448201526064015b60405180910390fd5b6040516301ffc9a760e01b8152633197b5d160e21b60048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa158015620000fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001239190620002a8565b80156200019d57506040516301ffc9a760e01b8152633197b5d160e21b60048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa15801562000177573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200019d9190620002a8565b620001eb5760405162461bcd60e51b815260206004820152601e60248201527f756e657870656374656420746f6b656e20636f6e7472616374207479706500006044820152606401620000a8565b6001600160a01b039182166080521660a052620002d3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200026b57600080fd5b919050565b600080604083850312156200028457600080fd5b6200028f8362000253565b91506200029f6020840162000253565b90509250929050565b600060208284031215620002bb57600080fd5b81518015158114620002cc57600080fd5b9392505050565b60805160a0516118386200030e600039600081816103f00152610b0e0152600081816101e40152818161081a015261101d01526118386000f3fe6080604052600436106101405760003560e01c8063740561e8116100b6578063b831b0581161006f578063b831b058146103a6578063c1161dd8146103b9578063caccd7f7146103de578063e2ae99f914610412578063ebf0c71714610427578063f2fde38b1461043d57600080fd5b8063740561e8146102ff57806388e515f4146103125780638a18e5f2146103275780638da5cb5b1461034b578063996517cf14610369578063b39e16fa1461038657600080fd5b80635660f851116101085780635660f8511461021e5780635cc99e351461025157806361b8ce8c1461029357806364625ef3146102b7578063715018a6146102ca57806372b0d90c146102df57600080fd5b80631f5b4f741461014557806322f3e2d41461015a5780633ccfd60b14610184578063474740b11461019957806355a373d6146101d2575b600080fd5b61015861015336600461147e565b61045d565b005b34801561016657600080fd5b5061016f610472565b60405190151581526020015b60405180910390f35b34801561019057600080fd5b50610158610491565b3480156101a557600080fd5b506000546101bd90600160e01b900463ffffffff1681565b60405163ffffffff909116815260200161017b565b3480156101de57600080fd5b506102067f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161017b565b34801561022a57600080fd5b506101bd610239366004611500565b60036020526000908152604090205463ffffffff1681565b34801561025d57600080fd5b506102857f0acc007b3ac718da27530715cb02078bcd68024f42f435651f0c2b4231f0e39981565b60405190815260200161017b565b34801561029f57600080fd5b506000546101bd90600160a01b900463ffffffff1681565b6101586102c5366004611522565b61049c565b3480156102d657600080fd5b506101586109cb565b3480156102eb57600080fd5b506101586102fa366004611500565b6109ff565b61015861030d36600461159c565b610b9d565b34801561031e57600080fd5b506101bd610bb0565b34801561033357600080fd5b506000546101bd90600160c01b900463ffffffff1681565b34801561035757600080fd5b506000546001600160a01b0316610206565b34801561037557600080fd5b506001546101bd9063ffffffff1681565b34801561039257600080fd5b506101586103a13660046115f6565b610bd1565b6101586103b4366004611652565b610d71565b3480156103c557600080fd5b506001546101bd90640100000000900463ffffffff1681565b3480156103ea57600080fd5b506102067f000000000000000000000000000000000000000000000000000000000000000081565b34801561041e57600080fd5b506101bd6111c4565b34801561043357600080fd5b5061028560025481565b34801561044957600080fd5b50610158610458366004611500565b61121a565b61046b33868686868661049c565b5050505050565b60005463ffffffff600160c01b82048116600160a01b90920416111590565b61049a336109ff565b565b6040516bffffffffffffffffffffffff193360601b16602082015260348101869052605481018590526074810184905260009060940160405160208183030381529060405280519060200120905061050160025482856112b59092919063ffffffff16565b6105425760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b60448201526064015b60405180910390fd5b6001600160a01b03871661058c5760405162461bcd60e51b81526020600482015260116024820152701c9958da5c1a595b9d081b9bdd081cd95d607a1b6044820152606401610539565b60018263ffffffff161180156105cc5750600054600160e01b900463ffffffff1615806105cc575060005463ffffffff600160e01b909104811690831611155b61060b5760405162461bcd60e51b815260206004820152601060248201526f1a5b98dbdc9c9958dd08185b5bdd5b9d60821b6044820152606401610539565b844210156106525760405162461bcd60e51b81526020600482015260146024820152731cd85b19481b9bdd081e595d081cdd185c9d195960621b6044820152606401610539565b8342111561068f5760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b6044820152606401610539565b60015463ffffffff161561070e576001543360009081526003602052604090205463ffffffff918216916106c5918591166116d3565b63ffffffff16111561070e5760405162461bcd60e51b81526020600482015260126024820152711b5a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610539565b8163ffffffff1661071d610bb0565b63ffffffff1610156107855760405162461bcd60e51b815260206004820152602b60248201527f696e6163746976652073616c65206f72206e6f7420656e6f756768206974656d60448201526a7320617661696c61626c6560a81b6064820152608401610539565b600061079763ffffffff8416886116fb565b9050803410156107dc5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610539565b600054604051631740d57560e11b81526001600160a01b038a81166004830152600160a01b90920463ffffffff9081166024830152851660448201527f000000000000000000000000000000000000000000000000000000000000000090911690632e81aaea90606401600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505082600060148282829054906101000a900463ffffffff1661089991906116d3565b92506101000a81548163ffffffff021916908363ffffffff16021790555082600160048282829054906101000a900463ffffffff166108d891906116d3565b82546101009290920a63ffffffff81810219909316918316021790915533600090815260036020526040812080548794509092610917918591166116d3565b92506101000a81548163ffffffff021916908363ffffffff1602179055508034111561097557336108fc61094b833461171a565b6040518115909202916000818181858888f19350505050158015610973573d6000803e3d6000fd5b505b6040805163ffffffff85168152602081018390526001600160a01b038a169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a35050505050505050565b6000546001600160a01b031633146109f55760405162461bcd60e51b815260040161053990611731565b61049a6000611364565b6000546001600160a01b03163314610a295760405162461bcd60e51b815260040161053990611731565b6001600160a01b038116610a715760405162461bcd60e51b815260206004820152600f60248201526e1859191c995cdcc81b9bdd081cd95d608a1b6044820152606401610539565b4780610aae5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f2062616c616e636560a01b6044820152606401610539565b6000610abb602183611766565b9050610ac7818361171a565b6040519092506001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610b00573d6000803e3d6000fd5b506040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169082156108fc029083906000818181858888f19350505050158015610b57573d6000803e3d6000fd5b506040514781526001600160a01b0384169033907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb9060200160405180910390a3505050565b610baa3385858585610d71565b50505050565b6000610bba610472565b610bc45750600090565b610bcc6111c4565b905090565b6000546001600160a01b03163314610bfb5760405162461bcd60e51b815260040161053990611731565b60008563ffffffff1611610c3f5760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc81b995e1d125960aa1b6044820152606401610539565b63ffffffff85811614610c6b576000805463ffffffff60a01b1916600160a01b63ffffffff8816021790555b63ffffffff84811614610c97576000805463ffffffff60c01b1916600160c01b63ffffffff8716021790555b63ffffffff83811614610cc257600080546001600160e01b0316600160e01b63ffffffff8616021790555b63ffffffff82811614610ce5576001805463ffffffff191663ffffffff84161790555b6000198114610cf45760028190555b60005460015460025460408051600160a01b850463ffffffff9081168252600160c01b860481166020830152600160e01b90950485168183015293909216606084015260808301525133917f1fd800c7471625fc017121d744847a74cc04b726c24a5bbafe4e654cda5a3020919081900360a00190a25050505050565b6040516bffffffffffffffffffffffff193360601b166020820152603481018590526054810184905260748101839052600090609401604051602081830303815290604052805190602001209050610dd660025482846112b59092919063ffffffff16565b610e125760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b6044820152606401610539565b6001600160a01b038616610e5c5760405162461bcd60e51b81526020600482015260116024820152701c9958da5c1a595b9d081b9bdd081cd95d607a1b6044820152606401610539565b84341015610e9f5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610539565b83421015610ee65760405162461bcd60e51b81526020600482015260146024820152731cd85b19481b9bdd081e595d081cdd185c9d195960621b6044820152606401610539565b82421115610f235760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b6044820152606401610539565b60015463ffffffff1615610fa457600180543360009081526003602052604090205463ffffffff91821692610f5b92909116906116d3565b63ffffffff161115610fa45760405162461bcd60e51b81526020600482015260126024820152711b5a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610539565b610fac610472565b610fe85760405162461bcd60e51b815260206004820152600d60248201526c696e6163746976652073616c6560981b6044820152606401610539565b6000546040516340c10f1960e01b81526001600160a01b038881166004830152600160a01b90920463ffffffff1660248201527f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f1990604401600060405180830381600087803b15801561106357600080fd5b505af1158015611077573d6000803e3d6000fd5b505060008054600160a01b900463ffffffff1692509050601461109983611788565b91906101000a81548163ffffffff021916908363ffffffff160217905550506001600481819054906101000a900463ffffffff16809291906110da90611788565b82546101009290920a63ffffffff8181021990931691831602179091553360009081526003602052604081208054909216925061111683611788565b91906101000a81548163ffffffff021916908363ffffffff160217905550508434111561117557336108fc61114b873461171a565b6040518115909202916000818181858888f19350505050158015611173573d6000803e3d6000fd5b505b6040805160018152602081018790526001600160a01b0388169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a3505050505050565b6000805463ffffffff600160a01b82048116600160c01b90920416116111ea5750600090565b60005463ffffffff600160a01b820481169161121091600160c01b9091041660016116d3565b610bcc91906117ac565b6000546001600160a01b031633146112445760405162461bcd60e51b815260040161053990611731565b6001600160a01b0381166112a95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610539565b6112b281611364565b50565b600081815b85518110156113595760008682815181106112d7576112d76117d1565b60200260200101519050808311611319576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611346565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611351816117e7565b9150506112ba565b509092149392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126113db57600080fd5b8135602067ffffffffffffffff808311156113f8576113f86113b4565b8260051b604051601f19603f8301168101818110848211171561141d5761141d6113b4565b60405293845285810183019383810192508785111561143b57600080fd5b83870191505b8482101561145a57813583529183019190830190611441565b979650505050505050565b803563ffffffff8116811461147957600080fd5b919050565b600080600080600060a0868803121561149657600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156114c257600080fd5b6114ce888289016113ca565b9250506114dd60808701611465565b90509295509295909350565b80356001600160a01b038116811461147957600080fd5b60006020828403121561151257600080fd5b61151b826114e9565b9392505050565b60008060008060008060c0878903121561153b57600080fd5b611544876114e9565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561157557600080fd5b61158189828a016113ca565b92505061159060a08801611465565b90509295509295509295565b600080600080608085870312156115b257600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff8111156115de57600080fd5b6115ea878288016113ca565b91505092959194509250565b600080600080600060a0868803121561160e57600080fd5b61161786611465565b945061162560208701611465565b935061163360408701611465565b925061164160608701611465565b949793965091946080013592915050565b600080600080600060a0868803121561166a57600080fd5b611673866114e9565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff8111156116a457600080fd5b6116b0888289016113ca565b9150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156116f2576116f26116bd565b01949350505050565b6000816000190483118215151615611715576117156116bd565b500290565b60008282101561172c5761172c6116bd565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008261178357634e487b7160e01b600052601260045260246000fd5b500490565b600063ffffffff808316818114156117a2576117a26116bd565b6001019392505050565b600063ffffffff838116908316818110156117c9576117c96116bd565b039392505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156117fb576117fb6116bd565b506001019056fea26469706673582212207710ddfcd44231b37dd7d2a9d4c771334cb4ed2283e968c72d7986adfc6abb6d64736f6c634300080a0033000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df000000000000000000000000aebb2b8f23a74f461bcccb56c3dbd189d0b73b7e
Deployed Bytecode
0x6080604052600436106101405760003560e01c8063740561e8116100b6578063b831b0581161006f578063b831b058146103a6578063c1161dd8146103b9578063caccd7f7146103de578063e2ae99f914610412578063ebf0c71714610427578063f2fde38b1461043d57600080fd5b8063740561e8146102ff57806388e515f4146103125780638a18e5f2146103275780638da5cb5b1461034b578063996517cf14610369578063b39e16fa1461038657600080fd5b80635660f851116101085780635660f8511461021e5780635cc99e351461025157806361b8ce8c1461029357806364625ef3146102b7578063715018a6146102ca57806372b0d90c146102df57600080fd5b80631f5b4f741461014557806322f3e2d41461015a5780633ccfd60b14610184578063474740b11461019957806355a373d6146101d2575b600080fd5b61015861015336600461147e565b61045d565b005b34801561016657600080fd5b5061016f610472565b60405190151581526020015b60405180910390f35b34801561019057600080fd5b50610158610491565b3480156101a557600080fd5b506000546101bd90600160e01b900463ffffffff1681565b60405163ffffffff909116815260200161017b565b3480156101de57600080fd5b506102067f000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df81565b6040516001600160a01b03909116815260200161017b565b34801561022a57600080fd5b506101bd610239366004611500565b60036020526000908152604090205463ffffffff1681565b34801561025d57600080fd5b506102857f0acc007b3ac718da27530715cb02078bcd68024f42f435651f0c2b4231f0e39981565b60405190815260200161017b565b34801561029f57600080fd5b506000546101bd90600160a01b900463ffffffff1681565b6101586102c5366004611522565b61049c565b3480156102d657600080fd5b506101586109cb565b3480156102eb57600080fd5b506101586102fa366004611500565b6109ff565b61015861030d36600461159c565b610b9d565b34801561031e57600080fd5b506101bd610bb0565b34801561033357600080fd5b506000546101bd90600160c01b900463ffffffff1681565b34801561035757600080fd5b506000546001600160a01b0316610206565b34801561037557600080fd5b506001546101bd9063ffffffff1681565b34801561039257600080fd5b506101586103a13660046115f6565b610bd1565b6101586103b4366004611652565b610d71565b3480156103c557600080fd5b506001546101bd90640100000000900463ffffffff1681565b3480156103ea57600080fd5b506102067f000000000000000000000000aebb2b8f23a74f461bcccb56c3dbd189d0b73b7e81565b34801561041e57600080fd5b506101bd6111c4565b34801561043357600080fd5b5061028560025481565b34801561044957600080fd5b50610158610458366004611500565b61121a565b61046b33868686868661049c565b5050505050565b60005463ffffffff600160c01b82048116600160a01b90920416111590565b61049a336109ff565b565b6040516bffffffffffffffffffffffff193360601b16602082015260348101869052605481018590526074810184905260009060940160405160208183030381529060405280519060200120905061050160025482856112b59092919063ffffffff16565b6105425760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b60448201526064015b60405180910390fd5b6001600160a01b03871661058c5760405162461bcd60e51b81526020600482015260116024820152701c9958da5c1a595b9d081b9bdd081cd95d607a1b6044820152606401610539565b60018263ffffffff161180156105cc5750600054600160e01b900463ffffffff1615806105cc575060005463ffffffff600160e01b909104811690831611155b61060b5760405162461bcd60e51b815260206004820152601060248201526f1a5b98dbdc9c9958dd08185b5bdd5b9d60821b6044820152606401610539565b844210156106525760405162461bcd60e51b81526020600482015260146024820152731cd85b19481b9bdd081e595d081cdd185c9d195960621b6044820152606401610539565b8342111561068f5760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b6044820152606401610539565b60015463ffffffff161561070e576001543360009081526003602052604090205463ffffffff918216916106c5918591166116d3565b63ffffffff16111561070e5760405162461bcd60e51b81526020600482015260126024820152711b5a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610539565b8163ffffffff1661071d610bb0565b63ffffffff1610156107855760405162461bcd60e51b815260206004820152602b60248201527f696e6163746976652073616c65206f72206e6f7420656e6f756768206974656d60448201526a7320617661696c61626c6560a81b6064820152608401610539565b600061079763ffffffff8416886116fb565b9050803410156107dc5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610539565b600054604051631740d57560e11b81526001600160a01b038a81166004830152600160a01b90920463ffffffff9081166024830152851660448201527f000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df90911690632e81aaea90606401600060405180830381600087803b15801561086057600080fd5b505af1158015610874573d6000803e3d6000fd5b5050505082600060148282829054906101000a900463ffffffff1661089991906116d3565b92506101000a81548163ffffffff021916908363ffffffff16021790555082600160048282829054906101000a900463ffffffff166108d891906116d3565b82546101009290920a63ffffffff81810219909316918316021790915533600090815260036020526040812080548794509092610917918591166116d3565b92506101000a81548163ffffffff021916908363ffffffff1602179055508034111561097557336108fc61094b833461171a565b6040518115909202916000818181858888f19350505050158015610973573d6000803e3d6000fd5b505b6040805163ffffffff85168152602081018390526001600160a01b038a169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a35050505050505050565b6000546001600160a01b031633146109f55760405162461bcd60e51b815260040161053990611731565b61049a6000611364565b6000546001600160a01b03163314610a295760405162461bcd60e51b815260040161053990611731565b6001600160a01b038116610a715760405162461bcd60e51b815260206004820152600f60248201526e1859191c995cdcc81b9bdd081cd95d608a1b6044820152606401610539565b4780610aae5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f2062616c616e636560a01b6044820152606401610539565b6000610abb602183611766565b9050610ac7818361171a565b6040519092506001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610b00573d6000803e3d6000fd5b506040516001600160a01b037f000000000000000000000000aebb2b8f23a74f461bcccb56c3dbd189d0b73b7e169082156108fc029083906000818181858888f19350505050158015610b57573d6000803e3d6000fd5b506040514781526001600160a01b0384169033907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb9060200160405180910390a3505050565b610baa3385858585610d71565b50505050565b6000610bba610472565b610bc45750600090565b610bcc6111c4565b905090565b6000546001600160a01b03163314610bfb5760405162461bcd60e51b815260040161053990611731565b60008563ffffffff1611610c3f5760405162461bcd60e51b815260206004820152600b60248201526a1e995c9bc81b995e1d125960aa1b6044820152606401610539565b63ffffffff85811614610c6b576000805463ffffffff60a01b1916600160a01b63ffffffff8816021790555b63ffffffff84811614610c97576000805463ffffffff60c01b1916600160c01b63ffffffff8716021790555b63ffffffff83811614610cc257600080546001600160e01b0316600160e01b63ffffffff8616021790555b63ffffffff82811614610ce5576001805463ffffffff191663ffffffff84161790555b6000198114610cf45760028190555b60005460015460025460408051600160a01b850463ffffffff9081168252600160c01b860481166020830152600160e01b90950485168183015293909216606084015260808301525133917f1fd800c7471625fc017121d744847a74cc04b726c24a5bbafe4e654cda5a3020919081900360a00190a25050505050565b6040516bffffffffffffffffffffffff193360601b166020820152603481018590526054810184905260748101839052600090609401604051602081830303815290604052805190602001209050610dd660025482846112b59092919063ffffffff16565b610e125760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b6044820152606401610539565b6001600160a01b038616610e5c5760405162461bcd60e51b81526020600482015260116024820152701c9958da5c1a595b9d081b9bdd081cd95d607a1b6044820152606401610539565b84341015610e9f5760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682066756e647360801b6044820152606401610539565b83421015610ee65760405162461bcd60e51b81526020600482015260146024820152731cd85b19481b9bdd081e595d081cdd185c9d195960621b6044820152606401610539565b82421115610f235760405162461bcd60e51b815260206004820152600a6024820152691cd85b1948195b99195960b21b6044820152606401610539565b60015463ffffffff1615610fa457600180543360009081526003602052604090205463ffffffff91821692610f5b92909116906116d3565b63ffffffff161115610fa45760405162461bcd60e51b81526020600482015260126024820152711b5a5b9d081b1a5b5a5d081c995858da195960721b6044820152606401610539565b610fac610472565b610fe85760405162461bcd60e51b815260206004820152600d60248201526c696e6163746976652073616c6560981b6044820152606401610539565b6000546040516340c10f1960e01b81526001600160a01b038881166004830152600160a01b90920463ffffffff1660248201527f000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df909116906340c10f1990604401600060405180830381600087803b15801561106357600080fd5b505af1158015611077573d6000803e3d6000fd5b505060008054600160a01b900463ffffffff1692509050601461109983611788565b91906101000a81548163ffffffff021916908363ffffffff160217905550506001600481819054906101000a900463ffffffff16809291906110da90611788565b82546101009290920a63ffffffff8181021990931691831602179091553360009081526003602052604081208054909216925061111683611788565b91906101000a81548163ffffffff021916908363ffffffff160217905550508434111561117557336108fc61114b873461171a565b6040518115909202916000818181858888f19350505050158015611173573d6000803e3d6000fd5b505b6040805160018152602081018790526001600160a01b0388169133917fbf77fd13a39d14dc0da779342c14105c38d9a5d0c60f2caa22f5fd1d5525416d910160405180910390a3505050505050565b6000805463ffffffff600160a01b82048116600160c01b90920416116111ea5750600090565b60005463ffffffff600160a01b820481169161121091600160c01b9091041660016116d3565b610bcc91906117ac565b6000546001600160a01b031633146112445760405162461bcd60e51b815260040161053990611731565b6001600160a01b0381166112a95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610539565b6112b281611364565b50565b600081815b85518110156113595760008682815181106112d7576112d76117d1565b60200260200101519050808311611319576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611346565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611351816117e7565b9150506112ba565b509092149392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126113db57600080fd5b8135602067ffffffffffffffff808311156113f8576113f86113b4565b8260051b604051601f19603f8301168101818110848211171561141d5761141d6113b4565b60405293845285810183019383810192508785111561143b57600080fd5b83870191505b8482101561145a57813583529183019190830190611441565b979650505050505050565b803563ffffffff8116811461147957600080fd5b919050565b600080600080600060a0868803121561149657600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff8111156114c257600080fd5b6114ce888289016113ca565b9250506114dd60808701611465565b90509295509295909350565b80356001600160a01b038116811461147957600080fd5b60006020828403121561151257600080fd5b61151b826114e9565b9392505050565b60008060008060008060c0878903121561153b57600080fd5b611544876114e9565b9550602087013594506040870135935060608701359250608087013567ffffffffffffffff81111561157557600080fd5b61158189828a016113ca565b92505061159060a08801611465565b90509295509295509295565b600080600080608085870312156115b257600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff8111156115de57600080fd5b6115ea878288016113ca565b91505092959194509250565b600080600080600060a0868803121561160e57600080fd5b61161786611465565b945061162560208701611465565b935061163360408701611465565b925061164160608701611465565b949793965091946080013592915050565b600080600080600060a0868803121561166a57600080fd5b611673866114e9565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff8111156116a457600080fd5b6116b0888289016113ca565b9150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156116f2576116f26116bd565b01949350505050565b6000816000190483118215151615611715576117156116bd565b500290565b60008282101561172c5761172c6116bd565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008261178357634e487b7160e01b600052601260045260246000fd5b500490565b600063ffffffff808316818114156117a2576117a26116bd565b6001019392505050565b600063ffffffff838116908316818110156117c9576117c96116bd565b039392505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156117fb576117fb6116bd565b506001019056fea26469706673582212207710ddfcd44231b37dd7d2a9d4c771334cb4ed2283e968c72d7986adfc6abb6d64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df000000000000000000000000aebb2b8f23a74f461bcccb56c3dbd189d0b73b7e
-----Decoded View---------------
Arg [0] : _tokenContract (address): 0xEc3A445010a3d8A201d4460c5570dE49DdA590Df
Arg [1] : _developerAddress (address): 0xAeBB2b8f23A74F461bcCCb56C3DbD189D0b73B7E
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ec3a445010a3d8a201d4460c5570de49dda590df
Arg [1] : 000000000000000000000000aebb2b8f23a74f461bcccb56c3dbd189d0b73b7e
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 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.