This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
contract Hello { | |
address owner; | |
constructor () public { | |
owner = msg.sender; | |
} | |
function HelloWorld () public view returns (string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> | |
<script src="http://rawgit.com/ethereum/web3.js/0.16.0/dist/web3.min.js"></script> | |
<script> | |
if (typeof web3 !== 'undefined') { | |
web3 = new Web3(web3.currentProvider); | |
} else { | |
web3 = new Web3(new Web3.providers.HttpProvider("SUA URL DO NÓ AQUI")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>HODL dApp</title> | |
<style> | |
body { | |
background-color:rgb(218, 201, 154); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>HODL dApp</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label for="definirsenha" class="col-lg-2 control-label">Senha:</label> | |
<input id="defsenha" type="text"> | |
<button id="button3">Escolha uma senha</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#button3").click(function(web3) { | |
var tx = Hodl.definirSenha("\"" + $("#defsenha")[0].value + "\"", { | |
from: address, | |
to: "0xEA7128025c3b7c8F230dfB5b7e7C3Ac45158335B", | |
value: "0", | |
data: "" | |
}, function(err, transactionHash) { | |
if (!err) | |
console.log(transactionHash); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>HODL dApp</title> | |
<style> | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
contract VaccineRegistration { | |
address owner; | |
address secondary; | |
address tertiary; | |
constructor(address _secondary, address _tertiary) public { | |
owner = msg.sender; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity^0.5.0; | |
contract Registry { | |
function getImplementation(address _user) public view returns (address) {} | |
} | |
contract ProxyStorage { | |
Registry registryAddress; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity^0.5.0; | |
contract Registry { | |
address owner; | |
constructor() public { | |
owner = msg.sender; | |
} | |
OlderNewer