Skip to content
Open
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
4 changes: 3 additions & 1 deletion src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { DEPLOY_V3_STAKER } from './steps/deploy-v3-staker'
import { DEPLOY_V3_SWAP_ROUTER_02 } from './steps/deploy-v3-swap-router-02'
import { TRANSFER_PROXY_ADMIN } from './steps/transfer-proxy-admin'
import { TRANSFER_V3_CORE_FACTORY_OWNER } from './steps/transfer-v3-core-factory-owner'
import { DEPLOY_QUOTER} from './steps/deploy-quoter'

const MIGRATION_STEPS: MigrationStep[] = [
// must come first, for address calculations
Expand All @@ -29,7 +30,8 @@ const MIGRATION_STEPS: MigrationStep[] = [
DEPLOY_NONFUNGIBLE_POSITION_MANAGER,
DEPLOY_V3_MIGRATOR,
TRANSFER_V3_CORE_FACTORY_OWNER,
DEPLOY_V3_STAKER,
DEPLOY_V3_STAKER,
DEPLOY_QUOTER,
DEPLOY_QUOTER_V2,
DEPLOY_V3_SWAP_ROUTER_02,
TRANSFER_PROXY_ADMIN,
Expand Down
1 change: 1 addition & 0 deletions src/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface MigrationState {
readonly multicall2Address?: string
readonly proxyAdminAddress?: string
readonly quoterV2Address?: string
readonly quoterAddress?: string
readonly tickLensAddress?: string
readonly v3MigratorAddress?: string
readonly v3StakerAddress?: string
Expand Down
13 changes: 13 additions & 0 deletions src/steps/deploy-quoter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Quoter from '@uniswap/swap-router-contracts/artifacts/contracts/lens/Quoter.sol/Quoter.json'
import createDeployContractStep from './meta/createDeployContractStep'

export const DEPLOY_QUOTER = createDeployContractStep({
key: 'quoterAddress',
artifact: Quoter,
computeArguments(state, config) {
if (state.v3CoreFactoryAddress === undefined) {
throw new Error('Missing V3 Core Factory')
}
return [state.v3CoreFactoryAddress, config.weth9Address]
},
})
Loading