Goerli Testnet

Contract

0x015CcbA3C23fB552bc3967B0bb9dAbAB27e23bf3
Source Code

Overview

ETH Balance

0 ETH

Token Holdings

Multi Chain

Multichain Addresses

0 address found via
Transaction Hash
Method
Block
From
To
Value
Set Model Status94881072023-08-09 10:23:48118 days 18 hrs ago1691576628IN
0x015Ccb...27e23bf3
0 ETH0.0006861914.34110339
0x6080604094880832023-08-09 10:18:00118 days 18 hrs ago1691576280IN
 Create: PriceModelWhiteList
0 ETH0.0048690417.47176732

Latest 7 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
96403472023-09-05 9:01:1291 days 19 hrs ago1693904472
0x015Ccb...27e23bf3
0 ETH
96392892023-09-05 4:35:3692 days 9 mins ago1693888536
0x015Ccb...27e23bf3
0 ETH
96390352023-09-05 3:32:4892 days 1 hr ago1693884768
0x015Ccb...27e23bf3
0 ETH
96381582023-09-04 23:55:0092 days 4 hrs ago1693871700
0x015Ccb...27e23bf3
0 ETH
94937292023-08-10 10:30:36117 days 18 hrs ago1691663436
0x015Ccb...27e23bf3
0 ETH
94892732023-08-09 15:24:48118 days 13 hrs ago1691594688
0x015Ccb...27e23bf3
0 ETH
94892702023-08-09 15:23:36118 days 13 hrs ago1691594616
0x015Ccb...27e23bf3
0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PriceModelWhiteList

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : PriceModelWhiteList.sol
// SPDX-License-Identifier: MIT
// ENVELOP(NIFTSY) NFT(wNFT) Kiosk.

pragma solidity 0.8.19;
import "Ownable.sol";
import "IModelWhiteList.sol";

contract PriceModelWhiteList is Ownable, IModelWhiteList {

    mapping(address => bool) internal modelWhitelist;
    
    event ModelWhitelistChanged(address indexed model, bool enabled);

    function setModelStatus(address _model, bool _isEnabled) external onlyOwner {
        require(_model != address(0), 'Cant be zero');
        modelWhitelist[_model] = _isEnabled;
        emit ModelWhitelistChanged(_model, _isEnabled);
    }

    function isModelEnabled(address _model) external view returns(bool) {
        if (_model != address(0)){
            return modelWhitelist[_model];
        } 
        return false;
    }   
}

File 2 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "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);
    }
}

File 3 of 4 : Context.sol
// 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;
    }
}

File 4 of 4 : IModelWhiteList.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

interface IModelWhiteList  {
    function isModelEnabled(address _model) external view returns(bool);
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"model","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ModelWhitelistChanged","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":"_model","type":"address"}],"name":"isModelEnabled","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":"_model","type":"address"},{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setModelStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61039f8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b146100665780638e5f9ac514610086578063c201bf8b146100a9578063f2fde38b146100bc575b600080fd5b6100646100cf565b005b6000546040516001600160a01b0390911681526020015b60405180910390f35b61009961009436600461030b565b6100e3565b604051901515815260200161007d565b6100646100b736600461032d565b61011b565b6100646100ca36600461030b565b6101cc565b6100d7610245565b6100e1600061029f565b565b60006001600160a01b0382161561011357506001600160a01b031660009081526001602052604090205460ff1690565b506000919050565b610123610245565b6001600160a01b03821661016d5760405162461bcd60e51b815260206004820152600c60248201526b43616e74206265207a65726f60a01b60448201526064015b60405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff191685151590811790915591519182527fbf14aa58a502ecbb003dc66dac4023fde3c8243f5f678975dd3e0ae6a205ff95910160405180910390a25050565b6101d4610245565b6001600160a01b0381166102395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610164565b6102428161029f565b50565b6000546001600160a01b031633146100e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610164565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030657600080fd5b919050565b60006020828403121561031d57600080fd5b610326826102ef565b9392505050565b6000806040838503121561034057600080fd5b610349836102ef565b91506020830135801515811461035e57600080fd5b80915050925092905056fea2646970667358221220b6149223c82db08b8aa2bca2d04fbb11dcb35298ebd8b8db94522c6614018bae64736f6c63430008130033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c8063715018a61461005c5780638da5cb5b146100665780638e5f9ac514610086578063c201bf8b146100a9578063f2fde38b146100bc575b600080fd5b6100646100cf565b005b6000546040516001600160a01b0390911681526020015b60405180910390f35b61009961009436600461030b565b6100e3565b604051901515815260200161007d565b6100646100b736600461032d565b61011b565b6100646100ca36600461030b565b6101cc565b6100d7610245565b6100e1600061029f565b565b60006001600160a01b0382161561011357506001600160a01b031660009081526001602052604090205460ff1690565b506000919050565b610123610245565b6001600160a01b03821661016d5760405162461bcd60e51b815260206004820152600c60248201526b43616e74206265207a65726f60a01b60448201526064015b60405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff191685151590811790915591519182527fbf14aa58a502ecbb003dc66dac4023fde3c8243f5f678975dd3e0ae6a205ff95910160405180910390a25050565b6101d4610245565b6001600160a01b0381166102395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610164565b6102428161029f565b50565b6000546001600160a01b031633146100e15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610164565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030657600080fd5b919050565b60006020828403121561031d57600080fd5b610326826102ef565b9392505050565b6000806040838503121561034057600080fd5b610349836102ef565b91506020830135801515811461035e57600080fd5b80915050925092905056fea2646970667358221220b6149223c82db08b8aa2bca2d04fbb11dcb35298ebd8b8db94522c6614018bae64736f6c63430008130033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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