-
Notifications
You must be signed in to change notification settings - Fork 64
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
Return validator addresses in staking entities #1964
Conversation
Pull Request Test Coverage Report for Build 11054300850Details
💛 - Coveralls |
const validators = [ | ||
faker.string.hexadecimal({ | ||
length: KilnDecoder.KilnPublicKeyLength, | ||
// Transaction Service returns _publicKeys lowercase | ||
casing: 'lower', | ||
}), | ||
faker.string.hexadecimal({ | ||
length: KilnDecoder.KilnPublicKeyLength, | ||
casing: 'lower', | ||
}), | ||
] as Array<`0x${string}`>; | ||
const validatorPublicKey = concat(validators); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: validators
is not being expected in the response, I think it would be better to include it:
expect(actual).toEqual(
expect.objectContaining({
type: 'NativeStakingWithdraw',
value: withdrawalEventParams.rewards.toString(),
tokenInfo: {
address: NULL_ADDRESS,
decimals: chain.nativeCurrency.decimals,
logoUri: chain.nativeCurrency.logoUri,
name: chain.nativeCurrency.name,
symbol: chain.nativeCurrency.symbol,
trusted: true,
},
validators,
}),
);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 9dd2b7a.
const validators = [ | ||
faker.string.hexadecimal({ | ||
length: KilnDecoder.KilnPublicKeyLength, | ||
// Transaction Service returns _publicKeys lowercase | ||
casing: 'lower', | ||
}), | ||
faker.string.hexadecimal({ | ||
length: KilnDecoder.KilnPublicKeyLength, | ||
casing: 'lower', | ||
}), | ||
] as Array<`0x${string}`>; | ||
const validatorPublicKey = concat(validators); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: same here, validators
is not being checked in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 9dd2b7a.
Returns the validators under a new `validators` property for all staking entities (apart from pre-executed deposits): - Add `validators` property to: - Confirmation view: exit requests and withdrawals - Transaction info: deposits (after execution), exit requests and withdrawals
Summary
As it is not possible to always return the current value for exit requests, we will not show the number of validators exiting in the transaction list of the UI. For individual validators, it's then possible to see their respective balances on the beacon chain explorer.
This returns the validators under a new
validators
property for all staking entities (apart from pre-executed deposits).Changes
validators
property to: