Skip to content

Commit fa6e07c

Browse files
committed
fix: remove reservoir contracts
Signed-off-by: Tomás Migone <[email protected]>
1 parent 02a034a commit fa6e07c

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

packages/common-ts/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.1-testnet] - 2022-11-09
8+
### Changed
9+
- Remove reservoir contracts
10+
711
## [2.0.0-testnet] - 2022-11-09
812
### Changed
913
- Add support for L2 contracts

packages/common-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/common-ts",
3-
"version": "2.0.0-testnet",
3+
"version": "2.0.1-testnet",
44
"description": "Common TypeScript library for Graph Protocol components",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ import { GraphProxyAdmin } from '@graphprotocol/contracts/dist/types/GraphProxyA
1919
import { SubgraphNFT } from '@graphprotocol/contracts/dist/types/SubgraphNFT'
2020
import { GraphCurationToken } from '@graphprotocol/contracts/dist/types/GraphCurationToken'
2121
import { L1GraphTokenGateway } from '@graphprotocol/contracts/dist/types/L1GraphTokenGateway'
22-
import { L1Reservoir } from '@graphprotocol/contracts/dist/types/L1Reservoir'
2322
import { BridgeEscrow } from '@graphprotocol/contracts/dist/types/BridgeEscrow'
2423
import { L2GraphToken } from '@graphprotocol/contracts/dist/types/L2GraphToken'
2524
import { L2GraphTokenGateway } from '@graphprotocol/contracts/dist/types/L2GraphTokenGateway'
26-
import { L2Reservoir } from '@graphprotocol/contracts/dist/types/L2Reservoir'
2725

2826
// Contract factories
2927
import { Curation__factory } from '@graphprotocol/contracts/dist/types/factories/Curation__factory'
@@ -40,11 +38,9 @@ import { GraphProxyAdmin__factory } from '@graphprotocol/contracts/dist/types/fa
4038
import { SubgraphNFT__factory } from '@graphprotocol/contracts/dist/types/factories/SubgraphNFT__factory'
4139
import { GraphCurationToken__factory } from '@graphprotocol/contracts/dist/types/factories/GraphCurationToken__factory'
4240
import { L1GraphTokenGateway__factory } from '@graphprotocol/contracts/dist/types/factories/L1GraphTokenGateway__factory'
43-
import { L1Reservoir__factory } from '@graphprotocol/contracts/dist/types/factories/L1Reservoir__factory'
4441
import { BridgeEscrow__factory } from '@graphprotocol/contracts/dist/types/factories/BridgeEscrow__factory'
4542
import { L2GraphToken__factory } from '@graphprotocol/contracts/dist/types/factories/L2GraphToken__factory'
4643
import { L2GraphTokenGateway__factory } from '@graphprotocol/contracts/dist/types/factories/L2GraphTokenGateway__factory'
47-
import { L2Reservoir__factory } from '@graphprotocol/contracts/dist/types/factories/L2Reservoir__factory'
4844

4945
export const GraphChain = graphChain
5046

@@ -65,12 +61,10 @@ export interface NetworkContracts {
6561

6662
// Only L1
6763
l1GraphTokenGateway?: L1GraphTokenGateway
68-
l1Reservoir?: L1Reservoir
6964
bridgeEscrow?: BridgeEscrow
7065

7166
// Only L2
7267
l2GraphTokenGateway?: L2GraphTokenGateway
73-
l2Reservoir?: L2Reservoir
7468
}
7569

7670
export const connectContracts = async (
@@ -149,22 +143,11 @@ export const connectContracts = async (
149143
deployedContracts.BridgeEscrow.address,
150144
providerOrSigner,
151145
)
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-
}
159146
} else if (GraphChain.isL2(chainId)) {
160147
contracts.l2GraphTokenGateway = L2GraphTokenGateway__factory.connect(
161148
deployedContracts.L2GraphTokenGateway.address,
162149
providerOrSigner,
163150
)
164-
contracts.l2Reservoir = L2Reservoir__factory.connect(
165-
deployedContracts.L2Reservoir.address,
166-
providerOrSigner,
167-
)
168151
}
169152

170153
return contracts

0 commit comments

Comments
 (0)