forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.proto
72 lines (57 loc) · 1.37 KB
/
queries.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
syntax = "proto3";
package iroha.protocol;
import "primitive.proto";
message GetAccount {
string account_id = 1;
}
message GetSignatories {
string account_id = 1;
}
message GetAccountTransactions {
string account_id = 1;
}
message GetAccountAssetTransactions {
string account_id = 1;
string asset_id = 2;
}
message GetTransactions {
repeated string tx_hashes = 1;
}
message GetAccountAssets {
string account_id = 1;
string asset_id = 2;
}
message GetAccountDetail {
string account_id = 1;
string detail = 2;
}
message GetAssetInfo {
string asset_id = 1;
}
message GetRoles {
}
message GetRolePermissions{
string role_id = 1;
}
message Query {
message Payload {
uint64 created_time = 1;
string creator_account_id = 2;
oneof query {
GetAccount get_account = 3;
GetSignatories get_account_signatories = 4;
GetAccountTransactions get_account_transactions = 5;
GetAccountAssetTransactions get_account_asset_transactions = 6;
GetTransactions get_transactions = 7;
GetAccountAssets get_account_assets = 8;
GetAccountDetail get_account_detail = 9;
GetRoles get_roles = 10;
GetRolePermissions get_role_permissions = 11;
GetAssetInfo get_asset_info = 12;
}
// used to prevent replay attacks.
uint64 query_counter = 13;
}
Payload payload = 1;
Signature signature = 2;
}