forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
primitive.proto
64 lines (58 loc) · 1.41 KB
/
primitive.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
syntax = "proto3";
package iroha.protocol;
enum RolePermission {
// Command Permissions
can_append_role = 0;
can_detach_role = 30;
can_create_role = 1;
can_add_asset_qty = 2;
can_add_peer = 3;
can_add_signatory = 4;
can_create_account = 5;
can_create_asset = 6;
can_create_domain = 7;
can_remove_signatory = 8;
can_set_quorum = 9;
can_transfer = 10;
can_receive = 11;
can_subtract_asset_qty = 12;
// Query permissions
can_read_assets = 13;
can_get_roles = 14;
can_get_my_account = 15;
can_get_all_accounts = 16;
can_get_my_signatories = 17;
can_get_all_signatories = 18;
can_get_my_acc_ast = 19;
can_get_all_acc_ast = 20;
can_get_my_acc_txs = 21;
can_get_all_acc_txs = 22;
can_get_my_acc_ast_txs = 23;
can_get_all_acc_ast_txs = 24;
// Grant permissions
can_grant_add_signatory = 25;
can_grant_remove_signatory = 26;
can_grant_set_quorum = 27;
can_grant_can_transfer = 28;
can_grant_can_set_detail = 29;
}
enum GrantablePermission {
can_add_my_signatory = 0;
can_remove_my_signatory = 1;
can_set_my_quorum = 2;
can_set_my_account_detail = 3;
}
message Signature {
bytes pubkey = 1;
bytes signature = 2;
}
message uint256 {
uint64 first = 1;
uint64 second = 2;
uint64 third = 3;
uint64 fourth = 4;
}
message Amount {
uint256 value = 1;
uint32 precision = 2;
}