-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update entities based on new subgraph
- Loading branch information
1 parent
cc9cb43
commit 8131d69
Showing
4 changed files
with
89 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 44 additions & 41 deletions
85
packages/sdk-core/src/subgraph/entities/pool/pools.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,54 @@ | ||
query getPool($id: ID!) { | ||
pool(id: $id) { | ||
...PoolPart | ||
} | ||
pool(id: $id) { | ||
...PoolPart | ||
} | ||
} | ||
|
||
query pools( | ||
$first: Int = 10 | ||
$orderBy: Pool_orderBy = id | ||
$orderDirection: OrderDirection = asc | ||
$skip: Int = 0 | ||
$where: Pool_filter = {} | ||
$block: Block_height | ||
$first: Int = 10 | ||
$orderBy: Pool_orderBy = id | ||
$orderDirection: OrderDirection = asc | ||
$skip: Int = 0 | ||
$where: Pool_filter = {} | ||
$block: Block_height | ||
) { | ||
pools( | ||
first: $first | ||
orderBy: $orderBy | ||
orderDirection: $orderDirection | ||
skip: $skip | ||
where: $where | ||
block: $block | ||
) { | ||
...PoolPart | ||
} | ||
pools( | ||
first: $first | ||
orderBy: $orderBy | ||
orderDirection: $orderDirection | ||
skip: $skip | ||
where: $where | ||
block: $block | ||
) { | ||
...PoolPart | ||
} | ||
} | ||
|
||
fragment PoolPart on Pool { | ||
id | ||
createdAtTimestamp | ||
createdAtBlockNumber | ||
updatedAtTimestamp | ||
updatedAtBlockNumber | ||
flowRate | ||
totalMembers | ||
totalUnits | ||
totalAmountDistributedUntilUpdatedAt | ||
adjustmentFlowRate | ||
totalAmountFlowedDistributedUntilUpdatedAt | ||
totalAmountInstantlyDistributedUntilUpdatedAt | ||
totalBuffer | ||
totalConnectedMembers | ||
totalConnectedUnits | ||
totalDisconnectedMembers | ||
totalDisconnectedUnits | ||
admin { | ||
id | ||
} | ||
token { | ||
id | ||
} | ||
createdAtTimestamp | ||
createdAtBlockNumber | ||
updatedAtTimestamp | ||
updatedAtBlockNumber | ||
admin { | ||
id | ||
} | ||
token { | ||
id | ||
} | ||
totalMembers | ||
totalUnits | ||
totalConnectedMembers | ||
totalConnectedUnits | ||
totalDisconnectedMembers | ||
totalDisconnectedUnits | ||
totalAmountInstantlyDistributedUntilUpdatedAt | ||
flowRate | ||
perUnitSettledValue | ||
perUnitFlowRate | ||
totalBuffer | ||
totalAmountFlowedDistributedUntilUpdatedAt | ||
totalAmountDistributedUntilUpdatedAt | ||
adjustmentFlowRate | ||
totalFlowAdjustmentAmountDistributedUntilUpdatedAt | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 34 additions & 32 deletions
66
packages/sdk-core/src/subgraph/entities/poolMember/poolMembers.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
query poolMembers( | ||
$first: Int = 10 | ||
$skip: Int = 0 | ||
$orderBy: PoolMember_orderBy = id | ||
$orderDirection: OrderDirection = asc | ||
$where: PoolMember_filter = {} | ||
$block: Block_height | ||
$first: Int = 10 | ||
$skip: Int = 0 | ||
$orderBy: PoolMember_orderBy = id | ||
$orderDirection: OrderDirection = asc | ||
$where: PoolMember_filter = {} | ||
$block: Block_height | ||
) { | ||
poolMembers( | ||
first: $first | ||
orderBy: $orderBy | ||
orderDirection: $orderDirection | ||
skip: $skip | ||
where: $where | ||
block: $block | ||
) { | ||
id | ||
createdAtTimestamp | ||
createdAtBlockNumber | ||
updatedAtTimestamp | ||
updatedAtBlockNumber | ||
units | ||
pool { | ||
id | ||
token { | ||
poolMembers( | ||
first: $first | ||
orderBy: $orderBy | ||
orderDirection: $orderDirection | ||
skip: $skip | ||
where: $where | ||
block: $block | ||
) { | ||
id | ||
} | ||
createdAtTimestamp | ||
createdAtBlockNumber | ||
updatedAtTimestamp | ||
updatedAtBlockNumber | ||
units | ||
pool { | ||
id | ||
token { | ||
id | ||
} | ||
} | ||
account { | ||
id | ||
} | ||
isConnected | ||
totalAmountClaimed | ||
totalAmountReceivedUntilUpdatedAt | ||
poolTotalAmountDistributedUntilUpdatedAt | ||
syncedPerUnitFlowRate | ||
syncedPerUnitSettledValue | ||
} | ||
account { | ||
id | ||
} | ||
isConnected | ||
totalAmountClaimed | ||
totalAmountReceivedUntilUpdatedAt | ||
poolTotalAmountDistributedUntilUpdatedAt | ||
} | ||
} |