Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote uint64 and int64 examples #401

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading