Skip to content

Commit 25194f6

Browse files
authored
Merge pull request #25 from haqq-network/feat/update-proto
feat: update proto
2 parents 9003585 + 1024d2a commit 25194f6

15 files changed

+168
-164
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ grpc = []
4747
# @@protoc_deletion_point(features)
4848
# This section is automatically generated by protoc-gen-prost-crate.
4949
# Changes in this area may be lost on regeneration.
50-
proto_full = ["amino","capability_v1","cosmos_app_runtime_v1alpha1","cosmos_app_v1alpha1","cosmos_auth_module_v1","cosmos_auth_v1beta1","cosmos_authz_module_v1","cosmos_authz_v1beta1","cosmos_autocli_v1","cosmos_bank_module_v1","cosmos_bank_v1beta1","cosmos_base_abci_v1beta1","cosmos_base_kv_v1beta1","cosmos_base_node_v1beta1","cosmos_base_query_v1beta1","cosmos_base_reflection_v1beta1","cosmos_base_reflection_v2alpha1","cosmos_base_snapshots_v1beta1","cosmos_base_store_v1beta1","cosmos_base_tendermint_v1beta1","cosmos_base_v1beta1","cosmos_capability_module_v1","cosmos_capability_v1beta1","cosmos_consensus_module_v1","cosmos_consensus_v1","cosmos_crisis_module_v1","cosmos_crisis_v1beta1","cosmos_crypto_ed25519","cosmos_crypto_hd_v1","cosmos_crypto_keyring_v1","cosmos_crypto_multisig","cosmos_crypto_multisig_v1beta1","cosmos_crypto_secp256k1","cosmos_crypto_secp256r1","cosmos_distribution_module_v1","cosmos_distribution_v1beta1","cosmos_evidence_module_v1","cosmos_evidence_v1beta1","cosmos_feegrant_module_v1","cosmos_feegrant_v1beta1","cosmos_genutil_module_v1","cosmos_genutil_v1beta1","cosmos_gov_module_v1","cosmos_gov_v1","cosmos_gov_v1beta1","cosmos_group_module_v1","cosmos_group_v1","cosmos_ics23_v1","cosmos_mint_module_v1","cosmos_mint_v1beta1","cosmos_msg_v1","cosmos_orm_module_v1alpha1","cosmos_orm_query_v1alpha1","cosmos_orm_v1","cosmos_orm_v1alpha1","cosmos_params_module_v1","cosmos_params_v1beta1","cosmos_query_v1","cosmos_reflection_v1","cosmos_slashing_module_v1","cosmos_slashing_v1beta1","cosmos_staking_module_v1","cosmos_staking_v1beta1","cosmos_tx_config_v1","cosmos_tx_signing_v1beta1","cosmos_tx_v1beta1","cosmos_upgrade_module_v1","cosmos_upgrade_v1beta1","cosmos_vesting_module_v1","cosmos_vesting_v1beta1","cosmos_proto","ethermint_crypto_v1_ethsecp256k1","ethermint_evm_v1","ethermint_feemarket_v1","ethermint_types_v1","evmos_epochs_v1","evmos_erc20_v1","haqq_coinomics_v1","haqq_dao_module_v1","haqq_dao_v1","haqq_liquidvesting_v1","haqq_vesting_v1","ibc_applications_fee_v1","ibc_applications_interchain_accounts_controller_v1","ibc_applications_interchain_accounts_genesis_v1","ibc_applications_interchain_accounts_host_v1","ibc_applications_interchain_accounts_v1","ibc_applications_transfer_v1","ibc_applications_transfer_v2","ibc_core_channel_v1","ibc_core_client_v1","ibc_core_commitment_v1","ibc_core_connection_v1","ibc_core_types_v1","ibc_lightclients_localhost_v2","ibc_lightclients_solomachine_v2","ibc_lightclients_solomachine_v3","ibc_lightclients_tendermint_v1","tendermint_abci","tendermint_crypto","tendermint_libs_bits","tendermint_p2p","tendermint_types","tendermint_version"]
50+
proto_full = ["amino","capability_v1","cosmos_app_runtime_v1alpha1","cosmos_app_v1alpha1","cosmos_auth_module_v1","cosmos_auth_v1beta1","cosmos_authz_module_v1","cosmos_authz_v1beta1","cosmos_autocli_v1","cosmos_bank_module_v1","cosmos_bank_v1beta1","cosmos_base_abci_v1beta1","cosmos_base_kv_v1beta1","cosmos_base_node_v1beta1","cosmos_base_query_v1beta1","cosmos_base_reflection_v1beta1","cosmos_base_reflection_v2alpha1","cosmos_base_snapshots_v1beta1","cosmos_base_store_v1beta1","cosmos_base_tendermint_v1beta1","cosmos_base_v1beta1","cosmos_capability_module_v1","cosmos_capability_v1beta1","cosmos_consensus_module_v1","cosmos_consensus_v1","cosmos_crisis_module_v1","cosmos_crisis_v1beta1","cosmos_crypto_ed25519","cosmos_crypto_hd_v1","cosmos_crypto_keyring_v1","cosmos_crypto_multisig","cosmos_crypto_multisig_v1beta1","cosmos_crypto_secp256k1","cosmos_crypto_secp256r1","cosmos_distribution_module_v1","cosmos_distribution_v1beta1","cosmos_evidence_module_v1","cosmos_evidence_v1beta1","cosmos_feegrant_module_v1","cosmos_feegrant_v1beta1","cosmos_genutil_module_v1","cosmos_genutil_v1beta1","cosmos_gov_module_v1","cosmos_gov_v1","cosmos_gov_v1beta1","cosmos_group_module_v1","cosmos_group_v1","cosmos_ics23_v1","cosmos_mint_module_v1","cosmos_mint_v1beta1","cosmos_msg_v1","cosmos_orm_module_v1alpha1","cosmos_orm_query_v1alpha1","cosmos_orm_v1","cosmos_orm_v1alpha1","cosmos_params_module_v1","cosmos_params_v1beta1","cosmos_query_v1","cosmos_reflection_v1","cosmos_slashing_module_v1","cosmos_slashing_v1beta1","cosmos_staking_module_v1","cosmos_staking_v1beta1","cosmos_tx_config_v1","cosmos_tx_signing_v1beta1","cosmos_tx_v1beta1","cosmos_upgrade_module_v1","cosmos_upgrade_v1beta1","cosmos_vesting_module_v1","cosmos_vesting_v1beta1","cosmos_proto","ethermint_crypto_v1_ethsecp256k1","ethermint_evm_v1","ethermint_feemarket_v1","ethermint_types_v1","evmos_epochs_v1","evmos_erc20_v1","haqq_coinomics_v1","haqq_liquidvesting_v1","haqq_ucdao_module_v1","haqq_ucdao_v1","haqq_vesting_v1","ibc_applications_fee_v1","ibc_applications_interchain_accounts_controller_v1","ibc_applications_interchain_accounts_genesis_v1","ibc_applications_interchain_accounts_host_v1","ibc_applications_interchain_accounts_v1","ibc_applications_transfer_v1","ibc_applications_transfer_v2","ibc_core_channel_v1","ibc_core_client_v1","ibc_core_commitment_v1","ibc_core_connection_v1","ibc_core_types_v1","ibc_lightclients_localhost_v2","ibc_lightclients_solomachine_v2","ibc_lightclients_solomachine_v3","ibc_lightclients_tendermint_v1","tendermint_abci","tendermint_crypto","tendermint_libs_bits","tendermint_p2p","tendermint_types","tendermint_version"]
5151
amino = []
5252
capability_v1 = []
5353
cosmos_app_runtime_v1alpha1 = []
@@ -126,9 +126,9 @@ ethermint_types_v1 = ["cosmos_auth_v1beta1"]
126126
evmos_epochs_v1 = ["cosmos_base_query_v1beta1"]
127127
evmos_erc20_v1 = ["cosmos_bank_v1beta1","cosmos_base_query_v1beta1","cosmos_base_v1beta1"]
128128
haqq_coinomics_v1 = ["cosmos_base_v1beta1"]
129-
haqq_dao_module_v1 = []
130-
haqq_dao_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1"]
131129
haqq_liquidvesting_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1","cosmos_vesting_v1beta1"]
130+
haqq_ucdao_module_v1 = []
131+
haqq_ucdao_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1"]
132132
haqq_vesting_v1 = ["cosmos_base_v1beta1","cosmos_vesting_v1beta1"]
133133
ibc_applications_fee_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1","ibc_core_channel_v1"]
134134
ibc_applications_interchain_accounts_controller_v1 = ["ibc_applications_interchain_accounts_v1"]

src/gen/haqq.dao.module.v1.rs renamed to src/gen/haqq.ucdao.module.v1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pub struct Module {
88
/// Defaults to 5000 if not explicitly set.
99
#[prost(uint64, tag="1")]
1010
pub max_metadata_len: u64,
11-
/// authority defines the custom module authority. If not set, defaults to the dao module.
11+
/// authority defines the custom module authority. If not set, defaults to the ucdao module.
1212
#[prost(string, tag="2")]
1313
pub authority: ::prost::alloc::string::String,
1414
}
15-
include!("haqq.dao.module.v1.serde.rs");
15+
include!("haqq.ucdao.module.v1.serde.rs");
1616
// @@protoc_insertion_point(module)

src/gen/haqq.dao.module.v1.serde.rs renamed to src/gen/haqq.ucdao.module.v1.serde.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl serde::Serialize for Module {
1313
if !self.authority.is_empty() {
1414
len += 1;
1515
}
16-
let mut struct_ser = serializer.serialize_struct("haqq.dao.module.v1.Module", len)?;
16+
let mut struct_ser = serializer.serialize_struct("haqq.ucdao.module.v1.Module", len)?;
1717
if self.max_metadata_len != 0 {
1818
#[allow(clippy::needless_borrow)]
1919
struct_ser.serialize_field("maxMetadataLen", ToString::to_string(&self.max_metadata_len).as_str())?;
@@ -75,7 +75,7 @@ impl<'de> serde::Deserialize<'de> for Module {
7575
type Value = Module;
7676

7777
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
78-
formatter.write_str("struct haqq.dao.module.v1.Module")
78+
formatter.write_str("struct haqq.ucdao.module.v1.Module")
7979
}
8080

8181
fn visit_map<V>(self, mut map_: V) -> std::result::Result<Module, V::Error>
@@ -108,6 +108,6 @@ impl<'de> serde::Deserialize<'de> for Module {
108108
})
109109
}
110110
}
111-
deserializer.deserialize_struct("haqq.dao.module.v1.Module", FIELDS, GeneratedVisitor)
111+
deserializer.deserialize_struct("haqq.ucdao.module.v1.Module", FIELDS, GeneratedVisitor)
112112
}
113113
}

src/gen/haqq.dao.v1.rs renamed to src/gen/haqq.ucdao.v1.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ pub struct GenesisState {
6363
/// params defines all the parameters of the module.
6464
#[prost(message, optional, tag="1")]
6565
pub params: ::core::option::Option<Params>,
66-
/// balances is an array containing the balances of all the dao members' accounts.
66+
/// balances is an array containing the balances of all the ucdao members' accounts.
6767
#[prost(message, repeated, tag="2")]
6868
pub balances: ::prost::alloc::vec::Vec<Balance>,
69-
/// total_balance represents the total balance of the dao module. If it is left empty, then supply will be calculated based on the provided
69+
/// total_balance represents the total balance of the ucdao module. If it is left empty, then supply will be calculated based on the provided
7070
/// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
7171
#[prost(message, repeated, tag="3")]
7272
pub total_balance: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
@@ -157,21 +157,21 @@ pub struct QueryTotalBalanceResponse {
157157
#[prost(message, optional, tag="2")]
158158
pub pagination: ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
159159
}
160-
/// QueryParamsRequest defines the request type for querying x/dao parameters.
160+
/// QueryParamsRequest defines the request type for querying x/ucdao parameters.
161161
#[derive(::derive_builder::Builder)]
162162
#[allow(clippy::derive_partial_eq_without_eq)]
163163
#[derive(Clone, PartialEq, ::prost::Message)]
164164
pub struct QueryParamsRequest {
165165
}
166-
/// QueryParamsResponse defines the response type for querying x/dao parameters.
166+
/// QueryParamsResponse defines the response type for querying x/ucdao parameters.
167167
#[derive(::derive_builder::Builder)]
168168
#[allow(clippy::derive_partial_eq_without_eq)]
169169
#[derive(Clone, PartialEq, ::prost::Message)]
170170
pub struct QueryParamsResponse {
171171
#[prost(message, optional, tag="1")]
172172
pub params: ::core::option::Option<Params>,
173173
}
174-
/// MsgFund allows an account to directly fund the dao.
174+
/// MsgFund allows an account to directly fund the ucdao.
175175
#[derive(::derive_builder::Builder)]
176176
#[allow(clippy::derive_partial_eq_without_eq)]
177177
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -192,10 +192,10 @@ pub struct MsgFundResponse {
192192
#[allow(clippy::derive_partial_eq_without_eq)]
193193
#[derive(Clone, PartialEq, ::prost::Message)]
194194
pub struct MsgTransferOwnership {
195-
/// owner is a current owner of the shares in dao.
195+
/// owner is a current owner of the shares in ucdao.
196196
#[prost(string, tag="1")]
197197
pub owner: ::prost::alloc::string::String,
198-
/// new_owner is a new owner of the shares in dao.
198+
/// new_owner is a new owner of the shares in ucdao.
199199
#[prost(string, tag="2")]
200200
pub new_owner: ::prost::alloc::string::String,
201201
}
@@ -205,6 +205,6 @@ pub struct MsgTransferOwnership {
205205
#[derive(Clone, PartialEq, ::prost::Message)]
206206
pub struct MsgTransferOwnershipResponse {
207207
}
208-
include!("haqq.dao.v1.serde.rs");
209-
include!("haqq.dao.v1.tonic.rs");
208+
include!("haqq.ucdao.v1.serde.rs");
209+
include!("haqq.ucdao.v1.tonic.rs");
210210
// @@protoc_insertion_point(module)

0 commit comments

Comments
 (0)