Skip to content

Commit 8b49bad

Browse files
authored
Docs, next batch
1 parent 4dee39f commit 8b49bad

File tree

6 files changed

+6
-39
lines changed

6 files changed

+6
-39
lines changed

toolkit/block-producer-metadata/pallet/src/benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![cfg(feature = "runtime-benchmarks")]
12
//! Benchmarking setup for pallet-address-associations
23
//!
34
//! ## Running benchmarks
@@ -64,7 +65,6 @@
6465
//!
6566
//! Afterwards, the pallet can be benchmarked using Polkadot SDK's [omini-bencher](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/utils/frame/omni-bencher).
6667
67-
#![cfg(any(feature = "runtime-benchmarks", doc))]
6868
use super::*;
6969
use frame_benchmarking::v2::*;
7070
use frame_system::RawOrigin;

toolkit/block-producer-metadata/pallet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
//!
8787
//! ### Benchmarking
8888
//!
89-
//! See documentation of [benchmarking] module.
89+
//! See documentation of benchmarking module.
9090
//!
9191
//! ### RPC
9292
//!

toolkit/governed-map/pallet/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
//! through the [SubstrateWeight][crate::weights::SubstrateWeight] type.
8787
//!
8888
//! However, since data size limits and the on-change logic both can affect the weights, it is advisable to run
89-
//! your own benchmark to account for their impact. See the documentation on [benchmarking] for details.
89+
//! your own benchmark to account for their impact. See the documentation on benchmarking module for details.
9090
//!
9191
//! ### Configuring the pallet
9292
//!
@@ -170,7 +170,7 @@ mod tests;
170170
#[cfg(test)]
171171
mod mock;
172172

173-
#[cfg(any(feature = "runtime-benchmarks", doc))]
173+
#[cfg(feature = "runtime-benchmarks")]
174174
pub mod benchmarking;
175175

176176
#[frame_support::pallet]

toolkit/partner-chains-cli/src/ogmios/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,6 @@ pub struct ShelleyGenesisConfiguration {
5353
pub start_time: u64,
5454
}
5555

56-
#[derive(Clone, Debug, PartialEq)]
57-
pub struct Utxo {
58-
pub tx_id: [u8; 32],
59-
pub index: u32,
60-
pub value: UtxoValue,
61-
}
62-
63-
type AssetName = Vec<u8>;
64-
type PolicyId = [u8; 28];
65-
66-
#[derive(Clone, Debug, PartialEq)]
67-
pub struct UtxoValue {
68-
pub lovelace: u64,
69-
pub assets: Vec<(PolicyId, Vec<(AssetName, i128)>)>,
70-
}
71-
7256
pub fn ogmios_request(
7357
config: &ServiceConfig,
7458
req: OgmiosRequest,

toolkit/partner-chains-cli/src/prepare_configuration/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl<T: QueryNetwork> GetScriptsData for T {
263263
.map_err(|e| format!("Ogmios error: {e}"))?
264264
.network
265265
.to_csl();
266-
get_scripts_data(genesis_utxo, network).map_err(|e| (e.to_string()))
266+
get_scripts_data(genesis_utxo, network).map_err(|e| e.to_string())
267267
}
268268
}
269269

toolkit/partner-chains-cli/src/register/mod.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use partner_chains_cardano_offchain::register::run_register;
77
use plutus_datum_derive::ToDatum;
88
use secp256k1::PublicKey;
99
use sidechain_domain::*;
10-
use std::{convert::Infallible, fmt::Display, str::FromStr};
10+
use std::{fmt::Display, str::FromStr};
1111

1212
use crate::cmd_traits::Register;
1313

@@ -79,23 +79,6 @@ impl From<CandidateKeyParam> for CandidateKey {
7979
}
8080
}
8181

82-
#[derive(Clone, Debug)]
83-
pub struct PlainPublicKeyParam(pub String);
84-
85-
impl Display for PlainPublicKeyParam {
86-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87-
write!(f, "{}", self.0)
88-
}
89-
}
90-
91-
impl FromStr for PlainPublicKeyParam {
92-
type Err = Infallible;
93-
94-
fn from_str(s: &str) -> Result<Self, Self::Err> {
95-
Ok(PlainPublicKeyParam(s.to_string()))
96-
}
97-
}
98-
9982
#[derive(Clone, Debug)]
10083
pub struct StakePoolSigningKeyParam(pub ed25519_zebra::SigningKey);
10184

0 commit comments

Comments
 (0)