Skip to content

Instantly share code, notes, and snippets.

Christoph Mussenbrock christoph2806

Block or report user

Report or block christoph2806

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:70535d4bf50c74b513893c589a1a55eb
### 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:
View gist:c4c1ba8a3bc9828d5d702b13e8461c21
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 Apr 7, 2017
Ropsten Testnet FlightDelay Policy Export
View gist:5a076d7f40ea9898859e00679744485b
"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
View gist:6fc0c3d0191ed0c07e98f9e2229803dd
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"
View gist:9caa3fe7938af269888387d83a2ef831
######################## 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 Feb 21, 2017
WARN log with contract myid: 0x... was triggered, but it was already seen before
View gist:f7bd97b67f30c1da5399331792409b0a
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>
View uport meteor integration - the first steps
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
View TestOraclize
pragma solidity ^0.4.7;
import "./usingOraclize.sol";
contract TestOraclize is
usingOraclize
{
View gist:a1009425dd17b474e3c97ecb64125dc2
$ 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
View Passing dynamic data with callbacks
pragma solidity ^0.4.7;
contract usingCallback {
function __callback(uint id, string s) {}
}
contract A {
You can’t perform that action at this time.