-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_operation.proto
58 lines (50 loc) · 1.23 KB
/
user_operation.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
syntax = "proto3";
package gtms.user_operations.v1;
message UserOperations {
repeated UserOperation user_operations = 1;
}
message UserOperation {
string user_op_hash = 1;
string sender = 2;
string paymaster = 3;
string nonce = 4;
bool success = 5;
string actual_gas_cost = 6;
string actual_gas_used = 7;
BlockInfo block_info = 9;
TransactionInfo transaction_info = 10;
UserOperationInput user_op_input = 11;
uint64 log_ordinal = 12;
}
message UserOperationRevert {
bytes user_op_hash = 1;
bytes revert_reason = 2;
}
message BlockInfo {
int64 block_time = 1;
uint64 block_number = 2;
}
message TransactionInfo {
string transaction_hash = 1;
int32 transaction_status = 2;
}
message UserOperationInput {
string sender = 1;
string nonce = 2;
string init_code = 3;
string call_data = 4;
string call_gas_limit = 5;
string verification_gas_limit = 6;
string pre_verification_gas = 7;
string max_fee_per_gas = 8;
string max_priorit_fee_per_gas = 9;
string paymaster_and_data = 10;
string signature = 11;
string beneficiary = 12;
DecodedCallData decoded_call_data = 13;
}
message DecodedCallData {
repeated string targets = 1;
repeated string call_datas = 2;
repeated string values = 3;
}