Skip to content

Commit

Permalink
test: l2 tests passing
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Jan 10, 2024
1 parent 8bca012 commit e27da9e
Show file tree
Hide file tree
Showing 9 changed files with 239 additions and 228 deletions.
11 changes: 2 additions & 9 deletions packages/contracts/test/unit/gateway/l1GraphTokenGateway.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ import { BridgeEscrow } from '../../../build/types/BridgeEscrow'

import { NetworkFixture } from '../lib/fixtures'

import {
helpers,
applyL1ToL2Alias,
toBN,
toGRT,
GraphNetworkContracts,
deployMockGraphNetwork,
} from '@graphprotocol/sdk'
import { helpers, applyL1ToL2Alias, toBN, toGRT, GraphNetworkContracts } from '@graphprotocol/sdk'
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'

const { AddressZero } = constants
Expand Down Expand Up @@ -84,7 +77,7 @@ describe('L1GraphTokenGateway', () => {
))

// Deploy L2 mock
l2MockContracts = await deployMockGraphNetwork(true)
l2MockContracts = await fixture.loadMock(true)
l2GRTMock = l2MockContracts.L2GraphToken as L2GraphToken
l2GRTGatewayMock = l2MockContracts.L2GraphTokenGateway as L2GraphTokenGateway

Expand Down
6 changes: 2 additions & 4 deletions packages/contracts/test/unit/gns.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import hre from 'hardhat'
import { expect } from 'chai'
import { ethers, ContractTransaction, BigNumber, Event, Wallet } from 'ethers'
import { ethers, ContractTransaction, BigNumber, Event } from 'ethers'
import { defaultAbiCoder } from 'ethers/lib/utils'
import { SubgraphDeploymentID, formatGRT } from '@graphprotocol/common-ts'

Expand All @@ -10,7 +10,6 @@ import { Curation } from '../../build/types/Curation'

import { NetworkFixture } from './lib/fixtures'
import { Controller } from '../../build/types/Controller'
import { GraphProxyAdmin } from '../../build/types/GraphProxyAdmin'
import { L1GNS } from '../../build/types/L1GNS'
import { L1GraphTokenGateway } from '../../build/types/L1GraphTokenGateway'
import {
Expand All @@ -35,7 +34,6 @@ import {
deploy,
DeployType,
loadContractAt,
deployMockGraphNetwork,
GraphNetworkContracts,
} from '@graphprotocol/sdk'
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'
Expand Down Expand Up @@ -241,7 +239,7 @@ describe('L1GNS', () => {
await fixture.loadL1ArbitrumBridge(governor)

// Deploy L2 mock
l2MockContracts = await deployMockGraphNetwork(true)
l2MockContracts = await fixture.loadMock(true)
l2GNSMock = l2MockContracts.L2GNS as L2GNS
l2GRTGatewayMock = l2MockContracts.L2GraphTokenGateway as L2GraphTokenGateway

Expand Down
114 changes: 59 additions & 55 deletions packages/contracts/test/unit/l2/l2GNS.test.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/contracts/test/unit/l2/l2GraphToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { L2GraphToken } from '../../../build/types/L2GraphToken'

import { grtTests } from '../lib/graphTokenTests'
import { NetworkFixture } from '../lib/fixtures'
import { toGRT, helpers, GraphNetworkContracts } from '@graphprotocol/sdk'
import { toGRT, GraphNetworkContracts } from '@graphprotocol/sdk'
import type { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'

describe('L2GraphToken', () => {
Expand Down
Loading

0 comments on commit e27da9e

Please sign in to comment.