Skip to content

Commit 74ba5cf

Browse files
authored
Ciyengar3/fixing compile stuff
2 parents dd1f059 + d793de5 commit 74ba5cf

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

src/common/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ export const ZERO_BD = BigDecimal.fromString('0')
1111
export const ONE_BD = BigDecimal.fromString('1')
1212
export const BI_18 = BigInt.fromI32(18)
1313

14-
export const factoryContract = FactoryContract.bind(Address.fromString(FACTORY_ADDRESS.toHexString()))
14+
export const factoryContract = FactoryContract.bind(
15+
Address.fromString(Address.fromString(FACTORY_ADDRESS).toHexString())
16+
)

src/v3/mappings/burn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BigInt } from '@graphprotocol/graph-ts'
1+
import { Address, BigInt } from '@graphprotocol/graph-ts'
22

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

1717
export function handleBurn(event: BurnEvent): void {
18-
const factoryAddress = FACTORY_ADDRESS
18+
const factoryAddress = Address.fromString(FACTORY_ADDRESS)
1919

2020
const bundle = Bundle.load('1')!
2121
const pool = Pool.load(event.address)!

src/v3/mappings/collect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BigInt } from '@graphprotocol/graph-ts'
1+
import { Address, BigInt } from '@graphprotocol/graph-ts'
22

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

1818
export function handleCollect(event: CollectEvent): void {
19-
const factoryAddress = FACTORY_ADDRESS
19+
const factoryAddress = Address.fromString(FACTORY_ADDRESS)
2020

2121
const bundle = Bundle.load('1')!
2222
const pool = Pool.load(event.address)!

src/v3/mappings/mint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BigInt } from '@graphprotocol/graph-ts'
1+
import { Address, BigInt } from '@graphprotocol/graph-ts'
22

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

1818
export function handleMint(event: MintEvent): void {
19-
const factoryAddress = FACTORY_ADDRESS
19+
const factoryAddress = Address.fromString(FACTORY_ADDRESS)
2020

2121
const bundle = Bundle.load('1')!
2222
const pool = Pool.load(event.address)!

src/v3/mappings/swap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BigDecimal, BigInt } from '@graphprotocol/graph-ts'
1+
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts'
22

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

1818
export function handleSwap(event: SwapEvent): void {
19-
const factoryAddress = FACTORY_ADDRESS
19+
const factoryAddress = Address.fromString(FACTORY_ADDRESS)
2020

2121
const bundle = Bundle.load('1')!
2222
const factory = Factory.load(factoryAddress.toHexString())!

0 commit comments

Comments
 (0)