mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
c018981951
* add structs for expected-withdrawals-api * add server handler * add tests * add bazel file * register api in service * remove get prefix for endpoint * fix review comments * Update beacon-chain/rpc/eth/builder/handlers.go * use goimports sorting type --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
15 lines
465 B
Go
15 lines
465 B
Go
package builder
|
|
|
|
type ExpectedWithdrawalsResponse struct {
|
|
Data []*ExpectedWithdrawal `json:"data"`
|
|
ExecutionOptimistic bool `json:"execution_optimistic"`
|
|
Finalized bool `json:"finalized"`
|
|
}
|
|
|
|
type ExpectedWithdrawal struct {
|
|
Address string `json:"address" hex:"true"`
|
|
Amount string `json:"amount"`
|
|
Index string `json:"index"`
|
|
ValidatorIndex string `json:"validator_index"`
|
|
}
|