types.ts 725 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { ElectionStage } from './joystream/lib/types'
  2. export interface RewardPoints {
  3. total: number
  4. individual: { [account: string]: number }
  5. }
  6. export interface Stake {
  7. who: string
  8. value: number
  9. }
  10. export interface Stakes {
  11. total: number
  12. own: number
  13. others: Stake[]
  14. commission: number
  15. }
  16. export interface Options {
  17. verbose: number
  18. channel: boolean
  19. council: boolean
  20. forum: boolean
  21. proposals: boolean
  22. }
  23. export interface Vote {
  24. vote: string
  25. handle: string
  26. }
  27. export interface Status {
  28. block: number
  29. era: number
  30. election: ElectionStage
  31. round: number
  32. members: number
  33. channels: number
  34. categories: number
  35. threads: number
  36. posts: number
  37. proposals: number
  38. proposalPosts: number
  39. }