mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
* Companion for #11831 * commti * fix * fix * commit * fix? * added rpc extension * fmt * add dependency * added NominationPools to runtimes * implement np * implement for kusama & westend * remove np-rpc from rococco * fmt * add np-rpc to the client * fix wrong dependency in client * remove from client * remove from rpc * fix? * switch back * fix? * . * add rpc extension * fmt * fix dependency * commit * only implement the api in the runtimes * update * update runtimes * update sp-io * update * Update Cargo.toml * Update Cargo.toml * Update Cargo.toml * commit * Revert "Merge branch 'rpc-pending-rewards' of github.com:Szegoo/polkadot into rpc-pending-rewards" This reverts commit dd260820641060b6106b238081d674e902267f24, reversing changes made to 8f3b58dbe28132a95c4d595700214f886da22e5e. Co-authored-by: kianenigma <kian@parity.io>
This commit is contained in:
@@ -45,6 +45,7 @@ pallet-bounties = { git = "https://github.com/paritytech/substrate", branch = "m
|
||||
pallet-child-bounties = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-nomination-pools-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-democracy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
pallet-elections-phragmen = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||
@@ -148,6 +149,7 @@ std = [
|
||||
"pallet-membership/std",
|
||||
"pallet-multisig/std",
|
||||
"pallet-nomination-pools/std",
|
||||
"pallet-nomination-pools-runtime-api/std",
|
||||
"pallet-offences/std",
|
||||
"pallet-preimage/std",
|
||||
"pallet-proxy/std",
|
||||
|
||||
@@ -2010,6 +2010,16 @@ sp_api::impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl pallet_nomination_pools_runtime_api::NominationPoolsApi<
|
||||
Block,
|
||||
AccountId,
|
||||
Balance,
|
||||
> for Runtime {
|
||||
fn pending_rewards(member: AccountId) -> Balance {
|
||||
NominationPools::pending_rewards(member)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||
fn on_runtime_upgrade() -> (Weight, Weight) {
|
||||
|
||||
Reference in New Issue
Block a user