Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ export const ZERO_BD = BigDecimal.fromString('0')
export const ONE_BD = BigDecimal.fromString('1')
export const BI_18 = BigInt.fromI32(18)

export const factoryContract = FactoryContract.bind(Address.fromString(FACTORY_ADDRESS.toHexString()))
export const factoryContract = FactoryContract.bind(
Address.fromString(Address.fromString(FACTORY_ADDRESS).toHexString())
)
4 changes: 2 additions & 2 deletions src/v3/mappings/burn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BigInt } from '@graphprotocol/graph-ts'
import { Address, BigInt } from '@graphprotocol/graph-ts'

import { Bundle, Burn, Factory, Pool, Tick, Token } from '../../../generated/schema'
import { Burn as BurnEvent } from '../../../generated/templates/Pool/Pool'
Expand All @@ -15,7 +15,7 @@ import {
import { loadTransaction } from './utils'

export function handleBurn(event: BurnEvent): void {
const factoryAddress = FACTORY_ADDRESS
const factoryAddress = Address.fromString(FACTORY_ADDRESS)

const bundle = Bundle.load('1')!
const pool = Pool.load(event.address)!
Expand Down
4 changes: 2 additions & 2 deletions src/v3/mappings/collect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BigInt } from '@graphprotocol/graph-ts'
import { Address, BigInt } from '@graphprotocol/graph-ts'

import { Bundle, Collect, Factory, Pool, Token } from '../../../generated/schema'
import { Collect as CollectEvent } from '../../../generated/templates/Pool/Pool'
Expand All @@ -16,7 +16,7 @@ import {
import { loadTransaction } from './utils'

export function handleCollect(event: CollectEvent): void {
const factoryAddress = FACTORY_ADDRESS
const factoryAddress = Address.fromString(FACTORY_ADDRESS)

const bundle = Bundle.load('1')!
const pool = Pool.load(event.address)!
Expand Down
4 changes: 2 additions & 2 deletions src/v3/mappings/mint.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BigInt } from '@graphprotocol/graph-ts'
import { Address, BigInt } from '@graphprotocol/graph-ts'

import { Bundle, Factory, Mint, Pool, Tick, Token } from '../../../generated/schema'
import { Mint as MintEvent } from '../../../generated/templates/Pool/Pool'
Expand All @@ -16,7 +16,7 @@ import { createTick } from './tick'
import { loadTransaction } from './utils'

export function handleMint(event: MintEvent): void {
const factoryAddress = FACTORY_ADDRESS
const factoryAddress = Address.fromString(FACTORY_ADDRESS)

const bundle = Bundle.load('1')!
const pool = Pool.load(event.address)!
Expand Down
4 changes: 2 additions & 2 deletions src/v3/mappings/swap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BigDecimal, BigInt } from '@graphprotocol/graph-ts'
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts'

import { Bundle, Factory, Pool, Swap, Token } from '../../../generated/schema'
import { Swap as SwapEvent } from '../../../generated/templates/Pool/Pool'
Expand All @@ -16,7 +16,7 @@ import {
import { loadTransaction } from './utils'

export function handleSwap(event: SwapEvent): void {
const factoryAddress = FACTORY_ADDRESS
const factoryAddress = Address.fromString(FACTORY_ADDRESS)

const bundle = Bundle.load('1')!
const factory = Factory.load(factoryAddress.toHexString())!
Expand Down
Loading