mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 10:11:03 +00:00
bump API versions of {Beefy,Mmr}Api (#13509)
This commit is contained in:
@@ -302,6 +302,7 @@ impl OpaqueKeyOwnershipProof {
|
|||||||
|
|
||||||
sp_api::decl_runtime_apis! {
|
sp_api::decl_runtime_apis! {
|
||||||
/// API necessary for BEEFY voters.
|
/// API necessary for BEEFY voters.
|
||||||
|
#[api_version(2)]
|
||||||
pub trait BeefyApi
|
pub trait BeefyApi
|
||||||
{
|
{
|
||||||
/// Return the block number where BEEFY consensus is enabled/started
|
/// Return the block number where BEEFY consensus is enabled/started
|
||||||
|
|||||||
@@ -422,6 +422,7 @@ impl Error {
|
|||||||
|
|
||||||
sp_api::decl_runtime_apis! {
|
sp_api::decl_runtime_apis! {
|
||||||
/// API to interact with MMR pallet.
|
/// API to interact with MMR pallet.
|
||||||
|
#[api_version(2)]
|
||||||
pub trait MmrApi<Hash: codec::Codec, BlockNumber: codec::Codec> {
|
pub trait MmrApi<Hash: codec::Codec, BlockNumber: codec::Codec> {
|
||||||
/// Return the on-chain MMR root hash.
|
/// Return the on-chain MMR root hash.
|
||||||
fn mmr_root() -> Result<Hash, Error>;
|
fn mmr_root() -> Result<Hash, Error>;
|
||||||
|
|||||||
Reference in New Issue
Block a user