{"_id":"@chanceprotocol/owner-manager-contracts","name":"@chanceprotocol/owner-manager-contracts","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@chanceprotocol/owner-manager-contracts","version":"1.1.0","description":"PoolTogether Owner Manager Contracts","main":"index.js","license":"MIT","devDependencies":{"@nomiclabs/hardhat-ethers":"2.0.2","@nomiclabs/hardhat-etherscan":"2.1.3","@nomiclabs/hardhat-waffle":"2.0.1","@types/chai":"4.2.15","@types/debug":"4.1.5","@types/mocha":"8.2.1","@types/node":"14.14.32","chai":"4.3.4","chalk":"4.1.0","debug":"4.3.1","ethereum-waffle":"3.3.0","ethers":"5.0.32","hardhat":"2.4.0","hardhat-abi-exporter":"2.1.2","hardhat-deploy":"0.7.0-beta.47","hardhat-deploy-ethers":"0.3.0-beta.7","hardhat-gas-reporter":"1.0.4","prettier":"2.4.0","prettier-plugin-solidity":"1.0.0-beta.18","solhint":"3.3.3","solidity-coverage":"0.7.16","ts-generator":"0.1.1","ts-node":"9.1.1","typescript":"4.2.3"},"scripts":{"clean":"rm -rf cache/ artifacts/","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","etherscan-verify-polygon":"hardhat --config hardhat.config.polygon.js run ./scripts/verify.js --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","run-fork":"yarn impersonate-accounts && yarn distribute-ether && yarn create-prize-pool"},"_id":"@chanceprotocol/owner-manager-contracts@1.1.0","_integrity":"sha512-+ewxc7ApAS/dV1Z6C9duORSdMbW4Tk8rkyghtAYaVZtsNUoPq9vz6FZFvHmfQb2k3sKNEBxkhdrqE06Rima+YQ==","_resolved":"/tmp/6f2aa76ca95c866532b0aacd91b39106/chanceprotocol-owner-manager-contracts-1.1.0.tgz","_from":"file:chanceprotocol-owner-manager-contracts-1.1.0.tgz","_nodeVersion":"16.15.1","_npmVersion":"9.6.5","dist":{"integrity":"sha512-+ewxc7ApAS/dV1Z6C9duORSdMbW4Tk8rkyghtAYaVZtsNUoPq9vz6FZFvHmfQb2k3sKNEBxkhdrqE06Rima+YQ==","shasum":"0706d31f56949b12582a2346cd328790bddb0949","tarball":"https://registry.npmjs.org/@chanceprotocol/owner-manager-contracts/-/owner-manager-contracts-1.1.0.tgz","fileCount":10,"unpackedSize":21868,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHi2d1Dv9wvQl9Zy5ZYrFqCJIcALr1Tocxy9oI7orqBxAiAgEfqDNvRylEGSCb8QkIaZjGAFz2ZooFU09hTPT/MWeA=="}]},"_npmUser":{"name":"chanceprotocol","email":"chance@netixsol.com"},"directories":{},"maintainers":[{"name":"chanceprotocol","email":"chance@netixsol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/owner-manager-contracts_1.1.0_1692257245440_0.6369101642608241"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-17T07:27:25.359Z","1.1.0":"2023-08-17T07:27:25.603Z","modified":"2023-08-17T07:27:25.881Z"},"maintainers":[{"name":"chanceprotocol","email":"chance@netixsol.com"}],"description":"PoolTogether Owner Manager Contracts","license":"MIT","readme":"# PoolTogether Owner Manager Contracts\n![Tests](https://github.com/pooltogether/owner-manager-contracts/actions/workflows/main.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/pooltogether/owner-manager-contracts/badge.svg?branch=master)](https://coveralls.io/github/pooltogether/owner-manager-contracts?branch=master)\n\nAbstract ownable and manageable contracts that can be inherited by other contracts to provide a basic access control mechanism, where\nthere is an owner and a manager that can be granted exclusive access to specific functions.\n\nThe `owner` is first set by passing the address of the `initialOwner` to the Ownable constructor.\n \nThe owner account can be transferred through a two steps process:\n1. The current `owner` calls `transferOwnership` to set a `pendingOwner`\n2. The `pendingOwner` calls `acceptOwnership` to accept the ownership transfer\n\nThe manager account needs to be set using `setManager`.\n\nThis module is used through inheritance. It will make available the modifiers `onlyManager`, `onlyOwner` and `onlyManagerOrOwner`, which can be applied to your functions to restrict their use to the manager and/or the owner.\n\n## Usage\nThis repo is setup to compile (`nvm use && yarn compile`) and successfully pass tests (`yarn test`)\n\n\n# Installation\nInstall the repo and dependencies by running:\n`yarn`\n\n## Deployment\nThese contracts can be deployed to a network by running:\n`yarn deploy <networkName>`\n\n## Verification\nThese contracts can be verified on Etherscan, or an Etherscan clone, for example (Polygonscan) by running:\n`yarn etherscan-verify <ethereum network name>` or `yarn etherscan-verify-polygon matic`\n\n\n# Testing\nRun the unit tests locally with:\n`yarn test`\n\n## Coverage\nGenerate the test coverage report with:\n`yarn coverage`\n        \"test\": \"yarn clean && HIDE_DEPLOY_LOG=true && yarn hint && hardhat test\"\n","readmeFilename":"README.md"}