watcher-ts/packages/uni-info-watcher/src/queries.ts
Ashwin Phatak b7ffb7c672
uniswap-info-watcher package with frontend schema (#114)
* 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>
2021-07-02 16:26:32 +05:30

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
}
}
`;