mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
e952fd802b
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs` * add comment to invalid test case * fix validation and test * review * in progress * implementation * remove test file * remove duplicate * tests * HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions` * pointers, pointers everywhere * fix * fix after merge * implementation * tests * test fixes * review * clear cache in validator tests * add missing stuff * compilation fix * remove `required` from bool * remove time fetcher from tests * no need to convert * add conversion --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
24 lines
749 B
Go
24 lines
749 B
Go
package validator
|
|
|
|
import "github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
|
|
|
|
type AggregateAttestationResponse struct {
|
|
Data *shared.Attestation `json:"data" validate:"required"`
|
|
}
|
|
|
|
type SubmitContributionAndProofsRequest struct {
|
|
Data []*shared.SignedContributionAndProof `json:"data" validate:"required,dive"`
|
|
}
|
|
|
|
type SubmitAggregateAndProofsRequest struct {
|
|
Data []*shared.SignedAggregateAttestationAndProof `json:"data" validate:"required,dive"`
|
|
}
|
|
|
|
type SubmitSyncCommitteeSubscriptionsRequest struct {
|
|
Data []*shared.SyncCommitteeSubscription `json:"data" validate:"required,dive"`
|
|
}
|
|
|
|
type SubmitBeaconCommitteeSubscriptionsRequest struct {
|
|
Data []*shared.BeaconCommitteeSubscription `json:"data" validate:"required,dive"`
|
|
}
|