validator.yaml
1 Validator: 2 type: object 3 properties: 4 pubkey: 5 $ref: './primitive.yaml#/Pubkey' 6 withdrawal_credentials: 7 allOf: 8 - $ref: "./primitive.yaml#/Root" 9 - description: "Root of withdrawal credentials" 10 effective_balance: 11 allOf: 12 - $ref: "./primitive.yaml#/Gwei" 13 - description: "Balance at stake in Gwei." 14 slashed: 15 type: boolean 16 example: false 17 description: "Was validator slashed (not longer active)." 18 activation_eligibility_epoch: 19 allOf: 20 - $ref: "./primitive.yaml#/Uint64" 21 - description: "When criteria for activation were met." 22 activation_epoch: 23 allOf: 24 - $ref: "./primitive.yaml#/Uint64" 25 - description: "Epoch when validator activated. 'FAR_FUTURE_EPOCH' if not activated" 26 exit_epoch: 27 allOf: 28 - $ref: "./primitive.yaml#/Uint64" 29 - description: "Epoch when validator exited. 'FAR_FUTURE_EPOCH' if not exited." 30 withdrawable_epoch: 31 allOf: 32 - $ref: "./primitive.yaml#/Uint64" 33 - description: "When validator can withdraw or transfer funds. 'FAR_FUTURE_EPOCH' if not defined" 34 35 AttesterDuty: 36 type: object 37 properties: 38 pubkey: 39 $ref: './primitive.yaml#/Pubkey' 40 validator_index: 41 allOf: 42 - $ref: "./primitive.yaml#/Uint64" 43 - description: "Index of validator in validator registry" 44 committee_index: 45 allOf: 46 - $ref: "./primitive.yaml#/Uint64" 47 - description: "The committee index" 48 committee_length: 49 allOf: 50 - $ref: "./primitive.yaml#/Uint64" 51 - description: "Number of validators in committee" 52 committees_at_slot: 53 allOf: 54 - $ref: "./primitive.yaml#/Uint64" 55 - description: "Number of committees at the provided slot" 56 validator_committee_index: 57 allOf: 58 - $ref: "./primitive.yaml#/Uint64" 59 - description: "Index of validator in committee" 60 slot: 61 allOf: 62 - $ref: "./primitive.yaml#/Uint64" 63 - description: "The slot at which the validator must attest." 64 65 ProposerDuty: 66 type: object 67 properties: 68 pubkey: 69 $ref: './primitive.yaml#/Pubkey' 70 validator_index: 71 allOf: 72 - $ref: "./primitive.yaml#/Uint64" 73 - description: "Index of validator in validator registry." 74 slot: 75 allOf: 76 - $ref: "./primitive.yaml#/Uint64" 77 - description: "The slot at which the validator must propose block." 78 79 Altair: 80 SyncDuty: 81 type: object 82 properties: 83 pubkey: 84 $ref: './primitive.yaml#/Pubkey' 85 validator_index: 86 allOf: 87 - $ref: "./primitive.yaml#/Uint64" 88 - description: "Index of validator in validator registry." 89 validator_sync_committee_indices: 90 type: array 91 description: "The indices of the validator in the sync committee." 92 minItems: 1 93 items: 94 $ref: './primitive.yaml#/Uint64' 95 96 AggregateAndProof: 97 allOf: 98 - $ref: '#/Aggregate' 99 - type: object 100 properties: 101 selection_proof: 102 $ref: './primitive.yaml#/Signature' 103 104 Aggregate: 105 type: object 106 description: "The [`AggregateAndProof`](https://github.com/ethereum/eth2.0-specs/blob/v1.0.1/specs/phase0/validator.md#aggregateandproof) without selection_proof" 107 properties: 108 aggregator_index: 109 $ref: './primitive.yaml#/Uint64' 110 aggregate: 111 $ref: './attestation.yaml#/Attestation' 112 113 114 SignedAggregateAndProof: 115 description: "The [`SignedAggregateAndProof`](https://github.com/ethereum/eth2.0-specs/blob/v1.0.1/specs/phase0/validator.md#signedaggregateandproof) object" 116 properties: 117 message: 118 $ref: "#/AggregateAndProof" 119 signature: 120 $ref: "./primitive.yaml#/Signature"