@@ -19,11 +19,9 @@ import { GraphProxyAdmin } from '@graphprotocol/contracts/dist/types/GraphProxyA
19
19
import { SubgraphNFT } from '@graphprotocol/contracts/dist/types/SubgraphNFT'
20
20
import { GraphCurationToken } from '@graphprotocol/contracts/dist/types/GraphCurationToken'
21
21
import { L1GraphTokenGateway } from '@graphprotocol/contracts/dist/types/L1GraphTokenGateway'
22
- import { L1Reservoir } from '@graphprotocol/contracts/dist/types/L1Reservoir'
23
22
import { BridgeEscrow } from '@graphprotocol/contracts/dist/types/BridgeEscrow'
24
23
import { L2GraphToken } from '@graphprotocol/contracts/dist/types/L2GraphToken'
25
24
import { L2GraphTokenGateway } from '@graphprotocol/contracts/dist/types/L2GraphTokenGateway'
26
- import { L2Reservoir } from '@graphprotocol/contracts/dist/types/L2Reservoir'
27
25
28
26
// Contract factories
29
27
import { Curation__factory } from '@graphprotocol/contracts/dist/types/factories/Curation__factory'
@@ -40,11 +38,9 @@ import { GraphProxyAdmin__factory } from '@graphprotocol/contracts/dist/types/fa
40
38
import { SubgraphNFT__factory } from '@graphprotocol/contracts/dist/types/factories/SubgraphNFT__factory'
41
39
import { GraphCurationToken__factory } from '@graphprotocol/contracts/dist/types/factories/GraphCurationToken__factory'
42
40
import { L1GraphTokenGateway__factory } from '@graphprotocol/contracts/dist/types/factories/L1GraphTokenGateway__factory'
43
- import { L1Reservoir__factory } from '@graphprotocol/contracts/dist/types/factories/L1Reservoir__factory'
44
41
import { BridgeEscrow__factory } from '@graphprotocol/contracts/dist/types/factories/BridgeEscrow__factory'
45
42
import { L2GraphToken__factory } from '@graphprotocol/contracts/dist/types/factories/L2GraphToken__factory'
46
43
import { L2GraphTokenGateway__factory } from '@graphprotocol/contracts/dist/types/factories/L2GraphTokenGateway__factory'
47
- import { L2Reservoir__factory } from '@graphprotocol/contracts/dist/types/factories/L2Reservoir__factory'
48
44
49
45
export const GraphChain = graphChain
50
46
@@ -65,12 +61,10 @@ export interface NetworkContracts {
65
61
66
62
// Only L1
67
63
l1GraphTokenGateway ?: L1GraphTokenGateway
68
- l1Reservoir ?: L1Reservoir
69
64
bridgeEscrow ?: BridgeEscrow
70
65
71
66
// Only L2
72
67
l2GraphTokenGateway ?: L2GraphTokenGateway
73
- l2Reservoir ?: L2Reservoir
74
68
}
75
69
76
70
export const connectContracts = async (
@@ -149,22 +143,11 @@ export const connectContracts = async (
149
143
deployedContracts . BridgeEscrow . address ,
150
144
providerOrSigner ,
151
145
)
152
- // L1Reservoir is not deployed on scratch1
153
- if ( deployedContracts . L1Reservoir ) {
154
- contracts . l1Reservoir = L1Reservoir__factory . connect (
155
- deployedContracts . L1Reservoir . address ,
156
- providerOrSigner ,
157
- )
158
- }
159
146
} else if ( GraphChain . isL2 ( chainId ) ) {
160
147
contracts . l2GraphTokenGateway = L2GraphTokenGateway__factory . connect (
161
148
deployedContracts . L2GraphTokenGateway . address ,
162
149
providerOrSigner ,
163
150
)
164
- contracts . l2Reservoir = L2Reservoir__factory . connect (
165
- deployedContracts . L2Reservoir . address ,
166
- providerOrSigner ,
167
- )
168
151
}
169
152
170
153
return contracts
0 commit comments