Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand exit queue data #236

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/graphql/subgraph/exitQueue/exitQueueQuery.graphql
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
query exitQueue($where: ExitRequest_filter) {
exitRequests(where: $where) {
receiver
isClaimed
timestamp
totalAssets
isClaimable
exitedAssets
isV2Position
positionTicket
exitQueueIndex
withdrawalTimestamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ type ExitRequest = {
withdrawalTimestamp: string | null
exitQueueIndex: string | null
positionTicket: string
isV2Position: boolean
isClaimable: boolean
exitedAssets: bigint
totalAssets: bigint
isClaimed: boolean
timestamp: string
receiver: string
}

type Position = {
Expand All @@ -44,14 +46,13 @@ type Output = {
}
```

| Name | Description |
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `requests` | Array of all requests |
| `positions` | Positions in a special format that are required for claiming |
| `total` | Total queued assets (e.g. ETH) |
| `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. |
| | |-
| `withdrawable` | Assets available for withdrawal (e.g. ETH) |
| Name | Description |
|----------------|------------------------------|
| `requests` | Array of all requests |
| `positions` | Positions in a special format that are required for claiming |
| `total` | Total queued assets (e.g. ETH) |
| `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. |
| `withdrawable` | Assets available for withdrawal (e.g. ETH) |

#### Example:

Expand Down
2 changes: 1 addition & 1 deletion src/utils/configs/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
network: constants.chains.mainnet,
api: {
backend: 'https://mainnet-api.stakewise.io/graphql',
subgraph: 'https://graphs.stakewise.io/mainnet-a/subgraphs/name/stakewise/stage',
subgraph: 'https://graphs.stakewise.io/mainnet-b/subgraphs/name/stakewise/stage',
// TODO replace these:
// [
// 'https://graphs.stakewise.io/mainnet-a/subgraphs/name/stakewise/prod',
Expand Down
Loading