2023-06-01 11:22:49 +00:00
|
|
|
package beacon
|
|
|
|
|
|
|
|
import (
|
2023-08-18 14:29:40 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
|
2023-06-01 11:22:49 +00:00
|
|
|
)
|
|
|
|
|
2023-08-22 06:18:02 +00:00
|
|
|
type BlockRootResponse struct {
|
|
|
|
Data *struct {
|
|
|
|
Root string `json:"root"`
|
|
|
|
} `json:"data"`
|
|
|
|
ExecutionOptimistic bool `json:"execution_optimistic"`
|
|
|
|
Finalized bool `json:"finalized"`
|
|
|
|
}
|
|
|
|
|
2023-09-13 17:29:32 +00:00
|
|
|
type GetCommitteesResponse struct {
|
|
|
|
Data []*shared.Committee `json:"data"`
|
|
|
|
ExecutionOptimistic bool `json:"execution_optimistic"`
|
|
|
|
Finalized bool `json:"finalized"`
|
|
|
|
}
|
|
|
|
|
2023-09-08 17:05:29 +00:00
|
|
|
type DepositContractResponse struct {
|
|
|
|
Data *struct {
|
|
|
|
ChainId uint64 `json:"chain_id"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
} `json:"data"`
|
|
|
|
}
|
|
|
|
|
2023-08-18 14:29:40 +00:00
|
|
|
type ListAttestationsResponse struct {
|
|
|
|
Data []*shared.Attestation `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SubmitAttestationsRequest struct {
|
2023-09-01 17:58:50 +00:00
|
|
|
Data []*shared.Attestation `json:"data"`
|
2023-08-18 14:29:40 +00:00
|
|
|
}
|
|
|
|
|
2023-08-23 07:51:03 +00:00
|
|
|
type ListVoluntaryExitsResponse struct {
|
2023-09-01 17:58:50 +00:00
|
|
|
Data []*shared.SignedVoluntaryExit `json:"data"`
|
2023-06-01 11:22:49 +00:00
|
|
|
}
|
|
|
|
|
2023-09-01 17:58:50 +00:00
|
|
|
type SubmitSyncCommitteeSignaturesRequest struct {
|
|
|
|
Data []*shared.SyncCommitteeMessage `json:"data"`
|
2023-06-01 11:22:49 +00:00
|
|
|
}
|
2023-09-11 18:57:17 +00:00
|
|
|
|
|
|
|
type GetStateForkResponse struct {
|
|
|
|
Data *shared.Fork `json:"data"`
|
|
|
|
ExecutionOptimistic bool `json:"execution_optimistic"`
|
|
|
|
Finalized bool `json:"finalized"`
|
|
|
|
}
|
2023-09-15 10:05:35 +00:00
|
|
|
|
|
|
|
type GetBlockHeadersResponse struct {
|
|
|
|
Data []*shared.SignedBeaconBlockHeaderContainer `json:"data"`
|
|
|
|
ExecutionOptimistic bool `json:"execution_optimistic"`
|
|
|
|
Finalized bool `json:"finalized"`
|
|
|
|
}
|