contentNftEvents.graphql 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. type AuctionStartedEvent 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. "Actor that started this auction."
  15. actor: ContentActor!
  16. "Video that's being auctioned."
  17. video: Video!
  18. "Auction started."
  19. auction: Auction!
  20. }
  21. type NftIssuedEvent implements Event @entity {
  22. ### GENERIC DATA ###
  23. "(network}-{blockNumber}-{indexInBlock}."
  24. id: ID!
  25. "Hash of the extrinsic which caused the event to be emitted."
  26. inExtrinsic: String
  27. "Blocknumber of the block in which the event was emitted."
  28. inBlock: Int!
  29. "Network the block was produced in."
  30. network: Network!
  31. "Index of event in block from which it was emitted."
  32. indexInBlock: Int!
  33. ### SPECIFIC DATA ###
  34. "Content actor that issued the NFT."
  35. contentActor: ContentActor!
  36. "Video represented via NFT."
  37. video: Video!
  38. "Royalty for the NFT/video."
  39. royalty: Float
  40. # TODO: inspect if metadata can be unpacked and mean something useful
  41. "NFT's metadata."
  42. metadata: String!
  43. "Member NFT was originally issued to."
  44. newOwner: Membership
  45. }
  46. type AuctionBidMadeEvent 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. "Member bidding in the auction."
  60. member: Membership!
  61. "Video that's bidden on."
  62. video: Video!
  63. "Bid made."
  64. bidAmount: BigInt!
  65. "Sign of auction duration being extended by making this bid."
  66. extendsAuction: Boolean!
  67. }
  68. type AuctionBidCanceledEvent 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. "Auction that canceled the bid."
  82. member: Membership!
  83. "Auctioned video."
  84. video: Video!
  85. }
  86. type AuctionCanceledEvent implements Event @entity {
  87. ### GENERIC DATA ###
  88. "(network}-{blockNumber}-{indexInBlock}."
  89. id: ID!
  90. "Hash of the extrinsic which caused the event to be emitted."
  91. inExtrinsic: String
  92. "Blocknumber of the block in which the event was emitted."
  93. inBlock: Int!
  94. "Network the block was produced in."
  95. network: Network!
  96. "Index of event in block from which it was emitted."
  97. indexInBlock: Int!
  98. ### SPECIFIC DATA ###
  99. "Content actor canceling the event."
  100. contentActor: ContentActor!
  101. "Auctioned video."
  102. video: Video!
  103. }
  104. type EnglishAuctionCompletedEvent implements Event @entity {
  105. ### GENERIC DATA ###
  106. "(network}-{blockNumber}-{indexInBlock}."
  107. id: ID!
  108. "Hash of the extrinsic which caused the event to be emitted."
  109. inExtrinsic: String
  110. "Blocknumber of the block in which the event was emitted."
  111. inBlock: Int!
  112. "Network the block was produced in."
  113. network: Network!
  114. "Index of event in block from which it was emitted."
  115. indexInBlock: Int!
  116. ### SPECIFIC DATA ###
  117. "Member claiming the auctioned NFT."
  118. winner: Membership!
  119. "Auctioned video."
  120. video: Video!
  121. }
  122. type BidMadeCompletingAuctionEvent implements Event @entity {
  123. ### GENERIC DATA ###
  124. "(network}-{blockNumber}-{indexInBlock}."
  125. id: ID!
  126. "Hash of the extrinsic which caused the event to be emitted."
  127. inExtrinsic: String
  128. "Blocknumber of the block in which the event was emitted."
  129. inBlock: Int!
  130. "Network the block was produced in."
  131. network: Network!
  132. "Index of event in block from which it was emitted."
  133. indexInBlock: Int!
  134. ### SPECIFIC DATA ###
  135. "Member completing the auction."
  136. member: Membership!
  137. "Auctioned video."
  138. video: Video!
  139. }
  140. type OpenAuctionBidAcceptedEvent implements Event @entity {
  141. ### GENERIC DATA ###
  142. "(network}-{blockNumber}-{indexInBlock}."
  143. id: ID!
  144. "Hash of the extrinsic which caused the event to be emitted."
  145. inExtrinsic: String
  146. "Blocknumber of the block in which the event was emitted."
  147. inBlock: Int!
  148. "Network the block was produced in."
  149. network: Network!
  150. "Index of event in block from which it was emitted."
  151. indexInBlock: Int!
  152. ### SPECIFIC DATA ###
  153. "Content actor canceling the event."
  154. contentActor: ContentActor!
  155. "Auctioned video."
  156. video: Video!
  157. }
  158. type OfferStartedEvent implements Event @entity {
  159. ### GENERIC DATA ###
  160. "(network}-{blockNumber}-{indexInBlock}."
  161. id: ID!
  162. "Hash of the extrinsic which caused the event to be emitted."
  163. inExtrinsic: String
  164. "Blocknumber of the block in which the event was emitted."
  165. inBlock: Int!
  166. "Network the block was produced in."
  167. network: Network!
  168. "Index of event in block from which it was emitted."
  169. indexInBlock: Int!
  170. ### SPECIFIC DATA ###
  171. "NFT's video."
  172. video: Video!
  173. "Content actor acting as NFT owner."
  174. contentActor: ContentActor!
  175. "Member that receives the offer."
  176. member: Membership!
  177. "Offer's price."
  178. price: BigInt
  179. }
  180. type OfferAcceptedEvent implements Event @entity {
  181. ### GENERIC DATA ###
  182. "(network}-{blockNumber}-{indexInBlock}."
  183. id: ID!
  184. "Hash of the extrinsic which caused the event to be emitted."
  185. inExtrinsic: String
  186. "Blocknumber of the block in which the event was emitted."
  187. inBlock: Int!
  188. "Network the block was produced in."
  189. network: Network!
  190. "Index of event in block from which it was emitted."
  191. indexInBlock: Int!
  192. ### SPECIFIC DATA ###
  193. "NFT's video."
  194. video: Video!
  195. }
  196. type OfferCanceledEvent implements Event @entity {
  197. ### GENERIC DATA ###
  198. "(network}-{blockNumber}-{indexInBlock}."
  199. id: ID!
  200. "Hash of the extrinsic which caused the event to be emitted."
  201. inExtrinsic: String
  202. "Blocknumber of the block in which the event was emitted."
  203. inBlock: Int!
  204. "Network the block was produced in."
  205. network: Network!
  206. "Index of event in block from which it was emitted."
  207. indexInBlock: Int!
  208. ### SPECIFIC DATA ###
  209. "NFT's video."
  210. video: Video!
  211. "Content actor acting as NFT owner."
  212. contentActor: ContentActor!
  213. }
  214. type NftSellOrderMadeEvent @entity {
  215. ### GENERIC DATA ###
  216. "(network}-{blockNumber}-{indexInBlock}."
  217. id: ID!
  218. "Hash of the extrinsic which caused the event to be emitted."
  219. inExtrinsic: String
  220. "Blocknumber of the block in which the event was emitted."
  221. inBlock: Int!
  222. "Network the block was produced in."
  223. network: Network!
  224. "Index of event in block from which it was emitted."
  225. indexInBlock: Int!
  226. ### SPECIFIC DATA ###
  227. "NFT's video."
  228. video: Video!
  229. "Content actor acting as NFT owner."
  230. contentActor: ContentActor!
  231. "Offer's price."
  232. price: BigInt!
  233. }
  234. type NftBoughtEvent implements Event @entity {
  235. ### GENERIC DATA ###
  236. "(network}-{blockNumber}-{indexInBlock}."
  237. id: ID!
  238. "Hash of the extrinsic which caused the event to be emitted."
  239. inExtrinsic: String
  240. "Blocknumber of the block in which the event was emitted."
  241. inBlock: Int!
  242. "Network the block was produced in."
  243. network: Network!
  244. "Index of event in block from which it was emitted."
  245. indexInBlock: Int!
  246. ### SPECIFIC DATA ###
  247. "NFT's video."
  248. video: Video!
  249. "Member that bought the NFT."
  250. member: Membership!
  251. }
  252. type BuyNowCanceledEvent implements Event @entity {
  253. ### GENERIC DATA ###
  254. "(network}-{blockNumber}-{indexInBlock}."
  255. id: ID!
  256. "Hash of the extrinsic which caused the event to be emitted."
  257. inExtrinsic: String
  258. "Blocknumber of the block in which the event was emitted."
  259. inBlock: Int!
  260. "Network the block was produced in."
  261. network: Network!
  262. "Index of event in block from which it was emitted."
  263. indexInBlock: Int!
  264. ### SPECIFIC DATA ###
  265. "NFT's video."
  266. video: Video!
  267. "Content actor acting as NFT owner."
  268. contentActor: ContentActor!
  269. }