Catalog npm
Back to packageRELEASE DETAILS

1.4.1

npm

@0xgabi/v3-periphery

🎚 Peripheral smart contracts for interacting with Uniswap V3

peripheryuniswapv3
Published12 Jun 2022
Direct dependencies29
Transitive dependenciesNot calculated

README

Current package documentation

Uniswap V3 Periphery

Tests Lint

This repository contains the periphery smart contracts for the Uniswap V3 Protocol. For the lower level core contracts, see the uniswap-v3-core repository.

Bug bounty

This repository is subject to the Uniswap V3 bug bounty program, per the terms defined here.

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:

import {
  abi as SWAP_ROUTER_ABI,
  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.:

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

contract MyContract {
  ISwapRouter router;

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 29

Native requirements
29 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@openzeppelin/contracts
Environment
{
  "local_name": "@openzeppelin/contracts",
  "alias": false,
  "peer_metadata": null
}
3.4.2-solc-0.7runtime
@uniswap/lib
Environment
{
  "local_name": "@uniswap/lib",
  "alias": false,
  "peer_metadata": null
}
^4.0.1-alpharuntime
@uniswap/v2-core
Environment
{
  "local_name": "@uniswap/v2-core",
  "alias": false,
  "peer_metadata": null
}
1.0.1runtime
@uniswap/v3-core
Environment
{
  "local_name": "@uniswap/v3-core",
  "alias": false,
  "peer_metadata": null
}
1.0.0runtime
base64-sol
Environment
{
  "local_name": "base64-sol",
  "alias": false,
  "peer_metadata": null
}
1.0.1runtime
@nomiclabs/hardhat-ethers
Environment
{
  "local_name": "@nomiclabs/hardhat-ethers",
  "alias": false,
  "peer_metadata": null
}
^2.0.2development
@nomiclabs/hardhat-etherscan
Environment
{
  "local_name": "@nomiclabs/hardhat-etherscan",
  "alias": false,
  "peer_metadata": null
}
^2.1.8development
@nomiclabs/hardhat-waffle
Environment
{
  "local_name": "@nomiclabs/hardhat-waffle",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
@typechain/ethers-v5
Environment
{
  "local_name": "@typechain/ethers-v5",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
@types/chai
Environment
{
  "local_name": "@types/chai",
  "alias": false,
  "peer_metadata": null
}
^4.2.6development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.7development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.2.0development
decimal.js
Environment
{
  "local_name": "decimal.js",
  "alias": false,
  "peer_metadata": null
}
^10.2.1development
ethereum-waffle
Environment
{
  "local_name": "ethereum-waffle",
  "alias": false,
  "peer_metadata": null
}
^3.0.2development
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.0.8development
hardhat
Environment
{
  "local_name": "hardhat",
  "alias": false,
  "peer_metadata": null
}
^2.6.8development
hardhat-typechain
Environment
{
  "local_name": "hardhat-typechain",
  "alias": false,
  "peer_metadata": null
}
^0.3.5development
hardhat-watcher
Environment
{
  "local_name": "hardhat-watcher",
  "alias": false,
  "peer_metadata": null
}
^2.3.0development
is-svg
Environment
{
  "local_name": "is-svg",
  "alias": false,
  "peer_metadata": null
}
^4.3.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.2development
mocha-chai-jest-snapshot
Environment
{
  "local_name": "mocha-chai-jest-snapshot",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.0.5development
prettier-plugin-solidity
Environment
{
  "local_name": "prettier-plugin-solidity",
  "alias": false,
  "peer_metadata": null
}
^1.0.0-beta.10development
solhint
Environment
{
  "local_name": "solhint",
  "alias": false,
  "peer_metadata": null
}
^3.2.1development
solhint-plugin-prettier
Environment
{
  "local_name": "solhint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^0.0.5development
ts-generator
Environment
{
  "local_name": "ts-generator",
  "alias": false,
  "peer_metadata": null
}
^0.1.1development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^8.5.4development
typechain
Environment
{
  "local_name": "typechain",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.7.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-BFWH+aQzTo2eNnh5mXIAlwJExcIVc0NjB+nyOo9EUA3dOH29htyIz0h6gbZVN3JWwJ4eFJ990JteRV/R5EsXkg==",
  "shasum": "a95d64fa78174666a1c1fec7a8e4511d0b158e30",
  "tarball": "https://registry.npmjs.org/@0xgabi/v3-periphery/-/v3-periphery-1.4.1.tgz",
  "fileCount": 47,
  "unpackedSize": 156666,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIELRRWOEAUhmDFqaSx3sd8luN9OhrWL4ckrQ++jywZXiAiAh9cm0K/VbdV8SRAVznYiIzy2WI9YR9AA/UhKGrJ+Afw=="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipnfrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHzw//dvkkWBvt7QbXFvxGXAuJD8nZaY8Ior2JHjog5WVDTOgsKYf7\r\nPZd//2gF3ADSRx903wBqduKZD1XApWqgBWhtlrSKtVgRpceGRziW6lzpX0Xr\r\nrdZ4pwgTmXaklZIUUGEqJXemGCLC/hMj6h4ym5YV257KC/OrQp4Bi4qSRT63\r\nlhdMFeR82wLdOvl/WuQKkxPwfp/yw2vpXRlM2F7APoyTYcpZHFQwn3W6du8A\r\nNRxqwqX+kh0xkBoPYP7Y0/hHNFjzQQ/DLgHYwXLl1Tt7nkVnVUgVEEda6vnA\r\nWYUkENAJ4HPynkVZOsgeeoNtxqMT07stSYh/hRlGG20eFFqwnYJ9G9vcxEF1\r\nanTds8IOCaPVAvMPXOf3Gx0IL+OxTO6UAaKWVbWrBWvkiHJBIoLFVXCuLQnU\r\nA/I7qZ8wCEkAiJIdtNpVs13vVPB19Gr2u/OWO2iOVjkiQi+J/wUb6qOmeBko\r\nRIe1rCWD95QhxnOfhG5zAw3RmetYwGLLZNszTe0b2OxrgEDAnR1qGAk6lfeb\r\nBvliQDyz4Dxe3/ewSEZcRYPU4Jna3z7ExWsAcOPCH8If/6CBmTFNtKPqsEsA\r\n9f3oF8aKbMOhu3USs1sVYSwJLRMeoV/oaACvGddRZmk31PKTRJTSyaCjzY9C\r\nhNAhCrhs5FCkslrEsi9vcYNs5VOE1Oamn94=\r\n=NWgr\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
uniswap/uniswap-v3-periphery

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:55 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:47a3d8159e8ecee0a80b21e3a9a625faecc942e122d27b72408b031fcb2f8e93

Other collected versions

1.4.212 JunView all collected versions →