councilEvents.graphql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  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. "Related candidate."
  128. candidate: Candidate!
  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. "Related candidate."
  144. candidate: Candidate!
  145. "The metadata contained in note."
  146. noteMetadata: CandidacyNoteMetadata!
  147. }
  148. type RewardPaymentEvent implements Event @entity {
  149. ### GENERIC DATA ###
  150. "(network}-{blockNumber}-{indexInBlock}"
  151. id: ID!
  152. "Hash of the extrinsic which caused the event to be emitted"
  153. inExtrinsic: String
  154. "Blocknumber of the block in which the event was emitted."
  155. inBlock: Int!
  156. "Network the block was produced in"
  157. network: Network!
  158. "Index of event in block from which it was emitted."
  159. indexInBlock: Int!
  160. ### SPECIFIC DATA ###
  161. "Related council member."
  162. councilMember: CouncilMember!
  163. "Candidate's account that will be recieving rewards if candidate's elected."
  164. rewardAccount: String!
  165. "Amount paid to the council member"
  166. paidBalance: BigInt!
  167. "Amount that couldn't be paid and will be paid the next time."
  168. missingBalance: BigInt!
  169. }
  170. type BudgetBalanceSetEvent implements Event @entity {
  171. ### GENERIC DATA ###
  172. "(network}-{blockNumber}-{indexInBlock}"
  173. id: ID!
  174. "Hash of the extrinsic which caused the event to be emitted"
  175. inExtrinsic: String
  176. "Blocknumber of the block in which the event was emitted."
  177. inBlock: Int!
  178. "Network the block was produced in"
  179. network: Network!
  180. "Index of event in block from which it was emitted."
  181. indexInBlock: Int!
  182. ### SPECIFIC DATA ###
  183. "Budget balance that has been set."
  184. balance: BigInt!
  185. }
  186. type BudgetRefillEvent implements Event @entity {
  187. ### GENERIC DATA ###
  188. "(network}-{blockNumber}-{indexInBlock}"
  189. id: ID!
  190. "Hash of the extrinsic which caused the event to be emitted"
  191. inExtrinsic: String
  192. "Blocknumber of the block in which the event was emitted."
  193. inBlock: Int!
  194. "Network the block was produced in"
  195. network: Network!
  196. "Index of event in block from which it was emitted."
  197. indexInBlock: Int!
  198. ### SPECIFIC DATA ###
  199. "Balance that has been refilled."
  200. balance: BigInt!
  201. }
  202. type BudgetRefillPlannedEvent implements Event @entity {
  203. ### GENERIC DATA ###
  204. "(network}-{blockNumber}-{indexInBlock}"
  205. id: ID!
  206. "Hash of the extrinsic which caused the event to be emitted"
  207. inExtrinsic: String
  208. "Blocknumber of the block in which the event was emitted."
  209. inBlock: Int!
  210. "Network the block was produced in"
  211. network: Network!
  212. "Index of event in block from which it was emitted."
  213. indexInBlock: Int!
  214. ### SPECIFIC DATA ###
  215. nextRefillInBlock: Int!
  216. }
  217. type BudgetIncrementUpdatedEvent implements Event @entity {
  218. ### GENERIC DATA ###
  219. "(network}-{blockNumber}-{indexInBlock}"
  220. id: ID!
  221. "Hash of the extrinsic which caused the event to be emitted"
  222. inExtrinsic: String
  223. "Blocknumber of the block in which the event was emitted."
  224. inBlock: Int!
  225. "Network the block was produced in"
  226. network: Network!
  227. "Index of event in block from which it was emitted."
  228. indexInBlock: Int!
  229. ### SPECIFIC DATA ###
  230. "Amount that is added to the budget each time it's refilled."
  231. amount: BigInt!
  232. }
  233. type CouncilorRewardUpdatedEvent implements Event @entity {
  234. ### GENERIC DATA ###
  235. "(network}-{blockNumber}-{indexInBlock}"
  236. id: ID!
  237. "Hash of the extrinsic which caused the event to be emitted"
  238. inExtrinsic: String
  239. "Blocknumber of the block in which the event was emitted."
  240. inBlock: Int!
  241. "Network the block was produced in"
  242. network: Network!
  243. "Index of event in block from which it was emitted."
  244. indexInBlock: Int!
  245. ### SPECIFIC DATA ###
  246. "New reward amount paid each reward period."
  247. rewardAmount: BigInt!
  248. }
  249. type RequestFundedEvent implements Event @entity {
  250. ### GENERIC DATA ###
  251. "(network}-{blockNumber}-{indexInBlock}"
  252. id: ID!
  253. "Hash of the extrinsic which caused the event to be emitted"
  254. inExtrinsic: String
  255. "Blocknumber of the block in which the event was emitted."
  256. inBlock: Int!
  257. "Network the block was produced in"
  258. network: Network!
  259. "Index of event in block from which it was emitted."
  260. indexInBlock: Int!
  261. ### SPECIFIC DATA ###
  262. "Target account."
  263. account: String!
  264. "Funding amount."
  265. amount: BigInt!
  266. }
  267. ################### Referendum #################################################
  268. type ReferendumStartedEvent implements Event @entity {
  269. ### GENERIC DATA ###
  270. "(network}-{blockNumber}-{indexInBlock}"
  271. id: ID!
  272. "Hash of the extrinsic which caused the event to be emitted"
  273. inExtrinsic: String
  274. "Blocknumber of the block in which the event was emitted."
  275. inBlock: Int!
  276. "Network the block was produced in"
  277. network: Network!
  278. "Index of event in block from which it was emitted."
  279. indexInBlock: Int!
  280. ### SPECIFIC DATA ###
  281. "Amount of winning referendum options."
  282. winningTargetCount: BigInt!
  283. }
  284. type ReferendumStartedForcefullyEvent implements Event @entity {
  285. ### GENERIC DATA ###
  286. "(network}-{blockNumber}-{indexInBlock}"
  287. id: ID!
  288. "Hash of the extrinsic which caused the event to be emitted"
  289. inExtrinsic: String
  290. "Blocknumber of the block in which the event was emitted."
  291. inBlock: Int!
  292. "Network the block was produced in"
  293. network: Network!
  294. "Index of event in block from which it was emitted."
  295. indexInBlock: Int!
  296. ### SPECIFIC DATA ###
  297. "Amount of winning referendum options."
  298. winningTargetCount: BigInt!
  299. }
  300. type RevealingStageStartedEvent implements Event @entity {
  301. ### GENERIC DATA ###
  302. "(network}-{blockNumber}-{indexInBlock}"
  303. id: ID!
  304. "Hash of the extrinsic which caused the event to be emitted"
  305. inExtrinsic: String
  306. "Blocknumber of the block in which the event was emitted."
  307. inBlock: Int!
  308. "Network the block was produced in"
  309. network: Network!
  310. "Index of event in block from which it was emitted."
  311. indexInBlock: Int!
  312. ### SPECIFIC DATA ###
  313. }
  314. type ReferendumFinishedEvent implements Event @entity {
  315. ### GENERIC DATA ###
  316. "(network}-{blockNumber}-{indexInBlock}"
  317. id: ID!
  318. "Hash of the extrinsic which caused the event to be emitted"
  319. inExtrinsic: String
  320. "Blocknumber of the block in which the event was emitted."
  321. inBlock: Int!
  322. "Network the block was produced in"
  323. network: Network!
  324. "Index of event in block from which it was emitted."
  325. indexInBlock: Int!
  326. ### SPECIFIC DATA ###
  327. }
  328. type VoteCastEvent implements Event @entity {
  329. ### GENERIC DATA ###
  330. "(network}-{blockNumber}-{indexInBlock}"
  331. id: ID!
  332. "Hash of the extrinsic which caused the event to be emitted"
  333. inExtrinsic: String
  334. "Blocknumber of the block in which the event was emitted."
  335. inBlock: Int!
  336. "Network the block was produced in"
  337. network: Network!
  338. "Index of event in block from which it was emitted."
  339. indexInBlock: Int!
  340. ### SPECIFIC DATA ###
  341. "Vote cast."
  342. castVote: CastVote!
  343. }
  344. type VoteRevealedEvent implements Event @entity {
  345. ### GENERIC DATA ###
  346. "(network}-{blockNumber}-{indexInBlock}"
  347. id: ID!
  348. "Hash of the extrinsic which caused the event to be emitted"
  349. inExtrinsic: String
  350. "Blocknumber of the block in which the event was emitted."
  351. inBlock: Int!
  352. "Network the block was produced in"
  353. network: Network!
  354. "Index of event in block from which it was emitted."
  355. indexInBlock: Int!
  356. ### SPECIFIC DATA ###
  357. "Vote cast."
  358. castVote: CastVote!
  359. }
  360. type StakeReleasedEvent implements Event @entity {
  361. ### GENERIC DATA ###
  362. "(network}-{blockNumber}-{indexInBlock}"
  363. id: ID!
  364. "Hash of the extrinsic which caused the event to be emitted"
  365. inExtrinsic: String
  366. "Blocknumber of the block in which the event was emitted."
  367. inBlock: Int!
  368. "Network the block was produced in"
  369. network: Network!
  370. "Index of event in block from which it was emitted."
  371. indexInBlock: Int!
  372. ### SPECIFIC DATA ###
  373. "Account used to stake the value."
  374. stakingAccount: String!
  375. }