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
2 changes: 2 additions & 0 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { DEPLOY_V3_CORE_FACTORY } from './steps/deploy-v3-core-factory'
import { DEPLOY_V3_MIGRATOR } from './steps/deploy-v3-migrator'
import { DEPLOY_V3_STAKER } from './steps/deploy-v3-staker'
import { DEPLOY_V3_SWAP_ROUTER_02 } from './steps/deploy-v3-swap-router-02'
import { DEPLOY_V3_SWAP_ROUTER_03 } from './steps/deploy-v3-swap-router-03'
import { TRANSFER_PROXY_ADMIN } from './steps/transfer-proxy-admin'
import { TRANSFER_V3_CORE_FACTORY_OWNER } from './steps/transfer-v3-core-factory-owner'

Expand All @@ -34,6 +35,7 @@ const MIGRATION_STEPS: MigrationStep[] = [
DEPLOY_V3_STAKER,
DEPLOY_QUOTER_V2,
DEPLOY_V3_SWAP_ROUTER_02,
DEPLOY_V3_SWAP_ROUTER_03,
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 @@ -5,6 +5,7 @@ import { GenericMigrationStep } from './migrate'
export interface MigrationState {
readonly v3CoreFactoryAddress?: string
readonly swapRouter02?: string
readonly swapRouter03?: string
readonly nftDescriptorLibraryAddressV1_3_0?: string
readonly nonfungibleTokenPositionDescriptorAddressV1_3_0?: string
readonly descriptorProxyAddress?: string
Expand Down
17 changes: 17 additions & 0 deletions src/steps/deploy-v3-swap-router-03.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import SwapRouter03 from '@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json'
import createDeployContractStep from './meta/createDeployContractStep'

export const DEPLOY_V3_SWAP_ROUTER_03 = createDeployContractStep({
key: 'swapRouter03',
artifact: SwapRouter03,
computeArguments(state, config) {
if (state.v3CoreFactoryAddress === undefined) {
throw new Error('Missing V3 Core Factory')
}

return [
state.v3CoreFactoryAddress,
config.weth9Address,
]
},
})