-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into nflaig/clarify-status-codes
- Loading branch information
Showing
15 changed files
with
178 additions
and
53 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
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 |
---|---|---|
@@ -1,18 +1,23 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- run: npm i -g @apidevtools/swagger-cli@4 @redocly/cli@1.0.0-beta.111 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm i -g @apidevtools/swagger-cli@4 @redocly/cli@1.19.0 | ||
|
||
- name: Lint spec | ||
run: redocly lint ./beacon-node-oapi.yaml | ||
- name: Lint spec | ||
run: redocly lint ./beacon-node-oapi.yaml | ||
|
||
- name: Bundle spec | ||
run: "swagger-cli bundle ./beacon-node-oapi.yaml -r -t yaml -o ./deploy/beacon-node-oapi.yaml" | ||
- name: Bundle spec | ||
run: "swagger-cli bundle ./beacon-node-oapi.yaml -r -t yaml -o ./deploy/beacon-node-oapi.yaml" |
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,49 @@ | ||
name: Pre-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*-(alpha|beta|rc).*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- run: npm i -g @apidevtools/swagger-cli@4 | ||
- name: Update Spec version | ||
run: "sed -i 's/version: \"Dev/version: \"${{ github.ref_name }}/' ./beacon-node-oapi.yaml" | ||
- name: Bundle yaml spec | ||
run: "swagger-cli bundle ./beacon-node-oapi.yaml -r -t yaml -o ./deploy/beacon-node-oapi.yaml" | ||
- name: Bundle json spec | ||
run: "swagger-cli bundle ./beacon-node-oapi.yaml -r -t json -o ./deploy/beacon-node-oapi.json" | ||
- name: Create Release Notes | ||
run: | | ||
echo "The following changes are included in this release:" > release-notes.md | ||
awk '/^## Development Version/ {flag=1; next} /^## / {flag=0} flag { \ | ||
if ($0 ~ /\| \[#/) {sub(/^\| /, "- "); sub(/\| .*$/, ""); sub(/[[:space:]]+$/, ""); print}}' CHANGES.md >> release-notes.md | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ github.ref_name }} | ||
tag_name: ${{ github.ref_name }} | ||
body_path: "release-notes.md" | ||
draft: false | ||
prerelease: true | ||
files: | | ||
./deploy/beacon-node-oapi.yaml | ||
./deploy/beacon-node-oapi.json | ||
fail_on_unmatched_files: true | ||
- name: Rollback Release | ||
if: failure() | ||
uses: author/action-rollback@1.0.4 | ||
with: | ||
release_id: ${{ steps.create_release.outputs.id }} | ||
tag: ${{ github.ref }} | ||
delete_orphan_tag: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
name: Spellcheck | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Spellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: rojopolis/spellcheck-github-actions@0.29.0 | ||
name: Spellcheck | ||
- uses: actions/checkout@v4 | ||
- uses: rojopolis/spellcheck-github-actions@0.40.0 | ||
name: Spellcheck |
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
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
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,33 @@ | ||
post: | ||
operationId: "publishAggregateAndProofsV2" | ||
summary: "Publish multiple aggregate and proofs" | ||
description: "Verifies given aggregate and proofs and publishes them on appropriate gossipsub topic." | ||
tags: | ||
- ValidatorRequiredApi | ||
- Validator | ||
parameters: | ||
- in: header | ||
schema: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ConsensusVersion' | ||
required: true | ||
name: Eth-Consensus-Version | ||
description: "Version of the aggregate and proofs being submitted." | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
anyOf: | ||
- type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/SignedAggregateAndProof' | ||
- type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Electra.SignedAggregateAndProof' | ||
responses: | ||
"200": | ||
description: "Successful response" | ||
"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
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,29 @@ | ||
Electra: | ||
AggregateAndProof: | ||
allOf: | ||
- $ref: '#/Electra/Aggregate' | ||
- type: object | ||
required: [selection_proof] | ||
properties: | ||
selection_proof: | ||
$ref: '../primitive.yaml#/Signature' | ||
|
||
Aggregate: | ||
type: object | ||
description: "The [`AggregateAndProof`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/electra/validator.md#aggregateandproof) without selection_proof" | ||
required: [aggregator_index, aggregate] | ||
properties: | ||
aggregator_index: | ||
$ref: '../primitive.yaml#/Uint64' | ||
aggregate: | ||
$ref: './attestation.yaml#/Electra/Attestation' | ||
|
||
SignedAggregateAndProof: | ||
type: object | ||
description: "The [`SignedAggregateAndProof`](https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.3/specs/electra/validator.md#signedaggregateandproof) object" | ||
required: [message, signature] | ||
properties: | ||
message: | ||
$ref: "#/Electra/AggregateAndProof" | ||
signature: | ||
$ref: "../primitive.yaml#/Signature" |
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ MEV | |
PayloadAttributesV | ||
Gwei | ||
prev | ||
pre | ||
ENR | ||
enr | ||
attnets | ||
|