1
+ // @generated
2
+ /// Params defines the parameters for the dao module.
3
+ #[ derive( :: derive_builder:: Builder ) ]
4
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
5
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
6
+ pub struct Params {
7
+ /// enable_dao is the parameter to enable the module functionality.
8
+ #[ prost( bool , tag="1" ) ]
9
+ pub enable_dao : bool ,
10
+ /// allowed_collaterals is the allowed collateral values.
11
+ #[ prost( message, repeated, tag="2" ) ]
12
+ pub allowed_collaterals : :: prost:: alloc:: vec:: Vec < AllowedCollateral > ,
13
+ }
14
+ #[ derive( :: derive_builder:: Builder ) ]
15
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
16
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
17
+ pub struct AllowedCollateral {
18
+ /// value is the allowed collateral value.
19
+ #[ prost( string, tag="1" ) ]
20
+ pub value : :: prost:: alloc:: string:: String ,
21
+ /// type is the allowed collateral value type.
22
+ #[ prost( enumeration="CollateralValueType" , tag="2" ) ]
23
+ pub r#type : i32 ,
24
+ }
25
+ /// CollateralValueType defines the type of collateral value.
26
+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
27
+ #[ repr( i32 ) ]
28
+ pub enum CollateralValueType {
29
+ /// COLLATERAL_VALUE_TYPE_UNSPECIFIED is the unspecified collateral value type.
30
+ Unspecified = 0 ,
31
+ /// COLLATERAL_VALUE_TYPE_STRICT is the strict collateral value type.
32
+ Strict = 1 ,
33
+ /// COLLATERAL_VALUE_TYPE_MASK is the mask collateral value type.
34
+ Mask = 2 ,
35
+ }
36
+ impl CollateralValueType {
37
+ /// String value of the enum field names used in the ProtoBuf definition.
38
+ ///
39
+ /// The values are not transformed in any way and thus are considered stable
40
+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
41
+ pub fn as_str_name ( & self ) -> & ' static str {
42
+ match self {
43
+ CollateralValueType :: Unspecified => "COLLATERAL_VALUE_TYPE_UNSPECIFIED" ,
44
+ CollateralValueType :: Strict => "COLLATERAL_VALUE_TYPE_STRICT" ,
45
+ CollateralValueType :: Mask => "COLLATERAL_VALUE_TYPE_MASK" ,
46
+ }
47
+ }
48
+ /// Creates an enum from field names used in the ProtoBuf definition.
49
+ pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
50
+ match value {
51
+ "COLLATERAL_VALUE_TYPE_UNSPECIFIED" => Some ( Self :: Unspecified ) ,
52
+ "COLLATERAL_VALUE_TYPE_STRICT" => Some ( Self :: Strict ) ,
53
+ "COLLATERAL_VALUE_TYPE_MASK" => Some ( Self :: Mask ) ,
54
+ _ => None ,
55
+ }
56
+ }
57
+ }
58
+ /// GenesisState defines the gov module's genesis state.
59
+ #[ derive( :: derive_builder:: Builder ) ]
60
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
61
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
62
+ pub struct GenesisState {
63
+ /// params defines all the parameters of the module.
64
+ #[ prost( message, optional, tag="1" ) ]
65
+ pub params : :: core:: option:: Option < Params > ,
66
+ /// balances is an array containing the balances of all the dao members' accounts.
67
+ #[ prost( message, repeated, tag="2" ) ]
68
+ pub balances : :: prost:: alloc:: vec:: Vec < Balance > ,
69
+ /// total_balance represents the total balance of the dao module. If it is left empty, then supply will be calculated based on the provided
70
+ /// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
71
+ #[ prost( message, repeated, tag="3" ) ]
72
+ pub total_balance : :: prost:: alloc:: vec:: Vec < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
73
+ }
74
+ /// Balance defines an account address and balance pair used in the bank module's
75
+ /// genesis state.
76
+ #[ derive( :: derive_builder:: Builder ) ]
77
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
78
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
79
+ pub struct Balance {
80
+ /// address is the address of the balance holder.
81
+ #[ prost( string, tag="1" ) ]
82
+ pub address : :: prost:: alloc:: string:: String ,
83
+ /// coins defines the different coins this balance holds.
84
+ #[ prost( message, repeated, tag="2" ) ]
85
+ pub coins : :: prost:: alloc:: vec:: Vec < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
86
+ }
87
+ /// QueryBalanceRequest is the request type for the Query/Balance RPC method.
88
+ #[ derive( :: derive_builder:: Builder ) ]
89
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
90
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
91
+ pub struct QueryBalanceRequest {
92
+ /// address is the address to query balances for.
93
+ #[ prost( string, tag="1" ) ]
94
+ pub address : :: prost:: alloc:: string:: String ,
95
+ /// denom is the coin denom to query balances for.
96
+ #[ prost( string, tag="2" ) ]
97
+ pub denom : :: prost:: alloc:: string:: String ,
98
+ }
99
+ /// QueryBalanceResponse is the response type for the Query/Balance RPC method.
100
+ #[ derive( :: derive_builder:: Builder ) ]
101
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
102
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
103
+ pub struct QueryBalanceResponse {
104
+ /// balance is the balance of the coin.
105
+ #[ prost( message, optional, tag="1" ) ]
106
+ pub balance : :: core:: option:: Option < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
107
+ }
108
+ /// QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
109
+ #[ derive( :: derive_builder:: Builder ) ]
110
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
111
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
112
+ pub struct QueryAllBalancesRequest {
113
+ /// address is the address to query balances for.
114
+ #[ prost( string, tag="1" ) ]
115
+ pub address : :: prost:: alloc:: string:: String ,
116
+ /// pagination defines an optional pagination for the request.
117
+ #[ prost( message, optional, tag="2" ) ]
118
+ pub pagination : :: core:: option:: Option < super :: super :: super :: cosmos:: base:: query:: v1beta1:: PageRequest > ,
119
+ }
120
+ /// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
121
+ /// method.
122
+ #[ derive( :: derive_builder:: Builder ) ]
123
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
124
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
125
+ pub struct QueryAllBalancesResponse {
126
+ /// balances is the balances of all the coins.
127
+ #[ prost( message, repeated, tag="1" ) ]
128
+ pub balances : :: prost:: alloc:: vec:: Vec < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
129
+ /// pagination defines the pagination in the response.
130
+ #[ prost( message, optional, tag="2" ) ]
131
+ pub pagination : :: core:: option:: Option < super :: super :: super :: cosmos:: base:: query:: v1beta1:: PageResponse > ,
132
+ }
133
+ /// QueryTotalBalanceRequest is the request type for the Query/TotalBalance RPC
134
+ /// method.
135
+ #[ derive( :: derive_builder:: Builder ) ]
136
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
137
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
138
+ pub struct QueryTotalBalanceRequest {
139
+ /// pagination defines an optional pagination for the request.
140
+ ///
141
+ /// Since: cosmos-sdk 0.43
142
+ #[ prost( message, optional, tag="1" ) ]
143
+ pub pagination : :: core:: option:: Option < super :: super :: super :: cosmos:: base:: query:: v1beta1:: PageRequest > ,
144
+ }
145
+ /// QueryTotalBalanceResponse is the response type for the Query/TotalBalance RPC
146
+ /// method
147
+ #[ derive( :: derive_builder:: Builder ) ]
148
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
149
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
150
+ pub struct QueryTotalBalanceResponse {
151
+ /// supply is the supply of the coins
152
+ #[ prost( message, repeated, tag="1" ) ]
153
+ pub total_balance : :: prost:: alloc:: vec:: Vec < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
154
+ /// pagination defines the pagination in the response.
155
+ ///
156
+ /// Since: cosmos-sdk 0.43
157
+ #[ prost( message, optional, tag="2" ) ]
158
+ pub pagination : :: core:: option:: Option < super :: super :: super :: cosmos:: base:: query:: v1beta1:: PageResponse > ,
159
+ }
160
+ /// QueryParamsRequest defines the request type for querying x/dao parameters.
161
+ #[ derive( :: derive_builder:: Builder ) ]
162
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
163
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
164
+ pub struct QueryParamsRequest {
165
+ }
166
+ /// QueryParamsResponse defines the response type for querying x/dao parameters.
167
+ #[ derive( :: derive_builder:: Builder ) ]
168
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
169
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
170
+ pub struct QueryParamsResponse {
171
+ #[ prost( message, optional, tag="1" ) ]
172
+ pub params : :: core:: option:: Option < Params > ,
173
+ }
174
+ /// MsgFund allows an account to directly fund the dao.
175
+ #[ derive( :: derive_builder:: Builder ) ]
176
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
177
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
178
+ pub struct MsgFund {
179
+ #[ prost( message, repeated, tag="1" ) ]
180
+ pub amount : :: prost:: alloc:: vec:: Vec < super :: super :: super :: cosmos:: base:: v1beta1:: Coin > ,
181
+ #[ prost( string, tag="2" ) ]
182
+ pub depositor : :: prost:: alloc:: string:: String ,
183
+ }
184
+ /// MsgFundResponse defines the Msg/Fund response type.
185
+ #[ derive( :: derive_builder:: Builder ) ]
186
+ #[ allow( clippy:: derive_partial_eq_without_eq) ]
187
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
188
+ pub struct MsgFundResponse {
189
+ }
190
+ include ! ( "haqq.dao.v1.serde.rs" ) ;
191
+ include ! ( "haqq.dao.v1.tonic.rs" ) ;
192
+ // @@protoc_insertion_point(module)
0 commit comments