Remove capabilities (#4303)

This commit is contained in:
Jaco
2021-12-08 20:18:38 +02:00
committed by GitHub
parent fd6ba08f58
commit dcb7760a0e
6 changed files with 33 additions and 260 deletions
+6 -4
View File
@@ -6,6 +6,10 @@ import type { AccountId, Balance, BlockNumber, Hash, PropIndex, Proposal, Refere
import type { PalletDemocracyReferendumStatus, PalletDemocracyVoteThreshold } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util';
export interface AtBlock {
at: BlockNumber;
}
export interface DeriveDemocracyLock {
balance: Balance;
isDelegated: boolean;
@@ -16,15 +20,13 @@ export interface DeriveDemocracyLock {
vote: Vote;
}
export interface DeriveProposalImage {
at: BlockNumber;
export interface DeriveProposalImage extends AtBlock {
balance: Balance;
proposal?: Proposal;
proposer: AccountId;
}
export interface DeriveDispatch {
at: BlockNumber;
export interface DeriveDispatch extends AtBlock {
index: ReferendumIndex;
imageHash: Hash;
image?: DeriveProposalImage;