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
@christoph2806
christoph2806 / RiskOrder.sol
Created Dec 17, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
View RiskOrder.sol
pragma solidity ^0.5.0;
contract RiskOrder {
event OrderCreated(address _customer, bytes32 _metaDataHash, string _description);
event PoolCreated(string _riskPoolName, uint256 _maxVolume);
event RiskCapitalProviderCreated(string _providerName, uint256 _maxVolume);
event RiskBoundToPool(bytes32 _metaDataHash, string _riskPoolName, string _requestedRisk, uint256 _requestedVolume);
event RiskCapitalProviderBoundToPool(string _providerName, string _riskPoolName, string _risk, uint256 _volume);
@christoph2806
christoph2806 / OracleBroker.sol
Created Dec 5, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
View OracleBroker.sol
pragma solidity >0.4.99 <0.6.0;
// import paymentProcessor interface
// import oracleTypeRegistry interface
// import oracleRegistry interface
// import requestRegistry interface
contract Owned {
address owner;
@christoph2806
christoph2806 / OracleBroker.sol
Created Dec 5, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
View OracleBroker.sol
pragma solidity >0.4.99 <0.6.0;
// import paymentProcessor interface
// import oracleTypeRegistry interface
// import oracleRegistry interface
// import requestRegistry interface
contract Owned {
address owner;
@christoph2806
christoph2806 / OracleBroker.sol
Created Dec 3, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
View OracleBroker.sol
pragma solidity >0.4.99 <0.6.0;
// import paymentProcessor interface
// import oracleTypeRegistry interface
// import oracleRegistry interface
// import requestRegistry interface
contract OracleBrokerFront {
@christoph2806
christoph2806 / SimpleRiskTransfer.sol
Created Nov 29, 2018
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
View SimpleRiskTransfer.sol
pragma solidity ^0.5.0;
contract SimpleRiskTransfer {
modifier onlyRiskPool(bytes32 _metaDataHash) {
require(riskOrders[_metaDataHash].riskPool == msg.sender);
_;
}
modifier onlyCustomer(bytes32 _metaDataHash) {
View Verifying my Peepeth
Verifying my identity on Peepeth.com 0xe6d1f4774a4144b3f08897982cd8df5c05eccef5
View gist:627de7f469efc1b1516f318f5e6a4ef3
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 {
@christoph2806
christoph2806 / preprocessor.js
Created Aug 16, 2017
Simple solidity preprocessor
View preprocessor.js
#!/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');
You can’t perform that action at this time.