123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- import { AccountId, AccountData } from "@polkadot/types/interfaces";
- import { GenericEventData } from "@polkadot/types/generic/Event";
- import { MemberId } from "@joystream/types/members";
- import { Stake } from "@joystream/types/stake";
- import { RewardRelationship } from "@joystream/types/recurring-rewards";
- import { VotingResults } from "@joystream/types/augment/all";
- export interface AccountBalance {
- accountId: string;
- balance: AccountData;
- }
- export interface ElectionInfo {
- durations: number[];
- stage: any;
- round: number;
- stageEndsAt: number;
- termEndsAt: number;
- }
- export interface Vote {
- vote: string;
- handle: string;
- }
- export interface ProposalDetail {
- created: number;
- finalizedAt: number;
- message: string;
- parameters: string;
- stage: any;
- result: string;
- exec: any;
- id: number;
- title: string;
- description: any;
- votes: VotingResults;
- type: string;
- votesByAccount?: Vote[];
- author?: string;
- authorId: number;
- }
- export interface SpendingProposal {
- id: number;
- title: string;
- amount: number;
- }
- export interface Round {
- round: number;
- start: number;
- end: number;
- }
- interface Vote {
- voter: AccountId
- commitment: Hash
- stake: { new: number; transferred: number }
- vote: AccountId
- }
- export class Bounty {
- constructor(
- public testnet: string,
- public proposalId: number,
- public title: string,
- public status: string,
- public amountAsked: number,
- public amountMinted: number
- ) {}
- }
- export class CacheEvent {
- constructor(
- public section: string,
- public method: string,
- public data: GenericEventData
- ) {}
- }
- export interface WorkerReward {
- id: number;
- memberId: MemberId;
- account: AccountId;
- handle: string;
- stake: Stake;
- reward: RewardRelationship;
- status: string;
- }
|