mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 04:46:20 +00:00
b7ffb7c672
* Implement mock bundle query in watcher. * Use chance js for generating mock data. * Add bundles query. * Setup resolvers with uniswap info schema. * Add mock query for Burn entity. * Add mock query for Factory entity. * Add mock queries for entities Mint, Pool and Transaction. * Add mock query for Swap entity. * Add mock queries for day data entities. * Implment mock ticks query. * Add mock tokenHourDatas query. * Add mock queries for uni-info-watcher to readme. Co-authored-by: nikugogoi <95nikass@gmail.com>
11 lines
205 B
TypeScript
11 lines
205 B
TypeScript
import { gql } from 'graphql-request';
|
|
|
|
export const queryBundle = gql`
|
|
query getBundle($id: ID!, $blockNumber: Int!) {
|
|
bundle(id: $id, block: { number: $blockNumber }) {
|
|
id
|
|
ethPriceUSD
|
|
}
|
|
}
|
|
`;
|