forked from starknet-io/starknet-p2p-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
state_sync.proto
45 lines (29 loc) · 918 Bytes
/
state_sync.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
syntax = "proto3";
import "p2p/proto/common.proto";
import "p2p/proto/propagation.proto";
message GetStateSnapshotChunk
{
uint32 request_id = 1;
uint64 chunk_number = 2;
}
message StateSnapshotChunk
{
uint32 request_id = 1;
uint64 block_number = 2;
uint64 chunk_number = 3;
repeated BlockStateUpdate.StorageDiff storage_diffs = 4; //all the storage diffs in this
repeated bytes commitment_path = 5; //the merkle path to the committed state root, for each diff
}
message GetClassSnapshotChunk
{
uint32 request_id = 1;
uint64 chunk_number = 2;
}
message ClassSnapshotChunk
{
uint32 request_id = 1;
uint64 block_number = 2;
uint64 chunk_number = 3;
repeated ContractClass classes = 4; //the set of contract classes in the requested chunk
repeated bytes commitment_path = 5; //the merkle path to the committed state root, for each class definition
}