Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 5 from a total of 5 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Create Evidence | 10288267 | 2083 days ago | IN | 0 ETH | 0.00227517 | ||||
| Create Evidence | 10288055 | 2083 days ago | IN | 0 ETH | 0.00227517 | ||||
| Create Evidence | 10287969 | 2083 days ago | IN | 0 ETH | 0.00194364 | ||||
| Create Evidence | 10287656 | 2083 days ago | IN | 0 ETH | 0.00194364 | ||||
| Create Evidence | 8667563 | 2342 days ago | IN | 0 ETH | 0.0002667 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MJIB_CDBS
Compiler Version
v0.5.10+commit.5a6ea5b1
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2019-10-03
*/
pragma solidity =0.5.10;
contract MJIB_CDBS {
address owner;
struct Evidence {
bytes32 hash;
uint time;
}
mapping (bytes32 => Evidence) evidenceList;
constructor() public {
owner = msg.sender;
}
function createEvidence(bytes32 id, bytes32 hash) public {
require(msg.sender == owner, "Permission Denied.");
require(evidenceList[id].hash == 0x0, "Evidence exists.");
require(evidenceList[id].time == 0, "Evidence exists.");
evidenceList[id].hash = hash;
evidenceList[id].time = now;
}
function getEvidence(bytes32 id) public view returns (bytes32, uint) {
return (evidenceList[id].hash, evidenceList[id].time);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getEvidence","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"hash","type":"bytes32"}],"name":"createEvidence","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031916331790556101ff806100326000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634a7221a01461003b578063aabc31b614610071575b600080fd5b6100586004803603602081101561005157600080fd5b5035610096565b6040805192835260208301919091528051918290030190f35b6100946004803603604081101561008757600080fd5b50803590602001356100b0565b005b600090815260016020819052604090912080549101549091565b6000546001600160a01b03163314610104576040805162461bcd60e51b81526020600482015260126024820152712832b936b4b9b9b4b7b7102232b734b2b21760711b604482015290519081900360640190fd5b60008281526001602052604090205415610158576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60008281526001602081905260409091200154156101b0576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60009182526001602081905260409092209081554291015556fea265627a7a7230582006345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d764736f6c634300050a0032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634a7221a01461003b578063aabc31b614610071575b600080fd5b6100586004803603602081101561005157600080fd5b5035610096565b6040805192835260208301919091528051918290030190f35b6100946004803603604081101561008757600080fd5b50803590602001356100b0565b005b600090815260016020819052604090912080549101549091565b6000546001600160a01b03163314610104576040805162461bcd60e51b81526020600482015260126024820152712832b936b4b9b9b4b7b7102232b734b2b21760711b604482015290519081900360640190fd5b60008281526001602052604090205415610158576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60008281526001602081905260409091200154156101b0576040805162461bcd60e51b815260206004820152601060248201526f22bb34b232b731b29032bc34b9ba399760811b604482015290519081900360640190fd5b60009182526001602081905260409092209081554291015556fea265627a7a7230582006345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d764736f6c634300050a0032
Deployed Bytecode Sourcemap
28:730:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28:730:0;;;;;;;;;;;;;;;;;;;;;;;;614:141;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;614:141:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;269:337;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;269:337:0;;;;;;;:::i;:::-;;614:141;668:7;702:16;;;:12;:16;;;;;;;;:21;;725;;;702;;614:141::o;269:337::-;359:5;;-1:-1:-1;;;;;359:5:0;345:10;:19;337:50;;;;;-1:-1:-1;;;337:50:0;;;;;;;;;;;;-1:-1:-1;;;337:50:0;;;;;;;;;;;;;;;406:16;;;;:12;:16;;;;;:21;:28;398:57;;;;;-1:-1:-1;;;398:57:0;;;;;;;;;;;;-1:-1:-1;;;398:57:0;;;;;;;;;;;;;;;474:16;;;;:12;:16;;;;;;;;:21;;:26;466:55;;;;;-1:-1:-1;;;466:55:0;;;;;;;;;;;;-1:-1:-1;;;466:55:0;;;;;;;;;;;;;;;532:16;;;;:12;:16;;;;;;;;:28;;;595:3;571:21;;:27;269:337::o
Swarm Source
bzzr://06345240ba0f2c37380426219b91eb446ae78160c330642485eb2fd0b8dc05d7
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.