{"_id":"@chanceprotocol/v4-core","name":"@chanceprotocol/v4-core","dist-tags":{"latest":"1.3.1"},"versions":{"1.3.1":{"name":"@chanceprotocol/v4-core","version":"1.3.1","description":"PoolTogether V4 Core Smart Contracts","main":"index.js","license":"GPL-3.0","dependencies":{"@openzeppelin/contracts":"4.6.0","deploy-eip-1820":"1.0.0","@chanceprotocol/fixed-point":"1.0.0","@chanceprotocol/owner-manager-contracts":"1.1.0","@chanceprotocol/pooltogether-rng-contracts":"1.5.3","@chanceprotocol/yield-source-interface":"1.4.0"},"devDependencies":{"@ethersproject/abstract-signer":"^5.4.6","@ethersproject/contracts":"^5.4.6","@ethersproject/bytes":"^5.4.6","@nomiclabs/hardhat-ethers":"2.0.2","@nomiclabs/hardhat-etherscan":"2.1.1","@nomiclabs/hardhat-waffle":"2.0.1","@openzeppelin/hardhat-upgrades":"1.6.0","@types/chai":"4.2.15","@types/debug":"4.1.5","@types/mocha":"8.2.1","@types/node":"14.14.32","@types/react-table":"^7.7.14","chai":"4.3.4","chalk":"4.1.0","debug":"4.3.1","ethereum-waffle":"3.4.0","ethers":"5.4.6","hardhat":"2.6.2","hardhat-abi-exporter":"2.1.2","hardhat-dependency-compiler":"1.1.1","hardhat-deploy":"0.7.0-beta.47","hardhat-deploy-ethers":"0.3.0-beta.10","hardhat-gas-reporter":"1.0.4","hardhat-log-remover":"2.0.2","mocha":"9.0.3","mocha-junit-reporter":"2.0.0","prettier":"2.4.1","prettier-plugin-solidity":"1.0.0-beta.18","solc":"0.8.6","solc-0.8":"npm:solc@0.8.6","solhint":"3.3.3","solidity-coverage":"0.7.16","solidity-docgen":"0.5.15","ts-generator":"0.1.1","ts-node":"9.1.1","typescript":"4.2.3","@chanceprotocol/uniform-random-number":"0.1.0"},"scripts":{"clean":"rm -rf cache/ artifacts/","docs":"solidity-docgen --solc-module solc-0.8 -i contracts -o docs -t templates","compile":"mkdir -p abis && hardhat --show-stack-traces --max-memory 8192 compile","coverage":"HIDE_DEPLOY_LOG=true OPTIMIZER_DISABLED=true hardhat coverage","coverage:file":"HIDE_DEPLOY_LOG=true OPTIMIZER_DISABLED=true hardhat coverage --testfiles","deploy":"hardhat deploy --write true --network","verify":"hardhat etherscan-verify --license MIT --solc-input --network","etherscan-verify":"hardhat etherscan:verify --network","format":"prettier --config .prettierrc --write \"**/*.*.{ts,js}\" \"contracts/**/*.sol\"","format:file":"prettier --config .prettierrc --write","hint":"solhint \"contracts/**/*.sol\"","start-fork":"FORK_ENABLED=true hardhat node --no-reset --no-deploy","impersonate-accounts":"hardhat --network localhost fork:impersonate-accounts ","distribute-ether":"hardhat --network localhost fork:distribute-ether-from-binance","create-prize-pool":"hardhat --network localhost fork:create-aave-prize-pool","remove-logs":"yarn run hardhat remove-logs","run-fork":"yarn impersonate-accounts && yarn distribute-ether && yarn create-prize-pool","test":"HIDE_DEPLOY_LOG=true hardhat test","gas":"REPORT_GAS=true HIDE_DEPLOY_LOG=true hardhat test","parallel-test":"mocha --require hardhat/register --recursive --parallel --exit --extension ts"},"_id":"@chanceprotocol/v4-core@1.3.1","_integrity":"sha512-sGekK0iRNP94P2t+g29uymqHEGmyrnfEMu5JA9831sZBR+/nx8DMSELX5GypG6zSSLJbNQM9hXXq6Q/necOdzQ==","_resolved":"/tmp/ab697ef694abc1e61c49b8ad3ffa899b/chanceprotocol-v4-core-1.3.1.tgz","_from":"file:chanceprotocol-v4-core-1.3.1.tgz","_nodeVersion":"16.15.1","_npmVersion":"9.6.5","dist":{"integrity":"sha512-sGekK0iRNP94P2t+g29uymqHEGmyrnfEMu5JA9831sZBR+/nx8DMSELX5GypG6zSSLJbNQM9hXXq6Q/necOdzQ==","shasum":"c72f4652b7ce4e31a37797723d2f63ddfbf43520","tarball":"https://registry.npmjs.org/@chanceprotocol/v4-core/-/v4-core-1.3.1.tgz","fileCount":312,"unpackedSize":42806273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8qQy8D/dAu0UWmX5xhPxur/SZqkGgBp4gQMvaMETjVAiB8UelQJfQefIhWcupfUUisvxLTBwBXrHoyOFTyAX0mzQ=="}]},"_npmUser":{"name":"chanceprotocol","email":"chance@netixsol.com"},"directories":{},"maintainers":[{"name":"chanceprotocol","email":"chance@netixsol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v4-core_1.3.1_1692257314125_0.6951678364177076"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-17T07:28:34.010Z","1.3.1":"2023-08-17T07:28:34.453Z","modified":"2023-08-17T07:28:34.684Z"},"maintainers":[{"name":"chanceprotocol","email":"chance@netixsol.com"}],"description":"PoolTogether V4 Core Smart Contracts","license":"GPL-3.0","readme":"\n<p align=\"center\">\n  <a href=\"https://github.com/pooltogether/pooltogether--brand-assets\">\n    <img src=\"https://github.com/pooltogether/pooltogether--brand-assets/blob/977e03604c49c63314450b5d432fe57d34747c66/logo/pooltogether-logo--purple-gradient.png?raw=true\" alt=\"PoolTogether Brand\" style=\"max-width:100%;\" width=\"400\">\n  </a>\n</p>\n\n<br />\n\n# PoolTogether V4 Core Smart Contracts\n\n![Tests](https://github.com/pooltogether/v4-core/actions/workflows/main.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/pooltogether/v4-core/badge.svg?branch=master)](https://coveralls.io/github/pooltogether/v4-core?branch=master)\n[![built-with openzeppelin](https://img.shields.io/badge/built%20with-OpenZeppelin-3677FF)](https://docs.openzeppelin.com/)\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html)\n\n<strong>Have questions or want the latest news?</strong>\n<br/>Join the PoolTogether Discord or follow us on Twitter:\n\n[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://pooltogether.com/discord)\n[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/PoolTogether_)\n\n**Documentation**<br>\nhttps://v4.docs.pooltogether.com\n\n**Deployments**<br>\n- [Ethereum](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#mainnet)\n- [Polygon](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#polygon)\n- [Avalanche](https://v4.docs.pooltogether.com/protocol/deployments/mainnet#avalanche)\n- [Optimism](https://v4.docs.pooltogether.com/protocol/deployments/mainnet/#optimism)\n\n# Overview\n- [ControlledToken](/contracts/ControlledToken.sol)\n- [DrawBeacon](/contracts/DrawBeacon.sol)\n- [DrawBuffer](/contracts/DrawBuffer.sol)\n- [DrawCalculator](/contracts/DrawCalculator.sol)\n- [EIP2612PermitAndDeposit](/contracts/permit/EIP2612PermitAndDeposit.sol)\n- [PrizeDistributionBuffer](/contracts/PrizeDistributionBuffer.sol)\n- [PrizeDistributor](/contracts/PrizeDistributor.sol)\n- [PrizeSplitStrategy](/contracts/prize-strategy/PrizeSplitStrategy.sol)\n- [Reserve](/contracts/Reserve.sol)\n- [StakePrizePool](/contracts/prize-pool/StakePrizePool.sol)\n- [Ticket](/contracts/Ticket.sol)\n- [YieldSourcePrizePool](/contracts/prize-pool/YieldSourcePrizePool.sol)\n\nPeriphery and supporting contracts:\n\n- https://github.com/pooltogether/v4-periphery\n- https://github.com/pooltogether/v4-oracle-timelocks\n\n\n# Getting Started\n\nThe project is made available as a NPM package.\n\n```sh\n$ yarn add @chanceprotocol/pooltogether-contracts\n```\n\nThe repo can be cloned from Github for contributions.\n\n```sh\n$ git clone https://github.com/pooltogether/v4-core\n```\n\n```sh\n$ yarn\n```\n\nWe use [direnv](https://direnv.net/) to manage environment variables.  You'll likely need to install it.\n\n```sh\ncp .envrc.example .envrc\n```\n\nTo run fork scripts, deploy or perform any operation with a mainnet/testnet node you will need an Infura API key.\n\n# Testing\n\nWe use [Hardhat](https://hardhat.dev) and [hardhat-deploy](https://github.com/wighawag/hardhat-deploy)\n\nTo run unit & integration tests:\n\n```sh\n$ yarn test\n```\n\nTo run coverage:\n\n```sh\n$ yarn coverage\n```\n\n# Deployment\n\n## Testnets\nDeployment is maintained in a different [repo](https://github.com/pooltogether/v4-testnet).\n\n## Mainnet\nDeployment is maintained in a different [repo](https://github.com/pooltogether/v4-mainnet).\n","readmeFilename":"README.md"}