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:
I hereby claim:
To claim this, I am signing this object:
// 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; |
// 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) |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import {ArbSys} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbSys.sol"; | |
import {ArbGasInfo} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbGasInfo.sol"; | |
import {OVM_GasPriceOracle} from "./vendor/@eth-optimism/contracts/v0.8.6/contracts/L2/predeploys/OVM_GasPriceOracle.sol"; | |
/// @dev A library that abstracts out opcodes that behave differently across chains. | |
/// @dev The methods below return values that are pertinent to the given chain. | |
/// @dev For instance, ChainSpecificUtil.getBlockNumber() returns L2 block number in L2 chains |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import {ArbSys} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbSys.sol"; | |
import {ArbGasInfo} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbGasInfo.sol"; | |
import {OVM_GasPriceOracle} from "./vendor/@eth-optimism/contracts/v0.8.6/contracts/L2/predeploys/OVM_GasPriceOracle.sol"; | |
/// @dev A library that abstracts out opcodes that behave differently across chains. | |
/// @dev The methods below return values that are pertinent to the given chain. | |
/// @dev For instance, ChainSpecificUtil.getBlockNumber() returns L2 block number in L2 chains |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import {ArbSys} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbSys.sol"; | |
import {ArbGasInfo} from "./vendor/@arbitrum/nitro-contracts/src/precompiles/ArbGasInfo.sol"; | |
import {OVM_GasPriceOracle} from "./vendor/@eth-optimism/contracts/v0.8.6/contracts/L2/predeploys/OVM_GasPriceOracle.sol"; | |
/// @dev A library that abstracts out opcodes that behave differently across chains. | |
/// @dev The methods below return values that are pertinent to the given chain. | |
/// @dev For instance, ChainSpecificUtil.getBlockNumber() returns L2 block number in L2 chains |