Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into support-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
icezohu committed Mar 7, 2024
2 parents a81b20d + 1ab47c5 commit 94f19e6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .yarn/versions/22fbe415.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
undecided:
- "@subql/network-query"
2 changes: 2 additions & 0 deletions .yarn/versions/ed70da4a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
undecided:
- "@subql/network-query"
4 changes: 2 additions & 2 deletions packages/network-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/network-query",
"version": "1.1.1",
"version": "1.1.2-1",
"main": "dist/index.js",
"description": "SubQuery package containing all gql queries for network dapps",
"author": "SubQuery Pte Limited",
Expand All @@ -24,5 +24,5 @@
"prettier": "^2.7.1",
"typescript": "^4.8.4"
},
"stableVersion": "1.0.0"
"stableVersion": "1.1.2-0"
}
8 changes: 8 additions & 0 deletions packages/network-query/queries/network/dashboard.gql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ query GetDashboard {
}
}

indexerRewards {
aggregates {
sum {
amount
}
}
}

rewardsToIndexer: eraRewards(filter: { isIndexer: { equalTo: true } }) {
totalCount
aggregates {
Expand Down
7 changes: 7 additions & 0 deletions packages/network-query/queries/network/indexers.gql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ fragment IndexerFields on Indexer {
maxUnstakeAmount
capacity
metadata
indexerStakes(orderBy: ERA_ID_DESC) {
nodes {
indexerStake
eraIdx
eraId
}
}
}

query GetIndexer($address: String!) {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@subql/react-hooks",
"version": "1.1.1",
"version": "1.1.2-1",
"description": "SubQuery client sdk for react hooks",
"main": "dist/index.js",
"author": "SubQuery Pte Limited",
Expand Down Expand Up @@ -39,5 +39,5 @@
"graphql": "^16.5.0",
"react": "^18"
},
"stableVersion": "1.0.0"
"stableVersion": "1.1.2-0"
}

0 comments on commit 94f19e6

Please sign in to comment.