{"_id":"@catgirlcoin/usedapp","_rev":"3-8e7892b3b58a2e4493f2b7c871100d9b","name":"@catgirlcoin/usedapp","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.4":{"name":"@catgirlcoin/usedapp","version":"0.1.4","main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/esm/src/index.d.ts","author":{"name":"Ethworks"},"license":"MIT","sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"@ethereum-waffle/provider":"^3.2.2","@types/chai":"^4.2.14","@types/chai-as-promised":"^7.1.3","@types/lodash":"^4.14.170","@types/lodash.merge":"^4.6.6","@types/mocha":"^8.2.0","@typescript-eslint/eslint-plugin":"^4.10.0","@typescript-eslint/parser":"^4.10.0","@web3-react/abstract-connector":"^6.0.7","@web3-react/types":"^6.0.7","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"7.19.0","ethereum-waffle":"^3.2.2","jsdom":"^16.4.0","jsdom-global":"^3.0.2","mocha":"^8.2.1","mock-local-storage":"^1.1.17","prettier":"^2.1.2","ts-node":"^9.1.1","typescript":"^4.1.3"},"dependencies":{"@types/react":"17.0.1","@web3-react/core":"6.1.1","@web3-react/injected-connector":"6.0.7","@catgirlcoin/network-connector":"6.1.9","ethers":"5.4.1","lodash.merge":"^4.6.2","nanoid":"3.1.22"},"peerDependencies":{"react":"*"},"scripts":{"build":"yarn run build:esm && yarn run build:cjs","build:esm":"tsc --module es2020 --target es2017 --outDir dist/esm","build:cjs":"tsc --outDir dist/cjs","test":"mocha","lint":"yarn lint:prettier --check && yarn lint:eslint","lint:fix":"yarn lint:prettier --write && yarn lint:eslint --fix","lint:eslint":"eslint './{src,test}/**/*.{ts,tsx}'","lint:prettier":"yarn prettier './{src,test}/**/*.{ts,tsx}'"},"description":"### Ethereum 🤝 React  Framework for rapid Dapp development.   Simple. Robust. Extendable. Testable.","_id":"@catgirlcoin/usedapp@0.1.4","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-vW1ewthizMTQEGItFcWtQzG7lMOIi0eIxveiEt77PuIP5n1iTESFV7xXOCzevqRFvzoY1bhTC19OzLTpjDz0+Q==","shasum":"75867d39dbb85decfbff8f04f5e79045cd2db422","tarball":"https://registry.npmjs.org/@catgirlcoin/usedapp/-/usedapp-0.1.4.tgz","fileCount":756,"unpackedSize":1544174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqzorneL/2qjx8TlWe69LthB1Ohc4eRNK0WZnp+45xgAiB1ApW3FcAyURL+7TQGkKI8BbzDmkzW52L75d4dD2kp5A=="}]},"_npmUser":{"name":"catgirlcoin","email":"info@catgirlcoin.com"},"directories":{},"maintainers":[{"name":"catgirlcoin","email":"info@catgirlcoin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/usedapp_0.1.4_1634702223970_0.4698507300235113"},"_hasShrinkwrap":false},"0.1.6":{"name":"@catgirlcoin/usedapp","version":"0.1.6","main":"dist/cjs/src/index.js","module":"dist/esm/src/index.js","types":"dist/esm/src/index.d.ts","author":{"name":"Ethworks"},"license":"MIT","sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"@ethereum-waffle/provider":"^3.2.2","@types/chai":"^4.2.14","@types/chai-as-promised":"^7.1.3","@types/lodash":"^4.14.170","@types/lodash.merge":"^4.6.6","@types/mocha":"^8.2.0","@typescript-eslint/eslint-plugin":"^4.10.0","@typescript-eslint/parser":"^4.10.0","@web3-react/abstract-connector":"^6.0.7","@web3-react/types":"^6.0.7","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"7.19.0","ethereum-waffle":"^3.2.2","jsdom":"^16.4.0","jsdom-global":"^3.0.2","mocha":"^8.2.1","mock-local-storage":"^1.1.17","prettier":"^2.1.2","ts-node":"^9.1.1","typescript":"^4.1.3"},"dependencies":{"@types/react":"17.0.1","@web3-react/core":"6.1.1","@web3-react/injected-connector":"6.0.7","@catgirlcoin/network-connector":"6.1.10","ethers":"5.4.1","lodash.merge":"^4.6.2","nanoid":"3.1.22"},"peerDependencies":{"react":"*"},"scripts":{"build":"yarn run build:esm && yarn run build:cjs","build:esm":"tsc --module es2020 --target es2017 --outDir dist/esm","build:cjs":"tsc --outDir dist/cjs","test":"mocha","lint":"yarn lint:prettier --check && yarn lint:eslint","lint:fix":"yarn lint:prettier --write && yarn lint:eslint --fix","lint:eslint":"eslint './{src,test}/**/*.{ts,tsx}'","lint:prettier":"yarn prettier './{src,test}/**/*.{ts,tsx}'"},"description":"### Ethereum 🤝 React  Framework for rapid Dapp development.   Simple. Robust. Extendable. Testable.","_id":"@catgirlcoin/usedapp@0.1.6","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-teNvCliyYAzv9xf9qcQD/fsy+Y0Z1y2YseC3i4iWukoRSHq/gqbW+GgdZMHyqBOduIi6tqRgznABSKO3PPZfUw==","shasum":"1b40c71f7c97f752f0a4c1c9e5d0bf879d363778","tarball":"https://registry.npmjs.org/@catgirlcoin/usedapp/-/usedapp-0.1.6.tgz","fileCount":756,"unpackedSize":1564061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzbp2CRA9TVsSAnZWagAAkqoP/R99gQrEDnHZV1OaeNaR\nsJwB7KmoY6g/BsV4TESD8wUQpoNrp62a0Wa2kIBEfuGZ67s/1QnvQWV1ru5A\nLTdh0NijCtM50Z1DX5T2JWWRMDIzPRscFY6TxIuzhR47d/4IAGkHAy0YQLpk\nQAZghhXfFIPPDOnoD8tn/pExhEUg4Hek4jOkaVfqbLW0aoRr8Vvl/2W1mEHd\nhLR7Jd6CHpLstYgC6mhWrWLW+qtUdaUaPx3JlU6UTovUgUIzsdyGbq1CNevq\nJ5mSUcCLNug/Y9mbQB0gEJA/Vz8/fzm1Jwc0YKwj2pi+tCdj2f/dbuj0MNUC\nm/BAaQvg6Jpc16BF181G7VTKH1jv2N8Zgb0fflZzkC8bryEtgdPba8QhMSMS\neMRBqFzelrJsWYBkpuDshBRn48V42PPDj6MyYM9YzgnOXAOGEgjLIivfq4/L\n+R+vQ81GgbAn+S5ttUi4qaYTTqqLqlHG0C3cU/m18X+8g2Stu/UBOVxosO0D\nlNGqzs9PC/G8AV1Ia/xekEt9GzVlZKoGGchPM+PILVrkn0N0lEYqcqBNJ5cD\n+FMV1CFa/ktGiFaPEasrJZSBkMAnFpx0NHNvx1xyAxoYS5z4qPta9RgZv1im\nemgZAlEK8S/dk7JTjBXLeom13Yha+kd/5+TmwHZzKbeob4ERhD3FPZ4ToZfT\nAvQm\r\n=xvYw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVFRYaFzQzsQIRykSjKISAhI1X9XU5ZP0E2FtrUGnAXwIhAIV2tXxTbI0XtAXFOYU+j6PdXq1k7sMvNXVDQ8Ty2ALL"}]},"_npmUser":{"name":"catgirlcoin","email":"info@catgirlcoin.com"},"directories":{},"maintainers":[{"name":"catgirlcoin","email":"info@catgirlcoin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/usedapp_0.1.6_1634703462313_0.09008693293650682"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-20T03:57:03.930Z","0.1.4":"2021-10-20T03:57:04.164Z","modified":"2022-04-04T22:07:47.189Z","0.1.6":"2021-10-20T04:17:42.518Z"},"maintainers":[{"name":"catgirlcoin","email":"info@catgirlcoin.com"}],"description":"### Ethereum 🤝 React  Framework for rapid Dapp development.   Simple. Robust. Extendable. Testable.","author":{"name":"Ethworks"},"license":"MIT","readme":"# useDapp\n\n### Ethereum 🤝 React \nFramework for rapid Dapp development.  \nSimple. Robust. Extendable. Testable.\n\n## About\nIntroduces great features:\n- 🏗️ **React hooks** - Uses React hooks as your primary building ingredient\n- 🚅 **Auto refresh** - Refreshes on a new block, wallet change or network change\n- 🛒 **Multicall** - Combines multiple blockchain calls into a single multicall\n\nCombines the best practices:\n- 🔧 **Modern stack** - Employs [ethers.js](https://github.com/ethers-io/), [web3-react](https://github.com/NoahZinsmeister/web3-react), [multicall](https://github.com/makerdao/multicall) & [waffle](https://getwaffle.io/)\n- 📚 **Extendability** - Extends easily with custom hooks\n- 💡 **Testability** - Simple integration tests for UI and blockchain\n\n\n## Example\n\n```tsx\nconst config = {\n  readOnlyChainId: ChainId.Mainnet,\n  readOnlyUrls: {\n    [ChainId.Mainnet]: 'https://mainnet.infura.io/v3/62687d1a985d4508b2b7a24827551934',\n  },\n}\n\nReactDOM.render(\n  <DAppProvider config={config}>\n    <App />\n  </DAppProvider>,\n  document.getElementById('root')\n)\n\nconst STAKING_CONTRACT = '0x00000000219ab540356cBB839Cbe05303d7705Fa'\n\nexport function App() {\n  const { activateBrowserWallet, deactivate, account } = useEthers()\n  const userBalance = useEtherBalance(account)\n  const stakingBalance = useEtherBalance(STAKING_CONTRACT)\n\n  return (\n    <div>\n      {!account && <button onClick={activateBrowserWallet}> Connect </button>}\n      {account && <button onClick={deactivate}> Disconnect </button>}\n    \n      {stakingBalance && <p>ETH2 staking balance: {formatEther(stakingBalance)} ETH </p>}\n      {account && <p>Account: {account}</p>}\n      {userBalance && <p>Ether balance: {formatEther(userBalance)} ETH </p>}\n    </div>\n  )\n}\n```\n\nSee application [here](https://example.usedapp.io/balance).\n\n\n## Documentation\nFor detailed feature walkthrough checkout [documentation](https://usedapp.readthedocs.io/en/latest/).\n\n## Contributing\n\nContributions are always welcome, no matter how large or small. Before contributing, please read the [code of conduct](https://github.com/EthWorks/useDapp/blob/master/CODE_OF_CONDUCT.md) and [contribution policy](https://github.com/EthWorks/useDapp/blob/master/CONTRIBUTION.md).\n\n### Before you issue pull request:\n\n* Make sure all tests pass.\n* Make sure linter passes.\n* Make sure you have test coverage for any new features.\n\nTo install dependencies type:\n```sh\nyarn\n```\n\nTo build project:\n```sh\nyarn build\n```\n\nTo run tests type:\n```sh\nyarn test\n```\n\nTo run linter type:\n```sh\nyarn lint\n```\n\n### Building documentation\n\n[Install Sphinx](https://www.sphinx-doc.org/en/master/usage/installation.html) to build documentation:\n\n```sh\ncd docs\nmake html\n```\n\nBefore building documentation for the first time you may have to install required python packages:\n```sh\npip3 install -r docs/requirements.txt\n```\n\n## License\n\nuseDapp is released under the [MIT License](https://opensource.org/licenses/MIT).\n","readmeFilename":"README.md"}