schema updates (#307)

This commit is contained in:
mihaisc 2022-01-31 12:09:05 +02:00 committed by GitHub
parent f6ab8f8975
commit 3e3a9d593d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,16 @@ type Token @entity {
"number of orders executed for this datatoken"
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"
createdTimestamp: Int!
@ -235,12 +245,12 @@ type PoolTransaction @entity {
type Order @entity {
"transaction hash - token address - from address"
id: ID!
token: Token!
datatoken: Token!
consumer: User!
payer: User!
amount: BigDecimal!
serviceId: Int!
serviceIndex: Int!
# the fees will be updated from an event that will be created after (todo)