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 TokenStake { | |
using SafeMath for uint256; | |
StandardToken token; | |
mapping (address => uint256) staked; | |
event Staked(address _staker, uint256 _value); | |
event Released(address _staker, uint256 _value); | |
modifier onlyToken { |
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
#!/usr/bin/env node | |
/** | |
* simple text preprocessor for solidity files | |
* extends https://www.npmjs.com/package/preprocessor with inline includes. | |
*/ | |
const fs = require('fs'); | |
const Preprocessor = require('preprocessor'); | |
const optimist = require('optimist'); |
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
0x11591D432d9Ff7cF517819ba99B3D876719019Dd |
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
0x11591D432d9Ff7cF517819ba99B3D876719019Dd |
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
### Keybase proof | |
I hereby claim: | |
* I am christoph2806 on github. | |
* I am christoph2806 (https://keybase.io/christoph2806) on keybase. | |
* I have a public key ASCBnkGab-EW1OY_VrRiUhJF7L4i3rUfGFLX4qt7sRchewo | |
To claim this, I am signing this object: |
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
Unable to find event matching signature 92ca3a80853e6663fa31fa10b99225f18d4902939b4c53a9caae9043f6efd004 | |
(anonymous) @ index.af592f7337.js:1 | |
value @ index.af592f7337.js:1 | |
(anonymous) @ index.af592f7337.js:1 | |
index.af592f7337.js:1 Unable to find event matching signature e7c957c06e9a662c1a6c77366179f5b702b97651dc28eee7d5bf1dff6e40bb4a | |
(anonymous) @ index.af592f7337.js:1 | |
value @ index.af592f7337.js:1 | |
(anonymous) @ index.af592f7337.js:1 | |
index.af592f7337.js:1 Unable to find event matching signature 92ca3a80853e6663fa31fa10b99225f18d4902939b4c53a9caae9043f6efd004 | |
(anonymous) @ index.af592f7337.js:1 |
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
"0:*","0xa211...","Declined","1.94","59980","40.85","40.85","3/30/2017, 1:26:16 AM","2","KL/1103","/dep/2017/01/23","","1/23/2017, 8:55:00 AM","0","4","10.67","5.00" | |
"1:*","0x59e7...","Expired","0.97","18280","0.00","0.00","1/23/2017, 8:55:15 AM","4","LX/1585","/dep/2017/01/23","","1/23/2017, 7:55:00 AM","0","0","5.30","5.00" | |
"2:*","0x3622...","Accepted","0.48","97980","0.00","0.00","1/23/2017, 4:40:22 PM","2","UA/8871","/dep/2017/01/26","","1/26/2017, 9:40:00 PM","0","0","0.98","1.00" | |
"3:*","0x59e7...","Expired","0.97","35060","0.00","0.00","1/24/2017, 9:30:20 PM","4","OS/566","/dep/2017/01/24","","1/24/2017, 9:15:00 PM","0","0","2.76","2.00" | |
"4:*","0xa211...","Expired","0.97","97980","0.00","0.00","1/25/2017, 9:55:29 PM","4","UA/8871","/dep/2017/01/25","","1/25/2017, 9:40:00 PM","0","0","0.99","1.00" | |
"5:*","0x3b2a...","Expired","3.88","35060","0.00","0.00","1/24/2017, 9:30:42 PM","4","LX/3558","/dep/2017/01/24","","1/24/2017, 9:15:00 PM","0","0","11.06","2.00" | |
"6:*","0x8358...","Expired","3.88","37040","0.0 |
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:0x0963b57f213f00b651c2b31ead3167e5fed23e92 | |
Owner: 0xffc614ee978630d7fb0c06758deb580c152154d3 | |
========= | |
Polices: | |
========= | |
"0:*","0xa211...","Declined","1.94","59980","40.85","40.85","3/30/2017, 1:26:16 AM","2","KL/1103","/dep/2017/01/23","","1/23/2017, 8:55:00 AM","0","4","10.67","5.00" | |
"1:*","0x59e7...","Expired","0.97","18280","0.00","0.00","1/23/2017, 8:55:15 AM","4","LX/1585","/dep/2017/01/23","","1/23/2017, 7:55:00 AM","0","0","5.30","5.00" | |
"2:*","0x3622...","Accepted","0.48","97980","0.00","0.00","1/23/2017, 4:40:22 PM","2","UA/8871","/dep/2017/01/26","","1/26/2017, 9:40:00 PM","0","0","0.98","1.00" | |
"3:*","0x59e7...","Expired","0.97","35060","0.00","0.00","1/24/2017, 9:30:20 PM","4","OS/566","/dep/2017/01/24","","1/24/2017, 9:15:00 PM","0","0","2.76","2.00" | |
"4:*","0xa211...","Expired","0.97","97980","0.00","0.00","1/25/2017, 9:55:29 PM","4","UA/8871","/dep/2017/01/25","","1/25/2017, 9:40:00 PM","0","0","0.99","1.00" |
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
######################## console log of truffle test ########################## | |
$ truffle test | |
Using network 'development'. | |
Contract: FlightDelayNewPolicy | |
info: Testing : should process #20 - flight <15 min delay (no payout) |
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
My truffle tests with oraclize / ethereum bridge fail regularly when encountering | |
the above warning message. | |
The contract simply doesn't get the callback, so processing stops. | |
################################ Output of git log: ###################################### | |
$ git log -1 | |
commit bcfe1766cfe7a3f657c6bc587da37e966987ff6c | |
Author: nya1 <[email protected]> |