mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
schema updates (#307)
This commit is contained in:
parent
f6ab8f8975
commit
3e3a9d593d
@ -35,6 +35,16 @@ type Token @entity {
|
|||||||
"number of orders executed for this datatoken"
|
"number of orders executed for this datatoken"
|
||||||
orderCount: BigInt!
|
orderCount: BigInt!
|
||||||
|
|
||||||
|
|
||||||
|
"fixed rate exchanges, only available for datatokens"
|
||||||
|
fixedRateExchanges: [FixedRateExchange!] @derivedFrom(field:"datatoken")
|
||||||
|
|
||||||
|
"dispensers using this token"
|
||||||
|
dispensers: [Dispenser!] @derivedFrom(field:"token")
|
||||||
|
|
||||||
|
"pools, only available for datatokens"
|
||||||
|
pools: [Pool!] @derivedFrom(field:"datatoken")
|
||||||
|
|
||||||
"block time datatoken was created"
|
"block time datatoken was created"
|
||||||
createdTimestamp: Int!
|
createdTimestamp: Int!
|
||||||
|
|
||||||
@ -235,12 +245,12 @@ type PoolTransaction @entity {
|
|||||||
type Order @entity {
|
type Order @entity {
|
||||||
"transaction hash - token address - from address"
|
"transaction hash - token address - from address"
|
||||||
id: ID!
|
id: ID!
|
||||||
token: Token!
|
datatoken: Token!
|
||||||
|
|
||||||
consumer: User!
|
consumer: User!
|
||||||
payer: User!
|
payer: User!
|
||||||
amount: BigDecimal!
|
amount: BigDecimal!
|
||||||
serviceId: Int!
|
serviceIndex: Int!
|
||||||
|
|
||||||
|
|
||||||
# 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user