|
@@ -4,7 +4,6 @@ import moment from "moment";
|
|
// types
|
|
// types
|
|
import { AccountBalance, ElectionInfo, Round, ProposalDetail } from "./types";
|
|
import { AccountBalance, ElectionInfo, Round, ProposalDetail } from "./types";
|
|
import { Option, u32, u64, Vec, StorageKey } from "@polkadot/types";
|
|
import { Option, u32, u64, Vec, StorageKey } from "@polkadot/types";
|
|
-import type { Codec, Observable } from "@polkadot/types/types";
|
|
|
|
import {
|
|
import {
|
|
AccountId,
|
|
AccountId,
|
|
AccountInfo,
|
|
AccountInfo,
|
|
@@ -15,26 +14,14 @@ import {
|
|
EventRecord,
|
|
EventRecord,
|
|
Exposure,
|
|
Exposure,
|
|
Hash,
|
|
Hash,
|
|
- Moment,
|
|
|
|
} from "@polkadot/types/interfaces";
|
|
} from "@polkadot/types/interfaces";
|
|
import { SignedBlock } from "@polkadot/types/interfaces/runtime";
|
|
import { SignedBlock } from "@polkadot/types/interfaces/runtime";
|
|
import { types } from "@joystream/types";
|
|
import { types } from "@joystream/types";
|
|
import { MemberId, PostId, ThreadId } from "@joystream/types/common";
|
|
import { MemberId, PostId, ThreadId } from "@joystream/types/common";
|
|
import { CategoryId, Category, Thread, Post } from "@joystream/types/forum";
|
|
import { CategoryId, Category, Thread, Post } from "@joystream/types/forum";
|
|
-import {
|
|
|
|
- Candidate,
|
|
|
|
- CouncilMember,
|
|
|
|
- CouncilStage,
|
|
|
|
-} from "@joystream/types/council";
|
|
|
|
|
|
+import { CouncilStage } from "@joystream/types/council";
|
|
import { Membership } from "@joystream/types/members";
|
|
import { Membership } from "@joystream/types/members";
|
|
-import {
|
|
|
|
- Proposal,
|
|
|
|
- ProposalId,
|
|
|
|
- ProposalCreationParameters,
|
|
|
|
- DiscussionPost,
|
|
|
|
- SpendingParams,
|
|
|
|
- VoteKind,
|
|
|
|
-} from "@joystream/types/proposals";
|
|
|
|
|
|
+import { ProposalId, DiscussionPost } from "@joystream/types/proposals";
|
|
import { WorkerId, Worker } from "@joystream/types/working-group";
|
|
import { WorkerId, Worker } from "@joystream/types/working-group";
|
|
import { ProposalOf, ProposalDetailsOf } from "@joystream/types/augment/types";
|
|
import { ProposalOf, ProposalDetailsOf } from "@joystream/types/augment/types";
|
|
|
|
|
|
@@ -384,8 +371,8 @@ export const getProposal = async (
|
|
status,
|
|
status,
|
|
votingResults,
|
|
votingResults,
|
|
exactExecutionBlock,
|
|
exactExecutionBlock,
|
|
- nrOfCouncilConfirmations,
|
|
|
|
- stakingAccountId,
|
|
|
|
|
|
+ //nrOfCouncilConfirmations,
|
|
|
|
+ //stakingAccountId,
|
|
} = proposal;
|
|
} = proposal;
|
|
const stage: string = status.isActive ? "Active" : "Finalized";
|
|
const stage: string = status.isActive ? "Active" : "Finalized";
|
|
const member: Membership = await getMember(api, proposerId);
|
|
const member: Membership = await getMember(api, proposerId);
|