ETH Price: $3,262.74 (+2.89%)
Gas: 2 Gwei

Contract

0xeA02BAF187dFB9E5665778Ee4D5550d11eBCf84e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Add Collection160238172022-11-22 6:39:47612 days ago1669099187IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005023510.58125366
Add Collection160237462022-11-22 6:25:35612 days ago1669098335IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005240911.04203747
Add Collection160237392022-11-22 6:24:11612 days ago1669098251IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005603511.80286195
Add Collection160237132022-11-22 6:18:59612 days ago1669097939IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005515811.61811432
Add Collection160236442022-11-22 6:04:59612 days ago1669097099IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005244211.0461182
Add Collection159942302022-11-18 3:32:11616 days ago1668742331IN
0xeA02BAF1...11eBCf84e
0 ETH0.0005961312.55662426
Add Collection159942292022-11-18 3:31:59616 days ago1668742319IN
0xeA02BAF1...11eBCf84e
0 ETH0.0006066412.77787828
0x60806040159942282022-11-18 3:31:47616 days ago1668742307IN
 Create: AddCollectionAddOn
0 ETH0.0039221212.14415785

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AddCollectionAddOn

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : AddCollectionAddOn.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;

import "@openzeppelin/contracts/access/Ownable.sol";

contract AddCollectionAddOn is Ownable {
    event AddCollection(address add_);
    mapping(address => bool) private addressAdded;

    function addCollection(address add_) external onlyOwner returns (bool) {
        require(!addressAdded[add_]);
        addressAdded[add_] = true;
        emit AddCollection(add_);
        return true;
    }

    function isAddedCollection(address add_) external view returns (bool) {
        return addressAdded[add_];
    }
}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"add_","type":"address"}],"name":"AddCollection","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":"add_","type":"address"}],"name":"addCollection","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"add_","type":"address"}],"name":"isAddedCollection","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b61046c8061007d6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806357e93f9b1461005c578063715018a6146100965780638da5cb5b146100a0578063a174e77a146100c4578063f2fde38b146100ea575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610110565b604080519115158252519081900360200190f35b61009e61012e565b005b6100a86101ec565b604080516001600160a01b039092168252519081900360200190f35b610082600480360360208110156100da57600080fd5b50356001600160a01b03166101fb565b61009e6004803603602081101561010057600080fd5b50356001600160a01b03166102f8565b6001600160a01b031660009081526001602052604090205460ff1690565b61013661040c565b6001600160a01b03166101476101ec565b6001600160a01b0316146101a2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061020561040c565b6001600160a01b03166102166101ec565b6001600160a01b031614610271576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090205460ff161561029757600080fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916909217909155815192835290517f6077476a981d09a671dcf75f020b16a4a55b5221b00225c895d94cac2c5a431a9281900390910190a1506001919050565b61030061040c565b6001600160a01b03166103116101ec565b6001600160a01b03161461036c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103b15760405162461bcd60e51b81526004018080602001828103825260268152602001806104116026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212203711fca3e92c8bf110eafcb0b300c6825a1df0ff16cf293b3503832a07c770a864736f6c63430007050033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c806357e93f9b1461005c578063715018a6146100965780638da5cb5b146100a0578063a174e77a146100c4578063f2fde38b146100ea575b600080fd5b6100826004803603602081101561007257600080fd5b50356001600160a01b0316610110565b604080519115158252519081900360200190f35b61009e61012e565b005b6100a86101ec565b604080516001600160a01b039092168252519081900360200190f35b610082600480360360208110156100da57600080fd5b50356001600160a01b03166101fb565b61009e6004803603602081101561010057600080fd5b50356001600160a01b03166102f8565b6001600160a01b031660009081526001602052604090205460ff1690565b61013661040c565b6001600160a01b03166101476101ec565b6001600160a01b0316146101a2576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061020561040c565b6001600160a01b03166102166101ec565b6001600160a01b031614610271576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090205460ff161561029757600080fd5b6001600160a01b038216600081815260016020818152604092839020805460ff1916909217909155815192835290517f6077476a981d09a671dcf75f020b16a4a55b5221b00225c895d94cac2c5a431a9281900390910190a1506001919050565b61030061040c565b6001600160a01b03166103116101ec565b6001600160a01b03161461036c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166103b15760405162461bcd60e51b81526004018080602001828103825260268152602001806104116026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a26469706673582212203711fca3e92c8bf110eafcb0b300c6825a1df0ff16cf293b3503832a07c770a864736f6c63430007050033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.