Contract 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce4 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xda51b06db88c6f5b79d62947457ff36e9a5458532baeeca0cd3311ea571c36c4Transfer Ownersh...29834912021-11-11 23:43:40189 days 4 hrs ago0x393248ae29a7c2128e8e27d23330b1f87e0600fc IN  0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH0.001082693246 ETH
0xa908e20af0b712443d5180357bdb2ee3887c8bf512d11f9aa0a955bff4cf1aa40x6080604029834682021-11-11 23:43:40189 days 4 hrs ago0x393248ae29a7c2128e8e27d23330b1f87e0600fc IN  Contract Creation0 ETH0.0045060392 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xe23089ce735711f349bf3c2a0ff7062e1e580bce8e06f66fba7dac88ddad2ceb73227912022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x82a5ff772c186fb3f62bf9a8461aeadd8ea0904025c3330a4d247822ff34bc0273226952022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xe7728ac696998145d08d36d106d6e0ebbd0e0aac7ec26aed3aff8701e494757e73226942022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x1201b7efa908598f61640c6faf61526c088112a89aa7de5d45fe9dce84a7acec73226922022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x5cd6aaad456c0478a223b7ea71a8c69fe5d54462fbe3ca0cfca28814d1b96d9d73226662022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xfacb190fd5d2d470b5a814ae49018a7bd16c7a3763dfde2fb2ea5cd07126b02e73226632022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x2151fc53adce7fa248f477fef057ab7ab7785cf60b0350c6629c9dc9f09973a473226532022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x6b57853b12fa340f17167b03089e7f851a7fcaefd5f0d760a1a150ceef3b51b573226522022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xa74981f73e3acf904aac4ac0d98dd8ffbb55f475ef2a594f027d80b9f2878b6a73226492022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x22d41037961ae6ec4f619f5c4f3dd541a40ccceed9b1a59663614362a29a629873226432022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x39f8e2d6f84d63513aa0d2baa6e8a736b8dc32fab9276af63d37ac07005716f473226322022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xad90e3177e045643b73b593693d66f2eea1aea4775d493877f9e763a1b54f7e573226082022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x741f9bc0fb0d995fcf2453ea18c424111c3c3f366f1a617ac37cd6128e75b15f73225962022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x37222d3ad371dff2d3f3ae1c788d1cc4ad69e9f1839776830726485119a8926973225862022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x4dc6374d8ac32a266273e8facdf4ae3b6af8ec2a964beea62a0447b0f1b8a0ba73225752022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x4394e4cffe09a308c054553e06f09a4b137fa8460fd1590c895c776af4b9697773225742022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x6ea91a83cf420e45d120181b9723a3a2408890951453ba937b89253c36290f0873225702022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x07abe5cce36a544c7f6da59c29e7433b751201b99bf0b8f4b019776cabcaab2d73225702022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x75bf6c4fedcf5ae05948b4995729da562b51403813e23a452d63907deb1aacbe73225692022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xff6a2e3903789b0b6f94bdeb5ad0228f41be0138a9f3ab42f0d5949edec8f5ae73225692022-03-03 0:47:4778 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x97d58e412b1b18369db324b6ae69ac6fde1af638b5e30d2325c3a7b2252cd0b773225662022-03-03 0:47:3278 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x0a3133a1c4b945d70103780274ec343c2e0028f2dc55dc2df8ec3ae817b8c84873225352022-03-03 0:47:3278 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x1a19c053059cdcdd2ed7126ec4f639924900f1d171826a9e3b51076dfb4e552273225062022-03-03 0:47:2378 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0x6638c4b32b447e8e06cabe5f68a39362f90e8186968f0f966189916f7885f68373225062022-03-03 0:47:2378 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
0xd7a6b513f7c563ff4730205b4456a32f7b33a17dd12fb3ab66582bbf9ebddacc73225052022-03-03 0:47:2378 days 3 hrs ago Treasure DAO: Marketplace 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce40 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x48d0A85E5A79f043c1721DD4E13F2418287C8D45

Contract Name:
TreasureNFTOracle

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 3 : Ownable.sol
// 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);
    }
}

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

File 3 of 3 : TreasureNFTOracle.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;

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

contract TreasureNFTOracle is Ownable {

    struct Price {
        uint256 price;
        address denomination;
    }

    /// _nftAddress => _tokenId => Price
    mapping(address => mapping(uint256 => Price)) public getPrice;

    event PriceUpdate(address indexed nftAddress, uint256 indexed tokenId, address paymentToken, uint256 pricePerItem);

    function reportSale(address _nftAddress, uint256 _tokenId, address _paymentToken, uint256 _pricePerItem) external onlyOwner {
        getPrice[_nftAddress][_tokenId] = Price(_pricePerItem, _paymentToken);
        emit PriceUpdate(_nftAddress, _tokenId, _paymentToken, _pricePerItem);
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"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":"nftAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"paymentToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"pricePerItem","type":"uint256"}],"name":"PriceUpdate","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"denomination","type":"address"}],"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":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_paymentToken","type":"address"},{"internalType":"uint256","name":"_pricePerItem","type":"uint256"}],"name":"reportSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104038061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063449e815d1461005c578063715018a6146100b65780638da5cb5b146100c0578063cdf229e7146100db578063f2fde38b146100ee575b600080fd5b61009461006a36600461032a565b6001602081815260009384526040808520909152918352912080549101546001600160a01b031682565b604080519283526001600160a01b039091166020830152015b60405180910390f35b6100be610101565b005b6000546040516001600160a01b0390911681526020016100ad565b6100be6100e9366004610354565b610140565b6100be6100fc366004610308565b610201565b6000546001600160a01b031633146101345760405162461bcd60e51b815260040161012b90610398565b60405180910390fd5b61013e600061029c565b565b6000546001600160a01b0316331461016a5760405162461bcd60e51b815260040161012b90610398565b6040805180820182528281526001600160a01b038481166020808401828152898416600081815260018085528882208c83528552908890209651875591519590910180546001600160a01b0319169590941694909417909255835190815290810184905285927f572f5206b5d6a41a589d1adb21db361f499161fd2378465567b357c6424c269b910160405180910390a350505050565b6000546001600160a01b0316331461022b5760405162461bcd60e51b815260040161012b90610398565b6001600160a01b0381166102905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161012b565b6102998161029c565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030357600080fd5b919050565b60006020828403121561031a57600080fd5b610323826102ec565b9392505050565b6000806040838503121561033d57600080fd5b610346836102ec565b946020939093013593505050565b6000806000806080858703121561036a57600080fd5b610373856102ec565b935060208501359250610388604086016102ec565b9396929550929360600135925050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220e86cf8deaa2d01307213befb7319b085233f9201c5a5a3d33cb2a0ba329176c764736f6c63430008070033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.