proposalsEvents.graphql 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. type ProposalCreatedEvent implements Event @entity {
  2. ### GENERIC DATA ###
  3. "(network}-{blockNumber}-{indexInBlock}"
  4. id: ID!
  5. "Hash of the extrinsic which caused the event to be emitted"
  6. inExtrinsic: String
  7. "Blocknumber of the block in which the event was emitted."
  8. inBlock: Int!
  9. "Network the block was produced in"
  10. network: Network!
  11. "Index of event in block from which it was emitted."
  12. indexInBlock: Int!
  13. ### SPECIFIC DATA ###
  14. # FIXME: https://github.com/Joystream/joystream/issues/2457
  15. "The created proposal"
  16. proposal: Proposal!
  17. }
  18. type ProposalStatusUpdatedEvent implements Event @entity {
  19. ### GENERIC DATA ###
  20. "(network}-{blockNumber}-{indexInBlock}"
  21. id: ID!
  22. "Hash of the extrinsic which caused the event to be emitted"
  23. inExtrinsic: String
  24. "Blocknumber of the block in which the event was emitted."
  25. inBlock: Int!
  26. "Network the block was produced in"
  27. network: Network!
  28. "Index of event in block from which it was emitted."
  29. indexInBlock: Int!
  30. ### SPECIFIC DATA ###
  31. "The proposal which status got updated"
  32. proposal: Proposal!
  33. "The new proposal intermediate status (Deciding/Gracing/Dormant)"
  34. newStatus: ProposalIntermediateStatus!
  35. }
  36. type ProposalDecisionMadeEvent implements Event @entity {
  37. ### GENERIC DATA ###
  38. "(network}-{blockNumber}-{indexInBlock}"
  39. id: ID!
  40. "Hash of the extrinsic which caused the event to be emitted"
  41. inExtrinsic: String
  42. "Blocknumber of the block in which the event was emitted."
  43. inBlock: Int!
  44. "Network the block was produced in"
  45. network: Network!
  46. "Index of event in block from which it was emitted."
  47. indexInBlock: Int!
  48. ### SPECIFIC DATA ###
  49. "The proposal which voting decision status was determined"
  50. proposal: Proposal!
  51. "The voting decision status"
  52. decisionStatus: ProposalDecisionStatus!
  53. }
  54. type ProposalExecutedEvent implements Event @entity {
  55. ### GENERIC DATA ###
  56. "(network}-{blockNumber}-{indexInBlock}"
  57. id: ID!
  58. "Hash of the extrinsic which caused the event to be emitted"
  59. inExtrinsic: String
  60. "Blocknumber of the block in which the event was emitted."
  61. inBlock: Int!
  62. "Network the block was produced in"
  63. network: Network!
  64. "Index of event in block from which it was emitted."
  65. indexInBlock: Int!
  66. ### SPECIFIC DATA ###
  67. "The proposal that was executed"
  68. proposal: Proposal!
  69. "The execution status"
  70. executionStatus: ProposalExecutionStatus!
  71. }
  72. enum ProposalVoteKind {
  73. APPROVE
  74. REJECT
  75. SLASH
  76. ABSTAIN
  77. }
  78. type ProposalVotedEvent implements Event @entity {
  79. ### GENERIC DATA ###
  80. "(network}-{blockNumber}-{indexInBlock}"
  81. id: ID!
  82. "Hash of the extrinsic which caused the event to be emitted"
  83. inExtrinsic: String
  84. "Blocknumber of the block in which the event was emitted."
  85. inBlock: Int!
  86. "Network the block was produced in"
  87. network: Network!
  88. "Index of event in block from which it was emitted."
  89. indexInBlock: Int!
  90. ### SPECIFIC DATA ###
  91. "The voting member"
  92. voter: Membership!
  93. "The kind of the vote that was casted"
  94. voteKind: ProposalVoteKind!
  95. "The proposal beeing voted on"
  96. proposal: Proposal!
  97. "The rationale behind the vote"
  98. rationale: String!
  99. "The voting round - number representing which Deciding period the vote was casted in (starting with 1), useful when the proposal must be approved during multiple council terms (constitution > 1)"
  100. votingRound: Int!
  101. }
  102. type ProposalCancelledEvent implements Event @entity {
  103. ### GENERIC DATA ###
  104. "(network}-{blockNumber}-{indexInBlock}"
  105. id: ID!
  106. "Hash of the extrinsic which caused the event to be emitted"
  107. inExtrinsic: String
  108. "Blocknumber of the block in which the event was emitted."
  109. inBlock: Int!
  110. "Network the block was produced in"
  111. network: Network!
  112. "Index of event in block from which it was emitted."
  113. indexInBlock: Int!
  114. ### SPECIFIC DATA ###
  115. "The proposal that was cancelled"
  116. proposal: Proposal!
  117. }