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" ) ]
1
2
//! Benchmarking setup for pallet-address-associations
2
3
//!
3
4
//! ## Running benchmarks
64
65
//!
65
66
//! 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).
66
67
67
- #![ cfg( any( feature = "runtime-benchmarks" , doc) ) ]
68
68
use super :: * ;
69
69
use frame_benchmarking:: v2:: * ;
70
70
use frame_system:: RawOrigin ;
Original file line number Diff line number Diff line change 86
86
//!
87
87
//! ### Benchmarking
88
88
//!
89
- //! See documentation of [ benchmarking] module.
89
+ //! See documentation of benchmarking module.
90
90
//!
91
91
//! ### RPC
92
92
//!
Original file line number Diff line number Diff line change 86
86
//! through the [SubstrateWeight][crate::weights::SubstrateWeight] type.
87
87
//!
88
88
//! 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.
90
90
//!
91
91
//! ### Configuring the pallet
92
92
//!
@@ -170,7 +170,7 @@ mod tests;
170
170
#[ cfg( test) ]
171
171
mod mock;
172
172
173
- #[ cfg( any ( feature = "runtime-benchmarks" , doc ) ) ]
173
+ #[ cfg( feature = "runtime-benchmarks" ) ]
174
174
pub mod benchmarking;
175
175
176
176
#[ frame_support:: pallet]
Original file line number Diff line number Diff line change @@ -53,22 +53,6 @@ pub struct ShelleyGenesisConfiguration {
53
53
pub start_time : u64 ,
54
54
}
55
55
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
-
72
56
pub fn ogmios_request (
73
57
config : & ServiceConfig ,
74
58
req : OgmiosRequest ,
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ impl<T: QueryNetwork> GetScriptsData for T {
263
263
. map_err ( |e| format ! ( "Ogmios error: {e}" ) ) ?
264
264
. network
265
265
. 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 ( ) )
267
267
}
268
268
}
269
269
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use partner_chains_cardano_offchain::register::run_register;
7
7
use plutus_datum_derive:: ToDatum ;
8
8
use secp256k1:: PublicKey ;
9
9
use sidechain_domain:: * ;
10
- use std:: { convert :: Infallible , fmt:: Display , str:: FromStr } ;
10
+ use std:: { fmt:: Display , str:: FromStr } ;
11
11
12
12
use crate :: cmd_traits:: Register ;
13
13
@@ -79,23 +79,6 @@ impl From<CandidateKeyParam> for CandidateKey {
79
79
}
80
80
}
81
81
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
-
99
82
#[ derive( Clone , Debug ) ]
100
83
pub struct StakePoolSigningKeyParam ( pub ed25519_zebra:: SigningKey ) ;
101
84
You can’t perform that action at this time.
0 commit comments