Skip to content

Instantly share code, notes, and snippets.

View hannesroth88's full-sized avatar

Hannes Roth hannesroth88

  • Stuttgart Germany
View GitHub Profile
@hannesroth88
hannesroth88 / contracts...FundMe.sol
Created September 28, 2022 22:16
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.8+commit.dddeac2f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17; // Hi I'am new to Solidity
import "./PriceConverter.sol";
contract FundMe{
using PriceConverter for uint256;
uint256 public minimumUsd = 10 * 1e18;
address[] public funders;
mapping(address => uint256) public addressesToAmountFunded;
address public owner;
@hannesroth88
hannesroth88 / contracts...FundMe.sol
Created September 28, 2022 21:39
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.8+commit.dddeac2f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17; // Hi I'am new to Solidity
import "./PriceConverter.sol";
contract FundMe{
using PriceConverter for uint256;
uint256 public minimumUsd = 10 * 1e18;
address[] public addressesFunders;
mapping(address => uint256) public addressesToAmountFunded;
@hannesroth88
hannesroth88 / contracts...FundMe.sol
Created September 28, 2022 13:49
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.8+commit.dddeac2f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17; // Hi I'am new to Solidity
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract FundMe{
uint256 public minimumUsd = 10 * 1e18;
address[] public addressesFunders;
mapping(address => uint256) public addressesToAmountFunded;
AggregatorV3Interface priceFeed;
@hannesroth88
hannesroth88 / contracts...ExtraStorage.sol
Created September 28, 2022 12:15
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.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8; // Hi I'am new to Solidity
import "./SimpleStorage.sol";
contract ExtraStorage is SimpleStorage{
// + 5
// override
//virtual override
function store (uint256 _favouriteNumber) public override {
@hannesroth88
hannesroth88 / keybase.md
Created September 9, 2019 17:18
Keybase proof

Keybase proof

I hereby claim:

  • I am hannesroth88 on github.
  • I am hannes_roth (https://keybase.io/hannes_roth) on keybase.
  • I have a public key ASCwEJVO4d28FHY4RxSpjX0EiWUBwc-3LnbxkTNYBpFq4go

To claim this, I am signing this object: