{"_id":"@augustoadd3/uniswap-v3-oracle","_rev":"1-8b7c2c9304bd45b4d3c1409eccb2942b","name":"@augustoadd3/uniswap-v3-oracle","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.3":{"name":"@augustoadd3/uniswap-v3-oracle","version":"1.0.3","description":"Uniswap V3 Oracle","keywords":["ethereum","smart","contracts","test","solidity","hardhat","uniswap","oracle"],"repository":{"type":"git","url":"git+https://github.com/mean-finance/uniswap-v3-oracle.git"},"license":"AGPL-3.0-only","contributors":[{"name":"0xged","url":"https://github.com/0xged"},{"name":"nchamo","url":"https://github.com/nchamo"},{"name":"0xsambugs","url":"https://github.com/0xsambugs"}],"scripts":{"compile":"hardhat compile","compile:test":"cross-env TEST=true hardhat compile","coverage":"hardhat coverage","deploy":"npx hardhat deploy","fork:node":"cross-env FORK=true hardhat node","fork:script":"cross-env FORK=true hardhat run","_postinstall":"husky install && yarn compile:test","lint:check":"cross-env solhint 'contracts/**/*.sol' 'interfaces/**/*.sol' && cross-env prettier --check './**'","lint:fix":"sort-package-json && cross-env prettier --write './**' && cross-env solhint --fix 'contracts/**/*.sol' 'interfaces/**/*.sol'","prepare":"husky install","prepublishOnly":"hardhat clean && PUBLISHING_NPM=true hardhat compile && pinst --disable","postpublish":"pinst --enable","release":"standard-version","test":"yarn compile:test && cross-env TEST=true mocha","test:all":"yarn test './test/integration/**/*.spec.ts' && cross-env TEST=true mocha 'test/unit/**/*.spec.ts'","test:e2e":"yarn test './test/e2e/**/*.spec.ts'","test:gas":"cross-env REPORT_GAS=1 npx hardhat test","test:integration":"yarn test './test/integration/**/*.spec.ts'","test:unit":"yarn test 'test/unit/**/*.spec.ts'"},"lint-staged":{"*.{js,css,md,ts,sol}":"prettier --write","*.sol":"cross-env solhint --fix 'contracts/**/*.sol' 'interfaces/**/*.sol'","package.json":"sort-package-json"},"resolutions":{"cli-table3@^0.5.0/colors":"1.4.0","cli-table@^0.3.1/colors":"1.0.3","eth-gas-reporter/colors":"1.4.0"},"dependencies":{"@mean-finance/deterministic-factory":"1.4.4","@openzeppelin/contracts":"3.4.0","@uniswap/v3-core":"1.0.1","@uniswap/v3-periphery":"1.4.1"},"devDependencies":{"@0xged/hardhat-deploy":"0.11.4","@codechecks/client":"0.1.12","@commitlint/cli":"16.2.4","@commitlint/config-conventional":"16.2.4","@defi-wonderland/smock":"2.0.7","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@0.3.0-beta.13","@nomiclabs/hardhat-etherscan":"3.1.7","@nomiclabs/hardhat-waffle":"2.0.3","@typechain/ethers-v5":"10.2.0","@typechain/hardhat":"6.1.5","@types/chai":"4.3.1","@types/chai-as-promised":"7.1.5","@types/lodash":"4.14.182","@types/mocha":"9.1.1","@types/node":"17.0.31","chai":"4.3.6","chai-as-promised":"7.1.1","cross-env":"7.0.3","dotenv":"16.0.0","ethereum-waffle":"3.4.4","ethers":"5.6.4","hardhat":"2.9.3","hardhat-gas-reporter":"1.0.8","hardhat-preprocessor":"0.1.4","husky":"7.0.4","lint-staged":"12.4.1","lodash":"4.17.21","mocha":"10.0.0","moment":"2.29.4","pinst":"3.0.0","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","solc-0.8":"npm:solc@0.8.13","solhint":"3.3.7","solhint-plugin-prettier":"0.0.5","solidity-coverage":"0.7.21","solidity-docgen":"0.5.16","sort-package-json":"1.57.0","standard-version":"9.3.2","ts-node":"10.7.0","tsconfig-paths":"3.14.1","typechain":"8.1.1","typescript":"4.6.4"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/mean-finance/uniswap-v3-oracle/issues"},"homepage":"https://github.com/mean-finance/uniswap-v3-oracle#readme","main":".mocharc.js","directories":{"test":"test"},"author":"","gitHead":"af250f718da14299b4cf1845bb3cc89c0ce1b2a6","_id":"@augustoadd3/uniswap-v3-oracle@1.0.3","_nodeVersion":"16.20.2","_npmVersion":"8.19.2","dist":{"integrity":"sha512-TBTZO00qjQOIxeEZGOu0MEL/xPUSCCScGmLxfFjeJ8J17CV3sa35jlk6kkkXEjwwwyDSTrdPxKsuL+A2cOvuUg==","shasum":"dbe93d86d25de820b1715057ae470b870ad17a1c","tarball":"https://registry.npmjs.org/@augustoadd3/uniswap-v3-oracle/-/uniswap-v3-oracle-1.0.3.tgz","fileCount":99,"unpackedSize":1148002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7k45/usKVajgXQ22lO9jjPpscvtADtPqHoJS7Q2MCgwIgBvwlo+s/LpaQdZI+stajNLfjruSaxd9yr6VHCreQt+4="}]},"_npmUser":{"name":"augustoadd3","email":"augusto@add3.io"},"maintainers":[{"name":"augustoadd3","email":"augusto@add3.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uniswap-v3-oracle_1.0.3_1700230976959_0.5745220079614242"},"_hasShrinkwrap":false},"1.0.4":{"name":"@augustoadd3/uniswap-v3-oracle","version":"1.0.4","description":"Uniswap V3 Oracle","keywords":["ethereum","smart","contracts","test","solidity","hardhat","uniswap","oracle"],"homepage":"https://github.com/mean-finance/uniswap-v3-oracle#readme","bugs":{"url":"https://github.com/mean-finance/uniswap-v3-oracle/issues"},"repository":{"type":"git","url":"git+https://github.com/mean-finance/uniswap-v3-oracle.git"},"license":"AGPL-3.0-only","author":"","contributors":[{"name":"0xged","url":"https://github.com/0xged"},{"name":"nchamo","url":"https://github.com/nchamo"},{"name":"0xsambugs","url":"https://github.com/0xsambugs"}],"main":".mocharc.js","directories":{"test":"test"},"scripts":{"compile":"hardhat compile","compile:test":"cross-env TEST=true hardhat compile","coverage":"hardhat coverage","deploy":"npx hardhat deploy","fork:node":"cross-env FORK=true hardhat node","fork:script":"cross-env FORK=true hardhat run","_postinstall":"husky install && yarn compile:test","lint:check":"cross-env solhint 'contracts/**/*.sol' 'interfaces/**/*.sol' && cross-env prettier --check './**'","lint:fix":"sort-package-json && cross-env prettier --write './**' && cross-env solhint --fix 'contracts/**/*.sol' 'interfaces/**/*.sol'","prepare":"husky install","prepublishOnly":"hardhat clean && PUBLISHING_NPM=true hardhat compile && pinst --disable","postpublish":"pinst --enable","release":"standard-version","test":"yarn compile:test && cross-env TEST=true mocha","test:all":"yarn test './test/integration/**/*.spec.ts' && cross-env TEST=true mocha 'test/unit/**/*.spec.ts'","test:e2e":"yarn test './test/e2e/**/*.spec.ts'","test:gas":"cross-env REPORT_GAS=1 npx hardhat test","test:integration":"yarn test './test/integration/**/*.spec.ts'","test:unit":"yarn test 'test/unit/**/*.spec.ts'"},"lint-staged":{"*.{js,css,md,ts,sol}":"prettier --write","*.sol":"cross-env solhint --fix 'contracts/**/*.sol' 'interfaces/**/*.sol'","package.json":"sort-package-json"},"resolutions":{"cli-table3@^0.5.0/colors":"1.4.0","cli-table@^0.3.1/colors":"1.0.3","eth-gas-reporter/colors":"1.4.0"},"dependencies":{"@mean-finance/deterministic-factory":"1.4.4","@openzeppelin/contracts":"3.4.0","@uniswap/v3-core":"1.0.1","@uniswap/v3-periphery":"1.4.1"},"devDependencies":{"@0xged/hardhat-deploy":"0.11.4","@codechecks/client":"0.1.12","@commitlint/cli":"16.2.4","@commitlint/config-conventional":"16.2.4","@defi-wonderland/smock":"2.0.7","@nomiclabs/hardhat-ethers":"npm:hardhat-deploy-ethers@0.3.0-beta.13","@nomiclabs/hardhat-etherscan":"3.1.7","@nomiclabs/hardhat-waffle":"2.0.3","@typechain/ethers-v5":"10.2.0","@typechain/hardhat":"6.1.5","@types/chai":"4.3.1","@types/chai-as-promised":"7.1.5","@types/lodash":"4.14.182","@types/mocha":"9.1.1","@types/node":"17.0.31","chai":"4.3.6","chai-as-promised":"7.1.1","cross-env":"7.0.3","dotenv":"16.0.0","ethereum-waffle":"3.4.4","ethers":"5.6.4","hardhat":"2.9.3","hardhat-gas-reporter":"1.0.8","hardhat-preprocessor":"0.1.4","husky":"7.0.4","lint-staged":"12.4.1","lodash":"4.17.21","mocha":"10.0.0","moment":"2.29.4","pinst":"3.0.0","prettier":"2.6.2","prettier-plugin-solidity":"1.0.0-beta.19","solc-0.8":"npm:solc@0.8.13","solhint":"3.3.7","solhint-plugin-prettier":"0.0.5","solidity-coverage":"0.7.21","solidity-docgen":"0.5.16","sort-package-json":"1.57.0","standard-version":"9.3.2","ts-node":"10.7.0","tsconfig-paths":"3.14.1","typechain":"8.1.1","typescript":"4.6.4"},"publishConfig":{"access":"public"},"gitHead":"af250f718da14299b4cf1845bb3cc89c0ce1b2a6","_id":"@augustoadd3/uniswap-v3-oracle@1.0.4","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-qr7EufKoAYJejj1eaYIxKGQnL/tFm/wP5SLlq+c+tskNn5wAxoCflfPY4DWS/IcNqAlViUCj9U6eXS6Pg8tgUA==","shasum":"80eee46def610a172b607ec0037dff1bba22b982","tarball":"https://registry.npmjs.org/@augustoadd3/uniswap-v3-oracle/-/uniswap-v3-oracle-1.0.4.tgz","fileCount":99,"unpackedSize":1148004,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqBajYAYjQik/PT0iQqqfobPlT5Qa0c5GB+JObRMCYKQIhAMi2gqBJjutuGVVG7KGXoRK0P4CxyGTHs6qWYzBqtXfB"}]},"_npmUser":{"name":"augustoadd3","email":"augusto@add3.io"},"maintainers":[{"name":"augustoadd3","email":"augusto@add3.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/uniswap-v3-oracle_1.0.4_1700235088696_0.8998716555024986"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-17T14:22:56.875Z","1.0.3":"2023-11-17T14:22:57.145Z","modified":"2023-11-17T15:31:29.179Z","1.0.4":"2023-11-17T15:31:29.011Z"},"maintainers":[{"name":"augustoadd3","email":"augusto@add3.io"}],"description":"Uniswap V3 Oracle","homepage":"https://github.com/mean-finance/uniswap-v3-oracle#readme","keywords":["ethereum","smart","contracts","test","solidity","hardhat","uniswap","oracle"],"repository":{"type":"git","url":"git+https://github.com/mean-finance/uniswap-v3-oracle.git"},"contributors":[{"name":"0xged","url":"https://github.com/0xged"},{"name":"nchamo","url":"https://github.com/nchamo"},{"name":"0xsambugs","url":"https://github.com/0xsambugs"}],"bugs":{"url":"https://github.com/mean-finance/uniswap-v3-oracle/issues"},"license":"AGPL-3.0-only","readme":"[![Lint](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/lint.yml)\n[![Tests](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/tests.yml)\n[![Slither Analysis](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/slither.yml/badge.svg?branch=main)](https://github.com/Mean-Finance/uniswap-v3-oracle/actions/workflows/slither.yml)\n\n# StaticOracle\n\nStaticOracle is a tool developed under Uniswap's grant program that aims to help developers integrate easily and fast with Uniswap's v3 TWAP oracles.\n\nThis is done by leveraging already existing [WeightedOracleLibrary](https://github.com/Uniswap/v3-periphery/pull/146) implemented by [Nicolás Chamo](https://github.com/nchamo).\n\nStaticOracle will allow developers to:\n\n- Prepare a set of pools (for example: by a token pair and a fee tier) to support a certain period of time (for example: 60 seconds).\n- Quote a TWAP for a set of pools (for example: by a token pair and a fee tier, or addresses).\n\n## Package\n\nThe package will contain:\n\n- Artifacts can be found under `@mean-finance/uniswap-v3-oracles/artifacts`\n- Compatible deployments for [hardhat-deploy](https://github.com/wighawag/hardhat-deploy) plugin under the `@mean-finance/uniswap-v3-oracle/deployments` folder.\n- Typescript smart contract typings under `@mean-finance/uniswap-v3-oracle/typechained`\n\n## Documentation\n\nEverything that you need to know as a developer on how to use StaticOracle can be read in the [documented interface](./solidity/interfaces/IStaticOracle.sol).\n\n## Installation\n\nTo install with [**Hardhat**](https://github.com/nomiclabs/hardhat) or [**Truffle**](https://github.com/trufflesuite/truffle):\n\n#### YARN\n\n```sh\nyarn install @mean-finance/uniswap-v3-oracle\n```\n\n### NPM\n\n```sh\nnpm install @mean-finance/uniswap-v3-oracle\n```\n\n### Deployment Registry\n\nContract deployed at the same address `0xB210CE856631EeEB767eFa666EC7C1C57738d438` accross the following networks:\n\n- [Ethereum Rinkeby](https://rinkeby.etherscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Ethereum Goerli](https://goerli.etherscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Ethereum Mainnet](https://etherscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Optimism Mainnet](https://optimistic.etherscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Optimism Kovan](https://kovan-optimistic.etherscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Arbitrum Mainnet](https://arbiscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Arbitrum Rinkeby](https://testnet.arbiscan.io/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Polygon Mainnet](https://polygonscan.com/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Polygon Mumbai](https://mumbai.polygonscan.com/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n- [Base Goerli](https://goerli.basescan.org/address/0xB210CE856631EeEB767eFa666EC7C1C57738d438)\n","readmeFilename":"README.md"}