Skip to content

Instantly share code, notes, and snippets.

View christoph2806's full-sized avatar

Christoph Mussenbrock christoph2806

View GitHub Profile
@christoph2806
christoph2806 / contracts...ChainlinkFlightRatingsOracleDemo.sol
Created April 18, 2021 19:35
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.6.11+commit.5ef660b1.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.0;
import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.6/ChainlinkClient.sol";
import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.6/vendor/Ownable.sol";
/*
* This is a demo of the Chainlink FlightRatings Oracle.
* To demonstrate, follow these steps:
*
@christoph2806
christoph2806 / etherscan_amount_fix.js
Last active January 26, 2021 09:24
Userscript to fix Etherscan amount representation
// ==UserScript==
// @name Etherscan Number fix
// @namespace http://etherisc.com
// @version 0.1
// @description Fix representation of amounts in etherscan
// @author Christoph Mussenbrock
// @match https://etherscan.io/token/*
// @grant none
// @license https://unlicense.org/
// ==/UserScript==
@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