0x
-pk
— your deployment account’s private key.-j
— the JSON-RPC endpoint.-w9
— the address of the WETH9 contract. On the Scroll Testnet, this contract is deployed at 0xa1EA0B2354F5A344110af2b6AD68e75545009a03
.-ncl
— the native currency label. This is the symbol for the native token, which is ETH
.-o
— the owner’s address of the deployed administrator contract.state.json
file.
Congratulations, you deployed all of the Uniswap v3 smart contracts on the Scroll Sepolia Testnet.
UniswapV3Factory
UniswapInterfaceMulticall
ProxyAdmin
and TransparentUpgradeableProxy
TickLens
TickLens
contract can be used to:
NonfungibleTokenPositionDescriptor
and NonfungiblePositionManager
NonFungiblePositionManger
contract address. The NonfungiblePositionManager manages the positions and liquidity for ERC-721 non-fungible tokens.
V3Migrator
UniswapV3Staker
UniswapV3Staker
contract is critical to the Uniswap v3 protocol because it incentivizes liquidity provision. By allowing users to earn rewards for staking their tokens, the UniswapV3Staker
contract helps to ensure that there is always enough liquidity in Uniswap v3 pools to facilitate swaps. This makes the protocol more decentralized and efficient.
QuoterV2
and SwapRouter02
Quoter
and SwapRouter
contracts are essential for users who want to exchange tokens on Uniswap.
QuoterV2 is a peripheral contract in the Uniswap v3 protocol. It allows users to get price quotes for swaps without executing the swap. QuoterV2
uses the Uniswap v3 core, periphery contracts, and the PoolTicksCounter
library. It includes functions to quote exact input or output amounts and handles reverts by counting initialized ticks crossed.
SwapRouter02 executes swaps across different asset pools. It is a stateless contract, meaning it holds no token balances. This makes it more efficient and secure than other types of contracts.
The SwapRouter
contract considers the price of tokens, the liquidity in different pools, and the fees for swaps to calculate the best price for a swap. It then executes the swap, transferring tokens between pools and updating users’ balances.