Skip to content

Commit 669fc8c

Browse files
committed
deps: update node
1 parent 807aa33 commit 669fc8c

20 files changed

+3168
-31
lines changed

Diff for: Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ grpc = []
4646
# @@protoc_deletion_point(features)
4747
# This section is automatically generated by protoc-gen-prost-crate.
4848
# Changes in this area may be lost on regeneration.
49-
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_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"]
49+
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"]
5050
amino = []
5151
capability_v1 = []
5252
cosmos_app_runtime_v1alpha1 = []
@@ -125,6 +125,8 @@ ethermint_types_v1 = ["cosmos_auth_v1beta1"]
125125
evmos_epochs_v1 = ["cosmos_base_query_v1beta1"]
126126
evmos_erc20_v1 = ["cosmos_bank_v1beta1","cosmos_base_query_v1beta1","cosmos_base_v1beta1"]
127127
haqq_coinomics_v1 = ["cosmos_base_v1beta1"]
128+
haqq_dao_module_v1 = []
129+
haqq_dao_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1"]
128130
haqq_liquidvesting_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1","cosmos_vesting_v1beta1"]
129131
haqq_vesting_v1 = ["cosmos_base_v1beta1","cosmos_vesting_v1beta1"]
130132
ibc_applications_fee_v1 = ["cosmos_base_query_v1beta1","cosmos_base_v1beta1","ibc_core_channel_v1"]

Diff for: haqq-node

Submodule haqq-node updated 175 files

Diff for: src/gen/haqq.dao.module.v1.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// @generated
2+
/// Module is the config object of the distribution module.
3+
#[derive(::derive_builder::Builder)]
4+
#[allow(clippy::derive_partial_eq_without_eq)]
5+
#[derive(Clone, PartialEq, ::prost::Message)]
6+
pub struct Module {
7+
/// max_metadata_len defines the maximum proposal metadata length.
8+
/// Defaults to 5000 if not explicitly set.
9+
#[prost(uint64, tag="1")]
10+
pub max_metadata_len: u64,
11+
/// authority defines the custom module authority. If not set, defaults to the dao module.
12+
#[prost(string, tag="2")]
13+
pub authority: ::prost::alloc::string::String,
14+
}
15+
include!("haqq.dao.module.v1.serde.rs");
16+
// @@protoc_insertion_point(module)

Diff for: src/gen/haqq.dao.module.v1.serde.rs

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// @generated
2+
impl serde::Serialize for Module {
3+
#[allow(deprecated)]
4+
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
5+
where
6+
S: serde::Serializer,
7+
{
8+
use serde::ser::SerializeStruct;
9+
let mut len = 0;
10+
if self.max_metadata_len != 0 {
11+
len += 1;
12+
}
13+
if !self.authority.is_empty() {
14+
len += 1;
15+
}
16+
let mut struct_ser = serializer.serialize_struct("haqq.dao.module.v1.Module", len)?;
17+
if self.max_metadata_len != 0 {
18+
#[allow(clippy::needless_borrow)]
19+
struct_ser.serialize_field("maxMetadataLen", ToString::to_string(&self.max_metadata_len).as_str())?;
20+
}
21+
if !self.authority.is_empty() {
22+
struct_ser.serialize_field("authority", &self.authority)?;
23+
}
24+
struct_ser.end()
25+
}
26+
}
27+
impl<'de> serde::Deserialize<'de> for Module {
28+
#[allow(deprecated)]
29+
fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
30+
where
31+
D: serde::Deserializer<'de>,
32+
{
33+
const FIELDS: &[&str] = &[
34+
"max_metadata_len",
35+
"maxMetadataLen",
36+
"authority",
37+
];
38+
39+
#[allow(clippy::enum_variant_names)]
40+
enum GeneratedField {
41+
MaxMetadataLen,
42+
Authority,
43+
}
44+
impl<'de> serde::Deserialize<'de> for GeneratedField {
45+
fn deserialize<D>(deserializer: D) -> std::result::Result<GeneratedField, D::Error>
46+
where
47+
D: serde::Deserializer<'de>,
48+
{
49+
struct GeneratedVisitor;
50+
51+
impl<'de> serde::de::Visitor<'de> for GeneratedVisitor {
52+
type Value = GeneratedField;
53+
54+
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
55+
write!(formatter, "expected one of: {:?}", &FIELDS)
56+
}
57+
58+
#[allow(unused_variables)]
59+
fn visit_str<E>(self, value: &str) -> std::result::Result<GeneratedField, E>
60+
where
61+
E: serde::de::Error,
62+
{
63+
match value {
64+
"maxMetadataLen" | "max_metadata_len" => Ok(GeneratedField::MaxMetadataLen),
65+
"authority" => Ok(GeneratedField::Authority),
66+
_ => Err(serde::de::Error::unknown_field(value, FIELDS)),
67+
}
68+
}
69+
}
70+
deserializer.deserialize_identifier(GeneratedVisitor)
71+
}
72+
}
73+
struct GeneratedVisitor;
74+
impl<'de> serde::de::Visitor<'de> for GeneratedVisitor {
75+
type Value = Module;
76+
77+
fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
78+
formatter.write_str("struct haqq.dao.module.v1.Module")
79+
}
80+
81+
fn visit_map<V>(self, mut map_: V) -> std::result::Result<Module, V::Error>
82+
where
83+
V: serde::de::MapAccess<'de>,
84+
{
85+
let mut max_metadata_len__ = None;
86+
let mut authority__ = None;
87+
while let Some(k) = map_.next_key()? {
88+
match k {
89+
GeneratedField::MaxMetadataLen => {
90+
if max_metadata_len__.is_some() {
91+
return Err(serde::de::Error::duplicate_field("maxMetadataLen"));
92+
}
93+
max_metadata_len__ =
94+
Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
95+
;
96+
}
97+
GeneratedField::Authority => {
98+
if authority__.is_some() {
99+
return Err(serde::de::Error::duplicate_field("authority"));
100+
}
101+
authority__ = Some(map_.next_value()?);
102+
}
103+
}
104+
}
105+
Ok(Module {
106+
max_metadata_len: max_metadata_len__.unwrap_or_default(),
107+
authority: authority__.unwrap_or_default(),
108+
})
109+
}
110+
}
111+
deserializer.deserialize_struct("haqq.dao.module.v1.Module", FIELDS, GeneratedVisitor)
112+
}
113+
}

Diff for: src/gen/haqq.dao.v1.rs

+192
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
// @generated
2+
/// Params defines the parameters for the dao module.
3+
#[derive(::derive_builder::Builder)]
4+
#[allow(clippy::derive_partial_eq_without_eq)]
5+
#[derive(Clone, PartialEq, ::prost::Message)]
6+
pub struct Params {
7+
/// enable_dao is the parameter to enable the module functionality.
8+
#[prost(bool, tag="1")]
9+
pub enable_dao: bool,
10+
/// allowed_collaterals is the allowed collateral values.
11+
#[prost(message, repeated, tag="2")]
12+
pub allowed_collaterals: ::prost::alloc::vec::Vec<AllowedCollateral>,
13+
}
14+
#[derive(::derive_builder::Builder)]
15+
#[allow(clippy::derive_partial_eq_without_eq)]
16+
#[derive(Clone, PartialEq, ::prost::Message)]
17+
pub struct AllowedCollateral {
18+
/// value is the allowed collateral value.
19+
#[prost(string, tag="1")]
20+
pub value: ::prost::alloc::string::String,
21+
/// type is the allowed collateral value type.
22+
#[prost(enumeration="CollateralValueType", tag="2")]
23+
pub r#type: i32,
24+
}
25+
/// CollateralValueType defines the type of collateral value.
26+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
27+
#[repr(i32)]
28+
pub enum CollateralValueType {
29+
/// COLLATERAL_VALUE_TYPE_UNSPECIFIED is the unspecified collateral value type.
30+
Unspecified = 0,
31+
/// COLLATERAL_VALUE_TYPE_STRICT is the strict collateral value type.
32+
Strict = 1,
33+
/// COLLATERAL_VALUE_TYPE_MASK is the mask collateral value type.
34+
Mask = 2,
35+
}
36+
impl CollateralValueType {
37+
/// String value of the enum field names used in the ProtoBuf definition.
38+
///
39+
/// The values are not transformed in any way and thus are considered stable
40+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
41+
pub fn as_str_name(&self) -> &'static str {
42+
match self {
43+
CollateralValueType::Unspecified => "COLLATERAL_VALUE_TYPE_UNSPECIFIED",
44+
CollateralValueType::Strict => "COLLATERAL_VALUE_TYPE_STRICT",
45+
CollateralValueType::Mask => "COLLATERAL_VALUE_TYPE_MASK",
46+
}
47+
}
48+
/// Creates an enum from field names used in the ProtoBuf definition.
49+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
50+
match value {
51+
"COLLATERAL_VALUE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
52+
"COLLATERAL_VALUE_TYPE_STRICT" => Some(Self::Strict),
53+
"COLLATERAL_VALUE_TYPE_MASK" => Some(Self::Mask),
54+
_ => None,
55+
}
56+
}
57+
}
58+
/// GenesisState defines the gov module's genesis state.
59+
#[derive(::derive_builder::Builder)]
60+
#[allow(clippy::derive_partial_eq_without_eq)]
61+
#[derive(Clone, PartialEq, ::prost::Message)]
62+
pub struct GenesisState {
63+
/// params defines all the parameters of the module.
64+
#[prost(message, optional, tag="1")]
65+
pub params: ::core::option::Option<Params>,
66+
/// balances is an array containing the balances of all the dao members' accounts.
67+
#[prost(message, repeated, tag="2")]
68+
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
70+
/// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
71+
#[prost(message, repeated, tag="3")]
72+
pub total_balance: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
73+
}
74+
/// Balance defines an account address and balance pair used in the bank module's
75+
/// genesis state.
76+
#[derive(::derive_builder::Builder)]
77+
#[allow(clippy::derive_partial_eq_without_eq)]
78+
#[derive(Clone, PartialEq, ::prost::Message)]
79+
pub struct Balance {
80+
/// address is the address of the balance holder.
81+
#[prost(string, tag="1")]
82+
pub address: ::prost::alloc::string::String,
83+
/// coins defines the different coins this balance holds.
84+
#[prost(message, repeated, tag="2")]
85+
pub coins: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
86+
}
87+
/// QueryBalanceRequest is the request type for the Query/Balance RPC method.
88+
#[derive(::derive_builder::Builder)]
89+
#[allow(clippy::derive_partial_eq_without_eq)]
90+
#[derive(Clone, PartialEq, ::prost::Message)]
91+
pub struct QueryBalanceRequest {
92+
/// address is the address to query balances for.
93+
#[prost(string, tag="1")]
94+
pub address: ::prost::alloc::string::String,
95+
/// denom is the coin denom to query balances for.
96+
#[prost(string, tag="2")]
97+
pub denom: ::prost::alloc::string::String,
98+
}
99+
/// QueryBalanceResponse is the response type for the Query/Balance RPC method.
100+
#[derive(::derive_builder::Builder)]
101+
#[allow(clippy::derive_partial_eq_without_eq)]
102+
#[derive(Clone, PartialEq, ::prost::Message)]
103+
pub struct QueryBalanceResponse {
104+
/// balance is the balance of the coin.
105+
#[prost(message, optional, tag="1")]
106+
pub balance: ::core::option::Option<super::super::super::cosmos::base::v1beta1::Coin>,
107+
}
108+
/// QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
109+
#[derive(::derive_builder::Builder)]
110+
#[allow(clippy::derive_partial_eq_without_eq)]
111+
#[derive(Clone, PartialEq, ::prost::Message)]
112+
pub struct QueryAllBalancesRequest {
113+
/// address is the address to query balances for.
114+
#[prost(string, tag="1")]
115+
pub address: ::prost::alloc::string::String,
116+
/// pagination defines an optional pagination for the request.
117+
#[prost(message, optional, tag="2")]
118+
pub pagination: ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
119+
}
120+
/// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC
121+
/// method.
122+
#[derive(::derive_builder::Builder)]
123+
#[allow(clippy::derive_partial_eq_without_eq)]
124+
#[derive(Clone, PartialEq, ::prost::Message)]
125+
pub struct QueryAllBalancesResponse {
126+
/// balances is the balances of all the coins.
127+
#[prost(message, repeated, tag="1")]
128+
pub balances: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
129+
/// pagination defines the pagination in the response.
130+
#[prost(message, optional, tag="2")]
131+
pub pagination: ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
132+
}
133+
/// QueryTotalBalanceRequest is the request type for the Query/TotalBalance RPC
134+
/// method.
135+
#[derive(::derive_builder::Builder)]
136+
#[allow(clippy::derive_partial_eq_without_eq)]
137+
#[derive(Clone, PartialEq, ::prost::Message)]
138+
pub struct QueryTotalBalanceRequest {
139+
/// pagination defines an optional pagination for the request.
140+
///
141+
/// Since: cosmos-sdk 0.43
142+
#[prost(message, optional, tag="1")]
143+
pub pagination: ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageRequest>,
144+
}
145+
/// QueryTotalBalanceResponse is the response type for the Query/TotalBalance RPC
146+
/// method
147+
#[derive(::derive_builder::Builder)]
148+
#[allow(clippy::derive_partial_eq_without_eq)]
149+
#[derive(Clone, PartialEq, ::prost::Message)]
150+
pub struct QueryTotalBalanceResponse {
151+
/// supply is the supply of the coins
152+
#[prost(message, repeated, tag="1")]
153+
pub total_balance: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
154+
/// pagination defines the pagination in the response.
155+
///
156+
/// Since: cosmos-sdk 0.43
157+
#[prost(message, optional, tag="2")]
158+
pub pagination: ::core::option::Option<super::super::super::cosmos::base::query::v1beta1::PageResponse>,
159+
}
160+
/// QueryParamsRequest defines the request type for querying x/dao parameters.
161+
#[derive(::derive_builder::Builder)]
162+
#[allow(clippy::derive_partial_eq_without_eq)]
163+
#[derive(Clone, PartialEq, ::prost::Message)]
164+
pub struct QueryParamsRequest {
165+
}
166+
/// QueryParamsResponse defines the response type for querying x/dao parameters.
167+
#[derive(::derive_builder::Builder)]
168+
#[allow(clippy::derive_partial_eq_without_eq)]
169+
#[derive(Clone, PartialEq, ::prost::Message)]
170+
pub struct QueryParamsResponse {
171+
#[prost(message, optional, tag="1")]
172+
pub params: ::core::option::Option<Params>,
173+
}
174+
/// MsgFund allows an account to directly fund the dao.
175+
#[derive(::derive_builder::Builder)]
176+
#[allow(clippy::derive_partial_eq_without_eq)]
177+
#[derive(Clone, PartialEq, ::prost::Message)]
178+
pub struct MsgFund {
179+
#[prost(message, repeated, tag="1")]
180+
pub amount: ::prost::alloc::vec::Vec<super::super::super::cosmos::base::v1beta1::Coin>,
181+
#[prost(string, tag="2")]
182+
pub depositor: ::prost::alloc::string::String,
183+
}
184+
/// MsgFundResponse defines the Msg/Fund response type.
185+
#[derive(::derive_builder::Builder)]
186+
#[allow(clippy::derive_partial_eq_without_eq)]
187+
#[derive(Clone, PartialEq, ::prost::Message)]
188+
pub struct MsgFundResponse {
189+
}
190+
include!("haqq.dao.v1.serde.rs");
191+
include!("haqq.dao.v1.tonic.rs");
192+
// @@protoc_insertion_point(module)

0 commit comments

Comments
 (0)