Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 19079632 | 226 days ago | IN | 0.08 ETH | 0.00252004 | ||||
Mint | 19079535 | 226 days ago | IN | 0.08 ETH | 0.0026106 | ||||
Set Price | 18041989 | 371 days ago | IN | 0 ETH | 0.00043921 | ||||
Mint | 16911491 | 530 days ago | IN | 0.18 ETH | 0.00363764 | ||||
Mint | 16797576 | 546 days ago | IN | 0.72 ETH | 0.01810134 | ||||
Mint | 16784469 | 548 days ago | IN | 0.18 ETH | 0.00730809 | ||||
Mint | 16784466 | 548 days ago | IN | 0.18 ETH | 0.00758632 | ||||
Mint | 16784462 | 548 days ago | IN | 0.18 ETH | 0.0080531 | ||||
Mint | 16784457 | 548 days ago | IN | 0.18 ETH | 0.00733478 | ||||
Mint | 16784451 | 548 days ago | IN | 0.18 ETH | 0.00793573 | ||||
Mint | 16784444 | 548 days ago | IN | 0.18 ETH | 0.00738078 | ||||
Mint | 16784441 | 548 days ago | IN | 0.54 ETH | 0.01729239 | ||||
Mint | 16746983 | 553 days ago | IN | 0.54 ETH | 0.01268971 | ||||
Mint | 16742628 | 554 days ago | IN | 0.36 ETH | 0.01316623 | ||||
Mint | 16677772 | 563 days ago | IN | 0.18 ETH | 0.01169124 | ||||
Mint | 16642308 | 568 days ago | IN | 0.18 ETH | 0.01233072 | ||||
Transfer Ownersh... | 16637323 | 569 days ago | IN | 0 ETH | 0.00111156 | ||||
0x60806040 | 16637184 | 569 days ago | IN | 0 ETH | 0.02921042 |
Latest 15 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19079632 | 226 days ago | 0.08 ETH | ||||
19079535 | 226 days ago | 0.08 ETH | ||||
16911491 | 530 days ago | 0.18 ETH | ||||
16797576 | 546 days ago | 0.72 ETH | ||||
16784469 | 548 days ago | 0.18 ETH | ||||
16784466 | 548 days ago | 0.18 ETH | ||||
16784462 | 548 days ago | 0.18 ETH | ||||
16784457 | 548 days ago | 0.18 ETH | ||||
16784451 | 548 days ago | 0.18 ETH | ||||
16784444 | 548 days ago | 0.18 ETH | ||||
16784441 | 548 days ago | 0.54 ETH | ||||
16746983 | 553 days ago | 0.54 ETH | ||||
16742628 | 554 days ago | 0.36 ETH | ||||
16677772 | 563 days ago | 0.18 ETH | ||||
16642308 | 568 days ago | 0.18 ETH |
Loading...
Loading
Contract Name:
SolidsSimpleMinter
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; interface SI { function mint(address to) external returns (uint); function getTokenLimit() external view returns (uint256); function checkPool() external view returns (uint); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); } contract SolidsSimpleMinter is Ownable{ address public ERC721; address public artist; uint public price; uint public maxMint; constructor(address _erc721Address, address _artist, uint _amountInWei, uint _maxMint) { ERC721 = _erc721Address; artist = _artist; price = _amountInWei; maxMint = _maxMint; } function setAddresses (address _erc721Address, address _artist) external onlyOwner { ERC721 = _erc721Address; artist = _artist; } function setPrice (uint _amountInWei) external onlyOwner { price = _amountInWei; } function setMaxMint (uint _maxMint) external onlyOwner { uint alreadyMinted = SI(ERC721).totalSupply(); require (_maxMint >= alreadyMinted, "Cannot set limit below already minted"); maxMint = _maxMint; } function artistMint (uint _qty) external onlyOwner { SI solids = SI(ERC721); for (uint i = 0; i < _qty; i++) { solids.mint(msg.sender); } } function mint (uint _qty) external payable { require(msg.value == price*_qty, "Payment amount insufficient"); SI solids = SI(ERC721); uint totalSupply = solids.totalSupply(); require(totalSupply < maxMint, "Minted out"); uint availableToMint = maxMint - totalSupply; require (_qty <= availableToMint, "Not enough available to mint"); (bool sent, ) = artist.call{value: msg.value}(""); require(sent, "Failed to send Ether"); for (uint i = 0; i < _qty; i++) { solids.mint(msg.sender); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_erc721Address","type":"address"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"uint256","name":"_amountInWei","type":"uint256"},{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"artistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_erc721Address","type":"address"},{"internalType":"address","name":"_artist","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMint","type":"uint256"}],"name":"setMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountInWei","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a2e380380610a2e83398101604081905261002f916100e2565b61003833610076565b600180546001600160a01b039586166001600160a01b0319918216179091556002805494909516931692909217909255600391909155600455610125565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100dd57600080fd5b919050565b600080600080608085870312156100f857600080fd5b610101856100c6565b935061010f602086016100c6565b6040860151606090960151949790965092505050565b6108fa806101346000396000f3fe6080604052600436106100a75760003560e01c806390107afe1161006457806390107afe1461018257806391b7f5ed146101a2578063a035b1fe146101c2578063a0712d68146101d8578063bf113baf146101eb578063f2fde38b1461020b57600080fd5b806343bc1612146100ac578063547520fe146100e9578063715018a61461010b5780637501f741146101205780638425abff146101445780638da5cb5b14610164575b600080fd5b3480156100b857600080fd5b506002546100cc906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b506101096101043660046107c2565b61022b565b005b34801561011757600080fd5b5061010961030c565b34801561012c57600080fd5b5061013660045481565b6040519081526020016100e0565b34801561015057600080fd5b506001546100cc906001600160a01b031681565b34801561017057600080fd5b506000546001600160a01b03166100cc565b34801561018e57600080fd5b5061010961019d3660046107f7565b610320565b3480156101ae57600080fd5b506101096101bd3660046107c2565b610356565b3480156101ce57600080fd5b5061013660035481565b6101096101e63660046107c2565b610363565b3480156101f757600080fd5b506101096102063660046107c2565b6105fe565b34801561021757600080fd5b5061010961022636600461082a565b61069f565b610233610718565b600154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa15801561027d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a1919061084c565b9050808210156103065760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420736574206c696d69742062656c6f7720616c7265616479206d6044820152641a5b9d195960da1b60648201526084015b60405180910390fd5b50600455565b610314610718565b61031e6000610772565b565b610328610718565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055565b61035e610718565b600355565b80600354610371919061087b565b34146103bf5760405162461bcd60e51b815260206004820152601b60248201527f5061796d656e7420616d6f756e7420696e73756666696369656e74000000000060448201526064016102fd565b600154604080516318160ddd60e01b815290516001600160a01b039092169160009183916318160ddd916004808201926020929091908290030181865afa15801561040e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610432919061084c565b905060045481106104725760405162461bcd60e51b815260206004820152600a602482015269135a5b9d1959081bdd5d60b21b60448201526064016102fd565b6000816004546104829190610898565b9050808411156104d45760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f75676820617661696c61626c6520746f206d696e740000000060448201526064016102fd565b6002546040516000916001600160a01b03169034908381818185875af1925050503d8060008114610521576040519150601f19603f3d011682016040523d82523d6000602084013e610526565b606091505b505090508061056e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102fd565b60005b858110156105f6576040516335313c2160e11b81523360048201526001600160a01b03861690636a627842906024016020604051808303816000875af11580156105bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e3919061084c565b50806105ee816108ab565b915050610571565b505050505050565b610606610718565b6001546001600160a01b031660005b8281101561069a576040516335313c2160e11b81523360048201526001600160a01b03831690636a627842906024016020604051808303816000875af1158015610663573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610687919061084c565b5080610692816108ab565b915050610615565b505050565b6106a7610718565b6001600160a01b03811661070c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fd565b61071581610772565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156107d457600080fd5b5035919050565b80356001600160a01b03811681146107f257600080fd5b919050565b6000806040838503121561080a57600080fd5b610813836107db565b9150610821602084016107db565b90509250929050565b60006020828403121561083c57600080fd5b610845826107db565b9392505050565b60006020828403121561085e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761089257610892610865565b92915050565b8181038181111561089257610892610865565b6000600182016108bd576108bd610865565b506001019056fea2646970667358221220152a187c721148a2214d1671b09aaa6b4553b55576ba1d80aa9e8d8527c9fa9264736f6c63430008120033000000000000000000000000aff167337289edb939cf52c2be434885db50abe9000000000000000000000000e82121f24ddf358028a9fffc217ae8a135a51e24000000000000000000000000000000000000000000000000027f7d0bdb9200000000000000000000000000000000000000000000000000000000000000001770
Deployed Bytecode
0x6080604052600436106100a75760003560e01c806390107afe1161006457806390107afe1461018257806391b7f5ed146101a2578063a035b1fe146101c2578063a0712d68146101d8578063bf113baf146101eb578063f2fde38b1461020b57600080fd5b806343bc1612146100ac578063547520fe146100e9578063715018a61461010b5780637501f741146101205780638425abff146101445780638da5cb5b14610164575b600080fd5b3480156100b857600080fd5b506002546100cc906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f557600080fd5b506101096101043660046107c2565b61022b565b005b34801561011757600080fd5b5061010961030c565b34801561012c57600080fd5b5061013660045481565b6040519081526020016100e0565b34801561015057600080fd5b506001546100cc906001600160a01b031681565b34801561017057600080fd5b506000546001600160a01b03166100cc565b34801561018e57600080fd5b5061010961019d3660046107f7565b610320565b3480156101ae57600080fd5b506101096101bd3660046107c2565b610356565b3480156101ce57600080fd5b5061013660035481565b6101096101e63660046107c2565b610363565b3480156101f757600080fd5b506101096102063660046107c2565b6105fe565b34801561021757600080fd5b5061010961022636600461082a565b61069f565b610233610718565b600154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa15801561027d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a1919061084c565b9050808210156103065760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f7420736574206c696d69742062656c6f7720616c7265616479206d6044820152641a5b9d195960da1b60648201526084015b60405180910390fd5b50600455565b610314610718565b61031e6000610772565b565b610328610718565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055565b61035e610718565b600355565b80600354610371919061087b565b34146103bf5760405162461bcd60e51b815260206004820152601b60248201527f5061796d656e7420616d6f756e7420696e73756666696369656e74000000000060448201526064016102fd565b600154604080516318160ddd60e01b815290516001600160a01b039092169160009183916318160ddd916004808201926020929091908290030181865afa15801561040e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610432919061084c565b905060045481106104725760405162461bcd60e51b815260206004820152600a602482015269135a5b9d1959081bdd5d60b21b60448201526064016102fd565b6000816004546104829190610898565b9050808411156104d45760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420656e6f75676820617661696c61626c6520746f206d696e740000000060448201526064016102fd565b6002546040516000916001600160a01b03169034908381818185875af1925050503d8060008114610521576040519150601f19603f3d011682016040523d82523d6000602084013e610526565b606091505b505090508061056e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102fd565b60005b858110156105f6576040516335313c2160e11b81523360048201526001600160a01b03861690636a627842906024016020604051808303816000875af11580156105bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e3919061084c565b50806105ee816108ab565b915050610571565b505050505050565b610606610718565b6001546001600160a01b031660005b8281101561069a576040516335313c2160e11b81523360048201526001600160a01b03831690636a627842906024016020604051808303816000875af1158015610663573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610687919061084c565b5080610692816108ab565b915050610615565b505050565b6106a7610718565b6001600160a01b03811661070c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102fd565b61071581610772565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102fd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156107d457600080fd5b5035919050565b80356001600160a01b03811681146107f257600080fd5b919050565b6000806040838503121561080a57600080fd5b610813836107db565b9150610821602084016107db565b90509250929050565b60006020828403121561083c57600080fd5b610845826107db565b9392505050565b60006020828403121561085e57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761089257610892610865565b92915050565b8181038181111561089257610892610865565b6000600182016108bd576108bd610865565b506001019056fea2646970667358221220152a187c721148a2214d1671b09aaa6b4553b55576ba1d80aa9e8d8527c9fa9264736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000aff167337289edb939cf52c2be434885db50abe9000000000000000000000000e82121f24ddf358028a9fffc217ae8a135a51e24000000000000000000000000000000000000000000000000027f7d0bdb9200000000000000000000000000000000000000000000000000000000000000001770
-----Decoded View---------------
Arg [0] : _erc721Address (address): 0xAFf167337289eDB939cf52c2bE434885dB50abe9
Arg [1] : _artist (address): 0xe82121f24dDF358028a9Fffc217AE8a135a51e24
Arg [2] : _amountInWei (uint256): 180000000000000000
Arg [3] : _maxMint (uint256): 6000
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000aff167337289edb939cf52c2be434885db50abe9
Arg [1] : 000000000000000000000000e82121f24ddf358028a9fffc217ae8a135a51e24
Arg [2] : 000000000000000000000000000000000000000000000000027f7d0bdb920000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000001770
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
POL | 100.00% | $0.373824 | 10.26 | $3.84 |
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.