Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions integration-tests/test/bridged-tokens.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { expect } from './shared/setup'

/* Imports: External */
import { BigNumber, Contract, ContractFactory, utils, Wallet } from 'ethers'
import { ethers } from 'hardhat'
import * as L2Artifact from '@eth-optimism/contracts/artifacts/contracts/standards/L2StandardERC20.sol/L2StandardERC20.json'

/* Imports: Internal */
import { OptimismEnv } from './shared/env'
import { isLiveNetwork, isMainnet } from './shared/utils'
import { Direction } from './shared/watcher-utils'
Expand Down
7 changes: 4 additions & 3 deletions integration-tests/test/contracts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { expect } from './shared/setup'

/* Imports: External */
import { BigNumber, Contract, ContractFactory, utils, Wallet } from 'ethers'
import { ethers } from 'hardhat'
import { UniswapV3Deployer } from 'uniswap-v3-deploy-plugin/dist/deployer/UniswapV3Deployer'

import { OptimismEnv } from './shared/env'
import { FeeAmount, TICK_SPACINGS } from '@uniswap/v3-sdk'

import { abi as NFTABI } from '@uniswap/v3-periphery/artifacts/contracts/NonfungiblePositionManager.sol/NonfungiblePositionManager.json'
import { abi as RouterABI } from '@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json'

/* Imports: Internal */
import { OptimismEnv } from './shared/env'

// Below methods taken from the Uniswap test suite, see
// https://github.com/Uniswap/v3-periphery/blob/main/test/shared/ticks.ts
const getMinTick = (tickSpacing: number) =>
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/test/native-eth-ovm-calls.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { expect } from './shared/setup'

/* Imports: External */
import { BigNumber, Contract, ContractFactory, Wallet } from 'ethers'
import { ethers } from 'hardhat'

/* Imports: Internal */
import {
fundUser,
encodeSolidityRevertMessage,
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/test/predeploys.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect } from './shared/setup'

/* Imports: Internal */
/* Imports: External */
import { ethers } from 'ethers'
import { predeploys, getContractInterface } from '@eth-optimism/contracts'

/* Imports: External */
/* Imports: Internal */
import { OptimismEnv } from './shared/env'

describe('predeploys', () => {
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/test/queue-ingestion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { expect } from './shared/setup'

/* Imports: Internal */
/* Imports: External */
import { providers } from 'ethers'
import { injectL2Context, applyL1ToL2Alias } from '@eth-optimism/core-utils'

/* Imports: External */
/* Imports: Internal */
import { OptimismEnv } from './shared/env'
import { Direction } from './shared/watcher-utils'
import { isLiveNetwork } from './shared/utils'
Expand Down
6 changes: 5 additions & 1 deletion integration-tests/test/replica.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { expect } from './shared/setup'

/* Imports: External */
import { TransactionReceipt } from '@ethersproject/abstract-provider'

/* Imports: Internal */
import { OptimismEnv } from './shared/env'
import {
defaultTransactionFactory,
gasPriceForL2,
sleep,
isLiveNetwork,
} from './shared/utils'
import { TransactionReceipt } from '@ethersproject/abstract-provider'

describe('Replica Tests', () => {
let env: OptimismEnv
Expand Down
11 changes: 7 additions & 4 deletions integration-tests/test/rpc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { expect } from './shared/setup'

/* Imports: External */
import { expectApprox, injectL2Context } from '@eth-optimism/core-utils'
import { Wallet, BigNumber, Contract, ContractFactory, constants } from 'ethers'
import { serialize } from '@ethersproject/transactions'
import { ethers } from 'hardhat'
import {
TransactionReceipt,
TransactionRequest,
} from '@ethersproject/providers'

/* Imports: Internal */
import {
sleep,
l2Provider,
Expand All @@ -14,10 +21,6 @@ import {
gasPriceForL2,
} from './shared/utils'
import { OptimismEnv } from './shared/env'
import {
TransactionReceipt,
TransactionRequest,
} from '@ethersproject/providers'
import simpleStorageJson from '../artifacts/contracts/SimpleStorage.sol/SimpleStorage.json'

describe('Basic RPC tests', () => {
Expand Down