membershipEvents.graphql 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. type MembershipBoughtEvent 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. "New membership created."
  15. newMember: Membership!
  16. "New member root account in SS58 encoding."
  17. rootAccount: String!
  18. "New member controller in SS58 encoding."
  19. controllerAccount: String!
  20. "New member handle."
  21. handle: String!
  22. "New member metadata"
  23. metadata: MemberMetadata!
  24. "Referrer member."
  25. referrer: Membership
  26. }
  27. type MemberInvitedEvent implements Event @entity {
  28. ### GENERIC DATA ###
  29. "(network}-{blockNumber}-{indexInBlock}"
  30. id: ID!
  31. "Hash of the extrinsic which caused the event to be emitted"
  32. inExtrinsic: String
  33. "Blocknumber of the block in which the event was emitted."
  34. inBlock: Int!
  35. "Network the block was produced in"
  36. network: Network!
  37. "Index of event in block from which it was emitted."
  38. indexInBlock: Int!
  39. ### SPECIFIC DATA ###
  40. "Inviting member."
  41. invitingMember: Membership!
  42. "New membership created."
  43. newMember: Membership!
  44. "New member root account in SS58 encoding."
  45. rootAccount: String!
  46. "New member controller in SS58 encoding."
  47. controllerAccount: String!
  48. "New member handle."
  49. handle: String!
  50. "New member metadata"
  51. metadata: MemberMetadata!
  52. }
  53. type MemberProfileUpdatedEvent implements Event @entity {
  54. ### GENERIC DATA ###
  55. "(network}-{blockNumber}-{indexInBlock}"
  56. id: ID!
  57. "Hash of the extrinsic which caused the event to be emitted"
  58. inExtrinsic: String
  59. "Blocknumber of the block in which the event was emitted."
  60. inBlock: Int!
  61. "Network the block was produced in"
  62. network: Network!
  63. "Index of event in block from which it was emitted."
  64. indexInBlock: Int!
  65. ### SPECIFIC DATA ###
  66. "Membership being updated."
  67. member: Membership!
  68. "New member handle. Null means no new value was provided."
  69. newHandle: String
  70. "New member metadata. (empty values inside metadata mean no new value was provided)"
  71. newMetadata: MemberMetadata!
  72. }
  73. type MemberAccountsUpdatedEvent implements Event @entity {
  74. ### GENERIC DATA ###
  75. "(network}-{blockNumber}-{indexInBlock}"
  76. id: ID!
  77. "Hash of the extrinsic which caused the event to be emitted"
  78. inExtrinsic: String
  79. "Blocknumber of the block in which the event was emitted."
  80. inBlock: Int!
  81. "Network the block was produced in"
  82. network: Network!
  83. "Index of event in block from which it was emitted."
  84. indexInBlock: Int!
  85. ### SPECIFIC DATA ###
  86. "Membership in question."
  87. member: Membership!
  88. "New member root account in SS58 encoding. Null means no new value was provided."
  89. newRootAccount: String
  90. "New member controller in SS58 encoding. Null means no new value was provided."
  91. newControllerAccount: String
  92. }
  93. type MemberVerificationStatusUpdatedEvent implements Event @entity {
  94. ### GENERIC DATA ###
  95. "(network}-{blockNumber}-{indexInBlock}"
  96. id: ID!
  97. "Hash of the extrinsic which caused the event to be emitted"
  98. inExtrinsic: String
  99. "Blocknumber of the block in which the event was emitted."
  100. inBlock: Int!
  101. "Network the block was produced in"
  102. network: Network!
  103. "Index of event in block from which it was emitted."
  104. indexInBlock: Int!
  105. ### SPECIFIC DATA ###
  106. "Membership in question."
  107. member: Membership!
  108. "Worker updating status"
  109. worker: Worker!
  110. "New status."
  111. isVerified: Boolean!
  112. }
  113. type ReferralCutUpdatedEvent implements Event @entity {
  114. ### GENERIC DATA ###
  115. "(network}-{blockNumber}-{indexInBlock}"
  116. id: ID!
  117. "Hash of the extrinsic which caused the event to be emitted"
  118. inExtrinsic: String
  119. "Blocknumber of the block in which the event was emitted."
  120. inBlock: Int!
  121. "Network the block was produced in"
  122. network: Network!
  123. "Index of event in block from which it was emitted."
  124. indexInBlock: Int!
  125. ### SPECIFIC DATA ###
  126. "New cut value."
  127. newValue: Int!
  128. }
  129. type InvitesTransferredEvent implements Event @entity {
  130. ### GENERIC DATA ###
  131. "(network}-{blockNumber}-{indexInBlock}"
  132. id: ID!
  133. "Hash of the extrinsic which caused the event to be emitted"
  134. inExtrinsic: String
  135. "Blocknumber of the block in which the event was emitted."
  136. inBlock: Int!
  137. "Network the block was produced in"
  138. network: Network!
  139. "Index of event in block from which it was emitted."
  140. indexInBlock: Int!
  141. ### SPECIFIC DATA ###
  142. "Membership sending invites."
  143. sourceMember: Membership!
  144. "Membership receiving invites."
  145. targetMember: Membership!
  146. "Number of invites transferred."
  147. numberOfInvites: Int!
  148. }
  149. type MembershipPriceUpdatedEvent implements Event @entity {
  150. ### GENERIC DATA ###
  151. "(network}-{blockNumber}-{indexInBlock}"
  152. id: ID!
  153. "Hash of the extrinsic which caused the event to be emitted"
  154. inExtrinsic: String
  155. "Blocknumber of the block in which the event was emitted."
  156. inBlock: Int!
  157. "Network the block was produced in"
  158. network: Network!
  159. "Index of event in block from which it was emitted."
  160. indexInBlock: Int!
  161. ### SPECIFIC DATA ###
  162. "The new membership price."
  163. newPrice: BigInt!
  164. }
  165. type InitialInvitationBalanceUpdatedEvent implements Event @entity {
  166. ### GENERIC DATA ###
  167. "(network}-{blockNumber}-{indexInBlock}"
  168. id: ID!
  169. "Hash of the extrinsic which caused the event to be emitted"
  170. inExtrinsic: String
  171. "Blocknumber of the block in which the event was emitted."
  172. inBlock: Int!
  173. "Network the block was produced in"
  174. network: Network!
  175. "Index of event in block from which it was emitted."
  176. indexInBlock: Int!
  177. ### SPECIFIC DATA ###
  178. "New initial invitation balance."
  179. newInitialBalance: BigInt!
  180. }
  181. type LeaderInvitationQuotaUpdatedEvent implements Event @entity {
  182. ### GENERIC DATA ###
  183. "(network}-{blockNumber}-{indexInBlock}"
  184. id: ID!
  185. "Hash of the extrinsic which caused the event to be emitted"
  186. inExtrinsic: String
  187. "Blocknumber of the block in which the event was emitted."
  188. inBlock: Int!
  189. "Network the block was produced in"
  190. network: Network!
  191. "Index of event in block from which it was emitted."
  192. indexInBlock: Int!
  193. ### SPECIFIC DATA ###
  194. "New quota."
  195. newInvitationQuota: Int!
  196. }
  197. type InitialInvitationCountUpdatedEvent implements Event @entity {
  198. ### GENERIC DATA ###
  199. "(network}-{blockNumber}-{indexInBlock}"
  200. id: ID!
  201. "Hash of the extrinsic which caused the event to be emitted"
  202. inExtrinsic: String
  203. "Blocknumber of the block in which the event was emitted."
  204. inBlock: Int!
  205. "Network the block was produced in"
  206. network: Network!
  207. "Index of event in block from which it was emitted."
  208. indexInBlock: Int!
  209. ### SPECIFIC DATA ###
  210. "New initial invitation count for members."
  211. newInitialInvitationCount: Int!
  212. }
  213. type StakingAccountAddedEvent implements Event @entity {
  214. ### GENERIC DATA ###
  215. "(network}-{blockNumber}-{indexInBlock}"
  216. id: ID!
  217. "Hash of the extrinsic which caused the event to be emitted"
  218. inExtrinsic: String
  219. "Blocknumber of the block in which the event was emitted."
  220. inBlock: Int!
  221. "Network the block was produced in"
  222. network: Network!
  223. "Index of event in block from which it was emitted."
  224. indexInBlock: Int!
  225. ### SPECIFIC DATA ###
  226. "Membership in question."
  227. member: Membership!
  228. "New staking account in SS58 encoding."
  229. account: String!
  230. }
  231. type StakingAccountConfirmedEvent implements Event @entity {
  232. ### GENERIC DATA ###
  233. "(network}-{blockNumber}-{indexInBlock}"
  234. id: ID!
  235. "Hash of the extrinsic which caused the event to be emitted"
  236. inExtrinsic: String
  237. "Blocknumber of the block in which the event was emitted."
  238. inBlock: Int!
  239. "Network the block was produced in"
  240. network: Network!
  241. "Index of event in block from which it was emitted."
  242. indexInBlock: Int!
  243. ### SPECIFIC DATA ###
  244. "Membership in question."
  245. member: Membership!
  246. "New staking account in SS58 encoding."
  247. account: String!
  248. }
  249. type StakingAccountRemovedEvent 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. "Membership in question."
  263. member: Membership!
  264. "New staking account in SS58 encoding."
  265. account: String!
  266. }