Skip to content

Instantly share code, notes, and snippets.

View christoph2806's full-sized avatar

Christoph Mussenbrock christoph2806

View GitHub Profile
0x11591D432d9Ff7cF517819ba99B3D876719019Dd
### 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:
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
@christoph2806
christoph2806 / gist:5a076d7f40ea9898859e00679744485b
Created April 7, 2017 16:02
Ropsten Testnet FlightDelay Policy Export
"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
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"
@christoph2806
christoph2806 / gist:9caa3fe7938af269888387d83a2ef831
Created February 21, 2017 11:24
Oraclize WARN ... next round
######################## console log of truffle test ##########################
$ truffle test
Using network 'development'.
Contract: FlightDelayNewPolicy
info: Testing : should process #20 - flight <15 min delay (no payout)
@christoph2806
christoph2806 / gist:f7bd97b67f30c1da5399331792409b0a
Created February 21, 2017 10:43
WARN log with contract myid: 0x... was triggered, but it was already seen before
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 <nya1@protonmail.com>
These are the tweaks I had to perform to get uport running on meteor (at least to the point that QR-Code is shown) :
* Create an empty working dir ($wd). Install meteor skeleton (I use meteorkitchen)
* Install uport-lib:
* $wd> meteor npm install --save git://github.com/ConsenSys/uport-lib.git#release-2.1.1
* $wd> cd node_modules/uport-lib
* $wd/node_modules/uport-lib> npm install
pragma solidity ^0.4.7;
import "./usingOraclize.sol";
contract TestOraclize is
usingOraclize
{
$ truffle compile
/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/index.js:39
throw e;
^
SyntaxError: Expected "contract", "import", "library", "pragma", "using", comment, end of input, end of line or whitespace but "}" found. Line: 24, Column: 1
at peg$buildException (/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/build/imports_parser.js:487:14)
at Object.peg$parse [as parse] (/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/build/imports_parser.js:4080:13)
at Object.parse (/usr/local/lib/node_modules/truffle/node_modules/solidity-parser/index.js:34:23)
at /usr/local/lib/node_modules/truffle/lib/profiler.js:134:36