# @xverseprojects/v3-periphery

> 🎚 Peripheral smart contracts for interacting with XVerse V3

Latest version **0.0.6** (published 2023-08-08) · GPL-2.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @xverseprojects/v3-periphery
pnpm add @xverseprojects/v3-periphery
yarn add @xverseprojects/v3-periphery
bun add @xverseprojects/v3-periphery
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2023-08-08 |
| First published | 2023-07-22 |
| Weekly downloads | 0 |
| License | GPL-2.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 683.7 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | xverseprojects |

## Links

- npm: https://www.npmjs.com/package/@xverseprojects/v3-periphery
- npm.io page: https://npm.io/package/@xverseprojects/v3-periphery

## Dependencies (5)

- [base64-sol](https://npm.io/package/base64-sol.md) 1.0.1
- [@xverseprojects/lib](https://npm.io/package/@xverseprojects/lib.md) 0.0.1
- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) 3.4.2-solc-0.7
- [@xverseprojects/v2-core](https://npm.io/package/@xverseprojects/v2-core.md) ^0.0.2
- [@xverseprojects/v3-core](https://npm.io/package/@xverseprojects/v3-core.md) ^0.0.3

## Recent versions

- 0.0.6 (latest) — 2023-08-08
- 0.0.5 — 2023-08-08
- 0.0.4 — 2023-08-08
- 0.0.3 — 2023-08-01
- 0.0.2 — 2023-07-22
- 0.0.1 — 2023-07-22

## README

# Sushi V3 AMM Periphery Contracts

[![Tests](https://github.com/Uniswap/uniswap-v3-periphery/workflows/Tests/badge.svg)](https://github.com/Uniswap/uniswap-v3-periphery/actions?query=workflow%3ATests)
[![Lint](https://github.com/Uniswap/uniswap-v3-periphery/workflows/Lint/badge.svg)](https://github.com/Uniswap/uniswap-v3-periphery/actions?query=workflow%3ALint)

This repository contains the periphery smart contracts for the Sushi V3 AMM Protocol, forked from [uniswap](https://github.com/Uniswap/v3-periphery).
For the lower level core contracts, see the [v3-core](https://github.com/sushiswap/v3-core)
repository.

## Local deployment

In order to deploy this code to a local testnet, you should install the npm package
`@uniswap/v3-periphery`
and import bytecode imported from artifacts located at
`@uniswap/v3-periphery/artifacts/contracts/*/*.json`.
For example:

```typescript
import {
  value abi as SWAP_ROUTER_ABI,
  value bytecode as SWAP_ROUTER_BYTECODE,
} from '@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json'

// deploy the bytecode
```

This will ensure that you are testing against the same bytecode that is deployed to
mainnet and public testnets, and all Uniswap code will correctly interoperate with
your local deployment.

## Using solidity interfaces

The Uniswap v3 periphery interfaces are available for import into solidity smart contracts
via the npm artifact `@uniswap/v3-periphery`, e.g.:

```solidity
import '@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol';

contract MyContract {
  ISwapRouter router;

  function doSomethingWithSwapRouter() {
    // router.exactInput(...);
  }
}

```

## Deploy

To deploy QuoterV2:

```
pnpm exec hardhat --network arbitrum deploy --tags QuoterV2
```

---
_Source: https://npm.io/package/@xverseprojects/v3-periphery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
