This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rebalance(address user) returns (bool) { | |
uint currentTimestamp = block.timestamp; | |
if (currentTimestamp == priorRebalanceTimestamp) { | |
return true; | |
} | |
uint incomingDelta = 0; | |
for (incomingStream in incomingStreamsOf(user)) { | |
rebalance(incomingStream.sender); | |
uint streamBalanceOfRecipient = streamBalanceOfRecipient(incomingStream.id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Greeter | |
greet | |
Deploying a Greeter with greeting: Hello from greeter! | |
✓ should return the greeting (42ms) | |
getBlockNumber | |
Deploying a Greeter with greeting: Hello from greeter! | |
✓ should sum up the number | |
ChildGreeter | |
getBlockNumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SPDX-License-Identifier: LGPL-3.0-or-later */ | |
pragma solidity ^0.6.8; | |
import "./ErrorReporter.sol"; | |
import "./SbAdmin.sol"; | |
import "./SbErc20Interface.sol"; | |
import "./SbErc20Storage.sol"; | |
import "./ReentrancyGuard.sol"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/dataDisplay/Text/index.tsx:16:12 - error TS2345: Argument of type '({ color, theme }: ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "slot" | ... 255 more ... | "valueLink"> & { ...; } & Props, DefaultTheme>) => string | Disabled' is not assignable to parameter of type 'Interpolation<ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "slot" | ... 255 more ... | "valueLink"> & { ...; } & Props, DefaultTheme>>'. | |
Type '({ color, theme }: ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "slot" | ... 255 more ... | "valueLink"> & { ...; } & Props, DefaultTheme>) => string | Disabled' is not assignable to type 'InterpolationFunction<ThemedStyledProps<Pick<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "slot" | ... 255 more ... | "valueLink"> & { ...; } & Props, DefaultTheme>>'. | |
Type 'string | Disabled' is not assignab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We require the Buidler Runtime Environment explicitly here. This is optional | |
// but useful for running the script in a standalone fashion through `node <script>`. | |
// When running the script with `buidler run <script>` you'll find the Buidler | |
// Runtime Environment's members available in the global scope. | |
import bre from "@nomiclabs/buidler"; | |
import { Contract, ContractFactory } from "ethers"; | |
async function main(): Promise<void> { | |
// Buidler always runs the compile task when running scripts through it. | |
// If this runs in a standalone fashion you may want to call compile manually |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import chai from "chai"; | |
import { deployContract, solidity } from "ethereum-waffle"; | |
import { waffle } from "@nomiclabs/buidler"; | |
import CounterArtifact from "../artifacts/Counter.json"; | |
import { Counter } from "../typechain/Counter"; | |
chai.use(solidity); | |
const { expect } = chai; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: LGPL-3.0-or-later | |
pragma solidity ^0.6.8; | |
contract Counter { | |
uint256 public count = 0; | |
event CountedTo(uint256 number); | |
function countUp() public returns (uint256) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = payrollContract.interface.functions.createSalary.encode([ | |
recipientAddress, | |
deposit.toString(10), | |
tokenAddress, | |
startTime.toString(10), | |
stopTime.toString(10), | |
]); | |
const gasLimit = GAS_LIMITS.tokenApproval + createSalaryGasLimit; | |
console.log({ data, gasLimit }); | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typy from "typy"; | |
import { ApolloClient } from "apollo-client"; | |
import { HttpLink } from "apollo-link-http"; | |
import { InMemoryCache } from "apollo-cache-inmemory"; | |
import cacheRedirects from "./cacheRedirects"; | |
import resolvers from "./resolvers"; | |
import typeDefs from "./typeDefs"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useMemo } from "react"; | |
import { ApolloClient } from "apollo-client"; | |
import { ApolloProvider } from "@apollo/react-hooks"; | |
import { HttpLink } from "apollo-link-http"; | |
import { InMemoryCache } from "apollo-cache-inmemory"; | |
import { useWeb3React } from "@web3-react/core"; | |
const CHAIN_IDS_TO_NAMES = { | |
1: "mainnet", |