-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexecutor.proto
89 lines (78 loc) · 1.85 KB
/
executor.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
syntax = "proto3";
import "blockchain.proto";
message ExecutedHeader {
bytes prevhash = 1;
uint64 timestamp = 2;
uint64 height = 3;
bytes state_root = 4;
bytes transactions_root = 5;
bytes receipts_root = 6;
bytes log_bloom = 7;
uint64 quota_used = 8;
uint64 quota_limit = 9;
bytes proposer = 10;
}
enum ReceiptError {
//ExecutionError
NotEnoughBaseQuota = 0;
BlockQuotaLimitReached = 1;
AccountQuotaLimitReached = 2;
InvalidTransactionNonce = 3;
NotEnoughCash = 4;
NoTransactionPermission = 5;
NoContractPermission = 6;
NoCallPermission = 7;
ExecutionInternal = 8;
TransactionMalformed = 9;
//EvmError
OutOfQuota = 10;
BadJumpDestination = 11;
BadInstruction = 12;
StackUnderflow = 13;
OutOfStack = 14;
Internal = 15;
MutableCallInStaticContext = 16;
OutOfBounds = 17;
Reverted = 18;
}
message LogEntry {
bytes address = 1;
repeated bytes topics = 2;
bytes data = 3;
}
message ReceiptErrorWithOption {
ReceiptError error = 1;
}
message StateRoot {
bytes state_root = 1;
}
message Receipt {
StateRoot state_root = 1;
string quota_used = 2;
bytes log_bloom = 3;
repeated LogEntry logs = 4;
ReceiptErrorWithOption error = 5;
uint64 account_nonce = 6;
bytes transaction_hash = 7;
}
message ReceiptWithOption {
Receipt receipt = 1;
}
message ExecutedInfo {
ExecutedHeader header = 1;
repeated ReceiptWithOption receipts = 3;
}
message ConsensusConfig {
uint64 block_quota_limit = 1;
AccountGasLimit account_quota_limit = 2;
repeated bytes nodes = 3;
uint64 block_interval = 4;
bool check_quota = 5;
bytes admin_address = 6;
uint32 version = 7;
repeated bytes validators = 8;
}
message ExecutedResult {
ExecutedInfo executed_info = 1;
ConsensusConfig config = 2;
}