forked from starknet-io/starknet-p2p-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
propagation.proto
50 lines (37 loc) · 921 Bytes
/
propagation.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
45
46
47
48
49
50
syntax = "proto3";
import "p2p/proto/common.proto";
message NewBlockHeader
{
uint32 request_id = 1;
BlockHeader header = 2;
}
message NewBlockBody
{
FieldElement block_hash = 1;
BlockBody body = 2;
}
message NewBlockState
{
FieldElement block_hash = 1;
BlockStateUpdate state_update = 2;
}
message BlockStateUpdate
{
message StorageDiff {
FieldElement key = 1;
FieldElement value = 2;
}
message ContractDiff {
FieldElement contract_address = 1;
FieldElement nonce = 2;
repeated StorageDiff storage_diffs = 3;
}
message DeployedContract {
FieldElement contract_address = 1;
FieldElement contract_class_hash = 2;
}
uint32 request_id = 1;
repeated ContractDiff contract_diffs = 2;
repeated DeployedContract deployed_contracts = 3;
repeated FieldElement declared_contract_class_hashes = 4;
}