Skip to content

Instantly share code, notes, and snippets.

View christoph2806's full-sized avatar

Christoph Mussenbrock christoph2806

View GitHub Profile
@christoph2806
christoph2806 / 3box verification
Created October 17, 2020 13:13
3box verification
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreiakmnntq4m7llgknhnvsg54kmvraborwvldn3x44hxltpvurttfuu ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@christoph2806
christoph2806 / RiskOrder.sol
Created December 17, 2018 16:58
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=
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 December 5, 2018 07:17
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=
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 December 5, 2018 07:06
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=
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 December 3, 2018 13:32
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=
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 November 29, 2018 08:04
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=
pragma solidity ^0.5.0;
contract SimpleRiskTransfer {
modifier onlyRiskPool(bytes32 _metaDataHash) {
require(riskOrders[_metaDataHash].riskPool == msg.sender);
_;
}
modifier onlyCustomer(bytes32 _metaDataHash) {
Verifying my identity on Peepeth.com 0xe6d1f4774a4144b3f08897982cd8df5c05eccef5
@christoph2806
christoph2806 / gist:627de7f469efc1b1516f318f5e6a4ef3
Created August 28, 2017 03:46
Generic Token Staking Contract
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 August 16, 2017 06:46
Simple solidity preprocessor
#!/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');
0x11591D432d9Ff7cF517819ba99B3D876719019Dd