Skip to content

Commit

Permalink
protobuf changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowosie committed Sep 5, 2024
1 parent 9efe016 commit 18e92f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions p2p/starknet/p2p/proto/class.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ message Classes {
uint32 domain = 1;
repeated Class classes = 2;
}

message ClassHashesRequest {
repeated Hash class_hashes = 1;
}
8 changes: 6 additions & 2 deletions p2p/starknet/p2p/proto/snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ message ContractRangeResponse {
ContractRange range = 4;
Fin fin = 5;
}
PatriciaRangeProof range_proof = 6;
}

// duplicate of GetContractRange. Can introduce a 'type' instead.
Expand All @@ -77,6 +78,7 @@ message ClassRangeResponse {
Classes classes = 4;
Fin fin = 5;
}
PatriciaRangeProof range_proof = 6;
}

// A position in some contract's state tree is identified by the state tree's root and the key in it
Expand Down Expand Up @@ -105,8 +107,10 @@ message ContractStorage {

message ContractStorageResponse {
optional Hash state_root = 1; // may not appear if Fin is sent to end the whole response
optional Address contract_address = 2;
oneof responses {
ContractStorage storage = 2;
Fin fin = 3;
ContractStorage storage = 3;
Fin fin = 4;
}
PatriciaRangeProof range_proof = 5;
}

0 comments on commit 18e92f7

Please sign in to comment.