councilEvents.graphql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. ################### Council ####################################################
  2. type AnnouncingPeriodStartedEvent implements Event @entity {
  3. ### GENERIC DATA ###
  4. "(network}-{blockNumber}-{indexInBlock}"
  5. id: ID!
  6. "Hash of the extrinsic which caused the event to be emitted"
  7. inExtrinsic: String
  8. "Blocknumber of the block in which the event was emitted."
  9. inBlock: Int!
  10. "Network the block was produced in"
  11. network: Network!
  12. "Index of event in block from which it was emitted."
  13. indexInBlock: Int!
  14. ### SPECIFIC DATA ###
  15. }
  16. type NotEnoughCandidatesEvent implements Event @entity {
  17. ### GENERIC DATA ###
  18. "(network}-{blockNumber}-{indexInBlock}"
  19. id: ID!
  20. "Hash of the extrinsic which caused the event to be emitted"
  21. inExtrinsic: String
  22. "Blocknumber of the block in which the event was emitted."
  23. inBlock: Int!
  24. "Network the block was produced in"
  25. network: Network!
  26. "Index of event in block from which it was emitted."
  27. indexInBlock: Int!
  28. ### SPECIFIC DATA ###
  29. }
  30. type VotingPeriodStartedEvent implements Event @entity {
  31. ### GENERIC DATA ###
  32. "(network}-{blockNumber}-{indexInBlock}"
  33. id: ID!
  34. "Hash of the extrinsic which caused the event to be emitted"
  35. inExtrinsic: String
  36. "Blocknumber of the block in which the event was emitted."
  37. inBlock: Int!
  38. "Network the block was produced in"
  39. network: Network!
  40. "Index of event in block from which it was emitted."
  41. indexInBlock: Int!
  42. ### SPECIFIC DATA ###
  43. "Number of candidates in the election."
  44. numOfCandidates: BigInt!
  45. }
  46. type NewCandidateEvent implements Event @entity {
  47. ### GENERIC DATA ###
  48. "(network}-{blockNumber}-{indexInBlock}"
  49. id: ID!
  50. "Hash of the extrinsic which caused the event to be emitted"
  51. inExtrinsic: String
  52. "Blocknumber of the block in which the event was emitted."
  53. inBlock: Int!
  54. "Network the block was produced in"
  55. network: Network!
  56. "Index of event in block from which it was emitted."
  57. indexInBlock: Int!
  58. ### SPECIFIC DATA ###
  59. "Related candidate."
  60. candidate: Candidate!
  61. "Candidate's account used to stake currency."
  62. stakingAccount: String!
  63. "Candidate's account that will be recieving rewards if candidate's elected."
  64. rewardAccount: String!
  65. "Amount of currency to be staked for the candidacy."
  66. balance: BigInt!
  67. }
  68. type NewCouncilElectedEvent implements Event @entity {
  69. ### GENERIC DATA ###
  70. "(network}-{blockNumber}-{indexInBlock}"
  71. id: ID!
  72. "Hash of the extrinsic which caused the event to be emitted"
  73. inExtrinsic: String
  74. "Blocknumber of the block in which the event was emitted."
  75. inBlock: Int!
  76. "Network the block was produced in"
  77. network: Network!
  78. "Index of event in block from which it was emitted."
  79. indexInBlock: Int!
  80. ### SPECIFIC DATA ###
  81. "Newly elected council."
  82. electedCouncil: ElectedCouncil!
  83. }
  84. type NewCouncilNotElectedEvent implements Event @entity {
  85. ### GENERIC DATA ###
  86. "(network}-{blockNumber}-{indexInBlock}"
  87. id: ID!
  88. "Hash of the extrinsic which caused the event to be emitted"
  89. inExtrinsic: String
  90. "Blocknumber of the block in which the event was emitted."
  91. inBlock: Int!
  92. "Network the block was produced in"
  93. network: Network!
  94. "Index of event in block from which it was emitted."
  95. indexInBlock: Int!
  96. ### SPECIFIC DATA ###
  97. }
  98. type CandidacyStakeReleaseEvent implements Event @entity {
  99. ### GENERIC DATA ###
  100. "(network}-{blockNumber}-{indexInBlock}"
  101. id: ID!
  102. "Hash of the extrinsic which caused the event to be emitted"
  103. inExtrinsic: String
  104. "Blocknumber of the block in which the event was emitted."
  105. inBlock: Int!
  106. "Network the block was produced in"
  107. network: Network!
  108. "Index of event in block from which it was emitted."
  109. indexInBlock: Int!
  110. ### SPECIFIC DATA ###
  111. "Related candidate."
  112. candidate: Candidate!
  113. }
  114. type CandidacyWithdrawEvent implements Event @entity {
  115. ### GENERIC DATA ###
  116. "(network}-{blockNumber}-{indexInBlock}"
  117. id: ID!
  118. "Hash of the extrinsic which caused the event to be emitted"
  119. inExtrinsic: String
  120. "Blocknumber of the block in which the event was emitted."
  121. inBlock: Int!
  122. "Network the block was produced in"
  123. network: Network!
  124. "Index of event in block from which it was emitted."
  125. indexInBlock: Int!
  126. ### SPECIFIC DATA ###
  127. "Candidate's membership."
  128. member: Membership!
  129. }
  130. type CandidacyNoteSetEvent implements Event @entity {
  131. ### GENERIC DATA ###
  132. "(network}-{blockNumber}-{indexInBlock}"
  133. id: ID!
  134. "Hash of the extrinsic which caused the event to be emitted"
  135. inExtrinsic: String
  136. "Blocknumber of the block in which the event was emitted."
  137. inBlock: Int!
  138. "Network the block was produced in"
  139. network: Network!
  140. "Index of event in block from which it was emitted."
  141. indexInBlock: Int!
  142. ### SPECIFIC DATA ###
  143. "Candidate's membership."
  144. member: Membership!
  145. "Candidacy header text."
  146. header: String
  147. "Candidate program in form of bullet points."
  148. bulletPoints: [String!]!
  149. "Image uri of candidate's banner."
  150. bannerImageUri: String
  151. "Candidacy description (Markdown-formatted)."
  152. description: String
  153. }
  154. type RewardPaymentEvent implements Event @entity {
  155. ### GENERIC DATA ###
  156. "(network}-{blockNumber}-{indexInBlock}"
  157. id: ID!
  158. "Hash of the extrinsic which caused the event to be emitted"
  159. inExtrinsic: String
  160. "Blocknumber of the block in which the event was emitted."
  161. inBlock: Int!
  162. "Network the block was produced in"
  163. network: Network!
  164. "Index of event in block from which it was emitted."
  165. indexInBlock: Int!
  166. ### SPECIFIC DATA ###
  167. "Candidate's membership."
  168. member: Membership!
  169. "Candidate's account that will be recieving rewards if candidate's elected."
  170. rewardAccount: String!
  171. "Amount paid to the council member"
  172. paidBalance: BigInt!
  173. "Amount that couldn't be paid and will be paid the next time."
  174. missingBalance: BigInt!
  175. }
  176. type BudgetBalanceSetEvent implements Event @entity {
  177. ### GENERIC DATA ###
  178. "(network}-{blockNumber}-{indexInBlock}"
  179. id: ID!
  180. "Hash of the extrinsic which caused the event to be emitted"
  181. inExtrinsic: String
  182. "Blocknumber of the block in which the event was emitted."
  183. inBlock: Int!
  184. "Network the block was produced in"
  185. network: Network!
  186. "Index of event in block from which it was emitted."
  187. indexInBlock: Int!
  188. ### SPECIFIC DATA ###
  189. "Budget balance that has been set."
  190. balance: BigInt!
  191. }
  192. type BudgetRefillEvent implements Event @entity {
  193. ### GENERIC DATA ###
  194. "(network}-{blockNumber}-{indexInBlock}"
  195. id: ID!
  196. "Hash of the extrinsic which caused the event to be emitted"
  197. inExtrinsic: String
  198. "Blocknumber of the block in which the event was emitted."
  199. inBlock: Int!
  200. "Network the block was produced in"
  201. network: Network!
  202. "Index of event in block from which it was emitted."
  203. indexInBlock: Int!
  204. ### SPECIFIC DATA ###
  205. "Balance that has been refilled."
  206. balance: BigInt!
  207. }
  208. type BudgetRefillPlannedEvent implements Event @entity {
  209. ### GENERIC DATA ###
  210. "(network}-{blockNumber}-{indexInBlock}"
  211. id: ID!
  212. "Hash of the extrinsic which caused the event to be emitted"
  213. inExtrinsic: String
  214. "Blocknumber of the block in which the event was emitted."
  215. inBlock: Int!
  216. "Network the block was produced in"
  217. network: Network!
  218. "Index of event in block from which it was emitted."
  219. indexInBlock: Int!
  220. ### SPECIFIC DATA ###
  221. nextRefillInBlock: Int!
  222. }
  223. type BudgetIncrementUpdatedEvent implements Event @entity {
  224. ### GENERIC DATA ###
  225. "(network}-{blockNumber}-{indexInBlock}"
  226. id: ID!
  227. "Hash of the extrinsic which caused the event to be emitted"
  228. inExtrinsic: String
  229. "Blocknumber of the block in which the event was emitted."
  230. inBlock: Int!
  231. "Network the block was produced in"
  232. network: Network!
  233. "Index of event in block from which it was emitted."
  234. indexInBlock: Int!
  235. ### SPECIFIC DATA ###
  236. "Amount that is added to the budget each time it's refilled."
  237. amount: BigInt!
  238. }
  239. type CouncilorRewardUpdatedEvent implements Event @entity {
  240. ### GENERIC DATA ###
  241. "(network}-{blockNumber}-{indexInBlock}"
  242. id: ID!
  243. "Hash of the extrinsic which caused the event to be emitted"
  244. inExtrinsic: String
  245. "Blocknumber of the block in which the event was emitted."
  246. inBlock: Int!
  247. "Network the block was produced in"
  248. network: Network!
  249. "Index of event in block from which it was emitted."
  250. indexInBlock: Int!
  251. ### SPECIFIC DATA ###
  252. "New reward amount paid each reward period."
  253. rewardAmount: BigInt!
  254. }
  255. type RequestFundedEvent implements Event @entity {
  256. ### GENERIC DATA ###
  257. "(network}-{blockNumber}-{indexInBlock}"
  258. id: ID!
  259. "Hash of the extrinsic which caused the event to be emitted"
  260. inExtrinsic: String
  261. "Blocknumber of the block in which the event was emitted."
  262. inBlock: Int!
  263. "Network the block was produced in"
  264. network: Network!
  265. "Index of event in block from which it was emitted."
  266. indexInBlock: Int!
  267. ### SPECIFIC DATA ###
  268. "Target account."
  269. account: String!
  270. "Funding amount."
  271. amount: BigInt!
  272. }
  273. ################### Referendum #################################################
  274. type ReferendumStartedEvent implements Event @entity {
  275. ### GENERIC DATA ###
  276. "(network}-{blockNumber}-{indexInBlock}"
  277. id: ID!
  278. "Hash of the extrinsic which caused the event to be emitted"
  279. inExtrinsic: String
  280. "Blocknumber of the block in which the event was emitted."
  281. inBlock: Int!
  282. "Network the block was produced in"
  283. network: Network!
  284. "Index of event in block from which it was emitted."
  285. indexInBlock: Int!
  286. ### SPECIFIC DATA ###
  287. "Amount of winning referendum options."
  288. winningTargetCount: BigInt!
  289. }
  290. type ReferendumStartedForcefullyEvent implements Event @entity {
  291. ### GENERIC DATA ###
  292. "(network}-{blockNumber}-{indexInBlock}"
  293. id: ID!
  294. "Hash of the extrinsic which caused the event to be emitted"
  295. inExtrinsic: String
  296. "Blocknumber of the block in which the event was emitted."
  297. inBlock: Int!
  298. "Network the block was produced in"
  299. network: Network!
  300. "Index of event in block from which it was emitted."
  301. indexInBlock: Int!
  302. ### SPECIFIC DATA ###
  303. "Amount of winning referendum options."
  304. winningTargetCount: BigInt!
  305. }
  306. type RevealingStageStartedEvent implements Event @entity {
  307. ### GENERIC DATA ###
  308. "(network}-{blockNumber}-{indexInBlock}"
  309. id: ID!
  310. "Hash of the extrinsic which caused the event to be emitted"
  311. inExtrinsic: String
  312. "Blocknumber of the block in which the event was emitted."
  313. inBlock: Int!
  314. "Network the block was produced in"
  315. network: Network!
  316. "Index of event in block from which it was emitted."
  317. indexInBlock: Int!
  318. ### SPECIFIC DATA ###
  319. }
  320. type ReferendumFinishedEvent implements Event @entity {
  321. ### GENERIC DATA ###
  322. "(network}-{blockNumber}-{indexInBlock}"
  323. id: ID!
  324. "Hash of the extrinsic which caused the event to be emitted"
  325. inExtrinsic: String
  326. "Blocknumber of the block in which the event was emitted."
  327. inBlock: Int!
  328. "Network the block was produced in"
  329. network: Network!
  330. "Index of event in block from which it was emitted."
  331. indexInBlock: Int!
  332. ### SPECIFIC DATA ###
  333. "Referendum results."
  334. optionResults: [ReferendumStageRevealingOptionResult!] @derivedFrom(field: "referendumFinishedEvent")
  335. }
  336. type VoteCastEvent implements Event @entity {
  337. ### GENERIC DATA ###
  338. "(network}-{blockNumber}-{indexInBlock}"
  339. id: ID!
  340. "Hash of the extrinsic which caused the event to be emitted"
  341. inExtrinsic: String
  342. "Blocknumber of the block in which the event was emitted."
  343. inBlock: Int!
  344. "Network the block was produced in"
  345. network: Network!
  346. "Index of event in block from which it was emitted."
  347. indexInBlock: Int!
  348. ### SPECIFIC DATA ###
  349. "Vote cast."
  350. castVote: CastVote!
  351. }
  352. type VoteRevealedEvent implements Event @entity {
  353. ### GENERIC DATA ###
  354. "(network}-{blockNumber}-{indexInBlock}"
  355. id: ID!
  356. "Hash of the extrinsic which caused the event to be emitted"
  357. inExtrinsic: String
  358. "Blocknumber of the block in which the event was emitted."
  359. inBlock: Int!
  360. "Network the block was produced in"
  361. network: Network!
  362. "Index of event in block from which it was emitted."
  363. indexInBlock: Int!
  364. ### SPECIFIC DATA ###
  365. "Vote cast."
  366. castVote: CastVote!
  367. }
  368. type StakeReleasedEvent implements Event @entity {
  369. ### GENERIC DATA ###
  370. "(network}-{blockNumber}-{indexInBlock}"
  371. id: ID!
  372. "Hash of the extrinsic which caused the event to be emitted"
  373. inExtrinsic: String
  374. "Blocknumber of the block in which the event was emitted."
  375. inBlock: Int!
  376. "Network the block was produced in"
  377. network: Network!
  378. "Index of event in block from which it was emitted."
  379. indexInBlock: Int!
  380. ### SPECIFIC DATA ###
  381. "Account used to stake the value."
  382. stakingAccount: String!
  383. }