Skip to content

kabl/sol-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Multicontract with web3j

overview

personal.unlockAccount(web3.eth.accounts[0], "yourPassword", 36000);
var simpleDnsInstance = eth.contract([{"constant":true,"inputs":[],"name":"getValue","outputs":[{"name":"_value","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"string"}],"name":"setValue","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"name","type":"string"}],"name":"getIpByName","outputs":[{"name":"ip","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"ip","type":"string"}],"name":"registerName","outputs":[],"payable":false,"type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"name","type":"string"},{"indexed":false,"name":"ip","type":"string"}],"name":"newEntry","type":"event"},{"anonymous":false,"inputs":[],"name":"functionCalled","type":"event"}]).at("ADDRESS");
simpleDnsInstance.getIpByName("google.com");

simpleDnsInstance.registerName("demo.ch", "1.1.1.1", {from: eth.accounts[0]});

TO-DO

  • CMC Owner Ship Management
  • Fix Unit tests
  • Add more Tests. Test with second address try to modify