Skip to content

Commit

Permalink
penumbra: more workshopping in protofiles
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 25, 2024
1 parent 92bab80 commit c505c24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions crates/core/asset/src/asset/denom_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl From<&Inner> for pb::Metadata {
display: inner.units[inner.display_index].denom.clone(),
name: inner.name.clone(),
symbol: inner.symbol.clone(),
penumbra_sdk_asset_id: Some(inner.id.into()),
penumbra_asset_id: Some(inner.id.into()),
denom_units: inner.units.clone().into_iter().map(|x| x.into()).collect(),
images: inner.images.clone(),
badges: inner.badges.clone(),
Expand All @@ -85,7 +85,7 @@ impl TryFrom<pb::Metadata> for Inner {
// Compute the ID from the base denom to ensure we don't get confused.
let id = Id::from_raw_denom(&base_denom);
// If the ID was supplied, we should check that it's consistent with the base denom.
if let Some(supplied_id) = value.penumbra_sdk_asset_id {
if let Some(supplied_id) = value.penumbra_asset_id {
let supplied_id = Id::try_from(supplied_id)?;
ensure!(
id == supplied_id,
Expand Down
3 changes: 1 addition & 2 deletions crates/core/component/funding/src/component/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ pub fn register_metrics() {
);
}

pub const TOTAL_VALIDATOR_REWARDS: &str =
"penumbra_funding_total_validator_rewards_staking_token";
pub const TOTAL_VALIDATOR_REWARDS: &str = "penumbra_funding_total_validator_rewards_staking_token";
pub const VALIDATOR_FUNDING_VS_BUDGET_DIFFERENCE: &str =
"penumbra_funding_validator_vs_budget_difference_staking_token";
pub const FETCH_FUNDING_QUEUE_LATENCY: &str =
Expand Down
7 changes: 0 additions & 7 deletions crates/proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,6 @@ pub mod penumbra {
}
}

pub mod cnidarium {
pub mod v1 {
include!("gen/penumbra.cnidarium.v1.rs");
include!("gen/penumbra.cnidarium.v1.serde.rs");
}
}

pub mod util {
pub mod tendermint_proxy {
pub mod v1 {
Expand Down

0 comments on commit c505c24

Please sign in to comment.