Skip to content

Commit cefa86d

Browse files
committed
Add AllocationExchange to NetworkContracts
1 parent c759833 commit cefa86d

File tree

1 file changed

+7
-0
lines changed
  • packages/common-ts/src/contracts

1 file changed

+7
-0
lines changed

packages/common-ts/src/contracts/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { ServiceRegistry } from '@graphprotocol/contracts/dist/types/ServiceRegi
1313
import { Staking } from '@graphprotocol/contracts/dist/types/Staking'
1414
import { GraphToken } from '@graphprotocol/contracts/dist/types/GraphToken'
1515
import { Controller } from '@graphprotocol/contracts/dist/types/Controller'
16+
import { AllocationExchange } from '@graphprotocol/contracts/dist/types/AllocationExchange'
1617

1718
// Contract factories
1819
import { Curation__factory } from '@graphprotocol/contracts/dist/types/factories/Curation__factory'
@@ -24,6 +25,7 @@ import { ServiceRegistry__factory } from '@graphprotocol/contracts/dist/types/fa
2425
import { Staking__factory } from '@graphprotocol/contracts/dist/types/factories/Staking__factory'
2526
import { GraphToken__factory } from '@graphprotocol/contracts/dist/types/factories/GraphToken__factory'
2627
import { Controller__factory } from '@graphprotocol/contracts/dist/types/factories/Controller__factory'
28+
import { AllocationExchange__factory } from '@graphprotocol/contracts/dist/types/factories/AllocationExchange__factory'
2729

2830
export interface NetworkContracts {
2931
curation: Curation
@@ -35,6 +37,7 @@ export interface NetworkContracts {
3537
staking: Staking
3638
token: GraphToken
3739
controller: Controller
40+
allocationExchange: AllocationExchange
3841
}
3942

4043
export const connectContracts = async (
@@ -77,5 +80,9 @@ export const connectContracts = async (
7780
deployedContracts.Controller.address,
7881
providerOrSigner,
7982
),
83+
allocationExchange: AllocationExchange__factory.connect(
84+
deployedContracts.AllocationExchange.address,
85+
providerOrSigner,
86+
),
8087
}
8188
}

0 commit comments

Comments
 (0)