Skip to content

Commit

Permalink
feat: generate neccessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Feb 19, 2025
1 parent 09787ea commit 6441441
Show file tree
Hide file tree
Showing 26 changed files with 4,546 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ lint: ## Runs the linter

.PHONY: generate-code-from-proto
generate-code-from-proto: ## Generates code from proto files
cd proto/src/proto/datastream/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../state/datastream --go-grpc_out=../../../../../state/datastream --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative datastream.proto
# cd proto/src/proto/datastream/v1 && protoc --proto_path=. --proto_path=../../../../include --go_out=../../../../../state/datastream --go-grpc_out=../../../../../state/datastream --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative datastream.proto
protoc --proto_path=agglayer/proto \
--go_out=agglayer/proto --go_opt=paths=source_relative \
--go-grpc_out=agglayer/proto --go-grpc_opt=paths=source_relative \
agglayer/proto/types/*.proto \
agglayer/proto/node/*.proto


## Help display.
Expand Down
295 changes: 295 additions & 0 deletions agglayer/proto/node/agglayer_certificate_submission_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions agglayer/proto/node/agglayer_certificate_submission_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Proto definition for Agglayer Certificate Submition Service

syntax = "proto3";

package proto;
option go_package = "github.com/agglayer/aggkit/agglayer/proto/node;node";
import "types/certificate.proto";

// Service for submitting certificate to an agglayer node.
service AgglayerCertificateSubmissionService {
// Method used to submit a certificate.
rpc SubmitCertificate(SubmitCertificateRequest)
returns (SubmitCertificateResponse);
}

// Type used to submit a certificate.
message SubmitCertificateRequest {
// The certificate to submit.
types.Certificate certificate = 1;
}

// Type used as response to a certificate submission.
message SubmitCertificateResponse {
// The certificate id of the submitted certificate.
types.CertificateId certificate_id = 1;
}

// The kind of error that occurred and that are reported by the service.
enum ErrorKind {
// Unspecified error.
ERROR_KIND_UNSPECIFIED = 0;
// The signature verification failed.
ERROR_KIND_SIGNATURE_VERIFICATION = 1;
}
Loading

0 comments on commit 6441441

Please sign in to comment.