mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
replace latest_confirmed_nonce runtime APIs with direct storage reads (#1282)
This commit is contained in:
committed by
Bastian Köcher
parent
fd816b60e3
commit
1d99ad3619
@@ -54,9 +54,6 @@ pub const TO_WOCOCO_ESTIMATE_MESSAGE_FEE_METHOD: &str =
|
||||
/// Name of the `ToWococoOutboundLaneApi::message_details` runtime method.
|
||||
pub const TO_WOCOCO_MESSAGE_DETAILS_METHOD: &str = "ToWococoOutboundLaneApi_message_details";
|
||||
|
||||
/// Name of the `FromWococoInboundLaneApi::latest_onfirmed_nonce` runtime method.
|
||||
pub const FROM_WOCOCO_LATEST_CONFIRMED_NONCE_METHOD: &str =
|
||||
"FromWococoInboundLaneApi_latest_confirmed_nonce";
|
||||
/// Name of the `FromWococoInboundLaneApi::unrewarded_relayers_state` runtime method.
|
||||
pub const FROM_WOCOCO_UNREWARDED_RELAYERS_STATE: &str =
|
||||
"FromWococoInboundLaneApi_unrewarded_relayers_state";
|
||||
@@ -106,8 +103,6 @@ sp_api::decl_runtime_apis! {
|
||||
/// This API is implemented by runtimes that are receiving messages from Wococo chain, not the
|
||||
/// Wococo runtime itself.
|
||||
pub trait FromWococoInboundLaneApi {
|
||||
/// Nonce of the latest message that has been confirmed to the bridged chain.
|
||||
fn latest_confirmed_nonce(lane: LaneId) -> MessageNonce;
|
||||
/// State of the unrewarded relayers set at given lane.
|
||||
fn unrewarded_relayers_state(lane: LaneId) -> UnrewardedRelayersState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user