This file contains 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 { BN, ether, balance } = require("openzeppelin-test-helpers"); | |
const { expect } = require("chai"); | |
const { asyncForEach } = require("./utils"); | |
// Artifacts | |
const ForceSend = artifacts.require("ForceSend"); | |
// ABI | |
const erc20ABI = require("./abi/erc20"); |
This file contains 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
query { | |
syncing { | |
currentBlock | |
highestBlock | |
knownStates | |
pulledStates | |
startingBlock | |
} | |
} |
This file contains 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 { gql } from 'apollo-boost'; | |
import { useQuery } from '@apollo/react-hooks'; | |
import web3 from '../lib/web3'; | |
export const GET_TOKEN_BALANCE = gql` | |
query TokenBalance($tokenAddress: Address!, $callData: Bytes!) { | |
block { | |
call(data: { to: $tokenAddress, data: $callData }) { | |
data | |
} |