This file contains hidden or 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
| 0xa4f966F298C182364D9A238aA176667c793AD7D5 |
This file contains hidden or 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
| 0x44D84089e32802ac13eE8cc74455C51d9AB549aA |
This file contains hidden or 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
| contract Relay { | |
| address public currentVersion; | |
| address public owner; | |
| function Relay(address initAddr){ | |
| currentVersion = initAddr; | |
| owner = msg.sender; | |
| } | |
| function update(address newAddress){ |
This file contains hidden or 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.4; | |
| contract Migrations { | |
| address public owner; | |
| uint public last_completed_migration; | |
| modifier restricted() { | |
| if (msg.sender == owner) _; | |
| } | |
This file contains hidden or 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> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>Simple Contract Deployment</title> | |
| </head> | |
| <script> | |
| window.addEventListener('load', function() { | |
| // Checking if Web3 has been injected by the browser (Mist/MetaMask) |
This file contains hidden or 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
| const Web3 = require('web3') | |
| let web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")) | |
| let Donation = artifacts.require("./Donation") | |
| contract('Donation', function(accounts) { | |
| var donation | |
| it("Should retrive deployed contract.", function(done) { | |
| Donation.deployed().then(function(instance) { |
This file contains hidden or 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.4; | |
| // TestRPC HD wallet | |
| // warrior minimum breeze raven garden express solar flavor obvious twenty alpha actress | |
| contract Donation { | |
| // Instantiate a variable to hold the account address of the contract administrator | |
| address public owner; |
This file contains hidden or 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
| const Web3 = require('web3') | |
| let web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")) | |
| let account = '0xE767aEB31dAAF66366999F72FB5De2CEEA76c277'.toLowerCase() | |
| let filter = web3.eth.filter('latest') | |
| filter.watch(function(error, result) { | |
| if (!error) { | |
| let confirmedBlock12 = web3.eth.getBlock(web3.eth.blockNumber - 11) | |
| confirmedBlock12.transactions.forEach(function(txId) { |