-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
24 lines (21 loc) · 890 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package guardedbeaconproxy
// PrepareBeaconProposerRequest is the in-memory representation of a
// prepare_beacon_proposer API call, be it gRPC or HTTP.
type PrepareBeaconProposerRequest []struct {
ValidatorIndex string `json:"validator_index"`
FeeRecipient string `json:"fee_recipient"`
}
// RegisterValidatorMessage is the in-memory representation of a
// register_validator API call entry, be it gRPC or HTTP.
type RegisterValidatorMessage struct {
FeeRecipient string `json:"fee_recipient"`
GasLimit string `json:"gas_limit"`
Timestamp string `json:"timestamp"`
Pubkey string `json:"pubkey"`
}
// RegisterValidatorRequest is the in-memory representation of a
// register_validator API call, be it gRPC or HTTP.
type RegisterValidatorRequest []struct {
Message RegisterValidatorMessage `json:"message"`
Signature string `json:"signature"`
}