|
@@ -0,0 +1,406 @@
|
|
|
+# TODO: add `implements Event @entity` to events
|
|
|
+# remove relations in events and save snapshot representation (immutable)
|
|
|
+# TODO: unite leading dot `.` in property descriptions
|
|
|
+
|
|
|
+type AuctionStartedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Actor that started this auction"
|
|
|
+ actor: ContentActor!
|
|
|
+
|
|
|
+ "Video that's being auctioned"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Auction started"
|
|
|
+ auction: Auction!
|
|
|
+}
|
|
|
+
|
|
|
+type NftIssuedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Content actor that issued the NFT"
|
|
|
+ contentActor: ContentActor!
|
|
|
+
|
|
|
+ "Video represented via NFT"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Royalty for the NFT/video"
|
|
|
+ royalty: Float
|
|
|
+
|
|
|
+ # TODO: inspect if metadata can be unpacked and mean something useful
|
|
|
+ "NFT's metadata"
|
|
|
+ metadata: String!
|
|
|
+
|
|
|
+ "Member NFT was originally issued to"
|
|
|
+ newOwner: Membership
|
|
|
+}
|
|
|
+
|
|
|
+type AuctionBidMadeEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Member bidding in the auction."
|
|
|
+ member: Membership!
|
|
|
+
|
|
|
+ "Video that's bidden on"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Bid made"
|
|
|
+ bidAmount: BigInt!
|
|
|
+
|
|
|
+ "Sign of auction duration being extended by making this bid"
|
|
|
+ extendsAuction: Boolean!
|
|
|
+}
|
|
|
+
|
|
|
+type AuctionBidCanceledEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Auction that canceled the bid"
|
|
|
+ member: Membership!
|
|
|
+
|
|
|
+ "Auctioned video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type AuctionCanceledEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Content actor canceling the event"
|
|
|
+ contentActor: ContentActor!
|
|
|
+
|
|
|
+ "Auctioned video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type EnglishAuctionCompletedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Member claiming the auctioned NFT"
|
|
|
+ member: Membership!
|
|
|
+
|
|
|
+ "Auctioned video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type BidMadeCompletingAuctionEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Member completing the auction"
|
|
|
+ member: Membership!
|
|
|
+
|
|
|
+ "Auctioned video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type OpenAuctionBidAcceptedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "Content actor canceling the event"
|
|
|
+ contentActor: ContentActor!
|
|
|
+
|
|
|
+ "Auctioned video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type OfferStartedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Content actor acting as NFT owner"
|
|
|
+ contentActor: ContentActor!
|
|
|
+
|
|
|
+ "Member that receives the offer"
|
|
|
+ member: Membership!
|
|
|
+
|
|
|
+ "Offer's price"
|
|
|
+ price: BigInt
|
|
|
+}
|
|
|
+
|
|
|
+type OfferAcceptedEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+}
|
|
|
+
|
|
|
+type OfferCanceledEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Content actor acting as NFT owner"
|
|
|
+ contentActor: ContentActor!
|
|
|
+}
|
|
|
+
|
|
|
+type NftSellOrderMadeEvent @entity { # NFT in name can't be UPPERCASE because it causes codegen errors
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Content actor acting as NFT owner"
|
|
|
+ contentActor: ContentActor!
|
|
|
+
|
|
|
+ "Offer's price"
|
|
|
+ price: BigInt!
|
|
|
+}
|
|
|
+
|
|
|
+type NftBoughtEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Member that bought the NFT"
|
|
|
+ member: Membership!
|
|
|
+}
|
|
|
+
|
|
|
+type BuyNowCanceledEvent @entity {
|
|
|
+ ### GENERIC DATA ###
|
|
|
+
|
|
|
+ "(network}-{blockNumber}-{indexInBlock}"
|
|
|
+ id: ID!
|
|
|
+
|
|
|
+ "Hash of the extrinsic which caused the event to be emitted"
|
|
|
+ inExtrinsic: String
|
|
|
+
|
|
|
+ "Blocknumber of the block in which the event was emitted."
|
|
|
+ inBlock: Int!
|
|
|
+
|
|
|
+ "Network the block was produced in"
|
|
|
+ network: Network!
|
|
|
+
|
|
|
+ "Index of event in block from which it was emitted."
|
|
|
+ indexInBlock: Int!
|
|
|
+
|
|
|
+ ### SPECIFIC DATA ###
|
|
|
+
|
|
|
+ "NFT's video"
|
|
|
+ video: Video!
|
|
|
+
|
|
|
+ "Content actor acting as NFT owner"
|
|
|
+ contentActor: ContentActor!
|
|
|
+}
|