cosmos_sdk_proto/prost/cosmos-sdk/
cosmos.base.v1beta1.rs

1// @generated
2/// Coin defines a token with a denomination and an amount.
3///
4/// NOTE: The amount field is an Int which implements the custom method
5/// signatures required by gogoproto.
6#[allow(clippy::derive_partial_eq_without_eq)]
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct Coin {
9    #[prost(string, tag = "1")]
10    pub denom: ::prost::alloc::string::String,
11    #[prost(string, tag = "2")]
12    pub amount: ::prost::alloc::string::String,
13}
14impl ::prost::Name for Coin {
15    const NAME: &'static str = "Coin";
16    const PACKAGE: &'static str = "cosmos.base.v1beta1";
17    fn full_name() -> ::prost::alloc::string::String {
18        ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME)
19    }
20}
21/// DecCoin defines a token with a denomination and a decimal amount.
22///
23/// NOTE: The amount field is an Dec which implements the custom method
24/// signatures required by gogoproto.
25#[allow(clippy::derive_partial_eq_without_eq)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct DecCoin {
28    #[prost(string, tag = "1")]
29    pub denom: ::prost::alloc::string::String,
30    #[prost(string, tag = "2")]
31    pub amount: ::prost::alloc::string::String,
32}
33impl ::prost::Name for DecCoin {
34    const NAME: &'static str = "DecCoin";
35    const PACKAGE: &'static str = "cosmos.base.v1beta1";
36    fn full_name() -> ::prost::alloc::string::String {
37        ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME)
38    }
39}
40/// IntProto defines a Protobuf wrapper around an Int object.
41/// Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
42#[allow(clippy::derive_partial_eq_without_eq)]
43#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct IntProto {
45    #[prost(string, tag = "1")]
46    pub int: ::prost::alloc::string::String,
47}
48impl ::prost::Name for IntProto {
49    const NAME: &'static str = "IntProto";
50    const PACKAGE: &'static str = "cosmos.base.v1beta1";
51    fn full_name() -> ::prost::alloc::string::String {
52        ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME)
53    }
54}
55/// DecProto defines a Protobuf wrapper around a Dec object.
56/// Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
57#[allow(clippy::derive_partial_eq_without_eq)]
58#[derive(Clone, PartialEq, ::prost::Message)]
59pub struct DecProto {
60    #[prost(string, tag = "1")]
61    pub dec: ::prost::alloc::string::String,
62}
63impl ::prost::Name for DecProto {
64    const NAME: &'static str = "DecProto";
65    const PACKAGE: &'static str = "cosmos.base.v1beta1";
66    fn full_name() -> ::prost::alloc::string::String {
67        ::prost::alloc::format!("cosmos.base.v1beta1.{}", Self::NAME)
68    }
69}
70include!("cosmos.base.v1beta1.serde.rs");
71// @@protoc_insertion_point(module)