123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- type Event @entity {
- "{blockNumber}-{indexInBlock}"
- id: ID!
- "Blocknumber of the block in which the event was emitted."
- inBlock: Int!
- "Hash of the extrinsic the event was emitted in"
- inExtrinsic: String @index
- "Index of event in block from which it was emitted."
- indexInBlock: Int!
- "Timestamp of the block the event was emitted in"
- timestamp: DateTime!
- "More specific event data, which depends on event type"
- data: EventData!
- }
- type Notification @entity {
- "Autoincremented"
- id: ID!
- "Member that should recieve the notification"
- member: Membership!
- "The notification event"
- event: Event!
- }
- type NftHistoryEntry @entity {
- "Autoincremented"
- id: ID!
- "The NFT the event relates to"
- nft: OwnedNft!
- "Nft-related event"
- event: Event!
- }
- type NftActivity @entity {
- "Autoincremented"
- id: ID!
- "The member the activity relates to"
- member: Membership!
- "Nft-related activity"
- event: Event!
- }
- union EventData =
- CommentCreatedEventData
- | CommentTextUpdatedEventData
- | OpenAuctionStartedEventData
- | EnglishAuctionStartedEventData
- | NftIssuedEventData
- | AuctionBidMadeEventData
- | AuctionBidCanceledEventData
- | AuctionCanceledEventData
- | EnglishAuctionSettledEventData
- | BidMadeCompletingAuctionEventData
- | OpenAuctionBidAcceptedEventData
- | NftSellOrderMadeEventData
- | NftBoughtEventData
- | BuyNowCanceledEventData
- | BuyNowPriceUpdatedEventData
- | MetaprotocolTransactionStatusEventData
- | ChannelRewardClaimedEventData
- | ChannelRewardClaimedAndWithdrawnEventData
- | ChannelFundsWithdrawnEventData
- | ChannelPayoutsUpdatedEventData
- | ChannelPaymentMadeEventData
- | MemberBannedFromChannelEventData
- # Atlas use-case: `GetCommentEdits` query
- type CommentCreatedEventData {
- "The comment that was added"
- comment: Comment!
- "Comment's original text"
- text: String!
- }
- # Atlas use-case: `GetCommentEdits` query
- type CommentTextUpdatedEventData {
- "The comment being updated"
- comment: Comment!
- "New comment text"
- newText: String!
- # Only author can edit the comment, so no actor context required
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type OpenAuctionStartedEventData {
- "Actor that started this auction."
- actor: ContentActor!
- "Nft owner at the time it was put on an auction."
- nftOwner: NftOwner!
- "Auction started."
- auction: Auction!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type EnglishAuctionStartedEventData {
- "Actor that started this auction."
- actor: ContentActor!
- "Nft owner at the time it was put on an auction."
- nftOwner: NftOwner!
- "Auction started."
- auction: Auction!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type NftIssuedEventData {
- "Actor that issued the NFT."
- actor: ContentActor!
- "NFT that was issued."
- nft: OwnedNft!
- "NFT's initial owner."
- nftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities`, `GetNftHistory` and `GetNotifications` query
- type AuctionBidMadeEventData {
- "The bid that was submitted "
- bid: Bid!
- "Nft owner at the time it was being auctioned."
- nftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type AuctionBidCanceledEventData {
- "Member that canceled the bid."
- member: Membership!
- "Nft owner at the time it was being auctioned."
- nftOwner: NftOwner!
- "The bid that got canceled."
- bid: Bid!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type AuctionCanceledEventData {
- "Content actor canceling the auction."
- actor: ContentActor!
- "Nft owner at the time the auction was being auctioned."
- nftOwner: NftOwner!
- "Auction that was canceled."
- auction: Auction!
- }
- # Atlas use-case: `GetNftActivities`, `GetNftHistory` and `GetNotifications` query
- type EnglishAuctionSettledEventData {
- "English auction winning bid"
- winningBid: Bid!
- "NFT owner before the english auction was settled"
- previousNftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities`, `GetNftHistory` and `GetNotifications` query
- type BidMadeCompletingAuctionEventData {
- "Bid that completed the auction"
- winningBid: Bid!
- "NFT owner before the auction was completed"
- previousNftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities`, `GetNftHistory` and `GetNotifications` query
- type OpenAuctionBidAcceptedEventData {
- "Content actor that accepted the bid."
- actor: ContentActor!
- "Accepted/winning bid"
- winningBid: Bid!
- "NFT owner before the auction was completed"
- previousNftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory` query
- type NftSellOrderMadeEventData {
- "NFT being sold"
- nft: OwnedNft!
- "Content actor acting as NFT owner."
- actor: ContentActor!
- "NFT owner at the time it was put on sale"
- nftOwner: NftOwner!
- "Offer's price."
- price: BigInt!
- }
- # Atlas use-case: `GetNftActivities`, `GetNftHistory` and `GetNotifications` query
- type NftBoughtEventData {
- "The NFT that was bought"
- nft: OwnedNft!
- "Member that bought the NFT."
- buyer: Membership!
- "NFT owner before it was bought"
- previousNftOwner: NftOwner!
- "Price for which the NFT was bought"
- price: BigInt!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory`
- type BuyNowCanceledEventData {
- "The NFT for which the buy now offer was canceled"
- nft: OwnedNft!
- "Content actor acting as NFT owner."
- actor: ContentActor!
- "Owner of the NFT at the time the buy now offer was canceled."
- nftOwner: NftOwner!
- }
- # Atlas use-case: `GetNftActivities` and `GetNftHistory`
- type BuyNowPriceUpdatedEventData {
- "NFT being sold"
- nft: OwnedNft!
- "Content actor acting as NFT owner."
- actor: ContentActor!
- "NFT owner at the time it was on sale"
- nftOwner: NftOwner!
- "New sell order price."
- newPrice: BigInt!
- }
- type MetaprotocolTransactionResultCommentCreated {
- commentCreated: Comment
- }
- type MetaprotocolTransactionResultCommentEdited {
- commentEdited: Comment
- }
- type MetaprotocolTransactionResultCommentDeleted {
- commentDeleted: Comment
- }
- type MetaprotocolTransactionResultCommentModerated {
- commentModerated: Comment
- }
- type MetaprotocolTransactionResultChannelPaid {
- channelPaid: Channel
- }
- type MetaprotocolTransactionResultOK {
- phantom: Int
- }
- type MetaprotocolTransactionResultFailed {
- errorMessage: String!
- }
- union MetaprotocolTransactionResult =
- MetaprotocolTransactionResultOK
- | MetaprotocolTransactionResultCommentCreated
- | MetaprotocolTransactionResultCommentEdited
- | MetaprotocolTransactionResultCommentDeleted
- | MetaprotocolTransactionResultCommentModerated
- | MetaprotocolTransactionResultFailed
- | MetaprotocolTransactionResultChannelPaid
- type MetaprotocolTransactionStatusEventData {
- "The result of metaprotocol action"
- result: MetaprotocolTransactionResult!
- }
- type ChannelRewardClaimedEventData {
- "The channel that claimed the reward"
- channel: Channel!
- "Reward amount claimed"
- amount: BigInt!
- }
- type ChannelRewardClaimedAndWithdrawnEventData {
- "The channel that claimed the reward"
- channel: Channel!
- "Reward amount claimed"
- amount: BigInt!
- "Destination account ID. Null if claimed by curators' channel (paid to council budget in this case)"
- account: String
- "Content actor"
- actor: ContentActor!
- }
- type ChannelFundsWithdrawnEventData {
- "The channel that claimed the reward"
- channel: Channel!
- "Reward amount claimed"
- amount: BigInt!
- "Destination account ID. Null if claimed by curators' channel (paid to council budget in this case)"
- account: String
- "Content actor"
- actor: ContentActor!
- }
- type ChannelPayoutsUpdatedEventData {
- "Merkle root of the channel payouts"
- commitment: String
- "Storage data object corresponding to the channel payouts payload"
- payloadDataObject: StorageDataObject
- "Minimum amount of channel reward cashout allowed at a time"
- minCashoutAllowed: BigInt
- "Maximum amount of channel reward cashout allowed at a time"
- maxCashoutAllowed: BigInt
- "Can channel cashout the rewards"
- channelCashoutsEnabled: Boolean
- }
- type PaymentContextVideo {
- "Video for which the payment was made"
- video: Video!
- }
- type PaymentContextChannel {
- "Channel for which the payment was made"
- channel: Channel!
- }
- "Various Channel Payment Contexts"
- union PaymentContext = PaymentContextVideo | PaymentContextChannel
- "Direct channel payment by any member by-passing the council payouts"
- type ChannelPaymentMadeEventData {
- "Actor that made the payment"
- payer: Membership!
- "Amount of the payment"
- amount: BigInt!
- "Payment and payee context"
- paymentContext: PaymentContext
- "Channel that received the payment (if any)"
- payeeChannel: Channel
- "Reason of the payment"
- rationale: String
- }
- # This event is emitted both when a member is banned and when they are unbanned
- type MemberBannedFromChannelEventData {
- "The chanel the member is being banned / unbanned from"
- channel: Channel!
- "The member being banned / unbanned"
- member: Membership!
- "The action performed. TRUE if the member is being banned, FALSE if the member is being unbanned"
- action: Boolean!
- }
|