-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
559 additions
and
43 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
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
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,7 +1,9 @@ | ||
import { RegistryKey } from 'keys-api/interfaces/RegistryKey'; | ||
|
||
export interface StakingModuleData { | ||
blockHash: string; | ||
isDepositsPaused: boolean; | ||
unusedKeys: string[]; | ||
vettedKeys: RegistryKey[]; | ||
nonce: number; | ||
stakingModuleId: number; | ||
} |
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
10 changes: 10 additions & 0 deletions
10
src/keys-api/interfaces/GroupedByModuleOperatorListResponse.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Meta } from './Meta'; | ||
import { SROperatorListWithModule } from './SROperatorListWithModule'; | ||
|
||
export type GroupedByModuleOperatorListResponse = { | ||
/** | ||
* Staking router module operators with module | ||
*/ | ||
data: SROperatorListWithModule[]; | ||
meta: Meta; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { Meta } from './Meta'; | ||
import { RegistryKey } from './RegistryKey'; | ||
|
||
export type KeyListResponse = { | ||
data: Array<RegistryKey>; | ||
meta: Meta; | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
export type RegistryOperator = { | ||
/** | ||
* Index of Operator | ||
*/ | ||
index: number; | ||
/** | ||
* This value shows if node operator active | ||
*/ | ||
active: boolean; | ||
/** | ||
* Operator name | ||
*/ | ||
name: string; | ||
/** | ||
* Ethereum 1 address which receives stETH rewards for this operator | ||
*/ | ||
rewardAddress: string; | ||
/** | ||
* The number of keys vetted by the DAO and that can be used for the deposit | ||
*/ | ||
stakingLimit: number; | ||
/** | ||
* Amount of stopped validators | ||
*/ | ||
stoppedValidators: number; | ||
/** | ||
* Total signing keys amount | ||
*/ | ||
totalSigningKeys: number; | ||
/** | ||
* Amount of used signing keys | ||
*/ | ||
usedSigningKeys: number; | ||
/** | ||
* Staking module address | ||
*/ | ||
moduleAddress: string; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { RegistryOperator } from './RegistryOperator'; | ||
import type { SRModule } from './SRModule'; | ||
|
||
export type SROperatorListWithModule = { | ||
/** | ||
* Operators of staking router module | ||
*/ | ||
operators: Array<RegistryOperator>; | ||
/** | ||
* Detailed Staking Router information | ||
*/ | ||
module: SRModule; | ||
}; |
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,3 +1,4 @@ | ||
export type { SRModuleKeysResponse } from './SRModuleKeysResponse'; | ||
export type { SRModuleListResponse } from './SRModuleListResponse'; | ||
export type { SRModule } from './SRModule'; | ||
export type { KeyListResponse } from './KeyListResponse'; |
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
Oops, something went wrong.