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
0xA3c19676E1dF47e527eacE23b80631b12A362832 |
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
0xA3c19676E1dF47e527eacE23b80631b12A362832 |
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
0x75d5075c623cbf040cdbc01f09340b95618a15a9 |
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
0xA3c19676E1dF47e527eacE23b80631b12A362832 |
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
0xCeb845bC53A331a5872b71966acF16d13fAc8D39 |
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
0xCeb845bC53A331a5872b71966acF16d13fAc8D39 |
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
var ContractInstance; | |
function addQuestion() { | |
ContractInstance.addQuestion({from: web3.eth.coinbase, value: 1100000000000000000}, function(err,res){ | |
console.log(res); | |
}); | |
} | |
function answerQuestion(id) { | |
ContractInstance.answer(id, {from: web3.eth.coinbase}, function(err, res) { | |
console.log(res); |
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'); | |
const solc = require('solc'); | |
const fs = require('fs'); | |
var LineReader = require('linereader'); | |
var lr = new LineReader('sampledata.txt'); | |
const BATCH_SIZE = 3; | |
function findImports(path) { | |
return { |
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.17; | |
import '../node_modules/zeppelin-solidity/contracts/math/SafeMath.sol'; | |
import './IVotingMechanism.sol'; | |
contract OutcomeBondsToken { | |
using SafeMath for uint256; | |
struct OutcomeBond { |
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.17; | |
import '../node_modules/zeppelin-solidity/contracts/token/ERC20/StandardToken.sol'; | |
import './IVotingMechanism.sol'; | |
contract OutcomeBondToken is StandardToken { | |
string public name; | |
mapping (address => uint) private backerTokens; | |
address voting; |
OlderNewer