File tree Expand file tree Collapse file tree 6 files changed +6
-39
lines changed
block-producer-metadata/pallet/src Expand file tree Collapse file tree 6 files changed +6
-39
lines changed Original file line number Diff line number Diff line change 1+ #![ cfg( feature = "runtime-benchmarks" ) ]
12//! Benchmarking setup for pallet-address-associations
23//!
34//! ## Running benchmarks
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) ) ]
6868use super :: * ;
6969use frame_benchmarking:: v2:: * ;
7070use frame_system:: RawOrigin ;
Original file line number Diff line number Diff line change 8686//!
8787//! ### Benchmarking
8888//!
89- //! See documentation of [ benchmarking] module.
89+ //! See documentation of benchmarking module.
9090//!
9191//! ### RPC
9292//!
Original file line number Diff line number Diff line change 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) ]
171171mod mock;
172172
173- #[ cfg( any ( feature = "runtime-benchmarks" , doc ) ) ]
173+ #[ cfg( feature = "runtime-benchmarks" ) ]
174174pub mod benchmarking;
175175
176176#[ frame_support:: pallet]
Original file line number Diff line number Diff 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-
7256pub fn ogmios_request (
7357 config : & ServiceConfig ,
7458 req : OgmiosRequest ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use partner_chains_cardano_offchain::register::run_register;
77use plutus_datum_derive:: ToDatum ;
88use secp256k1:: PublicKey ;
99use sidechain_domain:: * ;
10- use std:: { convert :: Infallible , fmt:: Display , str:: FromStr } ;
10+ use std:: { fmt:: Display , str:: FromStr } ;
1111
1212use 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 ) ]
10083pub struct StakePoolSigningKeyParam ( pub ed25519_zebra:: SigningKey ) ;
10184
You can’t perform that action at this time.
0 commit comments