mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-11 10:14:07 +00:00
Remove Uniswap watchers and related artifacts (#163)
* Remove Uniswap watchers and related code * Remove Uniswap artifacts from graph-node * Remove Uniswap artifacts from graph-test-watcher
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { PoolCreated } from '../../generated/Factory/Factory';
|
||||
import { Pool as PoolTemplate } from '../../generated/templates';
|
||||
import { log } from '@graphprotocol/graph-ts';
|
||||
|
||||
export function handlePoolCreated (event: PoolCreated): void {
|
||||
log.debug('PoolCreated event', []);
|
||||
|
||||
// create the tracked contract based on the template
|
||||
PoolTemplate.create(event.params.pool);
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
import { dataSource, ethereum, log } from '@graphprotocol/graph-ts';
|
||||
|
||||
import { Initialize } from '../../generated/templates/Pool/Pool';
|
||||
|
||||
export function handleInitialize (event: Initialize): void {
|
||||
log.debug('event.address: {}', [event.address.toHexString()]);
|
||||
log.debug('event.params.sqrtPriceX96: {}', [event.params.sqrtPriceX96.toString()]);
|
||||
log.debug('event.params.tick: {}', [event.params.tick.toString()]);
|
||||
}
|
||||
|
||||
export function handleBlock (block: ethereum.Block): void {
|
||||
log.debug('block info: {}', [block.number.toString()]);
|
||||
log.debug('dataSource address: {}', [dataSource.address().toHex()]);
|
||||
}
|
||||
Reference in New Issue
Block a user