Skip to content

Commit

Permalink
Merge pull request #4 from CarlWiles/feat/rho-markets
Browse files Browse the repository at this point in the history
fix: rhomarkets adapter query support blockNumber parameters
  • Loading branch information
0xroll authored Jun 19, 2024
2 parents 72e1d19 + e180c55 commit 00782d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions adapters/rhomarkets/src/sdk/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ query ($limit: Int, $offset: Int, $blockNumber: Int) {
export async function fetchGraphQLData(
blockNumber: number
): Promise<ProtocalData[]> {
// limit: number,
// offset: number,
// data(block: { number: ${blockNumber} }) {
const query = `
query RHO_MARKETS {
data {
query RHO_MARKETS {
data(blockNumber: ${blockNumber}) {
timestamp
block_number
user_address
Expand Down

0 comments on commit 00782d9

Please sign in to comment.