Changed position of eventIndex in entity.

This commit is contained in:
Maria Carmina 2023-03-17 12:34:35 +02:00
parent 0e235db3ec
commit ed9ee5023a
2 changed files with 6 additions and 8 deletions

View File

@ -52,13 +52,12 @@ type Token @entity {
"datatoken creation transaction id"
tx: String!
eventIndex: Int!
"block number when it was created"
block: Int!
lastPriceToken: Token
lastPriceValue: BigDecimal!
eventIndex: Int!
}
"utility type"
@ -106,6 +105,7 @@ type Nft @entity{
createdTimestamp: Int!
"nft creation transaction id"
tx: String!
eventIndex: Int!
"block number when it was created"
block: Int
@ -117,8 +117,6 @@ type Nft @entity{
nftData: [NftData!] @derivedFrom(field: "nft")
transferHistory: [NftTransferHistory!] @derivedFrom(field: "nft")
eventIndex: Int!
}
type NftData @entity{

View File

@ -161,9 +161,9 @@ describe('Datatoken tests', async () => {
dispensers {id},
createdTimestamp,
tx,
eventIndex,
block,
lastPriceValue,
eventIndex
lastPriceValue
}}`
}
const initialResponse = await fetch(subgraphUrl, {
@ -271,9 +271,9 @@ describe('Datatoken tests', async () => {
dispensers {id},
createdTimestamp,
tx,
eventIndex,
block,
lastPriceValue,
eventIndex
lastPriceValue
}}`
}
const initialResponse = await fetch(subgraphUrl, {