fn submit_report_equivocation_unsigned_extrinsic(
        &self,
        __runtime_api_at_param__: &self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >,
        equivocation_proof: EquivocationProof<Block::Hash, NumberFor<Block>>,
        key_owner_proof: OpaqueKeyOwnershipProof,
    ) -> std::result::Result<
        Option<()>,
        self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiError,
    > {
        let runtime_api_impl_params_encoded =
            self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::Encode::encode(&(
                &equivocation_proof,
                &key_owner_proof,
            ));
        self . GrandpaApi_submit_report_equivocation_unsigned_extrinsic_runtime_api_impl (__runtime_api_at_param__ , self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ExecutionContext :: OffchainCall (None) , Some ((equivocation_proof , key_owner_proof)) , runtime_api_impl_params_encoded) . and_then (| r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native (n) => { Ok (n) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded (r) => { < Option < () > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode (& mut & r [..]) . map_err (| err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : "submit_report_equivocation_unsigned_extrinsic" , error : err , }) } })
    }
/// Submits an unsigned extrinsic to report an equivocation. The caller
/// must provide the equivocation proof and a key ownership proof
/// (should be obtained using `generate_key_ownership_proof`). The
/// extrinsic will be unsigned and should only be accepted for local
/// authorship (not to be broadcast to the network). This method returns
/// `None` when creation of the extrinsic fails, e.g. if equivocation
/// reporting is disabled for the given runtime (i.e. this method is
/// hardcoded to return `None`). Only useful in an offchain context.
Submits an unsigned extrinsic to report an equivocation. The caller
must provide the equivocation proof and a key ownership proof
(should be obtained using `generate_key_ownership_proof`). The
extrinsic will be unsigned and should only be accepted for local
authorship (not to be broadcast to the network). This method returns
`None` when creation of the extrinsic fails, e.g. if equivocation
reporting is disabled for the given runtime . Only useful in an offchain context.
Submits an unsigned extrinsic to report an equivocation . The caller must provide the equivocation proof and a key ownership proof ( should be obtained using ` generate_key_ownership_proof ` ) . The extrinsic will be unsigned and should only be accepted for local authorship ( not to be broadcast to the network ) . This method returns ` None ` when creation of the extrinsic fails e . g . if equivocation reporting is disabled for the given runtime . Only useful in an offchain context .
fn submit_report_equivocation_unsigned_extrinsic(
        &self,
        __runtime_api_at_param__: &self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >,
        equivocation_proof: EquivocationProof<Block::Hash, NumberFor<Block>>,
        key_owner_proof: OpaqueKeyOwnershipProof,
    ) -> std::result::Result<
        Option<()>,
        self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiError,
    > {
        let runtime_api_impl_params_encoded =
            self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::Encode::encode(&(
                &equivocation_proof,
                &key_owner_proof,
            ));
        self . GrandpaApi_submit_report_equivocation_unsigned_extrinsic_runtime_api_impl (__runtime_api_at_param__ , self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ExecutionContext :: OffchainCall (None) , Some ((equivocation_proof , key_owner_proof)) , runtime_api_impl_params_encoded) . and_then (| r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native (n) => { Ok (n) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded (r) => { < Option < () > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode (& mut & r [..]) . map_err (| err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : "submit_report_equivocation_unsigned_extrinsic" , error : err , }) } })
    }
fn submit_report_equivocation_unsigned_extrinsic ( & self , __runtime_api_at_param__ : & self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: BlockId < Block , > , equivocation_proof : EquivocationProof < Block :: Hash , NumberFor < Block > > , key_owner_proof : OpaqueKeyOwnershipProof , ) -> std :: result :: Result < Option < ( ) > , self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError , > { let runtime_api_impl_params_encoded = self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Encode :: encode ( & ( & equivocation_proof , & key_owner_proof , ) ) ; self . GrandpaApi_submit_report_equivocation_unsigned_extrinsic_runtime_api_impl ( __runtime_api_at_param__ , self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ExecutionContext :: OffchainCall ( None ) , Some ( ( equivocation_proof , key_owner_proof ) ) , runtime_api_impl_params_encoded ) . and_then ( | r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native ( n ) => { Ok ( n ) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded ( r ) => { < Option < ( ) > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode ( & mut & r [ .. ] ) . map_err ( | err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : " " , error : err , } ) } } ) }
Submits an unsigned extrinsic to report an equivocation.
Submits an unsigned extrinsic to report an equivocation .
&self
__runtime_api_at_param__
&self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >
equivocation_proof
EquivocationProof<Block::Hash, NumberFor<Block>>
key_owner_proof
OpaqueKeyOwnershipProof
&self
__runtime_api_at_param__
&self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >
equivocation_proof
EquivocationProof<Block::Hash, NumberFor<Block>>
key_owner_proof
OpaqueKeyOwnershipProof