Skip to content

Commit

Permalink
regenerated proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowosie committed Aug 16, 2024
1 parent b66f6c5 commit 5806fec
Show file tree
Hide file tree
Showing 12 changed files with 376 additions and 359 deletions.
3 changes: 2 additions & 1 deletion p2p/starknet/handlers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:generate protoc --go_out=./ --proto_path=./ --go_opt=Mp2p/proto/transaction.proto=./spec --go_opt=Mp2p/proto/state.proto=./spec --go_opt=Mp2p/proto/snapshot.proto=./spec --go_opt=Mp2p/proto/receipt.proto=./spec --go_opt=Mp2p/proto/mempool.proto=./spec --go_opt=Mp2p/proto/event.proto=./spec --go_opt=Mp2p/proto/block.proto=./spec --go_opt=Mp2p/proto/common.proto=./spec p2p/proto/transaction.proto p2p/proto/state.proto p2p/proto/common.proto p2p/proto/event.proto p2p/proto/receipt.proto
//go:generate protoc --go_out=./ --proto_path=./ --go_opt=Mp2p/proto/transaction.proto=./spec --go_opt=Mp2p/proto/header.proto=./spec --go_opt=Mp2p/proto/state.proto=./spec --go_opt=Mp2p/proto/class.proto=./spec --go_opt=Mp2p/proto/snapshot.proto=./spec --go_opt=Mp2p/proto/receipt.proto=./spec --go_opt=Mp2p/proto/event.proto=./spec --go_opt=Mp2p/proto/common.proto=./spec p2p/proto/class.proto p2p/proto/event.proto p2p/proto/snapshot.proto p2p/proto/transaction.proto p2p/proto/common.proto p2p/proto/header.proto p2p/proto/receipt.proto p2p/proto/state.proto

package starknet

import (
Expand Down
7 changes: 6 additions & 1 deletion p2p/starknet/p2p/proto/class.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ message ClassesResponse {
Class class = 1;
Fin fin = 2; // Fin is sent after the peer sent all the data or when it encountered a block that it doesn't have its classes.
}
}
}

message Classes {
uint32 domain = 1;
repeated Class classes = 2;
}
1 change: 1 addition & 0 deletions p2p/starknet/p2p/proto/snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";

import "p2p/proto/common.proto";
import "p2p/proto/state.proto";
import "p2p/proto/class.proto";

message PatriciaNode {
message Edge {
Expand Down
2 changes: 1 addition & 1 deletion p2p/starknet/p2p/proto/state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ message StateDiffsResponse {
DeclaredClass declared_class = 2;
Fin fin = 3; // Fin is sent after the peer sent all the data or when it encountered a block that it doesn't have its state diff.
}
}
}
118 changes: 96 additions & 22 deletions p2p/starknet/spec/class.pb.go

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

75 changes: 36 additions & 39 deletions p2p/starknet/spec/common.pb.go

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

Loading

0 comments on commit 5806fec

Please sign in to comment.