Contract
0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce4
1
Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xda51b06db88c6f5b79d62947457ff36e9a5458532baeeca0cd3311ea571c36c4 | Transfer Ownersh... | 2983491 | 189 days 4 hrs ago | 0x393248ae29a7c2128e8e27d23330b1f87e0600fc | IN | 0xb40bc8bf5f4df00b0b32c56e8d3ecd802656cce4 | 0 ETH | 0.001082693246 ETH | |
0xa908e20af0b712443d5180357bdb2ee3887c8bf512d11f9aa0a955bff4cf1aa4 | 0x60806040 | 2983468 | 189 days 4 hrs ago | 0x393248ae29a7c2128e8e27d23330b1f87e0600fc | IN | Contract Creation | 0 ETH | 0.0045060392 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
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
Contract Source Code (Solidity Standard Json-Input format)
// 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 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.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); } }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "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"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6104038061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063449e815d1461005c578063715018a6146100b65780638da5cb5b146100c0578063cdf229e7146100db578063f2fde38b146100ee575b600080fd5b61009461006a36600461032a565b6001602081815260009384526040808520909152918352912080549101546001600160a01b031682565b604080519283526001600160a01b039091166020830152015b60405180910390f35b6100be610101565b005b6000546040516001600160a01b0390911681526020016100ad565b6100be6100e9366004610354565b610140565b6100be6100fc366004610308565b610201565b6000546001600160a01b031633146101345760405162461bcd60e51b815260040161012b90610398565b60405180910390fd5b61013e600061029c565b565b6000546001600160a01b0316331461016a5760405162461bcd60e51b815260040161012b90610398565b6040805180820182528281526001600160a01b038481166020808401828152898416600081815260018085528882208c83528552908890209651875591519590910180546001600160a01b0319169590941694909417909255835190815290810184905285927f572f5206b5d6a41a589d1adb21db361f499161fd2378465567b357c6424c269b910160405180910390a350505050565b6000546001600160a01b0316331461022b5760405162461bcd60e51b815260040161012b90610398565b6001600160a01b0381166102905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161012b565b6102998161029c565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461030357600080fd5b919050565b60006020828403121561031a57600080fd5b610323826102ec565b9392505050565b6000806040838503121561033d57600080fd5b610346836102ec565b946020939093013593505050565b6000806000806080858703121561036a57600080fd5b610373856102ec565b935060208501359250610388604086016102ec565b9396929550929360600135925050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220e86cf8deaa2d01307213befb7319b085233f9201c5a5a3d33cb2a0ba329176c764736f6c63430008070033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.