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§

source

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.

Implementations on Foreign Types§

source§

impl BenchmarkCallSigner<RuntimeCall, Pair> for TFullClient<Block, RuntimeApi, WasmExecutor<Executor>>

source§

fn sign_call( &self, call: RuntimeCall, nonce: u32, current_block: u64, period: u64, genesis: H256, acc: Pair, ) -> OpaqueExtrinsic

Implementors§