forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.proto
83 lines (70 loc) · 1.62 KB
/
commands.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
syntax = "proto3";
package iroha.protocol;
import "primitive.proto";
message Amount {
uint64 integer_part = 1;
uint64 fractial_part = 2;
}
message AddAssetQuantity {
string account_id = 1;
string asset_id = 2;
Amount amount = 3;
}
message AddPeer {
string address = 1;
bytes peer_key = 2;
}
message AddSignatory {
string account_id = 1;
bytes public_key = 2;
}
message AssignMasterKey {
string account_id = 1;
bytes public_key = 2;
}
message CreateAsset {
string asset_name = 1;
string domain_id = 2;
uint32 precision = 3;
}
message CreateAccount {
string account_name = 1;
string domain_id = 2;
bytes main_pubkey = 3;
}
message CreateDomain {
string domain_name = 1;
}
message RemoveSignatory {
string account_id = 1;
bytes public_key = 2;
}
message SetAccountPermissions {
string account_id = 1;
Permissions permissions = 2;
}
message SetAccountQuorum {
string account_id = 1;
uint32 quorum = 2;
}
message TransferAsset {
string src_account_id = 1;
string dest_account_id = 2;
string asset_id = 3;
Amount amount = 4;
}
message Command {
oneof command {
AddAssetQuantity add_asset_quantity = 1;
AddPeer add_peer = 2;
AddSignatory add_signatory = 3;
AssignMasterKey account_assign_mk = 4;
CreateAsset create_asset = 5;
CreateAccount create_account = 6;
CreateDomain create_domain = 7;
RemoveSignatory remove_sign = 8;
SetAccountPermissions set_permission = 9;
SetAccountQuorum set_quorum = 10;
TransferAsset transfer_asset = 11;
}
}