layer_climb_proto/
proto.rs

1// Exported in the root because they're commonly used
2pub use cosmos_sdk_proto::{
3    cosmos::base::v1beta1::Coin,
4    tendermint::google::protobuf::{Any, Duration, Timestamp},
5    traits::{Message, MessageExt, Name},
6};
7
8// do these really not exist in cosmos_sdk_proto?
9// TODO - double-check to see if these are only used for ibc stuff, if so, move over there
10pub use ibc_proto::ibc::core::client::v1::Height as RevisionHeight;
11pub use ibc_proto::ibc::core::commitment::v1::{MerklePrefix, MerkleProof, MerkleRoot};
12
13// the rest are all in distinct modules
14pub mod block {
15    // uhh... yeah... this is a bit of a mess
16    pub use cosmos_sdk_proto::{
17        cosmos::base::tendermint::v1beta1::Block as SdkBlock,
18        cosmos::base::tendermint::v1beta1::Header as SdkHeader,
19        tendermint::types::Block as TendermintBlock, tendermint::types::Header as TendermintHeader,
20    };
21}
22
23pub mod tendermint {
24    pub use cosmos_sdk_proto::cosmos::base::tendermint::v1beta1::*;
25    pub use cosmos_sdk_proto::tendermint::{
26        abci::{Event, EventAttribute},
27        types::{BlockId, SignedHeader, Validator, ValidatorSet},
28    };
29    pub use tendermint_proto::crypto;
30}
31
32pub mod wasm {
33    pub use cosmos_sdk_proto::cosmwasm::wasm::v1::*;
34}
35
36pub mod ibc {
37    pub use ibc_proto::ibc::core::channel::v1 as channel;
38    pub use ibc_proto::ibc::core::client::v1 as client;
39    pub use ibc_proto::ibc::core::connection::v1 as connection;
40    pub use ibc_proto::ibc::lightclients::tendermint::v1 as light_client;
41    pub use ibc_proto::ics23;
42}
43
44///////////////
45
46/// Authentication of accounts and transactions.
47pub mod auth {
48    pub use cosmos_sdk_proto::cosmos::auth::v1beta1::*;
49}
50
51/// Granting of arbitrary privileges from one account to another.
52pub mod authz {
53    pub use cosmos_sdk_proto::cosmos::authz::v1beta1::*;
54}
55
56/// Balances.
57pub mod bank {
58    pub use cosmos_sdk_proto::cosmos::bank::v1beta1::*;
59}
60
61/// Application BlockChain Interface (ABCI).
62///
63/// Interface that defines the boundary between the replication engine
64/// (the blockchain), and the state machine (the application).
65pub mod abci {
66    pub use cosmos_sdk_proto::cosmos::base::abci::v1beta1::*;
67}
68
69/// Node requests.
70pub mod node {
71    pub use cosmos_sdk_proto::cosmos::base::node::v1beta1::*;
72}
73
74/// Query support.
75pub mod query {
76    pub use cosmos_sdk_proto::cosmos::base::query::v1beta1::*;
77}
78
79/// Reflection support.
80pub mod reflection {
81    pub mod v1 {
82        pub use cosmos_sdk_proto::cosmos::base::reflection::v1beta1::*;
83    }
84
85    pub mod v2 {
86        pub use cosmos_sdk_proto::cosmos::base::reflection::v2alpha1::*;
87    }
88}
89
90/// Crisis handling
91pub mod crisis {
92    pub use cosmos_sdk_proto::cosmos::crisis::v1beta1::*;
93}
94
95/// Cryptographic primitives.
96pub mod crypto {
97    /// Multi-signature support.
98    pub mod multisig {
99        pub use cosmos_sdk_proto::cosmos::crypto::multisig::v1beta1::*;
100    }
101    pub mod ed25519 {
102        pub use cosmos_sdk_proto::cosmos::crypto::ed25519::*;
103    }
104    pub mod secp256k1 {
105        pub use cosmos_sdk_proto::cosmos::crypto::secp256k1::*;
106    }
107    pub mod secp256r1 {
108        pub use cosmos_sdk_proto::cosmos::crypto::secp256r1::*;
109    }
110}
111
112/// Messages and services handling token distribution
113pub mod distribution {
114    pub use cosmos_sdk_proto::cosmos::distribution::v1beta1::*;
115}
116
117/// Messages and services handling evidence
118pub mod evidence {
119    pub use cosmos_sdk_proto::cosmos::evidence::v1beta1::*;
120}
121
122/// Allows accounts to grant fee allowances and to use fees from their accounts.
123pub mod feegrant {
124    pub use cosmos_sdk_proto::cosmos::feegrant::v1beta1::*;
125}
126
127/// Messages and services handling gentx's
128pub mod genutil {
129    pub use cosmos_sdk_proto::cosmos::genutil::v1beta1::*;
130}
131
132/// Messages and services handling governance
133pub mod gov {
134    pub mod v1 {
135        pub use cosmos_sdk_proto::cosmos::gov::v1::*;
136    }
137    pub mod v1beta1 {
138        pub use cosmos_sdk_proto::cosmos::gov::v1beta1::*;
139    }
140}
141
142/// Messages and services handling minting
143pub mod mint {
144    pub use cosmos_sdk_proto::cosmos::mint::v1beta1::*;
145}
146
147/// Messages and services handling chain parameters
148pub mod params {
149    pub use cosmos_sdk_proto::cosmos::params::v1beta1::*;
150}
151
152/// Handling slashing parameters and unjailing
153pub mod slashing {
154    pub use cosmos_sdk_proto::cosmos::slashing::v1beta1::*;
155}
156
157/// Proof-of-Stake layer for public blockchains.
158pub mod staking {
159    pub use cosmos_sdk_proto::cosmos::staking::v1beta1::*;
160}
161
162/// Transactions.
163pub mod tx {
164    pub use cosmos_sdk_proto::cosmos::tx::v1beta1::*;
165    /// Transaction signing support.
166    pub mod signing {
167        pub use cosmos_sdk_proto::cosmos::tx::signing::v1beta1::*;
168    }
169}
170
171/// Services for the upgrade module.
172pub mod upgrade {
173    pub use cosmos_sdk_proto::cosmos::upgrade::v1beta1::*;
174}
175
176/// Services and tx's for the vesting module.
177pub mod vesting {
178    pub use cosmos_sdk_proto::cosmos::vesting::v1beta1::*;
179}