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
| <script> | |
| var zippieprovider = require('vault-web3-provider') | |
| var vault = require('vault-api') | |
| var vaultSecp256k1 = require('vault-api/src/secp256k1.js') | |
| var Web3 = require('web3'); | |
| export default { | |
| name: 'dashboard', | |
| data() { |
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
| <template> | |
| <div> | |
| <md-dialog class="dialog" :md-active.sync="showDialog"> | |
| <md-dialog-title>Fill Order</md-dialog-title> | |
| <md-field> | |
| <label>Amount</label> | |
| <md-input v-model="fillAmount"></md-input> | |
| </md-field> | |
| <md-button class="md-raised md-primary" @click="takeOrder()">Submit</md-button> |
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
| <template> | |
| <div> | |
| <md-button v-on:click="makeOrder">Make Order</md-button> | |
| <md-button v-on:click="takeOrder">Take Order</md-button> | |
| <md-button v-on:click="setAllowance">Set Allowance</md-button> | |
| <md-field> | |
| <md-input v-model="wethAmount"></md-input> | |
| </md-field> | |
| <md-button v-on:click="convertEthToWeth">Get WETH</md-button> |
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; |
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
| 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
| 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
| 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
| 0xA3c19676E1dF47e527eacE23b80631b12A362832 |
NewerOlder