Set token
npx graph auth --product hosted-service https://api.thegraph.com/deploy/ <access-token>
Upload
import { | |
ChainId, | |
Percent, | |
Token, | |
TokenAmount, | |
UniswapV2RoutablePlatform, | |
UniswapV2Trade, | |
} from '@swapr/sdk' | |
import { getAllCommonPairs } from '@swapr/sdk/dist/entities/trades/uniswap-v2/contracts' | |
import { utils, providers } from 'ethers' |
import { Address, ethereum, log } from '@graphprotocol/graph-ts' | |
import { Mint, Transfer } from '../types/templates/Pair/Pair' | |
/** | |
* The method ID for: | |
* `Transfer(address indexed from, address indexed to, uint256 value)` | |
*/ | |
export let TRANSFER_METHOD_ID = '0xddf252ad' | |
/** | |
* The method ID for: |
version: '3' | |
services: | |
graph-node: | |
image: graphprotocol/graph-node:v0.27.0 | |
ports: | |
- '8000:8000' | |
- '8001:8001' | |
- '8020:8020' | |
- '8030:8030' | |
- '8040:8040' |
node_modules | |
.netlify | |
.github | |
.vscode | |
build | |
cypress | |
tests | |
yarn-error.log | |
npm-debug.log | |
.storybook |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.Within GitHub it is possible to set up two types of SSH key - account level SSH keys and and repository level SSH keys. These repository level SSH keys are known in GitHub as deploy keys.
Deploy keys are useful for deploying code because they do not rely on an individual user account, which is susceptible to change, to “store” the server keys.
There is, however, an ‘issue’ with using deploy keys; each key across all repositories on GitHub must be unique. No one key can be used more than once. This becomes a problem when deploying to repositories to the same server with the same user. If you create two keys, the SSH client will not know which key to use when connecting to GitHub.
One solution is to use an SSH config file to define which key to use in which situation. This isn’t as easy as it seems.. you might try something like this: