Replace system config Index for Nonce (#14290)

* replace Index by Nonce

* replace Index by Nonce

* replace Index by Nonce

* replace Index by Nonce

* replace Index by Nonce

* wip

* remove index in lieu of nonce

* wip

* remove accountnonce in lieu of nonce

* add minor improvement

* rebase and merge conflicts
This commit is contained in:
Juan
2023-07-14 08:56:48 +02:00
committed by GitHub
parent 0fbeb31d50
commit 6a29a70a92
132 changed files with 234 additions and 235 deletions
@@ -24,12 +24,12 @@
#![cfg_attr(not(feature = "std"), no_std)]
sp_api::decl_runtime_apis! {
/// The API to query account nonce (aka transaction index).
pub trait AccountNonceApi<AccountId, Index> where
/// The API to query account nonce.
pub trait AccountNonceApi<AccountId, Nonce> where
AccountId: codec::Codec,
Index: codec::Codec,
Nonce: codec::Codec,
{
/// Get current account nonce of given `AccountId`.
fn account_nonce(account: AccountId) -> Index;
fn account_nonce(account: AccountId) -> Nonce;
}
}