Skip to content

Commit 5cb6448

Browse files
authored
Expand exit queue data (#236)
* [expand-exit-queue] add new data * change subgraph url
1 parent 812643a commit 5cb6448

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/graphql/subgraph/exitQueue/exitQueueQuery.graphql

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
query exitQueue($where: ExitRequest_filter) {
22
exitRequests(where: $where) {
3+
receiver
34
isClaimed
45
timestamp
56
totalAssets
67
isClaimable
78
exitedAssets
9+
isV2Position
810
positionTicket
911
exitQueueIndex
1012
withdrawalTimestamp

src/methods/vault/requests/getExitQueuePositions/getExitQueuePositions.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ type ExitRequest = {
2222
withdrawalTimestamp: string | null
2323
exitQueueIndex: string | null
2424
positionTicket: string
25+
isV2Position: boolean
2526
isClaimable: boolean
2627
exitedAssets: bigint
2728
totalAssets: bigint
2829
isClaimed: boolean
2930
timestamp: string
31+
receiver: string
3032
}
3133

3234
type Position = {
@@ -44,14 +46,13 @@ type Output = {
4446
}
4547
```
4648
47-
| Name | Description |
48-
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
49-
| `requests` | Array of all requests |
50-
| `positions` | Positions in a special format that are required for claiming |
51-
| `total` | Total queued assets (e.g. ETH) |
52-
| `duration` | Queue duration time (in seconds). <br/>- It represents the approximate time after which the assets can be collected (in seconds).<br/>- If the value is null, the time is still being calculated. <br/>- If the value is 0, the assets are available and can be collected. |
53-
| | |-
54-
| `withdrawable` | Assets available for withdrawal (e.g. ETH) |
49+
| Name | Description |
50+
|----------------|------------------------------|
51+
| `requests` | Array of all requests |
52+
| `positions` | Positions in a special format that are required for claiming |
53+
| `total` | Total queued assets (e.g. ETH) |
54+
| `duration` | Queue duration time (in seconds). <br/>- It represents the approximate time after which the assets can be collected (in seconds).<br/>- If the value is null, the time is still being calculated. <br/>- If the value is 0, the assets are available and can be collected. |
55+
| `withdrawable` | Assets available for withdrawal (e.g. ETH) |
5556
5657
#### Example:
5758

src/utils/configs/mainnet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
network: constants.chains.mainnet,
88
api: {
99
backend: 'https://mainnet-api.stakewise.io/graphql',
10-
subgraph: 'https://graphs.stakewise.io/mainnet-a/subgraphs/name/stakewise/stage',
10+
subgraph: 'https://graphs.stakewise.io/mainnet-b/subgraphs/name/stakewise/stage',
1111
// TODO replace these:
1212
// [
1313
// 'https://graphs.stakewise.io/mainnet-a/subgraphs/name/stakewise/prod',

0 commit comments

Comments
 (0)