Skip to content

Instantly share code, notes, and snippets.

View christoph2806's full-sized avatar

Christoph Mussenbrock christoph2806

View GitHub Profile
@christoph2806
christoph2806 / CLA.md
Last active April 26, 2023 15:44
Decentralized Insurance Foundation Contributor License Agreement

Source: This Contributor License Agreement is adapted from the Apache Foundation CLA.

Thank you for your interest in Decentralized Insurance Foundation (the "Foundation"). To clarify the intellectual property license granted with Contributions from any person or entity, the Foundation must have on file a signed Contributor License Agreement ("CLA") from each Contributor, indicating agreement with the license terms below. This agreement is for your protection as a Contributor as well as the protection of the Foundation and its users. It does not change your rights to use your own Contributions for any other purpose.

@christoph2806
christoph2806 / .prettierrc.json
Created March 24, 2023 10:56
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.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
######## ######## ## ## ######## ######## #### ###### ###### ###### #### ########
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ##
###### ## ######### ###### ######## ## ###### ## ## #### ## ######
## ## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
######## ## ## ## ######## ## ## #### ###### ###### ###### #### ##
This is a prototype implementation of the staking contract to be used in the context of the
Generic Insurance Framework (GIF).
@christoph2806
christoph2806 / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created October 27, 2021 10:31
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.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
@christoph2806
christoph2806 / contracts...Peter.sol
Created May 17, 2021 08:09
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.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
pragma solidity 0.8.0;
// SPDX-License-Identifier: MIT
contract Peter {
bool paidOut = false;
function payout(uint256 a) public {
@christoph2806
christoph2806 / ChainlinkFlightRatingsOracleDemo.sol
Created April 19, 2021 06:53
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 / ChainlinkFlightRatingsOracleDemo.sol
Created April 19, 2021 06:40
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.12+commit.27d51765.js&optimize=false&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 / 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==