Skip to content

Instantly share code, notes, and snippets.

@estein9825
estein9825 / .deps...npm...@chainlink...contracts...src...v0.8...ChainSpecificUtil.sol
Created April 4, 2024 17: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.8.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
@estein9825
estein9825 / .deps...npm...@chainlink...contracts...src...v0.8...ChainSpecificUtil.sol
Created April 4, 2024 08:22
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.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
@estein9825
estein9825 / .deps...npm...@chainlink...contracts...src...v0.8...ChainSpecificUtil.sol
Created April 4, 2024 08:21
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.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
@estein9825
estein9825 / HelperLibraries.sol
Created March 29, 2024 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.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
// Courtesy of https://gist.github.com/ottodevs/c43d0a8b4b891ac2da675f825b1d1dbf?permalink_comment_id=4976821#gistcomment-4976821
library StringToLower {
function copyBytes(bytes memory _bytes) private pure returns (bytes memory) {
bytes memory copy = new bytes(_bytes.length);
uint256 max = _bytes.length + 31;
for (uint256 i=32; i<=max; i+=32)
@estein9825
estein9825 / FlightInsurance.sol
Created March 29, 2024 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.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import "@openzeppelin/contracts/utils/Strings.sol";
import "./HelperLibraries.sol";
import "https://github.com/estein9825/DateUtils/src/DateUtils.sol";
contract Forecast {
mapping(bytes32=>string) private forecast;
@estein9825
estein9825 / keybase.md
Created September 16, 2019 13:54
Create keybase.md

Keybase proof

I hereby claim:

  • I am estein9825 on github.
  • I am ethan_fama (https://keybase.io/ethan_fama) on keybase.
  • I have a public key ASDSxLQ3rY4g6qZjrGthAEnKUM-wQnU6fsNoe89SRxMM_wo

To claim this, I am signing this object: