forked from ethereum/beacon-APIs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v1: builder proposer endpoint * rename DVT to DV
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
get: | ||
tags: | ||
- ValidatorRequiredApi | ||
- Validator | ||
operationId: "proposerConfig" | ||
summary: "Produce a proposer config" | ||
description: | | ||
Requests the beacon node or DV middleware to produce the proposer config. The proposer_config enables validator registrations | ||
for distributed validator (DV) middleware clients. | ||
responses: | ||
"200": | ||
description: Success response | ||
content: | ||
application/json: | ||
schema: | ||
title: ProposerConfigResponse | ||
type: object | ||
properties: | ||
data: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ProposerConfig' | ||
"400": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' | ||
"500": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
BuilderProposerConfig: | ||
type: object | ||
required: ["default_config"] | ||
properties: | ||
default_config: | ||
allOf: | ||
- $ref: './proposer_config.yaml#/DefaultConfig' | ||
proposer_config: | ||
allOf: | ||
- $ref: './proposer_config.yaml#/ProposerConfig' | ||
|
||
DefaultConfig: | ||
type: object | ||
description: "A default proposer configuration contains all default values to be applied to every validator. These values can be overridden for specific validators in proposer_config." | ||
properties: | ||
fee_recipient: | ||
allOf: | ||
- $ref: "./primitive.yaml#/ExecutionAddress" | ||
- example: "0xabcf8e0d4e9587369b2301d0790347320302cc09" | ||
- description: "Fee-recipient address" | ||
builder: | ||
allOf: | ||
- $ref: './proposer_config.yaml#/Builder' | ||
|
||
ProposerConfig: | ||
description: "A proposer configuration for multiple validator public keys. This overrides default config for selected validators." | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
public_key: | ||
allOf: | ||
- $ref: "./primitive.yaml#/Pubkey" | ||
- description: "The validator to override values for" | ||
fee_recipient: | ||
allOf: | ||
- $ref: "./primitive.yaml#/ExecutionAddress" | ||
- example: "0xabcf8e0d4e9587369b2301d0790347320302cc09" | ||
- description: "Fee-recipient address" | ||
builder: | ||
allOf: | ||
- $ref: './proposer_config.yaml#/Builder' | ||
|
||
Builder: | ||
type: object | ||
description: "The builder network configuration." | ||
properties: | ||
enabled: | ||
allOf: | ||
- type: boolean | ||
- example: false | ||
gas_limit: | ||
allOf: | ||
- $ref: "./primitive.yaml#/Uint256" | ||
registration_overrides: | ||
allOf: | ||
- $ref: './proposer_config.yaml#/RegistrationOverrides' | ||
|
||
RegistrationOverrides: | ||
type: object | ||
description: "Fields for overriding validator registrations" | ||
properties: | ||
timestamp: | ||
allOf: | ||
- $ref: "./primitive.yaml#/Uint64" | ||
public_key: | ||
allOf: | ||
- $ref: "./primitive.yaml#/Pubkey" |