{"_id":"@dtribe/owner-manager-contracts","name":"@dtribe/owner-manager-contracts","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@dtribe/owner-manager-contracts","version":"1.1.0","description":"dTribe.gg Owner Manager Contracts","main":"index.js","license":"MIT","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","test":"yarn clean && HIDE_DEPLOY_LOG=true && yarn hint && hardhat test"},"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"},"_id":"@dtribe/owner-manager-contracts@1.1.0","dist":{"shasum":"bbdbdf5f9f03132ee1d9261369cefed01f222b4a","integrity":"sha512-OCyEEsbEIB3uw9+dQuN9iXUdHD/BAsCHiGrJvJ+TQxidNenzTXelkuQ2MjINz4AgDngWHOa9yi6FWcDo81KWYw==","tarball":"https://registry.npmjs.org/@dtribe/owner-manager-contracts/-/owner-manager-contracts-1.1.0.tgz","fileCount":9,"unpackedSize":12490,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwIU8jE/7qKYtmwcrdtEmZv0MrxKWiyGApNFpN7MM+3AIhANT3OLqBf+FS00HNXjaiqAxFdTe13CbKqpE+waq2alvC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRbptACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqzqw/+NyBl8oRtYloz8S2Dl2ibA/dCwZ8cmgVol/5qsiym/e1iHbND\r\nV3PLvevZ3eCrF/KUUAbRyXyFzixCZ31DKOcXtxMiYPK8xmwQW7cvl82UIUEL\r\nS+IusiCywEiYP9fMDZWOgmKXFpnJ5QuZ7ZkDelKg1emHefAiURXr6caL+uri\r\n2J9YrgHPFuwLQ/iO2YhqXvzY2DT4vhL+LsQguFpAJ3FGypCEqLnrS9UZNJ+l\r\nCuVTGuOJ2da7tUfqhDlSiG9Qy2FHUgYPy2wZyKONAoD3VKz0+RCdrHbs6JHp\r\nSYkK6GukeBSEsMIfJccPoeRKqVJc+LxPlhvQiq5FG9WuVQb6g1hURkTWf7h2\r\nr9V0JPq5XFHjYQpPqSVDd9/qfZgSGbB9/d620PZc0JhhxysZ06V+vM54xaQ9\r\nh0lbQF/eKB2L0PElV+UdMR5kXp8H4z+wXBVveDdHWWxLO52U7ucJbGcMbBTD\r\nBRZQJL0JwxhJrSDhEeqSvIgvvxcPWN+Ew9mSiVkfmuC2lQSOC3DfGsHp4TUY\r\n7deft9+cDI1dAULXA1u1EM8b83QU5y41C7LPqtBAFNpoH5U+r6ttZA3y0Rzr\r\nisYYfwc5Bg15ezXTQu4EPdYOq0BpAU2Pxp8cnaZtFKlBel7KerjcEvtTNgum\r\nfz4X3D4ICKESTlF0hKkukN0i8zvWnLgxLXY=\r\n=tbwb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dtribe150","email":"dtribe150@gmail.com"},"directories":{},"maintainers":[{"name":"dtribe150","email":"dtribe150@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/owner-manager-contracts_1.1.0_1648736876983_0.9287875320238819"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-31T14:27:56.919Z","1.1.0":"2022-03-31T14:27:57.228Z","modified":"2022-03-31T14:27:57.443Z"},"maintainers":[{"name":"dtribe150","email":"dtribe150@gmail.com"}],"description":"dTribe.gg Owner Manager Contracts","license":"MIT","readme":"# dTribe.gg Owner Manager Contracts\n[![Coverage Status](https://coveralls.io/repos/github/dtribe-gg/owner-manager-contracts/badge.svg?branch=master)](https://coveralls.io/github/dtribe-gg/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","readmeFilename":"README.md"}