diff --git a/subgraphs/pools/src/contract.ts b/subgraphs/pools/src/contract.ts deleted file mode 100644 index 2fb5cd0..0000000 --- a/subgraphs/pools/src/contract.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { - FactoryDisabled as FactoryDisabledEvent, - PoolCreated as PoolCreatedEvent, -} from "../generated/Contract/Contract" -import { FactoryDisabled, PoolCreated } from "../generated/schema" - -export function handleFactoryDisabled(event: FactoryDisabledEvent): void { - let entity = new FactoryDisabled( - event.transaction.hash.concatI32(event.logIndex.toI32()), - ) - - entity.blockNumber = event.block.number - entity.blockTimestamp = event.block.timestamp - entity.transactionHash = event.transaction.hash - - entity.save() -} - -export function handlePoolCreated(event: PoolCreatedEvent): void { - let entity = new PoolCreated( - event.transaction.hash.concatI32(event.logIndex.toI32()), - ) - entity.pool = event.params.pool - - entity.blockNumber = event.block.number - entity.blockTimestamp = event.block.timestamp - entity.transactionHash = event.transaction.hash - - entity.save() -}