mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 03:31:03 +00:00
Chill support and update to latest Substrate
This commit is contained in:
+18
@@ -63,3 +63,21 @@ substrate-subxt-client = { version = "0.3.0", path = "client" }
|
|||||||
tempdir = "0.3.7"
|
tempdir = "0.3.7"
|
||||||
test-node = { path = "test-node" }
|
test-node = { path = "test-node" }
|
||||||
wabt = "0.10.0"
|
wabt = "0.10.0"
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
frame-metadata = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
frame-support = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-runtime = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-version = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
pallet-indices = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-rpc = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-core = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sc-rpc-api = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-transaction-pool = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-std = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
application-crypto = { git = "https://github.com/paritytech/substrate", package = "sp-application-crypto", default-features = false }
|
||||||
|
sp-finality-grandpa = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-consensus-babe = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
pallet-im-online = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
sp-authority-discovery = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
pallet-staking = { git = "https://github.com/paritytech/substrate" }
|
||||||
|
|||||||
+43
-4
@@ -76,7 +76,7 @@ pub struct ErasRewardPointsStore<T: Staking> {
|
|||||||
#[derive(Clone, Encode, Decode, Debug, Call)]
|
#[derive(Clone, Encode, Decode, Debug, Call)]
|
||||||
pub struct SetPayeeCall<T: Staking> {
|
pub struct SetPayeeCall<T: Staking> {
|
||||||
/// The payee
|
/// The payee
|
||||||
pub payee: RewardDestination,
|
pub payee: RewardDestination<T::AccountId>,
|
||||||
/// Marker for the runtime
|
/// Marker for the runtime
|
||||||
pub _runtime: PhantomData<T>,
|
pub _runtime: PhantomData<T>,
|
||||||
}
|
}
|
||||||
@@ -183,7 +183,7 @@ pub struct LedgerStore<T: Staking> {
|
|||||||
/// Where the reward payment should be made. Keyed by stash.
|
/// Where the reward payment should be made. Keyed by stash.
|
||||||
#[derive(Encode, Copy, Clone, Debug, Hash, PartialEq, Eq, Ord, PartialOrd, Store)]
|
#[derive(Encode, Copy, Clone, Debug, Hash, PartialEq, Eq, Ord, PartialOrd, Store)]
|
||||||
pub struct PayeeStore<T: Staking> {
|
pub struct PayeeStore<T: Staking> {
|
||||||
#[store(returns = RewardDestination)]
|
#[store(returns = RewardDestination<T::AccountId>)]
|
||||||
/// Tٗhe stash account
|
/// Tٗhe stash account
|
||||||
pub stash: T::AccountId,
|
pub stash: T::AccountId,
|
||||||
}
|
}
|
||||||
@@ -257,6 +257,45 @@ pub struct ActiveEraStore<T: Staking> {
|
|||||||
pub _runtime: PhantomData<T>,
|
pub _runtime: PhantomData<T>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Declare no desire to either validate or nominate.
|
||||||
|
///
|
||||||
|
/// Effects will be felt at the beginning of the next era.
|
||||||
|
///
|
||||||
|
/// The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||||
|
/// And, it can be only called when [`EraElectionStatus`] is `Closed`.
|
||||||
|
///
|
||||||
|
/// # <weight>
|
||||||
|
/// - Independent of the arguments. Insignificant complexity.
|
||||||
|
/// - Contains one read.
|
||||||
|
/// - Writes are limited to the `origin` account key.
|
||||||
|
/// --------
|
||||||
|
/// Base Weight: 16.53 µs
|
||||||
|
/// DB Weight:
|
||||||
|
/// - Read: EraElectionStatus, Ledger
|
||||||
|
/// - Write: Validators, Nominators
|
||||||
|
/// # </weight>
|
||||||
|
#[derive(Debug, Call, Encode)]
|
||||||
|
pub struct ChillCall<T: Staking> {
|
||||||
|
/// Runtime marker
|
||||||
|
pub _runtime: PhantomData<T>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<T: Staking> Default for ChillCall<T> {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
_runtime: PhantomData,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
impl<T: Staking> Clone for ChillCall<T> {
|
||||||
|
fn clone(&self) -> Self {
|
||||||
|
Self {
|
||||||
|
_runtime: self._runtime,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
impl<T: Staking> Copy for ChillCall<T> {}
|
||||||
|
|
||||||
/// Declare the desire to validate for the origin controller.
|
/// Declare the desire to validate for the origin controller.
|
||||||
///
|
///
|
||||||
/// Effects will be felt at the beginning of the next era.
|
/// Effects will be felt at the beginning of the next era.
|
||||||
@@ -276,9 +315,9 @@ pub struct ActiveEraStore<T: Staking> {
|
|||||||
/// # </weight>
|
/// # </weight>
|
||||||
#[derive(Clone, Debug, PartialEq, Call, Encode)]
|
#[derive(Clone, Debug, PartialEq, Call, Encode)]
|
||||||
pub struct ValidateCall<T: Staking> {
|
pub struct ValidateCall<T: Staking> {
|
||||||
/// Runtime marker.
|
/// Runtime marker
|
||||||
pub _runtime: PhantomData<T>,
|
pub _runtime: PhantomData<T>,
|
||||||
/// Validation preferences.
|
/// Validation preferences
|
||||||
pub prefs: ValidatorPrefs,
|
pub prefs: ValidatorPrefs,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user