Trait duniter::service::client::BenchmarkCallSigner
source · trait BenchmarkCallSigner<RuntimeCall: Encode + Clone, Signer: Pair> {
// Required method
fn sign_call(
&self,
call: RuntimeCall,
nonce: u32,
current_block: u64,
period: u64,
genesis: H256,
acc: Signer,
) -> OpaqueExtrinsic;
}
Expand description
Helper trait to implement [frame_benchmarking_cli::ExtrinsicBuilder
].
Should only be used for benchmarking since it makes strong assumptions about the chain state that these calls will be valid for.
Required Methods§
sourcefn sign_call(
&self,
call: RuntimeCall,
nonce: u32,
current_block: u64,
period: u64,
genesis: H256,
acc: Signer,
) -> OpaqueExtrinsic
fn sign_call( &self, call: RuntimeCall, nonce: u32, current_block: u64, period: u64, genesis: H256, acc: Signer, ) -> OpaqueExtrinsic
Signs a call together with the signed extensions of the specific runtime.
Only works if the current block is the genesis block since the
CheckMortality
check is mocked by using the genesis block.