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}
632#[allow(clippy::derive_partial_eq_without_eq)]
633#[derive(
634 Clone,
635 PartialEq,
636 Eq,
637 ::prost::Message,
638 ::serde::Serialize,
639 ::serde::Deserialize,
640 ::schemars::JsonSchema,
641 CosmwasmExt,
642)]
643#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardInfoRequest")]
644#[proto_query(
645 path = "/elys.masterchef.Query/PoolRewardInfo",
646 response_type = QueryPoolRewardInfoResponse
647)]
648pub struct QueryPoolRewardInfoRequest {
649 #[prost(uint64, tag = "1")]
650 #[serde(alias = "poolID")]
651 #[serde(
652 serialize_with = "crate::serde::as_str::serialize",
653 deserialize_with = "crate::serde::as_str::deserialize"
654 )]
655 pub pool_id: u64,
656 #[prost(string, tag = "2")]
657 pub reward_denom: ::prost::alloc::string::String,
658}
659#[allow(clippy::derive_partial_eq_without_eq)]
660#[derive(
661 Clone,
662 PartialEq,
663 Eq,
664 ::prost::Message,
665 ::serde::Serialize,
666 ::serde::Deserialize,
667 ::schemars::JsonSchema,
668 CosmwasmExt,
669)]
670#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardInfoResponse")]
671pub struct QueryPoolRewardInfoResponse {
672 #[prost(message, optional, tag = "1")]
673 pub pool_reward_info: ::core::option::Option<PoolRewardInfo>,
674}
675#[allow(clippy::derive_partial_eq_without_eq)]
676#[derive(
677 Clone,
678 PartialEq,
679 Eq,
680 ::prost::Message,
681 ::serde::Serialize,
682 ::serde::Deserialize,
683 ::schemars::JsonSchema,
684 CosmwasmExt,
685)]
686#[proto_message(type_url = "/elys.masterchef.QueryUserRewardInfoRequest")]
687#[proto_query(
688 path = "/elys.masterchef.Query/UserRewardInfo",
689 response_type = QueryUserRewardInfoResponse
690)]
691pub struct QueryUserRewardInfoRequest {
692 #[prost(string, tag = "1")]
693 pub user: ::prost::alloc::string::String,
694 #[prost(uint64, tag = "2")]
695 #[serde(alias = "poolID")]
696 #[serde(
697 serialize_with = "crate::serde::as_str::serialize",
698 deserialize_with = "crate::serde::as_str::deserialize"
699 )]
700 pub pool_id: u64,
701 #[prost(string, tag = "3")]
702 pub reward_denom: ::prost::alloc::string::String,
703}
704#[allow(clippy::derive_partial_eq_without_eq)]
705#[derive(
706 Clone,
707 PartialEq,
708 Eq,
709 ::prost::Message,
710 ::serde::Serialize,
711 ::serde::Deserialize,
712 ::schemars::JsonSchema,
713 CosmwasmExt,
714)]
715#[proto_message(type_url = "/elys.masterchef.QueryUserRewardInfoResponse")]
716pub struct QueryUserRewardInfoResponse {
717 #[prost(message, optional, tag = "1")]
718 pub user_reward_info: ::core::option::Option<UserRewardInfo>,
719}
720#[allow(clippy::derive_partial_eq_without_eq)]
721#[derive(
722 Clone,
723 PartialEq,
724 Eq,
725 ::prost::Message,
726 ::serde::Serialize,
727 ::serde::Deserialize,
728 ::schemars::JsonSchema,
729 CosmwasmExt,
730)]
731#[proto_message(type_url = "/elys.masterchef.QueryUserPendingRewardRequest")]
732#[proto_query(
733 path = "/elys.masterchef.Query/UserPendingReward",
734 response_type = QueryUserPendingRewardResponse
735)]
736pub struct QueryUserPendingRewardRequest {
737 #[prost(string, tag = "1")]
738 pub user: ::prost::alloc::string::String,
739}
740#[allow(clippy::derive_partial_eq_without_eq)]
741#[derive(
742 Clone,
743 PartialEq,
744 Eq,
745 ::prost::Message,
746 ::serde::Serialize,
747 ::serde::Deserialize,
748 ::schemars::JsonSchema,
749 CosmwasmExt,
750)]
751#[proto_message(type_url = "/elys.masterchef.RewardInfo")]
752pub struct RewardInfo {
753 #[prost(uint64, tag = "1")]
754 #[serde(alias = "poolID")]
755 #[serde(
756 serialize_with = "crate::serde::as_str::serialize",
757 deserialize_with = "crate::serde::as_str::deserialize"
758 )]
759 pub pool_id: u64,
760 #[prost(message, repeated, tag = "2")]
761 pub reward: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
762}
763#[allow(clippy::derive_partial_eq_without_eq)]
764#[derive(
765 Clone,
766 PartialEq,
767 Eq,
768 ::prost::Message,
769 ::serde::Serialize,
770 ::serde::Deserialize,
771 ::schemars::JsonSchema,
772 CosmwasmExt,
773)]
774#[proto_message(type_url = "/elys.masterchef.QueryUserPendingRewardResponse")]
775pub struct QueryUserPendingRewardResponse {
776 #[prost(message, repeated, tag = "1")]
777 pub rewards: ::prost::alloc::vec::Vec<RewardInfo>,
778 #[prost(message, repeated, tag = "2")]
779 pub total_rewards: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
780}
781#[allow(clippy::derive_partial_eq_without_eq)]
782#[derive(
783 Clone,
784 PartialEq,
785 Eq,
786 ::prost::Message,
787 ::serde::Serialize,
788 ::serde::Deserialize,
789 ::schemars::JsonSchema,
790 CosmwasmExt,
791)]
792#[proto_message(type_url = "/elys.masterchef.QueryStableStakeAprRequest")]
793#[proto_query(
794 path = "/elys.masterchef.Query/StableStakeApr",
795 response_type = QueryStableStakeAprResponse
796)]
797pub struct QueryStableStakeAprRequest {
798 #[prost(string, tag = "1")]
799 pub denom: ::prost::alloc::string::String,
800}
801#[allow(clippy::derive_partial_eq_without_eq)]
802#[derive(
803 Clone,
804 PartialEq,
805 Eq,
806 ::prost::Message,
807 ::serde::Serialize,
808 ::serde::Deserialize,
809 ::schemars::JsonSchema,
810 CosmwasmExt,
811)]
812#[proto_message(type_url = "/elys.masterchef.QueryStableStakeAprResponse")]
813pub struct QueryStableStakeAprResponse {
814 #[prost(string, tag = "1")]
815 pub apr: ::prost::alloc::string::String,
816}
817#[allow(clippy::derive_partial_eq_without_eq)]
818#[derive(
819 Clone,
820 PartialEq,
821 Eq,
822 ::prost::Message,
823 ::serde::Serialize,
824 ::serde::Deserialize,
825 ::schemars::JsonSchema,
826 CosmwasmExt,
827)]
828#[proto_message(type_url = "/elys.masterchef.QueryPoolAprsRequest")]
829#[proto_query(
830 path = "/elys.masterchef.Query/PoolAprs",
831 response_type = QueryPoolAprsResponse
832)]
833pub struct QueryPoolAprsRequest {
834 #[prost(uint64, repeated, tag = "1")]
835 #[serde(alias = "poolIDs")]
836 #[serde(
837 serialize_with = "crate::serde::as_str_vec::serialize",
838 deserialize_with = "crate::serde::as_str_vec::deserialize"
839 )]
840 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
841}
842#[allow(clippy::derive_partial_eq_without_eq)]
843#[derive(
844 Clone,
845 PartialEq,
846 Eq,
847 ::prost::Message,
848 ::serde::Serialize,
849 ::serde::Deserialize,
850 ::schemars::JsonSchema,
851 CosmwasmExt,
852)]
853#[proto_message(type_url = "/elys.masterchef.QueryPoolAprsResponse")]
854pub struct QueryPoolAprsResponse {
855 #[prost(message, repeated, tag = "1")]
856 pub data: ::prost::alloc::vec::Vec<PoolApr>,
857}
858#[allow(clippy::derive_partial_eq_without_eq)]
859#[derive(
860 Clone,
861 PartialEq,
862 Eq,
863 ::prost::Message,
864 ::serde::Serialize,
865 ::serde::Deserialize,
866 ::schemars::JsonSchema,
867 CosmwasmExt,
868)]
869#[proto_message(type_url = "/elys.masterchef.PoolApr")]
870pub struct PoolApr {
871 #[prost(uint64, tag = "1")]
872 #[serde(alias = "poolID")]
873 #[serde(
874 serialize_with = "crate::serde::as_str::serialize",
875 deserialize_with = "crate::serde::as_str::deserialize"
876 )]
877 pub pool_id: u64,
878 #[prost(string, tag = "2")]
879 pub eden_apr: ::prost::alloc::string::String,
880 #[prost(string, tag = "3")]
881 pub usdc_dex_apr: ::prost::alloc::string::String,
882 #[prost(string, tag = "4")]
883 pub usdc_gas_apr: ::prost::alloc::string::String,
884 #[prost(string, tag = "5")]
885 pub total_apr: ::prost::alloc::string::String,
886}
887#[allow(clippy::derive_partial_eq_without_eq)]
888#[derive(
889 Clone,
890 PartialEq,
891 Eq,
892 ::prost::Message,
893 ::serde::Serialize,
894 ::serde::Deserialize,
895 ::schemars::JsonSchema,
896 CosmwasmExt,
897)]
898#[proto_message(type_url = "/elys.masterchef.QueryShowFeeInfoRequest")]
899#[proto_query(
900 path = "/elys.masterchef.Query/ShowFeeInfo",
901 response_type = QueryShowFeeInfoResponse
902)]
903pub struct QueryShowFeeInfoRequest {
904 #[prost(string, tag = "1")]
905 pub date: ::prost::alloc::string::String,
906}
907#[allow(clippy::derive_partial_eq_without_eq)]
908#[derive(
909 Clone,
910 PartialEq,
911 Eq,
912 ::prost::Message,
913 ::serde::Serialize,
914 ::serde::Deserialize,
915 ::schemars::JsonSchema,
916 CosmwasmExt,
917)]
918#[proto_message(type_url = "/elys.masterchef.QueryShowFeeInfoResponse")]
919pub struct QueryShowFeeInfoResponse {
920 #[prost(message, optional, tag = "1")]
921 pub fee_info: ::core::option::Option<FeeInfo>,
922}
923#[allow(clippy::derive_partial_eq_without_eq)]
924#[derive(
925 Clone,
926 PartialEq,
927 Eq,
928 ::prost::Message,
929 ::serde::Serialize,
930 ::serde::Deserialize,
931 ::schemars::JsonSchema,
932 CosmwasmExt,
933)]
934#[proto_message(type_url = "/elys.masterchef.QueryListFeeInfoRequest")]
935#[proto_query(
936 path = "/elys.masterchef.Query/ListFeeInfo",
937 response_type = QueryListFeeInfoResponse
938)]
939pub struct QueryListFeeInfoRequest {}
940#[allow(clippy::derive_partial_eq_without_eq)]
941#[derive(
942 Clone,
943 PartialEq,
944 Eq,
945 ::prost::Message,
946 ::serde::Serialize,
947 ::serde::Deserialize,
948 ::schemars::JsonSchema,
949 CosmwasmExt,
950)]
951#[proto_message(type_url = "/elys.masterchef.QueryListFeeInfoResponse")]
952pub struct QueryListFeeInfoResponse {
953 #[prost(message, repeated, tag = "1")]
954 pub fee_info: ::prost::alloc::vec::Vec<FeeInfo>,
955}
956#[allow(clippy::derive_partial_eq_without_eq)]
957#[derive(
958 Clone,
959 PartialEq,
960 Eq,
961 ::prost::Message,
962 ::serde::Serialize,
963 ::serde::Deserialize,
964 ::schemars::JsonSchema,
965 CosmwasmExt,
966)]
967#[proto_message(type_url = "/elys.masterchef.QueryAprRequest")]
968#[proto_query(path = "/elys.masterchef.Query/Apr", response_type = QueryAprResponse)]
969pub struct QueryAprRequest {
970 #[prost(enumeration = "super::commitment::EarnType", tag = "1")]
971 #[serde(
972 serialize_with = "crate::serde::as_str::serialize",
973 deserialize_with = "crate::serde::as_str::deserialize"
974 )]
975 pub withdraw_type: i32,
976 #[prost(string, tag = "2")]
977 pub denom: ::prost::alloc::string::String,
978}
979#[allow(clippy::derive_partial_eq_without_eq)]
980#[derive(
981 Clone,
982 PartialEq,
983 Eq,
984 ::prost::Message,
985 ::serde::Serialize,
986 ::serde::Deserialize,
987 ::schemars::JsonSchema,
988 CosmwasmExt,
989)]
990#[proto_message(type_url = "/elys.masterchef.QueryAprResponse")]
991pub struct QueryAprResponse {
992 #[prost(string, tag = "1")]
993 pub apr: ::prost::alloc::string::String,
994}
995#[allow(clippy::derive_partial_eq_without_eq)]
996#[derive(
997 Clone,
998 PartialEq,
999 Eq,
1000 ::prost::Message,
1001 ::serde::Serialize,
1002 ::serde::Deserialize,
1003 ::schemars::JsonSchema,
1004 CosmwasmExt,
1005)]
1006#[proto_message(type_url = "/elys.masterchef.QueryAprsRequest")]
1007#[proto_query(path = "/elys.masterchef.Query/Aprs", response_type = QueryAprsResponse)]
1008pub struct QueryAprsRequest {}
1009#[allow(clippy::derive_partial_eq_without_eq)]
1010#[derive(
1011 Clone,
1012 PartialEq,
1013 Eq,
1014 ::prost::Message,
1015 ::serde::Serialize,
1016 ::serde::Deserialize,
1017 ::schemars::JsonSchema,
1018 CosmwasmExt,
1019)]
1020#[proto_message(type_url = "/elys.masterchef.QueryAprsResponse")]
1021pub struct QueryAprsResponse {
1022 #[prost(string, tag = "1")]
1023 pub usdc_apr_usdc: ::prost::alloc::string::String,
1024 #[prost(string, tag = "2")]
1025 pub eden_apr_usdc: ::prost::alloc::string::String,
1026 #[prost(string, tag = "3")]
1027 pub usdc_apr_edenb: ::prost::alloc::string::String,
1028 #[prost(string, tag = "4")]
1029 pub eden_apr_edenb: ::prost::alloc::string::String,
1030 #[prost(string, tag = "5")]
1031 pub usdc_apr_eden: ::prost::alloc::string::String,
1032 #[prost(string, tag = "6")]
1033 pub eden_apr_eden: ::prost::alloc::string::String,
1034 #[prost(string, tag = "7")]
1035 pub edenb_apr_eden: ::prost::alloc::string::String,
1036 #[prost(string, tag = "8")]
1037 pub usdc_apr_elys: ::prost::alloc::string::String,
1038 #[prost(string, tag = "9")]
1039 pub eden_apr_elys: ::prost::alloc::string::String,
1040 #[prost(string, tag = "10")]
1041 pub edenb_apr_elys: ::prost::alloc::string::String,
1042}
1043#[allow(clippy::derive_partial_eq_without_eq)]
1044#[derive(
1045 Clone,
1046 PartialEq,
1047 Eq,
1048 ::prost::Message,
1049 ::serde::Serialize,
1050 ::serde::Deserialize,
1051 ::schemars::JsonSchema,
1052 CosmwasmExt,
1053)]
1054#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardsRequest")]
1055#[proto_query(
1056 path = "/elys.masterchef.Query/PoolRewards",
1057 response_type = QueryPoolRewardsResponse
1058)]
1059pub struct QueryPoolRewardsRequest {
1060 #[prost(uint64, repeated, tag = "1")]
1061 #[serde(alias = "poolIDs")]
1062 #[serde(
1063 serialize_with = "crate::serde::as_str_vec::serialize",
1064 deserialize_with = "crate::serde::as_str_vec::deserialize"
1065 )]
1066 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
1067 #[prost(message, optional, tag = "2")]
1068 pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
1069}
1070#[allow(clippy::derive_partial_eq_without_eq)]
1071#[derive(
1072 Clone,
1073 PartialEq,
1074 Eq,
1075 ::prost::Message,
1076 ::serde::Serialize,
1077 ::serde::Deserialize,
1078 ::schemars::JsonSchema,
1079 CosmwasmExt,
1080)]
1081#[proto_message(type_url = "/elys.masterchef.PoolRewards")]
1082pub struct PoolRewards {
1083 #[prost(uint64, tag = "1")]
1084 #[serde(alias = "poolID")]
1085 #[serde(
1086 serialize_with = "crate::serde::as_str::serialize",
1087 deserialize_with = "crate::serde::as_str::deserialize"
1088 )]
1089 pub pool_id: u64,
1090 #[prost(string, tag = "2")]
1091 pub rewards_usd: ::prost::alloc::string::String,
1092 #[prost(message, repeated, tag = "3")]
1093 pub reward_coins: ::prost::alloc::vec::Vec<super::super::cosmos::base::v1beta1::Coin>,
1094 #[prost(message, optional, tag = "4")]
1095 pub eden_forward: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
1096 #[prost(string, tag = "5")]
1097 pub rewards_usd_apr: ::prost::alloc::string::String,
1098 #[prost(string, tag = "6")]
1099 pub external_rewards_apr: ::prost::alloc::string::String,
1100}
1101#[allow(clippy::derive_partial_eq_without_eq)]
1102#[derive(
1103 Clone,
1104 PartialEq,
1105 Eq,
1106 ::prost::Message,
1107 ::serde::Serialize,
1108 ::serde::Deserialize,
1109 ::schemars::JsonSchema,
1110 CosmwasmExt,
1111)]
1112#[proto_message(type_url = "/elys.masterchef.QueryPoolRewardsResponse")]
1113pub struct QueryPoolRewardsResponse {
1114 #[prost(message, repeated, tag = "1")]
1115 pub pools: ::prost::alloc::vec::Vec<PoolRewards>,
1116}
1117#[allow(clippy::derive_partial_eq_without_eq)]
1118#[derive(
1119 Clone,
1120 PartialEq,
1121 Eq,
1122 ::prost::Message,
1123 ::serde::Serialize,
1124 ::serde::Deserialize,
1125 ::schemars::JsonSchema,
1126 CosmwasmExt,
1127)]
1128#[proto_message(type_url = "/elys.masterchef.MsgAddExternalRewardDenom")]
1129pub struct MsgAddExternalRewardDenom {
1130 #[prost(string, tag = "1")]
1131 pub authority: ::prost::alloc::string::String,
1132 #[prost(string, tag = "2")]
1133 pub reward_denom: ::prost::alloc::string::String,
1134 #[prost(string, tag = "3")]
1135 pub min_amount: ::prost::alloc::string::String,
1136 #[prost(bool, tag = "4")]
1137 pub supported: bool,
1138}
1139#[allow(clippy::derive_partial_eq_without_eq)]
1140#[derive(
1141 Clone,
1142 PartialEq,
1143 Eq,
1144 ::prost::Message,
1145 ::serde::Serialize,
1146 ::serde::Deserialize,
1147 ::schemars::JsonSchema,
1148 CosmwasmExt,
1149)]
1150#[proto_message(type_url = "/elys.masterchef.MsgAddExternalRewardDenomResponse")]
1151pub struct MsgAddExternalRewardDenomResponse {}
1152#[allow(clippy::derive_partial_eq_without_eq)]
1153#[derive(
1154 Clone,
1155 PartialEq,
1156 Eq,
1157 ::prost::Message,
1158 ::serde::Serialize,
1159 ::serde::Deserialize,
1160 ::schemars::JsonSchema,
1161 CosmwasmExt,
1162)]
1163#[proto_message(type_url = "/elys.masterchef.MsgAddExternalIncentive")]
1164pub struct MsgAddExternalIncentive {
1165 #[prost(string, tag = "1")]
1166 pub sender: ::prost::alloc::string::String,
1167 #[prost(string, tag = "2")]
1168 pub reward_denom: ::prost::alloc::string::String,
1169 #[prost(uint64, tag = "3")]
1170 #[serde(alias = "poolID")]
1171 #[serde(
1172 serialize_with = "crate::serde::as_str::serialize",
1173 deserialize_with = "crate::serde::as_str::deserialize"
1174 )]
1175 pub pool_id: u64,
1176 #[prost(int64, tag = "4")]
1177 #[serde(
1178 serialize_with = "crate::serde::as_str::serialize",
1179 deserialize_with = "crate::serde::as_str::deserialize"
1180 )]
1181 pub from_block: i64,
1182 #[prost(int64, tag = "5")]
1183 #[serde(
1184 serialize_with = "crate::serde::as_str::serialize",
1185 deserialize_with = "crate::serde::as_str::deserialize"
1186 )]
1187 pub to_block: i64,
1188 #[prost(string, tag = "6")]
1189 pub amount_per_block: ::prost::alloc::string::String,
1190}
1191#[allow(clippy::derive_partial_eq_without_eq)]
1192#[derive(
1193 Clone,
1194 PartialEq,
1195 Eq,
1196 ::prost::Message,
1197 ::serde::Serialize,
1198 ::serde::Deserialize,
1199 ::schemars::JsonSchema,
1200 CosmwasmExt,
1201)]
1202#[proto_message(type_url = "/elys.masterchef.MsgAddExternalIncentiveResponse")]
1203pub struct MsgAddExternalIncentiveResponse {}
1204#[allow(clippy::derive_partial_eq_without_eq)]
1205#[derive(
1206 Clone,
1207 PartialEq,
1208 Eq,
1209 ::prost::Message,
1210 ::serde::Serialize,
1211 ::serde::Deserialize,
1212 ::schemars::JsonSchema,
1213 CosmwasmExt,
1214)]
1215#[proto_message(type_url = "/elys.masterchef.MsgUpdateParams")]
1216pub struct MsgUpdateParams {
1217 #[prost(string, tag = "1")]
1218 pub authority: ::prost::alloc::string::String,
1219 #[prost(message, optional, tag = "2")]
1220 pub params: ::core::option::Option<Params>,
1221}
1222#[allow(clippy::derive_partial_eq_without_eq)]
1223#[derive(
1224 Clone,
1225 PartialEq,
1226 Eq,
1227 ::prost::Message,
1228 ::serde::Serialize,
1229 ::serde::Deserialize,
1230 ::schemars::JsonSchema,
1231 CosmwasmExt,
1232)]
1233#[proto_message(type_url = "/elys.masterchef.MsgUpdateParamsResponse")]
1234pub struct MsgUpdateParamsResponse {}
1235#[allow(clippy::derive_partial_eq_without_eq)]
1236#[derive(
1237 Clone,
1238 PartialEq,
1239 Eq,
1240 ::prost::Message,
1241 ::serde::Serialize,
1242 ::serde::Deserialize,
1243 ::schemars::JsonSchema,
1244 CosmwasmExt,
1245)]
1246#[proto_message(type_url = "/elys.masterchef.PoolMultiplier")]
1247pub struct PoolMultiplier {
1248 #[prost(uint64, tag = "1")]
1249 #[serde(alias = "poolID")]
1250 #[serde(
1251 serialize_with = "crate::serde::as_str::serialize",
1252 deserialize_with = "crate::serde::as_str::deserialize"
1253 )]
1254 pub pool_id: u64,
1255 #[prost(string, tag = "2")]
1256 pub multiplier: ::prost::alloc::string::String,
1257}
1258#[allow(clippy::derive_partial_eq_without_eq)]
1259#[derive(
1260 Clone,
1261 PartialEq,
1262 Eq,
1263 ::prost::Message,
1264 ::serde::Serialize,
1265 ::serde::Deserialize,
1266 ::schemars::JsonSchema,
1267 CosmwasmExt,
1268)]
1269#[proto_message(type_url = "/elys.masterchef.MsgUpdatePoolMultipliers")]
1270pub struct MsgUpdatePoolMultipliers {
1271 #[prost(string, tag = "1")]
1272 pub authority: ::prost::alloc::string::String,
1273 #[prost(message, repeated, tag = "2")]
1274 pub pool_multipliers: ::prost::alloc::vec::Vec<PoolMultiplier>,
1275}
1276#[allow(clippy::derive_partial_eq_without_eq)]
1277#[derive(
1278 Clone,
1279 PartialEq,
1280 Eq,
1281 ::prost::Message,
1282 ::serde::Serialize,
1283 ::serde::Deserialize,
1284 ::schemars::JsonSchema,
1285 CosmwasmExt,
1286)]
1287#[proto_message(type_url = "/elys.masterchef.MsgUpdatePoolMultipliersResponse")]
1288pub struct MsgUpdatePoolMultipliersResponse {}
1289#[allow(clippy::derive_partial_eq_without_eq)]
1290#[derive(
1291 Clone,
1292 PartialEq,
1293 Eq,
1294 ::prost::Message,
1295 ::serde::Serialize,
1296 ::serde::Deserialize,
1297 ::schemars::JsonSchema,
1298 CosmwasmExt,
1299)]
1300#[proto_message(type_url = "/elys.masterchef.MsgClaimRewards")]
1301pub struct MsgClaimRewards {
1302 #[prost(string, tag = "1")]
1303 pub sender: ::prost::alloc::string::String,
1304 #[prost(uint64, repeated, tag = "2")]
1305 #[serde(alias = "poolIDs")]
1306 #[serde(
1307 serialize_with = "crate::serde::as_str_vec::serialize",
1308 deserialize_with = "crate::serde::as_str_vec::deserialize"
1309 )]
1310 pub pool_ids: ::prost::alloc::vec::Vec<u64>,
1311}
1312#[allow(clippy::derive_partial_eq_without_eq)]
1313#[derive(
1314 Clone,
1315 PartialEq,
1316 Eq,
1317 ::prost::Message,
1318 ::serde::Serialize,
1319 ::serde::Deserialize,
1320 ::schemars::JsonSchema,
1321 CosmwasmExt,
1322)]
1323#[proto_message(type_url = "/elys.masterchef.MsgClaimRewardsResponse")]
1324pub struct MsgClaimRewardsResponse {}
1325#[allow(clippy::derive_partial_eq_without_eq)]
1326#[derive(
1327 Clone,
1328 PartialEq,
1329 Eq,
1330 ::prost::Message,
1331 ::serde::Serialize,
1332 ::serde::Deserialize,
1333 ::schemars::JsonSchema,
1334 CosmwasmExt,
1335)]
1336#[proto_message(type_url = "/elys.masterchef.MsgTogglePoolEdenRewards")]
1337pub struct MsgTogglePoolEdenRewards {
1338 #[prost(string, tag = "1")]
1339 pub authority: ::prost::alloc::string::String,
1340 #[prost(uint64, tag = "2")]
1341 #[serde(alias = "poolID")]
1342 #[serde(
1343 serialize_with = "crate::serde::as_str::serialize",
1344 deserialize_with = "crate::serde::as_str::deserialize"
1345 )]
1346 pub pool_id: u64,
1347 #[prost(bool, tag = "3")]
1348 pub enable: bool,
1349}
1350#[allow(clippy::derive_partial_eq_without_eq)]
1351#[derive(
1352 Clone,
1353 PartialEq,
1354 Eq,
1355 ::prost::Message,
1356 ::serde::Serialize,
1357 ::serde::Deserialize,
1358 ::schemars::JsonSchema,
1359 CosmwasmExt,
1360)]
1361#[proto_message(type_url = "/elys.masterchef.MsgTogglePoolEdenRewardsResponse")]
1362pub struct MsgTogglePoolEdenRewardsResponse {}
1363pub struct MasterchefQuerier<'a, Q: cosmwasm_std::CustomQuery> {
1364 querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
1365}
1366impl<'a, Q: cosmwasm_std::CustomQuery> MasterchefQuerier<'a, Q> {
1367 pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
1368 Self { querier }
1369 }
1370 pub fn params(&self) -> Result<QueryParamsResponse, cosmwasm_std::StdError> {
1371 QueryParamsRequest {}.query(self.querier)
1372 }
1373 pub fn external_incentive(
1374 &self,
1375 id: u64,
1376 ) -> Result<QueryExternalIncentiveResponse, cosmwasm_std::StdError> {
1377 QueryExternalIncentiveRequest { id }.query(self.querier)
1378 }
1379 pub fn pool_info(&self, pool_id: u64) -> Result<QueryPoolInfoResponse, cosmwasm_std::StdError> {
1380 QueryPoolInfoRequest { pool_id }.query(self.querier)
1381 }
1382 pub fn pool_reward_info(
1383 &self,
1384 pool_id: u64,
1385 reward_denom: ::prost::alloc::string::String,
1386 ) -> Result<QueryPoolRewardInfoResponse, cosmwasm_std::StdError> {
1387 QueryPoolRewardInfoRequest {
1388 pool_id,
1389 reward_denom,
1390 }
1391 .query(self.querier)
1392 }
1393 pub fn user_reward_info(
1394 &self,
1395 user: ::prost::alloc::string::String,
1396 pool_id: u64,
1397 reward_denom: ::prost::alloc::string::String,
1398 ) -> Result<QueryUserRewardInfoResponse, cosmwasm_std::StdError> {
1399 QueryUserRewardInfoRequest {
1400 user,
1401 pool_id,
1402 reward_denom,
1403 }
1404 .query(self.querier)
1405 }
1406 pub fn user_pending_reward(
1407 &self,
1408 user: ::prost::alloc::string::String,
1409 ) -> Result<QueryUserPendingRewardResponse, cosmwasm_std::StdError> {
1410 QueryUserPendingRewardRequest { user }.query(self.querier)
1411 }
1412 pub fn stable_stake_apr(
1413 &self,
1414 denom: ::prost::alloc::string::String,
1415 ) -> Result<QueryStableStakeAprResponse, cosmwasm_std::StdError> {
1416 QueryStableStakeAprRequest { denom }.query(self.querier)
1417 }
1418 pub fn pool_aprs(
1419 &self,
1420 pool_ids: ::prost::alloc::vec::Vec<u64>,
1421 ) -> Result<QueryPoolAprsResponse, cosmwasm_std::StdError> {
1422 QueryPoolAprsRequest { pool_ids }.query(self.querier)
1423 }
1424 pub fn show_fee_info(
1425 &self,
1426 date: ::prost::alloc::string::String,
1427 ) -> Result<QueryShowFeeInfoResponse, cosmwasm_std::StdError> {
1428 QueryShowFeeInfoRequest { date }.query(self.querier)
1429 }
1430 pub fn list_fee_info(&self) -> Result<QueryListFeeInfoResponse, cosmwasm_std::StdError> {
1431 QueryListFeeInfoRequest {}.query(self.querier)
1432 }
1433 pub fn apr(
1434 &self,
1435 withdraw_type: i32,
1436 denom: ::prost::alloc::string::String,
1437 ) -> Result<QueryAprResponse, cosmwasm_std::StdError> {
1438 QueryAprRequest {
1439 withdraw_type,
1440 denom,
1441 }
1442 .query(self.querier)
1443 }
1444 pub fn aprs(&self) -> Result<QueryAprsResponse, cosmwasm_std::StdError> {
1445 QueryAprsRequest {}.query(self.querier)
1446 }
1447 pub fn pool_rewards(
1448 &self,
1449 pool_ids: ::prost::alloc::vec::Vec<u64>,
1450 pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
1451 ) -> Result<QueryPoolRewardsResponse, cosmwasm_std::StdError> {
1452 QueryPoolRewardsRequest {
1453 pool_ids,
1454 pagination,
1455 }
1456 .query(self.querier)
1457 }
1458 pub fn all_liquidity_pool_tvl(
1459 &self,
1460 ) -> Result<QueryAllLiquidityPoolTvlResponse, cosmwasm_std::StdError> {
1461 QueryAllLiquidityPoolTvlRequest {}.query(self.querier)
1462 }
1463 pub fn chain_tvl(&self) -> Result<QueryChainTvlResponse, cosmwasm_std::StdError> {
1464 QueryChainTvlRequest {}.query(self.querier)
1465 }
1466}