* Bump dev

* type linting

* linting

* linting

* missed
This commit is contained in:
Jaco Greeff
2020-09-03 15:47:29 +02:00
committed by GitHub
parent 5a48a2a3f7
commit 6ae75ba92e
33 changed files with 756 additions and 658 deletions
+7 -7
View File
@@ -17,13 +17,6 @@ export interface DeriveDemocracyLock {
vote: Vote;
}
export interface DeriveDispatch {
at: BlockNumber;
index: ReferendumIndex;
imageHash: Hash;
image?: DeriveProposalImage;
}
export interface DeriveProposalImage {
at: BlockNumber;
balance: Balance;
@@ -31,6 +24,13 @@ export interface DeriveProposalImage {
proposer: AccountId;
}
export interface DeriveDispatch {
at: BlockNumber;
index: ReferendumIndex;
imageHash: Hash;
image?: DeriveProposalImage;
}
export interface DeriveProposal {
balance?: Balance;
index: PropIndex;
+27 -27
View File
@@ -40,6 +40,17 @@ export interface DeriveStakerPoints {
points: RewardPoint;
}
export interface DeriveOwnExposure {
clipped: Exposure;
era: EraIndex;
exposure: Exposure;
}
export interface DeriveEraExposureNominating {
validatorId: string;
validatorIndex: number;
}
export type DeriveEraNominatorExposure = Record<string, DeriveEraExposureNominating[]>;
export type DeriveEraValidatorExposure = Record<string, Exposure>;
@@ -50,19 +61,6 @@ export interface DeriveEraExposure {
validators: DeriveEraValidatorExposure;
}
export interface DeriveOwnExposure {
clipped: Exposure;
era: EraIndex;
exposure: Exposure;
}
export type DeriveOwnSlashes = DeriveStakerSlashes;
export interface DeriveEraExposureNominating {
validatorId: string;
validatorIndex: number;
}
export interface DeriveStakerExposure {
era: EraIndex;
isEmpty: boolean;
@@ -91,15 +89,7 @@ export interface DeriveStakerSlashes {
total: Balance;
}
export interface DeriveStakingElected {
nextElected: AccountId[];
info: DeriveStakingQuery[];
}
export interface DeriveStakingWaiting {
info: DeriveStakingQuery[];
waiting: AccountId[];
}
export type DeriveOwnSlashes = DeriveStakerSlashes;
export interface DeriveStakingValidators {
nextElected: AccountId[];
@@ -124,6 +114,21 @@ export interface DeriveStakingQuery extends DeriveStakingStash {
stakingLedger?: StakingLedger;
}
export interface DeriveStakingElected {
nextElected: AccountId[];
info: DeriveStakingQuery[];
}
export interface DeriveStakingWaiting {
info: DeriveStakingQuery[];
waiting: AccountId[];
}
export interface DeriveUnlocking {
remainingEras: BN;
value: Balance;
}
export interface DeriveStakingAccount extends DeriveStakingQuery {
redeemable?: Balance;
unlocking?: DeriveUnlocking[];
@@ -133,8 +138,3 @@ export interface DeriveStakingOverview extends DeriveSessionIndexes {
nextElected: AccountId[];
validators: AccountId[];
}
export type DeriveUnlocking = {
remainingEras: BN;
value: Balance;
};