Your commitment ends on {endCommitmentDate}
)} ) : ( diff --git a/src/store/staking-applications/slice.ts b/src/store/staking-applications/slice.ts index 4cd0fe065..df6712064 100644 --- a/src/store/staking-applications/slice.ts +++ b/src/store/staking-applications/slice.ts @@ -287,6 +287,7 @@ export const stakingApplicationsSlice = createSlice({ deauthorizationCreatedAt: undefined, isOperatorInPool: undefined, operator: AddressZero, + stakingProviderInfo: undefined, } state.randomBeacon.stakingProviders.data[stakingProvider] = { diff --git a/src/threshold-ts/applications/index.ts b/src/threshold-ts/applications/index.ts index cecbb2985..674efe2f9 100644 --- a/src/threshold-ts/applications/index.ts +++ b/src/threshold-ts/applications/index.ts @@ -38,6 +38,20 @@ export interface AuthorizationParameters< authorizationDecreaseChangePeriod: NumberType } +export interface StakingProviderInfo< + NumberType extends BigNumberish = BigNumber +> { + operator: string + operatorConfirmed: boolean + operatorStartTimestamp: NumberType + authorized: NumberType + deauthorizing: NumberType + endDeauthorization: NumberType + tReward: NumberType + rewardPerTokenPaid: NumberType + endCommitment: NumberType +} + export interface StakingProviderAppInfo< NumberType extends BigNumberish = BigNumber > { @@ -75,6 +89,8 @@ export interface StakingProviderAppInfo< * it means that the operator for a given staking provider is not set. */ isOperatorInPool: boolean | undefined + + stakingProviderInfo?: StakingProviderInfo | undefined } /** @@ -202,6 +218,8 @@ export interface IApplication { */ stakingProviderToOperator(stakingProvider: string): Promise