Skip to content

Commit

Permalink
Merge pull request #401 from dapplion/rewards-types
Browse files Browse the repository at this point in the history
Quote uint64 and int64 examples
  • Loading branch information
dapplion authored Jan 12, 2024
2 parents 4882aa0 + 8f1364e commit cfbe667
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions types/rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ SyncCommitteeRewards:
validator_index:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 0
- example: "0"
- description: "one entry for every validator participating in the sync committee"
reward:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- example: "2000"
- description: "sync committee reward in gwei for the validator"

AttestationsRewards:
Expand All @@ -39,32 +39,32 @@ AttestationRewards:
validator_index:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 0
- example: "0"
- description: "one entry for every validator based on their attestations in the epoch"
head:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- example: "2000"
- description: "attester's reward for head vote in gwei"
target:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- example: "2000"
- description: "attester's reward for target vote in gwei"
source:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 4000
- example: "4000"
- description: "attester's reward for source vote in gwei"
inclusion_delay:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 2000
- example: "2000"
- description: "attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- example: "2000"
- description: "attester's inactivity penalty in gwei"

IdealAttestationRewards:
Expand All @@ -75,32 +75,32 @@ IdealAttestationRewards:
effective_balance:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 1000000000
- example: "1000000000"
- description: "validator's effective balance in gwei"
head:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2500
- example: "2500"
- description: "Ideal attester's reward for head vote in gwei"
target:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- example: "5000"
- description: "Ideal attester's reward for target vote in gwei"
source:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- example: "5000"
- description: "Ideal attester's reward for source vote in gwei"
inclusion_delay:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 5000
- example: "5000"
- description: "Ideal attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- example: "5000"
- description: "Ideal attester's inactivity penalty in gwei"

BlockRewards:
Expand All @@ -110,30 +110,30 @@ BlockRewards:
proposer_index:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "proposer of the block, the proposer index who receives these rewards"
total:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "total block reward in gwei, equal to attestations + sync_aggregate + proposer_slashings + attester_slashings"
attestations:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "block reward component due to included attestations in gwei"
sync_aggregate:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "block reward component due to included sync_aggregate in gwei"
proposer_slashings:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "block reward component due to included proposer_slashings in gwei"
attester_slashings:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 123
- example: "123"
- description: "block reward component due to included attester_slashings in gwei"

0 comments on commit cfbe667

Please sign in to comment.