File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/common-ts/src/contracts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { ServiceRegistry } from '@graphprotocol/contracts/dist/types/ServiceRegi
13
13
import { Staking } from '@graphprotocol/contracts/dist/types/Staking'
14
14
import { GraphToken } from '@graphprotocol/contracts/dist/types/GraphToken'
15
15
import { Controller } from '@graphprotocol/contracts/dist/types/Controller'
16
+ import { AllocationExchange } from '@graphprotocol/contracts/dist/types/AllocationExchange'
16
17
17
18
// Contract factories
18
19
import { Curation__factory } from '@graphprotocol/contracts/dist/types/factories/Curation__factory'
@@ -24,6 +25,7 @@ import { ServiceRegistry__factory } from '@graphprotocol/contracts/dist/types/fa
24
25
import { Staking__factory } from '@graphprotocol/contracts/dist/types/factories/Staking__factory'
25
26
import { GraphToken__factory } from '@graphprotocol/contracts/dist/types/factories/GraphToken__factory'
26
27
import { Controller__factory } from '@graphprotocol/contracts/dist/types/factories/Controller__factory'
28
+ import { AllocationExchange__factory } from '@graphprotocol/contracts/dist/types/factories/AllocationExchange__factory'
27
29
28
30
export interface NetworkContracts {
29
31
curation : Curation
@@ -35,6 +37,7 @@ export interface NetworkContracts {
35
37
staking : Staking
36
38
token : GraphToken
37
39
controller : Controller
40
+ allocationExchange : AllocationExchange
38
41
}
39
42
40
43
export const connectContracts = async (
@@ -77,5 +80,9 @@ export const connectContracts = async (
77
80
deployedContracts . Controller . address ,
78
81
providerOrSigner ,
79
82
) ,
83
+ allocationExchange : AllocationExchange__factory . connect (
84
+ deployedContracts . AllocationExchange . address ,
85
+ providerOrSigner ,
86
+ ) ,
80
87
}
81
88
}
You can’t perform that action at this time.
0 commit comments