ETH Price: $3,062.04 (-8.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create203142982024-07-15 20:28:35195 days ago1721075315IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0026871613.30247305
Create200325942024-06-06 11:49:35235 days ago1717674575IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0036423520.72382946
Create199399262024-05-24 13:05:23248 days ago1716555923IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.000870016.81203017
Create194799312024-03-21 1:59:11312 days ago1710986351IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0061624630.50104544
Create191348992024-02-01 16:54:47361 days ago1706806487IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0092217952.71914938
Create189879542024-01-12 2:50:59381 days ago1705027859IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0027919716.25926299
Create189411002024-01-05 12:34:11388 days ago1704458051IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0031518518.03336966
Create188171512023-12-19 2:50:59405 days ago1702954259IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0073503545.0339931
Create187437052023-12-08 19:45:35415 days ago1702064735IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0068699543.7754912
Create186231222023-11-21 22:28:47432 days ago1700605727IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0097979356.05130889
Create185439302023-11-10 20:28:47443 days ago1699648127IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0066988452.12903162
Create184450872023-10-28 0:20:59457 days ago1698452459IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0022621313.18105583
Create183912302023-10-20 11:26:47465 days ago1697801207IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0023932415.44903584
Create183435392023-10-13 19:24:35471 days ago1697225075IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.002105198.49713663
Create182936162023-10-06 19:42:47478 days ago1696621367IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.001104727.20392361
Create181414702023-09-15 11:57:59500 days ago1694779079IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0032381414.67454043
Create178933552023-08-11 18:12:35535 days ago1691777555IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0043967328.14630397
Create178418182023-08-04 13:07:59542 days ago1691154479IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0067482528.21979657
Create175956962023-07-01 0:37:47576 days ago1688171867IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0027463517.5771392
Create172887932023-05-18 20:25:11619 days ago1684441511IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0078708949.81231139
Create171878742023-05-04 14:23:47634 days ago1683210227IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.016068370.41757664
Create171398862023-04-27 20:28:11640 days ago1682627291IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0050402638.94776667
Create170878142023-04-20 12:50:11648 days ago1681995011IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0072442247.07163172
Create170176322023-04-10 11:53:59658 days ago1681127639IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0034447420.07195666
Create163934132023-01-12 21:30:47745 days ago1673559047IN
0x1a4b70d8...4CA1C0Fdf
0 ETH0.0038222424
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Metadata

Compiler Version
v0.5.7+commit.6da8b019

Optimization Enabled:
Yes with 200 runs

Other Settings:
byzantium EvmVersion
File 1 of 2 : Metadata.sol
pragma solidity 0.5.7;
// Copyright BigchainDB GmbH and Ocean Protocol contributors
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0

import '../interfaces/IERC20Template.sol';


/**
* @title Metadata
*  
* @dev Metadata stands for Decentralized Document. It allows publishers
*      to publish their dataset metadata in decentralized way.
*      It follows the Ocean DID Document standard: 
*      https://github.com/oceanprotocol/OEPs/blob/master/7/v0.2/README.md
*/
contract Metadata {

    event MetadataCreated(
        address indexed dataToken,
        address indexed createdBy,
        bytes flags,
        bytes data
    );
    event MetadataUpdated(
        address indexed dataToken,
        address indexed updatedBy,
        bytes flags,
        bytes data
    );

    modifier onlyDataTokenMinter(address dataToken)
    {
        IERC20Template token = IERC20Template(dataToken);
        require(
            token.minter() == msg.sender,
            'Metadata: Invalid DataToken Minter'
        );
        _;
    }

    /**
     * @dev create
     *      creates/publishes new metadata/DDO document on-chain. 
     * @param dataToken refers to data token address
     * @param flags special flags associated with metadata
     * @param data referes to the actual metadata
     */
    function create(
        address dataToken,
        bytes calldata flags,
        bytes calldata data
    ) 
        external
        onlyDataTokenMinter(dataToken)
    {
        emit MetadataCreated(
            dataToken,
            msg.sender,
            flags,
            data
        );
    }

    /**
     * @dev update
     *      allows only datatoken minter(s) to update the DDO/metadata content
     * @param dataToken refers to data token address
     * @param flags special flags associated with metadata
     * @param data referes to the actual metadata
     */
    function update(
        address dataToken,
        bytes calldata flags,
        bytes calldata data
    ) 
        external
        onlyDataTokenMinter(dataToken)
    {
        emit MetadataUpdated(
            dataToken,
            msg.sender,
            flags,
            data
        );
    }
}

File 2 of 2 : IERC20Template.sol
pragma solidity >=0.5.0;

interface IERC20Template {
    function initialize(
        string calldata name,
        string calldata symbol,
        address minter,
        uint256 cap,
        string calldata blob,
        address collector
    ) external returns (bool);

    function mint(address account, uint256 value) external;
    function minter() external view returns(address);    
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function cap() external view returns (uint256);
    function isMinter(address account) external view returns (bool);
    function isInitialized() external view returns (bool);
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address to, uint256 value) external returns (bool);
    function proposeMinter(address newMinter) external;
    function approveMinter() external;
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "byzantium",
  "libraries": {
    "": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"dataToken","type":"address"},{"name":"flags","type":"bytes"},{"name":"data","type":"bytes"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"dataToken","type":"address"},{"name":"flags","type":"bytes"},{"name":"data","type":"bytes"}],"name":"update","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"dataToken","type":"address"},{"indexed":true,"name":"createdBy","type":"address"},{"indexed":false,"name":"flags","type":"bytes"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MetadataCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"dataToken","type":"address"},{"indexed":true,"name":"updatedBy","type":"address"},{"indexed":false,"name":"flags","type":"bytes"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MetadataUpdated","type":"event"}]

608060405234801561001057600080fd5b50610531806100206000396000f3fe608060405234801561001057600080fd5b50600436106100395760e060020a600035046382743814811461003e578063f89b1f3614610112575b600080fd5b6101106004803603606081101561005457600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561007f57600080fd5b82018360208201111561009157600080fd5b803590602001918460018302840111640100000000831117156100b357600080fd5b9193909290916020810190356401000000008111156100d157600080fd5b8201836020820111156100e357600080fd5b8035906020019184600183028401116401000000008311171561010557600080fd5b5090925090506101e4565b005b6101106004803603606081101561012857600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561015357600080fd5b82018360208201111561016557600080fd5b8035906020019184600183028401116401000000008311171561018757600080fd5b9193909290916020810190356401000000008111156101a557600080fd5b8201836020820111156101b757600080fd5b803590602001918460018302840111640100000000831117156101d957600080fd5b509092509050610363565b84600081905033600160a060020a031681600160a060020a031663075461726040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561023057600080fd5b505afa158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b5051600160a060020a0316146102bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806104e46022913960400191505060405180910390fd5b33600160a060020a031687600160a060020a03167ee7283fcf5726344ed567dc39b1822ff824bc90f96c137b622781d3570b81ef888888886040518080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600083820152604051601f909101601f19169092018290039850909650505050505050a350505050505050565b84600081905033600160a060020a031681600160a060020a031663075461726040518163ffffffff1660e060020a02815260040160206040518083038186803b1580156103af57600080fd5b505afa1580156103c3573d6000803e3d6000fd5b505050506040513d60208110156103d957600080fd5b5051600160a060020a03161461043a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806104e46022913960400191505060405180910390fd5b33600160a060020a031687600160a060020a03167fb8c028de5d50845d8e50bbc36728f4e9d523e16a1a431a299e8b216c7b2f5584888888886040518080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600083820152604051601f909101601f19169092018290039850909650505050505050a35050505050505056fe4d657461646174613a20496e76616c69642044617461546f6b656e204d696e746572a165627a7a72305820d53908d68c5332c46948d144bdc5219a83da88004e83a95329af5c7cfb7def220029

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100395760e060020a600035046382743814811461003e578063f89b1f3614610112575b600080fd5b6101106004803603606081101561005457600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561007f57600080fd5b82018360208201111561009157600080fd5b803590602001918460018302840111640100000000831117156100b357600080fd5b9193909290916020810190356401000000008111156100d157600080fd5b8201836020820111156100e357600080fd5b8035906020019184600183028401116401000000008311171561010557600080fd5b5090925090506101e4565b005b6101106004803603606081101561012857600080fd5b600160a060020a03823516919081019060408101602082013564010000000081111561015357600080fd5b82018360208201111561016557600080fd5b8035906020019184600183028401116401000000008311171561018757600080fd5b9193909290916020810190356401000000008111156101a557600080fd5b8201836020820111156101b757600080fd5b803590602001918460018302840111640100000000831117156101d957600080fd5b509092509050610363565b84600081905033600160a060020a031681600160a060020a031663075461726040518163ffffffff1660e060020a02815260040160206040518083038186803b15801561023057600080fd5b505afa158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b5051600160a060020a0316146102bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806104e46022913960400191505060405180910390fd5b33600160a060020a031687600160a060020a03167ee7283fcf5726344ed567dc39b1822ff824bc90f96c137b622781d3570b81ef888888886040518080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600083820152604051601f909101601f19169092018290039850909650505050505050a350505050505050565b84600081905033600160a060020a031681600160a060020a031663075461726040518163ffffffff1660e060020a02815260040160206040518083038186803b1580156103af57600080fd5b505afa1580156103c3573d6000803e3d6000fd5b505050506040513d60208110156103d957600080fd5b5051600160a060020a03161461043a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806104e46022913960400191505060405180910390fd5b33600160a060020a031687600160a060020a03167fb8c028de5d50845d8e50bbc36728f4e9d523e16a1a431a299e8b216c7b2f5584888888886040518080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600083820152604051601f909101601f19169092018290039850909650505050505050a35050505050505056fe4d657461646174613a20496e76616c69642044617461546f6b656e204d696e746572a165627a7a72305820d53908d68c5332c46948d144bdc5219a83da88004e83a95329af5c7cfb7def220029

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.