diff --git a/schema.graphql b/schema.graphql index ba2b9d1..7736399 100644 --- a/schema.graphql +++ b/schema.graphql @@ -5,8 +5,3 @@ type Aavegotchi @entity { right: String back: String } - -type Stat @entity { - id: ID! - gotchiIds: [BigInt!]! -} diff --git a/src/constants.ts b/src/constants.ts index 554baae..56f4746 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,4 +1,4 @@ import { BigInt } from "@graphprotocol/graph-ts"; -export let BLOCK_SIDEVIEWS_ACTIVATED = BigInt.fromI32(20000000); \ No newline at end of file +export let BLOCK_SIDEVIEWS_ACTIVATED = BigInt.fromI32(21420703); \ No newline at end of file diff --git a/src/helper.ts b/src/helper.ts index 65d287b..3ff0db2 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -1,6 +1,6 @@ import { Address, BigInt } from "@graphprotocol/graph-ts"; import { Contract } from "../generated/Contract/Contract"; -import { Aavegotchi, Stat } from "../generated/schema"; +import { Aavegotchi } from "../generated/schema"; export function updateSvg(gotchi: BigInt): Aavegotchi | null { let contract = Contract.bind(Address.fromString("0x86935F11C86623deC8a25696E1C19a8659CbF95d")) @@ -38,24 +38,3 @@ export function getOrCreateAavegotchi(gotchi: BigInt): Aavegotchi { return gotchiEntity as Aavegotchi; } - -export function updateStats(gotchi: BigInt): Stat | null { - let stats = Stat.load("0"); - if(!stats) { - stats = new Stat("0"); - stats.gotchiIds = new Array(); - } - - let gotchiIds = stats.gotchiIds; - - for(let i=0; i