prysm-pulse/beacon-chain/rpc/eth/shared/structs.go

21 lines
548 B
Go
Raw Normal View History

package shared
type Attestation struct {
AggregationBits string `json:"aggregation_bits"`
Data AttestationData `json:"data"`
Signature string `json:"signature"`
}
type AttestationData struct {
Slot string `json:"slot"`
CommitteeIndex string `json:"index"`
BeaconBlockRoot string `json:"beacon_block_root"`
Source Checkpoint `json:"source"`
Target Checkpoint `json:"target"`
}
type Checkpoint struct {
Epoch string `json:"epoch"`
Root string `json:"root"`
}