Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidating proto definitions in astria-proto, and add CI tests
- Loading branch information
Showing
23 changed files
with
75 additions
and
113 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,30 @@ | ||
name: buf | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build-lint-push-protos: | ||
runs-on: ubuntu-latest | ||
environment: BUF | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: bufbuild/buf-setup-action@v1 | ||
with: | ||
version: "1.15.1" | ||
github_token: ${{ github.token }} | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
input: "crates/astria-proto" | ||
# TODO(GH-29): Uncomment out after reaching any production stage | ||
# - uses: bufbuild/buf-breaking-action@v1 | ||
# with: | ||
# # The 'main' branch of the GitHub repository that defines the module. | ||
# input: "crates/astria-proto/proto" | ||
# against: "https://github.com/astriaorg/astria.git#branch=main,ref=HEAD~1,subdir=crates/astria-proto/proto" | ||
- uses: bufbuild/buf-push-action@v1 | ||
with: | ||
draft: ${{ github.ref_name != 'main'}} | ||
input: "crates/astria-proto/proto" | ||
buf_token: ${{ secrets.BUF_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
crates/astria-execution-apis-rpc/Cargo.toml → crates/astria-proto/Cargo.toml
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
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
version: v1 | ||
directories: | ||
- proto |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...is-rpc/proto/execution/v1/execution.proto → ...proto/astria/execution/v1/execution.proto
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,6 +1,6 @@ | ||
syntax = 'proto3'; | ||
|
||
package execution.v1; | ||
package astria.execution.v1; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
|
5 changes: 3 additions & 2 deletions
5
...a-sequencer-relayer-proto/proto/msg.proto → ...proto/proto/astria/sequencer/v1/msg.proto
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
3 changes: 3 additions & 0 deletions
3
...ia-sequencer-relayer-proto/proto/tx.proto → ...-proto/proto/astria/sequencer/v1/tx.proto
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,2 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 |
2 changes: 1 addition & 1 deletion
2
crates/astria-execution-apis-rpc/buf.yaml → crates/astria-proto/proto/buf.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
version: v1 | ||
name: buf.build/astria/execution-apis | ||
name: buf.build/astria/astria | ||
breaking: | ||
use: | ||
- FILE | ||
|
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,11 @@ | ||
pub mod execution { | ||
pub mod v1 { | ||
include!(concat!(env!("OUT_DIR"), "/astria.execution.v1.rs")); | ||
} | ||
} | ||
|
||
pub mod sequencer { | ||
pub mod v1 { | ||
include!(concat!(env!("OUT_DIR"), "/astria.sequencer.v1.rs")); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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