1use elys_std_deriv::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(
5 Clone,
6 PartialEq,
7 Eq,
8 ::prost::Message,
9 ::serde::Serialize,
10 ::serde::Deserialize,
11 ::schemars::JsonSchema,
12 CosmwasmExt,
13)]
14#[proto_message(type_url = "/elys.masterchef.ExternalIncentive")]
15pub struct ExternalIncentive {
16 #[prost(uint64, tag = "1")]
17 #[serde(alias = "ID")]
18 #[serde(
19 serialize_with = "crate::serde::as_str::serialize",
20 deserialize_with = "crate::serde::as_str::deserialize"
21 )]
22 pub id: u64,
23 #[prost(string, tag = "2")]
24 pub reward_denom: ::prost::alloc::string::String,
25 #[prost(uint64, tag = "3")]
26 #[serde(alias = "poolID")]
27 #[serde(
28 serialize_with = "crate::serde::as_str::serialize",
29 deserialize_with = "crate::serde::as_str::deserialize"
30 )]
31 pub pool_id: u64,
32 #[prost(int64, tag = "4")]
33 #[serde(
34 serialize_with = "crate::serde::as_str::serialize",
35 deserialize_with = "crate::serde::as_str::deserialize"
36 )]
37 pub from_block: i64,
38 #[prost(int64, tag = "5")]
39 #[serde(
40 serialize_with = "crate::serde::as_str::serialize",
41 deserialize_with = "crate::serde::as_str::deserialize"
42 )]
43 pub to_block: i64,
44 #[prost(string, tag = "6")]
45 pub amount_per_block: ::prost::alloc::string::String,
46 #[prost(string, tag = "7")]
47 pub apr: ::prost::alloc::string::String,
48}
49#[allow(clippy::derive_partial_eq_without_eq)]
51#[derive(
52 Clone,
53 PartialEq,
54 Eq,
55 ::prost::Message,
56 ::serde::Serialize,
57 ::serde::Deserialize,
58 ::schemars::JsonSchema,
59 CosmwasmExt,
60)]
61#[proto_message(type_url = "/elys.masterchef.LegacyIncentiveInfo")]
62pub struct LegacyIncentiveInfo {
63 #[prost(string, tag = "1")]
65 pub eden_amount_per_year: ::prost::alloc::string::String,
66 #[prost(string, tag = "2")]
68 pub distribution_start_block: ::prost::alloc::string::String,
69 #[prost(string, tag = "3")]
71 pub total_blocks_per_year: ::prost::alloc::string::String,
72 #[prost(string, tag = "4")]
74 pub blocks_distributed: ::prost::alloc::string::String,
75}
76#[allow(clippy::derive_partial_eq_without_eq)]
77#[derive(
78 Clone,
79 PartialEq,
80 Eq,
81 ::prost::Message,
82 ::serde::Serialize,
83 ::serde::Deserialize,
84 ::schemars::JsonSchema,
85 CosmwasmExt,
86)]
87#[proto_message(type_url = "/elys.masterchef.IncentiveInfo")]
88pub struct IncentiveInfo {
89 #[prost(string, tag = "1")]
91 pub eden_amount_per_year: ::prost::alloc::string::String,
92 #[prost(int64, tag = "2")]
94 #[serde(
95 serialize_with = "crate::serde::as_str::serialize",
96 deserialize_with = "crate::serde::as_str::deserialize"
97 )]
98 pub blocks_distributed: i64,
99}
100#[allow(clippy::derive_partial_eq_without_eq)]
101#[derive(
102 Clone,
103 PartialEq,
104 Eq,
105 ::prost::Message,
106 ::serde::Serialize,
107 ::serde::Deserialize,
108 ::schemars::JsonSchema,
109 CosmwasmExt,
110)]
111#[proto_message(type_url = "/elys.masterchef.PoolInfo")]
112pub struct PoolInfo {
113 #[prost(uint64, tag = "1")]
114 #[serde(alias = "poolID")]
115 #[serde(
116 serialize_with = "crate::serde::as_str::serialize",
117 deserialize_with = "crate::serde::as_str::deserialize"
118 )]
119 pub pool_id: u64,
120 #[prost(string, tag = "2")]
122 pub reward_wallet: ::prost::alloc::string::String,
123 #[prost(string, tag = "3")]
125 pub multiplier: ::prost::alloc::string::String,
126 #[prost(string, tag = "4")]
128 pub eden_apr: ::prost::alloc::string::String,
129 #[prost(string, tag = "5")]
131 pub dex_apr: ::prost::alloc::string::String,
132 #[prost(string, tag = "6")]
134 pub gas_apr: ::prost::alloc::string::String,
135 #[prost(string, tag = "7")]
137 pub external_incentive_apr: ::prost::alloc::string::String,
138 #[prost(string, repeated, tag = "8")]
140 pub external_reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
141 #[prost(bool, tag = "9")]
143 pub enable_eden_rewards: bool,
144}
145#[allow(clippy::derive_partial_eq_without_eq)]
146#[derive(
147 Clone,
148 PartialEq,
149 Eq,
150 ::prost::Message,
151 ::serde::Serialize,
152 ::serde::Deserialize,
153 ::schemars::JsonSchema,
154 CosmwasmExt,
155)]
156#[proto_message(type_url = "/elys.masterchef.LegacyPoolInfo")]
157pub struct LegacyPoolInfo {
158 #[prost(uint64, tag = "1")]
159 #[serde(alias = "poolID")]
160 #[serde(
161 serialize_with = "crate::serde::as_str::serialize",
162 deserialize_with = "crate::serde::as_str::deserialize"
163 )]
164 pub pool_id: u64,
165 #[prost(string, tag = "2")]
167 pub reward_wallet: ::prost::alloc::string::String,
168 #[prost(string, tag = "3")]
170 pub multiplier: ::prost::alloc::string::String,
171 #[prost(string, tag = "4")]
173 pub eden_apr: ::prost::alloc::string::String,
174 #[prost(string, tag = "5")]
176 pub dex_apr: ::prost::alloc::string::String,
177 #[prost(string, tag = "6")]
179 pub gas_apr: ::prost::alloc::string::String,
180 #[prost(string, tag = "7")]
182 pub external_incentive_apr: ::prost::alloc::string::String,
183 #[prost(string, repeated, tag = "8")]
185 pub external_reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
186}
187#[allow(clippy::derive_partial_eq_without_eq)]
188#[derive(
189 Clone,
190 PartialEq,
191 Eq,
192 ::prost::Message,
193 ::serde::Serialize,
194 ::serde::Deserialize,
195 ::schemars::JsonSchema,
196 CosmwasmExt,
197)]
198#[proto_message(type_url = "/elys.masterchef.PoolRewardInfo")]
199pub struct PoolRewardInfo {
200 #[prost(uint64, tag = "1")]
201 #[serde(alias = "poolID")]
202 #[serde(
203 serialize_with = "crate::serde::as_str::serialize",
204 deserialize_with = "crate::serde::as_str::deserialize"
205 )]
206 pub pool_id: u64,
207 #[prost(string, tag = "2")]
208 pub reward_denom: ::prost::alloc::string::String,
209 #[prost(string, tag = "3")]
210 pub pool_acc_reward_per_share: ::prost::alloc::string::String,
211 #[prost(uint64, tag = "4")]
212 #[serde(
213 serialize_with = "crate::serde::as_str::serialize",
214 deserialize_with = "crate::serde::as_str::deserialize"
215 )]
216 pub last_updated_block: u64,
217}
218#[allow(clippy::derive_partial_eq_without_eq)]
219#[derive(
220 Clone,
221 PartialEq,
222 Eq,
223 ::prost::Message,
224 ::serde::Serialize,
225 ::serde::Deserialize,
226 ::schemars::JsonSchema,
227 CosmwasmExt,
228)]
229#[proto_message(type_url = "/elys.masterchef.UserRewardInfo")]
230pub struct UserRewardInfo {
231 #[prost(string, tag = "1")]
232 pub user: ::prost::alloc::string::String,
233 #[prost(uint64, tag = "2")]
234 #[serde(alias = "poolID")]
235 #[serde(
236 serialize_with = "crate::serde::as_str::serialize",
237 deserialize_with = "crate::serde::as_str::deserialize"
238 )]
239 pub pool_id: u64,
240 #[prost(string, tag = "3")]
241 pub reward_denom: ::prost::alloc::string::String,
242 #[prost(string, tag = "4")]
243 pub reward_debt: ::prost::alloc::string::String,
244 #[prost(string, tag = "5")]
245 pub reward_pending: ::prost::alloc::string::String,
246}
247#[allow(clippy::derive_partial_eq_without_eq)]
248#[derive(
249 Clone,
250 PartialEq,
251 Eq,
252 ::prost::Message,
253 ::serde::Serialize,
254 ::serde::Deserialize,
255 ::schemars::JsonSchema,
256 CosmwasmExt,
257)]
258#[proto_message(type_url = "/elys.masterchef.PoolRewardsAccum")]
259pub struct PoolRewardsAccum {
260 #[prost(uint64, tag = "1")]
261 #[serde(alias = "poolID")]
262 #[serde(
263 serialize_with = "crate::serde::as_str::serialize",
264 deserialize_with = "crate::serde::as_str::deserialize"
265 )]
266 pub pool_id: u64,
267 #[prost(int64, tag = "2")]
268 #[serde(
269 serialize_with = "crate::serde::as_str::serialize",
270 deserialize_with = "crate::serde::as_str::deserialize"
271 )]
272 pub block_height: i64,
273 #[prost(uint64, tag = "3")]
274 #[serde(
275 serialize_with = "crate::serde::as_str::serialize",
276 deserialize_with = "crate::serde::as_str::deserialize"
277 )]
278 pub timestamp: u64,
279 #[prost(string, tag = "4")]
280 pub dex_reward: ::prost::alloc::string::String,
281 #[prost(string, tag = "5")]
282 pub gas_reward: ::prost::alloc::string::String,
283 #[prost(string, tag = "6")]
284 pub eden_reward: ::prost::alloc::string::String,
285}
286#[allow(clippy::derive_partial_eq_without_eq)]
288#[derive(
289 Clone,
290 PartialEq,
291 Eq,
292 ::prost::Message,
293 ::serde::Serialize,
294 ::serde::Deserialize,
295 ::schemars::JsonSchema,
296 CosmwasmExt,
297)]
298#[proto_message(type_url = "/elys.masterchef.LegacyParams")]
299pub struct LegacyParams {
300 #[prost(message, optional, tag = "1")]
301 pub lp_incentives: ::core::option::Option<LegacyIncentiveInfo>,
302 #[prost(string, tag = "2")]
305 pub reward_portion_for_lps: ::prost::alloc::string::String,
306 #[prost(string, tag = "3")]
309 pub reward_portion_for_stakers: ::prost::alloc::string::String,
310 #[prost(string, tag = "4")]
312 pub max_eden_reward_apr_lps: ::prost::alloc::string::String,
313 #[prost(message, repeated, tag = "5")]
314 pub supported_reward_denoms: ::prost::alloc::vec::Vec<SupportedRewardDenom>,
315 #[prost(string, tag = "6")]
316 pub protocol_revenue_address: ::prost::alloc::string::String,
317}
318#[allow(clippy::derive_partial_eq_without_eq)]
319#[derive(
320 Clone,
321 PartialEq,
322 Eq,
323 ::prost::Message,
324 ::serde::Serialize,
325 ::serde::Deserialize,
326 ::schemars::JsonSchema,
327 CosmwasmExt,
328)]
329#[proto_message(type_url = "/elys.masterchef.Params")]
330pub struct Params {
331 #[prost(message, optional, tag = "1")]
332 pub lp_incentives: ::core::option::Option<IncentiveInfo>,
333 #[prost(string, tag = "2")]
336 pub reward_portion_for_lps: ::prost::alloc::string::String,
337 #[prost(string, tag = "3")]
340 pub reward_portion_for_stakers: ::prost::alloc::string::String,
341 #[prost(string, tag = "4")]
343 pub max_eden_reward_apr_lps: ::prost::alloc::string::String,
344 #[prost(message, repeated, tag = "5")]
345 pub supported_reward_denoms: ::prost::alloc::vec::Vec<SupportedRewardDenom>,
346 #[prost(string, tag = "6")]
347 pub protocol_revenue_address: ::prost::alloc::string::String,
348}
349#[allow(clippy::derive_partial_eq_without_eq)]
350#[derive(
351 Clone,
352 PartialEq,
353 Eq,
354 ::prost::Message,
355 ::serde::Serialize,
356 ::serde::Deserialize,
357 ::schemars::JsonSchema,
358 CosmwasmExt,
359)]
360#[proto_message(type_url = "/elys.masterchef.SupportedRewardDenom")]
361pub struct SupportedRewardDenom {
362 #[prost(string, tag = "1")]
363 pub denom: ::prost::alloc::string::String,
364 #[prost(string, tag = "2")]
365 pub min_amount: ::prost::alloc::string::String,
366}
367#[allow(clippy::derive_partial_eq_without_eq)]
369#[derive(
370 Clone,
371 PartialEq,
372 Eq,
373 ::prost::Message,
374 ::serde::Serialize,
375 ::serde::Deserialize,
376 ::schemars::JsonSchema,
377 CosmwasmExt,
378)]
379#[proto_message(type_url = "/elys.masterchef.GenesisState")]
380pub struct GenesisState {
381 #[prost(message, optional, tag = "1")]
382 pub params: ::core::option::Option<Params>,
383 #[prost(message, repeated, tag = "2")]
384 pub external_incentives: ::prost::alloc::vec::Vec<ExternalIncentive>,
385 #[prost(uint64, tag = "3")]
386 #[serde(
387 serialize_with = "crate::serde::as_str::serialize",
388 deserialize_with = "crate::serde::as_str::deserialize"
389 )]
390 pub external_incentive_index: u64,
391 #[prost(message, repeated, tag = "4")]
392 pub pool_infos: ::prost::alloc::vec::Vec<PoolInfo>,
393 #[prost(message, repeated, tag = "5")]
394 pub pool_reward_infos: ::prost::alloc::vec::Vec<PoolRewardInfo>,
395 #[prost(message, repeated, tag = "6")]
396 pub user_reward_infos: ::prost::alloc::vec::Vec<UserRewardInfo>,
397 #[prost(message, repeated, tag = "7")]
398 pub pool_rewards_accum: ::prost::alloc::vec::Vec<PoolRewardsAccum>,
399}
400#[allow(clippy::derive_partial_eq_without_eq)]
401#[derive(
402 Clone,
403 PartialEq,
404 Eq,
405 ::prost::Message,
406 ::serde::Serialize,
407 ::serde::Deserialize,
408 ::schemars::JsonSchema,
409 CosmwasmExt,
410)]
411#[proto_message(type_url = "/elys.masterchef.FeeInfo")]
412pub struct FeeInfo {
413 #[prost(string, tag = "1")]
414 pub gas_lp: ::prost::alloc::string::String,
415 #[prost(string, tag = "2")]
416 pub gas_stakers: ::prost::alloc::string::String,
417 #[prost(string, tag = "3")]
418 pub gas_protocol: ::prost::alloc::string::String,
419 #[prost(string, tag = "4")]
420 pub dex_lp: ::prost::alloc::string::String,
421 #[prost(string, tag = "5")]
422 pub dex_stakers: ::prost::alloc::string::String,
423 #[prost(string, tag = "6")]
424 pub dex_protocol: ::prost::alloc::string::String,
425 #[prost(string, tag = "7")]
426 pub perp_lp: ::prost::alloc::string::String,
427 #[prost(string, tag = "8")]
428 pub perp_stakers: ::prost::alloc::string::String,
429 #[prost(string, tag = "9")]
430 pub perp_protocol: ::prost::alloc::string::String,
431 #[prost(string, tag = "10")]
432 pub eden_lp: ::prost::alloc::string::String,
433}
434#[allow(clippy::derive_partial_eq_without_eq)]
435#[derive(
436 Clone,
437 PartialEq,
438 Eq,
439 ::prost::Message,
440 ::serde::Serialize,
441 ::serde::Deserialize,
442 ::schemars::JsonSchema,
443 CosmwasmExt,
444)]
445#[proto_message(type_url = "/elys.masterchef.QueryAllLiquidityPoolTVLRequest")]
446#[proto_query(
447 path = "/elys.masterchef.Query/AllLiquidityPoolTVL",
448 response_type = QueryAllLiquidityPoolTvlResponse
449)]
450pub struct QueryAllLiquidityPoolTvlRequest {}
451#[allow(clippy::derive_partial_eq_without_eq)]
452#[derive(
453 Clone,
454 PartialEq,
455 Eq,
456 ::prost::Message,
457 ::serde::Serialize,
458 ::serde::Deserialize,
459 ::schemars::JsonSchema,
460 CosmwasmExt,
461)]
462#[proto_message(type_url = "/elys.masterchef.QueryAllLiquidityPoolTVLResponse")]
463pub struct QueryAllLiquidityPoolTvlResponse {
464 #[prost(string, tag = "1")]
465 pub total: ::prost::alloc::string::String,
466 #[prost(string, tag = "2")]
467 pub pools: ::prost::alloc::string::String,
468 #[prost(string, tag = "3")]
469 pub usdc_staking: ::prost::alloc::string::String,
470}
471#[allow(clippy::derive_partial_eq_without_eq)]
472#[derive(
473 Clone,
474 PartialEq,
475 Eq,
476 ::prost::Message,
477 ::serde::Serialize,
478 ::serde::Deserialize,
479 ::schemars::JsonSchema,
480 CosmwasmExt,
481)]
482#[proto_message(type_url = "/elys.masterchef.QueryChainTVLRequest")]
483#[proto_query(
484 path = "/elys.masterchef.Query/ChainTVL",
485 response_type = QueryChainTvlResponse
486)]
487pub struct QueryChainTvlRequest {}
488#[allow(clippy::derive_partial_eq_without_eq)]
489#[derive(
490 Clone,
491 PartialEq,
492 Eq,
493 ::prost::Message,
494 ::serde::Serialize,
495 ::serde::Deserialize,
496 ::schemars::JsonSchema,
497 CosmwasmExt,
498)]
499#[proto_message(type_url = "/elys.masterchef.QueryChainTVLResponse")]
500pub struct QueryChainTvlResponse {
501 #[prost(string, tag = "1")]
502 pub total: ::prost::alloc::string::String,
503 #[prost(string, tag = "2")]
504 pub pools: ::prost::alloc::string::String,
505 #[prost(string, tag = "3")]
506 pub usdc_staking: ::prost::alloc::string::String,
507 #[prost(string, tag = "4")]
508 pub staked_elys: ::prost::alloc::string::String,
509 #[prost(string, tag = "5")]
510 pub staked_eden: ::prost::alloc::string::String,
511 #[prost(message, repeated, tag = "6")]
512 pub net_stakings: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
513}
514#[allow(clippy::derive_partial_eq_without_eq)]
516#[derive(
517 Clone,
518 PartialEq,
519 Eq,
520 ::prost::Message,
521 ::serde::Serialize,
522 ::serde::Deserialize,
523 ::schemars::JsonSchema,
524 CosmwasmExt,
525)]
526#[proto_message(type_url = "/elys.masterchef.QueryParamsRequest")]
527#[proto_query(
528 path = "/elys.masterchef.Query/Params",
529 response_type = QueryParamsResponse
530)]
531pub struct QueryParamsRequest {}
532#[allow(clippy::derive_partial_eq_without_eq)]
534#[derive(
535 Clone,
536 PartialEq,
537 Eq,
538 ::prost::Message,
539 ::serde::Serialize,
540 ::serde::Deserialize,
541 ::schemars::JsonSchema,
542 CosmwasmExt,
543)]
544#[proto_message(type_url = "/elys.masterchef.QueryParamsResponse")]
545pub struct QueryParamsResponse {
546 #[prost(message, optional, tag = "1")]
548 pub params: ::core::option::Option<Params>,
549}
550#[allow(clippy::derive_partial_eq_without_eq)]
551#[derive(
552 Clone,
553 PartialEq,
554 Eq,
555 ::prost::Message,
556 ::serde::Serialize,
557 ::serde::Deserialize,
558 ::schemars::JsonSchema,
559 CosmwasmExt,
560)]
561#[proto_message(type_url = "/elys.masterchef.QueryExternalIncentiveRequest")]
562#[proto_query(
563 path = "/elys.masterchef.Query/ExternalIncentive",
564 response_type = QueryExternalIncentiveResponse
565)]
566pub struct QueryExternalIncentiveRequest {
567 #[prost(uint64, tag = "1")]
568 #[serde(alias = "ID")]
569 #[serde(
570 serialize_with = "crate::serde::as_str::serialize",
571 deserialize_with = "crate::serde::as_str::deserialize"
572 )]
573 pub id: u64,
574}
575#[allow(clippy::derive_partial_eq_without_eq)]
576#[derive(
577 Clone,
578 PartialEq,
579 Eq,
580 ::prost::Message,
581 ::serde::Serialize,
582 ::serde::Deserialize,
583 ::schemars::JsonSchema,
584 CosmwasmExt,
585)]
586#[proto_message(type_url = "/elys.masterchef.QueryExternalIncentiveResponse")]
587pub struct QueryExternalIncentiveResponse {
588 #[prost(message, optional, tag = "1")]
589 pub external_incentive: ::core::option::Option<ExternalIncentive>,
590}
591#[allow(clippy::derive_partial_eq_without_eq)]
592#[derive(
593 Clone,
594 PartialEq,
595 Eq,
596 ::prost::Message,
597 ::serde::Serialize,
598 ::serde::Deserialize,
599 ::schemars::JsonSchema,
600 CosmwasmExt,
601)]
602#[proto_message(type_url = "/elys.masterchef.QueryPoolInfoRequest")]
603#[proto_query(
604 path = "/elys.masterchef.Query/PoolInfo",
605 response_type = QueryPoolInfoResponse
606)]
607pub struct QueryPoolInfoRequest {
608 #[prost(uint64, tag = "1")]
609 #[serde(alias = "poolID")]
610 #[serde(
611 serialize_with = "crate::serde::as_str::serialize",
612 deserialize_with = "crate::serde::as_str::deserialize"
613 )]
614 pub pool_id: u64,
615}
616#[allow(clippy::derive_partial_eq_without_eq)]
617#[derive(
618 Clone,
619 PartialEq,
620 Eq,
621 ::prost::Message,
622 ::serde::Serialize,
623 ::serde::Deserialize,
624 ::schemars::JsonSchema,
625 CosmwasmExt,
626)]
627#[proto_message(type_url = "/elys.masterchef.QueryPoolInfoResponse")]
628pub struct QueryPoolInfoResponse {
629 #[prost(message, optional, tag = "1")]
630 pub pool_info: ::core::option::Option<PoolInfo>,
631 #[prost(string, tag = "2")]
632 pub stable_apr: ::prost::alloc::string::String,
633}
634#[allow(clippy::derive_partial_eq_without_eq)]
635#[derive(
636 Clone,
637 PartialEq,
638 Eq,
639 ::prost::Message,
640 ::serde::Serialize,
641 ::serde::Deserialize,
642 ::schemars::JsonSchema,
643 CosmwasmExt,
644)]
645#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardInfoRequest")]
646#[proto_query(
647 path = "/elys.masterchef.Query/PoolRewardInfo",
648 response_type = QueryPoolRewardInfoResponse
649)]
650pub struct QueryPoolRewardInfoRequest {
651 #[prost(uint64, tag = "1")]
652 #[serde(alias = "poolID")]
653 #[serde(
654 serialize_with = "crate::serde::as_str::serialize",
655 deserialize_with = "crate::serde::as_str::deserialize"
656 )]
657 pub pool_id: u64,
658 #[prost(string, tag = "2")]
659 pub reward_denom: ::prost::alloc::string::String,
660}
661#[allow(clippy::derive_partial_eq_without_eq)]
662#[derive(
663 Clone,
664 PartialEq,
665 Eq,
666 ::prost::Message,
667 ::serde::Serialize,
668 ::serde::Deserialize,
669 ::schemars::JsonSchema,
670 CosmwasmExt,
671)]
672#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardInfoResponse")]
673pub struct QueryPoolRewardInfoResponse {
674 #[prost(message, optional, tag = "1")]
675 pub pool_reward_info: ::core::option::Option<PoolRewardInfo>,
676}
677#[allow(clippy::derive_partial_eq_without_eq)]
678#[derive(
679 Clone,
680 PartialEq,
681 Eq,
682 ::prost::Message,
683 ::serde::Serialize,
684 ::serde::Deserialize,
685 ::schemars::JsonSchema,
686 CosmwasmExt,
687)]
688#[proto_message(type_url = "/elys.masterchef.QueryUserRewardInfoRequest")]
689#[proto_query(
690 path = "/elys.masterchef.Query/UserRewardInfo",
691 response_type = QueryUserRewardInfoResponse
692)]
693pub struct QueryUserRewardInfoRequest {
694 #[prost(string, tag = "1")]
695 pub user: ::prost::alloc::string::String,
696 #[prost(uint64, tag = "2")]
697 #[serde(alias = "poolID")]
698 #[serde(
699 serialize_with = "crate::serde::as_str::serialize",
700 deserialize_with = "crate::serde::as_str::deserialize"
701 )]
702 pub pool_id: u64,
703 #[prost(string, tag = "3")]
704 pub reward_denom: ::prost::alloc::string::String,
705}
706#[allow(clippy::derive_partial_eq_without_eq)]
707#[derive(
708 Clone,
709 PartialEq,
710 Eq,
711 ::prost::Message,
712 ::serde::Serialize,
713 ::serde::Deserialize,
714 ::schemars::JsonSchema,
715 CosmwasmExt,
716)]
717#[proto_message(type_url = "/elys.masterchef.QueryUserRewardInfoResponse")]
718pub struct QueryUserRewardInfoResponse {
719 #[prost(message, optional, tag = "1")]
720 pub user_reward_info: ::core::option::Option<UserRewardInfo>,
721}
722#[allow(clippy::derive_partial_eq_without_eq)]
723#[derive(
724 Clone,
725 PartialEq,
726 Eq,
727 ::prost::Message,
728 ::serde::Serialize,
729 ::serde::Deserialize,
730 ::schemars::JsonSchema,
731 CosmwasmExt,
732)]
733#[proto_message(type_url = "/elys.masterchef.QueryUserPendingRewardRequest")]
734#[proto_query(
735 path = "/elys.masterchef.Query/UserPendingReward",
736 response_type = QueryUserPendingRewardResponse
737)]
738pub struct QueryUserPendingRewardRequest {
739 #[prost(string, tag = "1")]
740 pub user: ::prost::alloc::string::String,
741}
742#[allow(clippy::derive_partial_eq_without_eq)]
743#[derive(
744 Clone,
745 PartialEq,
746 Eq,
747 ::prost::Message,
748 ::serde::Serialize,
749 ::serde::Deserialize,
750 ::schemars::JsonSchema,
751 CosmwasmExt,
752)]
753#[proto_message(type_url = "/elys.masterchef.RewardInfo")]
754pub struct RewardInfo {
755 #[prost(uint64, tag = "1")]
756 #[serde(alias = "poolID")]
757 #[serde(
758 serialize_with = "crate::serde::as_str::serialize",
759 deserialize_with = "crate::serde::as_str::deserialize"
760 )]
761 pub pool_id: u64,
762 #[prost(message, repeated, tag = "2")]
763 pub reward: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
764}
765#[allow(clippy::derive_partial_eq_without_eq)]
766#[derive(
767 Clone,
768 PartialEq,
769 Eq,
770 ::prost::Message,
771 ::serde::Serialize,
772 ::serde::Deserialize,
773 ::schemars::JsonSchema,
774 CosmwasmExt,
775)]
776#[proto_message(type_url = "/elys.masterchef.QueryUserPendingRewardResponse")]
777pub struct QueryUserPendingRewardResponse {
778 #[prost(message, repeated, tag = "1")]
779 pub rewards: ::prost::alloc::vec::Vec<RewardInfo>,
780 #[prost(message, repeated, tag = "2")]
781 pub total_rewards: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
782}
783#[allow(clippy::derive_partial_eq_without_eq)]
784#[derive(
785 Clone,
786 PartialEq,
787 Eq,
788 ::prost::Message,
789 ::serde::Serialize,
790 ::serde::Deserialize,
791 ::schemars::JsonSchema,
792 CosmwasmExt,
793)]
794#[proto_message(type_url = "/elys.masterchef.QueryStableStakeAprRequest")]
795#[proto_query(
796 path = "/elys.masterchef.Query/StableStakeApr",
797 response_type = QueryStableStakeAprResponse
798)]
799pub struct QueryStableStakeAprRequest {
800 #[prost(string, tag = "1")]
801 pub denom: ::prost::alloc::string::String,
802}
803#[allow(clippy::derive_partial_eq_without_eq)]
804#[derive(
805 Clone,
806 PartialEq,
807 Eq,
808 ::prost::Message,
809 ::serde::Serialize,
810 ::serde::Deserialize,
811 ::schemars::JsonSchema,
812 CosmwasmExt,
813)]
814#[proto_message(type_url = "/elys.masterchef.QueryStableStakeAprResponse")]
815pub struct QueryStableStakeAprResponse {
816 #[prost(string, tag = "1")]
817 pub apr: ::prost::alloc::string::String,
818}
819#[allow(clippy::derive_partial_eq_without_eq)]
820#[derive(
821 Clone,
822 PartialEq,
823 Eq,
824 ::prost::Message,
825 ::serde::Serialize,
826 ::serde::Deserialize,
827 ::schemars::JsonSchema,
828 CosmwasmExt,
829)]
830#[proto_message(type_url = "/elys.masterchef.QueryPoolAprsRequest")]
831#[proto_query(
832 path = "/elys.masterchef.Query/PoolAprs",
833 response_type = QueryPoolAprsResponse
834)]
835pub struct QueryPoolAprsRequest {
836 #[prost(uint64, repeated, tag = "1")]
837 #[serde(alias = "poolIDs")]
838 #[serde(
839 serialize_with = "crate::serde::as_str_vec::serialize",
840 deserialize_with = "crate::serde::as_str_vec::deserialize"
841 )]
842 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
843}
844#[allow(clippy::derive_partial_eq_without_eq)]
845#[derive(
846 Clone,
847 PartialEq,
848 Eq,
849 ::prost::Message,
850 ::serde::Serialize,
851 ::serde::Deserialize,
852 ::schemars::JsonSchema,
853 CosmwasmExt,
854)]
855#[proto_message(type_url = "/elys.masterchef.QueryPoolAprsResponse")]
856pub struct QueryPoolAprsResponse {
857 #[prost(message, repeated, tag = "1")]
858 pub data: ::prost::alloc::vec::Vec<PoolApr>,
859}
860#[allow(clippy::derive_partial_eq_without_eq)]
861#[derive(
862 Clone,
863 PartialEq,
864 Eq,
865 ::prost::Message,
866 ::serde::Serialize,
867 ::serde::Deserialize,
868 ::schemars::JsonSchema,
869 CosmwasmExt,
870)]
871#[proto_message(type_url = "/elys.masterchef.PoolApr")]
872pub struct PoolApr {
873 #[prost(uint64, tag = "1")]
874 #[serde(alias = "poolID")]
875 #[serde(
876 serialize_with = "crate::serde::as_str::serialize",
877 deserialize_with = "crate::serde::as_str::deserialize"
878 )]
879 pub pool_id: u64,
880 #[prost(string, tag = "2")]
881 pub eden_apr: ::prost::alloc::string::String,
882 #[prost(string, tag = "3")]
883 pub usdc_dex_apr: ::prost::alloc::string::String,
884 #[prost(string, tag = "4")]
885 pub usdc_gas_apr: ::prost::alloc::string::String,
886 #[prost(string, tag = "5")]
887 pub total_apr: ::prost::alloc::string::String,
888}
889#[allow(clippy::derive_partial_eq_without_eq)]
890#[derive(
891 Clone,
892 PartialEq,
893 Eq,
894 ::prost::Message,
895 ::serde::Serialize,
896 ::serde::Deserialize,
897 ::schemars::JsonSchema,
898 CosmwasmExt,
899)]
900#[proto_message(type_url = "/elys.masterchef.QueryShowFeeInfoRequest")]
901#[proto_query(
902 path = "/elys.masterchef.Query/ShowFeeInfo",
903 response_type = QueryShowFeeInfoResponse
904)]
905pub struct QueryShowFeeInfoRequest {
906 #[prost(string, tag = "1")]
907 pub date: ::prost::alloc::string::String,
908}
909#[allow(clippy::derive_partial_eq_without_eq)]
910#[derive(
911 Clone,
912 PartialEq,
913 Eq,
914 ::prost::Message,
915 ::serde::Serialize,
916 ::serde::Deserialize,
917 ::schemars::JsonSchema,
918 CosmwasmExt,
919)]
920#[proto_message(type_url = "/elys.masterchef.QueryShowFeeInfoResponse")]
921pub struct QueryShowFeeInfoResponse {
922 #[prost(message, optional, tag = "1")]
923 pub fee_info: ::core::option::Option<FeeInfo>,
924}
925#[allow(clippy::derive_partial_eq_without_eq)]
926#[derive(
927 Clone,
928 PartialEq,
929 Eq,
930 ::prost::Message,
931 ::serde::Serialize,
932 ::serde::Deserialize,
933 ::schemars::JsonSchema,
934 CosmwasmExt,
935)]
936#[proto_message(type_url = "/elys.masterchef.QueryListFeeInfoRequest")]
937#[proto_query(
938 path = "/elys.masterchef.Query/ListFeeInfo",
939 response_type = QueryListFeeInfoResponse
940)]
941pub struct QueryListFeeInfoRequest {}
942#[allow(clippy::derive_partial_eq_without_eq)]
943#[derive(
944 Clone,
945 PartialEq,
946 Eq,
947 ::prost::Message,
948 ::serde::Serialize,
949 ::serde::Deserialize,
950 ::schemars::JsonSchema,
951 CosmwasmExt,
952)]
953#[proto_message(type_url = "/elys.masterchef.QueryListFeeInfoResponse")]
954pub struct QueryListFeeInfoResponse {
955 #[prost(message, repeated, tag = "1")]
956 pub fee_info: ::prost::alloc::vec::Vec<FeeInfo>,
957}
958#[allow(clippy::derive_partial_eq_without_eq)]
959#[derive(
960 Clone,
961 PartialEq,
962 Eq,
963 ::prost::Message,
964 ::serde::Serialize,
965 ::serde::Deserialize,
966 ::schemars::JsonSchema,
967 CosmwasmExt,
968)]
969#[proto_message(type_url = "/elys.masterchef.QueryAprRequest")]
970#[proto_query(path = "/elys.masterchef.Query/Apr", response_type = QueryAprResponse)]
971pub struct QueryAprRequest {
972 #[prost(enumeration = "super::commitment::EarnType", tag = "1")]
973 #[serde(
974 serialize_with = "crate::serde::as_str::serialize",
975 deserialize_with = "crate::serde::as_str::deserialize"
976 )]
977 pub withdraw_type: i32,
978 #[prost(string, tag = "2")]
979 pub denom: ::prost::alloc::string::String,
980 #[prost(uint64, tag = "3")]
981 #[serde(
982 serialize_with = "crate::serde::as_str::serialize",
983 deserialize_with = "crate::serde::as_str::deserialize"
984 )]
985 pub days: u64,
986}
987#[allow(clippy::derive_partial_eq_without_eq)]
988#[derive(
989 Clone,
990 PartialEq,
991 Eq,
992 ::prost::Message,
993 ::serde::Serialize,
994 ::serde::Deserialize,
995 ::schemars::JsonSchema,
996 CosmwasmExt,
997)]
998#[proto_message(type_url = "/elys.masterchef.QueryAprResponse")]
999pub struct QueryAprResponse {
1000 #[prost(string, tag = "1")]
1001 pub apr: ::prost::alloc::string::String,
1002}
1003#[allow(clippy::derive_partial_eq_without_eq)]
1004#[derive(
1005 Clone,
1006 PartialEq,
1007 Eq,
1008 ::prost::Message,
1009 ::serde::Serialize,
1010 ::serde::Deserialize,
1011 ::schemars::JsonSchema,
1012 CosmwasmExt,
1013)]
1014#[proto_message(type_url = "/elys.masterchef.QueryAprsRequest")]
1015#[proto_query(path = "/elys.masterchef.Query/Aprs", response_type = QueryAprsResponse)]
1016pub struct QueryAprsRequest {}
1017#[allow(clippy::derive_partial_eq_without_eq)]
1018#[derive(
1019 Clone,
1020 PartialEq,
1021 Eq,
1022 ::prost::Message,
1023 ::serde::Serialize,
1024 ::serde::Deserialize,
1025 ::schemars::JsonSchema,
1026 CosmwasmExt,
1027)]
1028#[proto_message(type_url = "/elys.masterchef.QueryAprsResponse")]
1029pub struct QueryAprsResponse {
1030 #[prost(string, tag = "1")]
1031 pub usdc_apr_usdc: ::prost::alloc::string::String,
1032 #[prost(string, tag = "2")]
1033 pub eden_apr_usdc: ::prost::alloc::string::String,
1034 #[prost(string, tag = "3")]
1035 pub usdc_apr_edenb: ::prost::alloc::string::String,
1036 #[prost(string, tag = "4")]
1037 pub eden_apr_edenb: ::prost::alloc::string::String,
1038 #[prost(string, tag = "5")]
1039 pub usdc_apr_eden: ::prost::alloc::string::String,
1040 #[prost(string, tag = "6")]
1041 pub eden_apr_eden: ::prost::alloc::string::String,
1042 #[prost(string, tag = "7")]
1043 pub edenb_apr_eden: ::prost::alloc::string::String,
1044 #[prost(string, tag = "8")]
1045 pub usdc_apr_elys: ::prost::alloc::string::String,
1046 #[prost(string, tag = "9")]
1047 pub eden_apr_elys: ::prost::alloc::string::String,
1048 #[prost(string, tag = "10")]
1049 pub edenb_apr_elys: ::prost::alloc::string::String,
1050}
1051#[allow(clippy::derive_partial_eq_without_eq)]
1052#[derive(
1053 Clone,
1054 PartialEq,
1055 Eq,
1056 ::prost::Message,
1057 ::serde::Serialize,
1058 ::serde::Deserialize,
1059 ::schemars::JsonSchema,
1060 CosmwasmExt,
1061)]
1062#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardsRequest")]
1063#[proto_query(
1064 path = "/elys.masterchef.Query/PoolRewards",
1065 response_type = QueryPoolRewardsResponse
1066)]
1067pub struct QueryPoolRewardsRequest {
1068 #[prost(uint64, repeated, tag = "1")]
1069 #[serde(alias = "poolIDs")]
1070 #[serde(
1071 serialize_with = "crate::serde::as_str_vec::serialize",
1072 deserialize_with = "crate::serde::as_str_vec::deserialize"
1073 )]
1074 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
1075 #[prost(message, optional, tag = "2")]
1076 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
1077}
1078#[allow(clippy::derive_partial_eq_without_eq)]
1079#[derive(
1080 Clone,
1081 PartialEq,
1082 Eq,
1083 ::prost::Message,
1084 ::serde::Serialize,
1085 ::serde::Deserialize,
1086 ::schemars::JsonSchema,
1087 CosmwasmExt,
1088)]
1089#[proto_message(type_url = "/elys.masterchef.PoolRewards")]
1090pub struct PoolRewards {
1091 #[prost(uint64, tag = "1")]
1092 #[serde(alias = "poolID")]
1093 #[serde(
1094 serialize_with = "crate::serde::as_str::serialize",
1095 deserialize_with = "crate::serde::as_str::deserialize"
1096 )]
1097 pub pool_id: u64,
1098 #[prost(string, tag = "2")]
1099 pub rewards_usd: ::prost::alloc::string::String,
1100 #[prost(message, repeated, tag = "3")]
1101 pub reward_coins: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
1102 #[prost(message, optional, tag = "4")]
1103 pub eden_forward: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
1104 #[prost(string, tag = "5")]
1105 pub rewards_usd_apr: ::prost::alloc::string::String,
1106 #[prost(string, tag = "6")]
1107 pub external_rewards_apr: ::prost::alloc::string::String,
1108}
1109#[allow(clippy::derive_partial_eq_without_eq)]
1110#[derive(
1111 Clone,
1112 PartialEq,
1113 Eq,
1114 ::prost::Message,
1115 ::serde::Serialize,
1116 ::serde::Deserialize,
1117 ::schemars::JsonSchema,
1118 CosmwasmExt,
1119)]
1120#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardsResponse")]
1121pub struct QueryPoolRewardsResponse {
1122 #[prost(message, repeated, tag = "1")]
1123 pub pools: ::prost::alloc::vec::Vec<PoolRewards>,
1124}
1125#[allow(clippy::derive_partial_eq_without_eq)]
1126#[derive(
1127 Clone,
1128 PartialEq,
1129 Eq,
1130 ::prost::Message,
1131 ::serde::Serialize,
1132 ::serde::Deserialize,
1133 ::schemars::JsonSchema,
1134 CosmwasmExt,
1135)]
1136#[proto_message(type_url = "/elys.masterchef.MsgAddExternalRewardDenom")]
1137pub struct MsgAddExternalRewardDenom {
1138 #[prost(string, tag = "1")]
1139 pub authority: ::prost::alloc::string::String,
1140 #[prost(string, tag = "2")]
1141 pub reward_denom: ::prost::alloc::string::String,
1142 #[prost(string, tag = "3")]
1143 pub min_amount: ::prost::alloc::string::String,
1144 #[prost(bool, tag = "4")]
1145 pub supported: bool,
1146}
1147#[allow(clippy::derive_partial_eq_without_eq)]
1148#[derive(
1149 Clone,
1150 PartialEq,
1151 Eq,
1152 ::prost::Message,
1153 ::serde::Serialize,
1154 ::serde::Deserialize,
1155 ::schemars::JsonSchema,
1156 CosmwasmExt,
1157)]
1158#[proto_message(type_url = "/elys.masterchef.MsgAddExternalRewardDenomResponse")]
1159pub struct MsgAddExternalRewardDenomResponse {}
1160#[allow(clippy::derive_partial_eq_without_eq)]
1161#[derive(
1162 Clone,
1163 PartialEq,
1164 Eq,
1165 ::prost::Message,
1166 ::serde::Serialize,
1167 ::serde::Deserialize,
1168 ::schemars::JsonSchema,
1169 CosmwasmExt,
1170)]
1171#[proto_message(type_url = "/elys.masterchef.MsgAddExternalIncentive")]
1172pub struct MsgAddExternalIncentive {
1173 #[prost(string, tag = "1")]
1174 pub sender: ::prost::alloc::string::String,
1175 #[prost(string, tag = "2")]
1176 pub reward_denom: ::prost::alloc::string::String,
1177 #[prost(uint64, tag = "3")]
1178 #[serde(alias = "poolID")]
1179 #[serde(
1180 serialize_with = "crate::serde::as_str::serialize",
1181 deserialize_with = "crate::serde::as_str::deserialize"
1182 )]
1183 pub pool_id: u64,
1184 #[prost(int64, tag = "4")]
1185 #[serde(
1186 serialize_with = "crate::serde::as_str::serialize",
1187 deserialize_with = "crate::serde::as_str::deserialize"
1188 )]
1189 pub from_block: i64,
1190 #[prost(int64, tag = "5")]
1191 #[serde(
1192 serialize_with = "crate::serde::as_str::serialize",
1193 deserialize_with = "crate::serde::as_str::deserialize"
1194 )]
1195 pub to_block: i64,
1196 #[prost(string, tag = "6")]
1197 pub amount_per_block: ::prost::alloc::string::String,
1198}
1199#[allow(clippy::derive_partial_eq_without_eq)]
1200#[derive(
1201 Clone,
1202 PartialEq,
1203 Eq,
1204 ::prost::Message,
1205 ::serde::Serialize,
1206 ::serde::Deserialize,
1207 ::schemars::JsonSchema,
1208 CosmwasmExt,
1209)]
1210#[proto_message(type_url = "/elys.masterchef.MsgAddExternalIncentiveResponse")]
1211pub struct MsgAddExternalIncentiveResponse {}
1212#[allow(clippy::derive_partial_eq_without_eq)]
1213#[derive(
1214 Clone,
1215 PartialEq,
1216 Eq,
1217 ::prost::Message,
1218 ::serde::Serialize,
1219 ::serde::Deserialize,
1220 ::schemars::JsonSchema,
1221 CosmwasmExt,
1222)]
1223#[proto_message(type_url = "/elys.masterchef.MsgUpdateParams")]
1224pub struct MsgUpdateParams {
1225 #[prost(string, tag = "1")]
1226 pub authority: ::prost::alloc::string::String,
1227 #[prost(message, optional, tag = "2")]
1228 pub params: ::core::option::Option<Params>,
1229}
1230#[allow(clippy::derive_partial_eq_without_eq)]
1231#[derive(
1232 Clone,
1233 PartialEq,
1234 Eq,
1235 ::prost::Message,
1236 ::serde::Serialize,
1237 ::serde::Deserialize,
1238 ::schemars::JsonSchema,
1239 CosmwasmExt,
1240)]
1241#[proto_message(type_url = "/elys.masterchef.MsgUpdateParamsResponse")]
1242pub struct MsgUpdateParamsResponse {}
1243#[allow(clippy::derive_partial_eq_without_eq)]
1244#[derive(
1245 Clone,
1246 PartialEq,
1247 Eq,
1248 ::prost::Message,
1249 ::serde::Serialize,
1250 ::serde::Deserialize,
1251 ::schemars::JsonSchema,
1252 CosmwasmExt,
1253)]
1254#[proto_message(type_url = "/elys.masterchef.PoolMultiplier")]
1255pub struct PoolMultiplier {
1256 #[prost(uint64, tag = "1")]
1257 #[serde(alias = "poolID")]
1258 #[serde(
1259 serialize_with = "crate::serde::as_str::serialize",
1260 deserialize_with = "crate::serde::as_str::deserialize"
1261 )]
1262 pub pool_id: u64,
1263 #[prost(string, tag = "2")]
1264 pub multiplier: ::prost::alloc::string::String,
1265}
1266#[allow(clippy::derive_partial_eq_without_eq)]
1267#[derive(
1268 Clone,
1269 PartialEq,
1270 Eq,
1271 ::prost::Message,
1272 ::serde::Serialize,
1273 ::serde::Deserialize,
1274 ::schemars::JsonSchema,
1275 CosmwasmExt,
1276)]
1277#[proto_message(type_url = "/elys.masterchef.MsgUpdatePoolMultipliers")]
1278pub struct MsgUpdatePoolMultipliers {
1279 #[prost(string, tag = "1")]
1280 pub authority: ::prost::alloc::string::String,
1281 #[prost(message, repeated, tag = "2")]
1282 pub pool_multipliers: ::prost::alloc::vec::Vec<PoolMultiplier>,
1283}
1284#[allow(clippy::derive_partial_eq_without_eq)]
1285#[derive(
1286 Clone,
1287 PartialEq,
1288 Eq,
1289 ::prost::Message,
1290 ::serde::Serialize,
1291 ::serde::Deserialize,
1292 ::schemars::JsonSchema,
1293 CosmwasmExt,
1294)]
1295#[proto_message(type_url = "/elys.masterchef.MsgUpdatePoolMultipliersResponse")]
1296pub struct MsgUpdatePoolMultipliersResponse {}
1297#[allow(clippy::derive_partial_eq_without_eq)]
1298#[derive(
1299 Clone,
1300 PartialEq,
1301 Eq,
1302 ::prost::Message,
1303 ::serde::Serialize,
1304 ::serde::Deserialize,
1305 ::schemars::JsonSchema,
1306 CosmwasmExt,
1307)]
1308#[proto_message(type_url = "/elys.masterchef.MsgClaimRewards")]
1309pub struct MsgClaimRewards {
1310 #[prost(string, tag = "1")]
1311 pub sender: ::prost::alloc::string::String,
1312 #[prost(uint64, repeated, tag = "2")]
1313 #[serde(alias = "poolIDs")]
1314 #[serde(
1315 serialize_with = "crate::serde::as_str_vec::serialize",
1316 deserialize_with = "crate::serde::as_str_vec::deserialize"
1317 )]
1318 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
1319}
1320#[allow(clippy::derive_partial_eq_without_eq)]
1321#[derive(
1322 Clone,
1323 PartialEq,
1324 Eq,
1325 ::prost::Message,
1326 ::serde::Serialize,
1327 ::serde::Deserialize,
1328 ::schemars::JsonSchema,
1329 CosmwasmExt,
1330)]
1331#[proto_message(type_url = "/elys.masterchef.MsgClaimRewardsResponse")]
1332pub struct MsgClaimRewardsResponse {}
1333#[allow(clippy::derive_partial_eq_without_eq)]
1334#[derive(
1335 Clone,
1336 PartialEq,
1337 Eq,
1338 ::prost::Message,
1339 ::serde::Serialize,
1340 ::serde::Deserialize,
1341 ::schemars::JsonSchema,
1342 CosmwasmExt,
1343)]
1344#[proto_message(type_url = "/elys.masterchef.MsgTogglePoolEdenRewards")]
1345pub struct MsgTogglePoolEdenRewards {
1346 #[prost(string, tag = "1")]
1347 pub authority: ::prost::alloc::string::String,
1348 #[prost(uint64, tag = "2")]
1349 #[serde(alias = "poolID")]
1350 #[serde(
1351 serialize_with = "crate::serde::as_str::serialize",
1352 deserialize_with = "crate::serde::as_str::deserialize"
1353 )]
1354 pub pool_id: u64,
1355 #[prost(bool, tag = "3")]
1356 pub enable: bool,
1357}
1358#[allow(clippy::derive_partial_eq_without_eq)]
1359#[derive(
1360 Clone,
1361 PartialEq,
1362 Eq,
1363 ::prost::Message,
1364 ::serde::Serialize,
1365 ::serde::Deserialize,
1366 ::schemars::JsonSchema,
1367 CosmwasmExt,
1368)]
1369#[proto_message(type_url = "/elys.masterchef.MsgTogglePoolEdenRewardsResponse")]
1370pub struct MsgTogglePoolEdenRewardsResponse {}
1371pub struct MasterchefQuerier<'a, Q: cosmwasm_std::CustomQuery> {
1372 querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
1373}
1374impl<'a, Q: cosmwasm_std::CustomQuery> MasterchefQuerier<'a, Q> {
1375 pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
1376 Self { querier }
1377 }
1378 pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
1379 QueryParamsRequest {}.query(self.querier)
1380 }
1381 pub fn external_incentive(
1382 &self,
1383 id: u64,
1384 ) -> Result<QueryExternalIncentiveResponse, cosmwasm_std::StdError> {
1385 QueryExternalIncentiveRequest { id }.query(self.querier)
1386 }
1387 pub fn pool_info(&self, pool_id: u64) -> Result<QueryPoolInfoResponse, cosmwasm_std::StdError> {
1388 QueryPoolInfoRequest { pool_id }.query(self.querier)
1389 }
1390 pub fn pool_reward_info(
1391 &self,
1392 pool_id: u64,
1393 reward_denom: ::prost::alloc::string::String,
1394 ) -> Result<QueryPoolRewardInfoResponse, cosmwasm_std::StdError> {
1395 QueryPoolRewardInfoRequest {
1396 pool_id,
1397 reward_denom,
1398 }
1399 .query(self.querier)
1400 }
1401 pub fn user_reward_info(
1402 &self,
1403 user: ::prost::alloc::string::String,
1404 pool_id: u64,
1405 reward_denom: ::prost::alloc::string::String,
1406 ) -> Result<QueryUserRewardInfoResponse, cosmwasm_std::StdError> {
1407 QueryUserRewardInfoRequest {
1408 user,
1409 pool_id,
1410 reward_denom,
1411 }
1412 .query(self.querier)
1413 }
1414 pub fn user_pending_reward(
1415 &self,
1416 user: ::prost::alloc::string::String,
1417 ) -> Result<QueryUserPendingRewardResponse, cosmwasm_std::StdError> {
1418 QueryUserPendingRewardRequest { user }.query(self.querier)
1419 }
1420 pub fn stable_stake_apr(
1421 &self,
1422 denom: ::prost::alloc::string::String,
1423 ) -> Result<QueryStableStakeAprResponse, cosmwasm_std::StdError> {
1424 QueryStableStakeAprRequest { denom }.query(self.querier)
1425 }
1426 pub fn pool_aprs(
1427 &self,
1428 pool_ids: ::prost::alloc::vec::Vec<u64>,
1429 ) -> Result<QueryPoolAprsResponse, cosmwasm_std::StdError> {
1430 QueryPoolAprsRequest { pool_ids }.query(self.querier)
1431 }
1432 pub fn show_fee_info(
1433 &self,
1434 date: ::prost::alloc::string::String,
1435 ) -> Result<QueryShowFeeInfoResponse, cosmwasm_std::StdError> {
1436 QueryShowFeeInfoRequest { date }.query(self.querier)
1437 }
1438 pub fn list_fee_info(&self) -> Result<QueryListFeeInfoResponse, cosmwasm_std::StdError> {
1439 QueryListFeeInfoRequest {}.query(self.querier)
1440 }
1441 pub fn apr(
1442 &self,
1443 withdraw_type: i32,
1444 denom: ::prost::alloc::string::String,
1445 days: u64,
1446 ) -> Result<QueryAprResponse, cosmwasm_std::StdError> {
1447 QueryAprRequest {
1448 withdraw_type,
1449 denom,
1450 days,
1451 }
1452 .query(self.querier)
1453 }
1454 pub fn aprs(&self) -> Result<QueryAprsResponse, cosmwasm_std::StdError> {
1455 QueryAprsRequest {}.query(self.querier)
1456 }
1457 pub fn pool_rewards(
1458 &self,
1459 pool_ids: ::prost::alloc::vec::Vec<u64>,
1460 pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
1461 ) -> Result<QueryPoolRewardsResponse, cosmwasm_std::StdError> {
1462 QueryPoolRewardsRequest {
1463 pool_ids,
1464 pagination,
1465 }
1466 .query(self.querier)
1467 }
1468 pub fn all_liquidity_pool_tvl(
1469 &self,
1470 ) -> Result<QueryAllLiquidityPoolTvlResponse, cosmwasm_std::StdError> {
1471 QueryAllLiquidityPoolTvlRequest {}.query(self.querier)
1472 }
1473 pub fn chain_tvl(&self) -> Result<QueryChainTvlResponse, cosmwasm_std::StdError> {
1474 QueryChainTvlRequest {}.query(self.querier)
1475 }
1476}