mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
Updating schema
This commit is contained in:
parent
e6975c60cb
commit
dff1ff44be
@ -76,9 +76,9 @@ type Nft @entity{
|
|||||||
tokenUri: String
|
tokenUri: String
|
||||||
|
|
||||||
"address of the owner of the nft"
|
"address of the owner of the nft"
|
||||||
owner: String!
|
owner: User!
|
||||||
"address of the creator of the nft"
|
"address of the creator of the nft"
|
||||||
creator: String!
|
creator: User!
|
||||||
|
|
||||||
"same as id, it's just for easy discoverability"
|
"same as id, it's just for easy discoverability"
|
||||||
address: String!
|
address: String!
|
||||||
@ -115,6 +115,7 @@ type Nft @entity{
|
|||||||
hasMetadata: Boolean!
|
hasMetadata: Boolean!
|
||||||
|
|
||||||
nftData: [NftData!] @derivedFrom(field: "nft")
|
nftData: [NftData!] @derivedFrom(field: "nft")
|
||||||
|
transferHistory: [NftTransferHistory!]
|
||||||
}
|
}
|
||||||
|
|
||||||
type NftData @entity{
|
type NftData @entity{
|
||||||
@ -148,6 +149,7 @@ type Order @entity {
|
|||||||
payer: User!
|
payer: User!
|
||||||
amount: BigDecimal!
|
amount: BigDecimal!
|
||||||
serviceIndex: Int!
|
serviceIndex: Int!
|
||||||
|
nftOwner: User!
|
||||||
|
|
||||||
|
|
||||||
# the fees will be updated from an event that will be created after (todo)
|
# the fees will be updated from an event that will be created after (todo)
|
||||||
@ -571,4 +573,16 @@ type DFReward @entity {
|
|||||||
receiver: User!
|
receiver: User!
|
||||||
availableClaims: [DFAvailableClaim!] @derivedFrom(field: "receiver")
|
availableClaims: [DFAvailableClaim!] @derivedFrom(field: "receiver")
|
||||||
history: [DFHistory!] @derivedFrom(field: "receiver")
|
history: [DFHistory!] @derivedFrom(field: "receiver")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NftTransferHistory @entity {
|
||||||
|
# ID = hash(nftAddress+txId+eventNumber)
|
||||||
|
id: ID!
|
||||||
|
nft: Nft!
|
||||||
|
oldOwner: User!
|
||||||
|
newOwner: User!
|
||||||
|
txId: string
|
||||||
|
timestamp: Bigint!
|
||||||
|
block: Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user