{"_id":"@dappface/ethereum-provider","_rev":"1-44008b18bb62c97552f8616036646831","name":"@dappface/ethereum-provider","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@dappface/ethereum-provider","version":"0.0.1","description":"EIP-1193 compatible Ethereum provider","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack","lint":"eslint . --ext .js --ext .ts","lint:fix":"npm run lint -- --fix","test":"jest","test:watch":"jest --watch","tsc":"tsc","watch":"cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack --watch"},"author":{"name":"Junichi Sugiura"},"devDependencies":{"@types/jest":"^24.0.15","@types/node":"^12.6.2","@types/uuid":"^3.4.4","@types/webpack":"^4.4.35","@types/webpack-dev-server":"^3.1.7","@typescript-eslint/eslint-plugin":"^1.12.0","@typescript-eslint/parser":"^1.12.0","cross-env":"^5.2.0","eslint":"^6.0.1","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","jest":"^24.8.0","jest-websocket-mock":"^1.5.0","mock-socket":"^8.0.5","prettier":"^1.17.1","ts-jest":"^24.0.2","ts-loader":"^6.0.4","ts-node":"^8.3.0","tsconfig-paths":"^3.8.0","typescript":"^3.4.5","uuid":"^3.3.2","webpack":"^4.35.0","webpack-cli":"^3.3.4","worker-loader":"^2.0.0"},"dependencies":{},"gitHead":"1011766ef7151c50d0422e215ccb6493e74e5fa5","_id":"@dappface/ethereum-provider@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"lukesugiura","email":"junichi.sugiura@dappface.com"},"dist":{"integrity":"sha512-w5iWRPtZ2h9jRXu3xtBGSn9e5mQwbrO/5Xvog24nUD76I/YmzaHaDTIKJdQ5cV8MA2SKMW783ro/KunT9kvFRA==","shasum":"bed019e6694ec6cf437feb56dd3f9cc3a6d93b33","tarball":"https://registry.npmjs.org/@dappface/ethereum-provider/-/ethereum-provider-0.0.1.tgz","fileCount":6,"unpackedSize":67492,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQmzuCRA9TVsSAnZWagAAqjgP/RfedZmDohU5Qf61oXC0\nfSoKffUrzALKN8XT0GGxBpEkSjJGl5Y5YWYeCb8nedq6UDLT8253IewK+Eod\n83CG2sUrE/lqvpqwkuHdrojyTq+TlxOc02+5r2MCoHjUCXkLRKcMv0AbQ/40\nYvyzcYMTRIpM6cw1XKWFm0Rc+DVXU3MGWpPh6l1fAlDugCtE7V2OA11G/zaW\ntFoBYhIbVJmgZzpcz8PviUqOsla3zQSZE5xUJHyHFQbNSKMDxV1YWCchZd2V\n4oAANmwQNt0rPPLtZHEvf0ay2x3UR22TG/Hu2H9n2C/+Z/8X0r8dFloify5f\n8UCiW3AraeI7apgoiOHbfbDSrGFjjktKThq3Wu54dCj3EMiFxNmp+lEM0W3J\nv5Wb0oAxxeSG1iGH0Pim633H22tdTgu5eK7kTfIgBAxl4qj2k1eS8wPourhR\n5At9Mtjj1iu63rtqNSDgYGkB1x8T0Bt+KE9M7kiaS1rpBnnmIwWEO0m0/JTY\npeVoyiYXAqK+Ssw5Qktcd2hpki7VWnst5RqC/J9de+lxf/6yVYkVCh/f+uTd\nBS64ILCxx56126XfU+hlBIHDcFO6XWiaZz4XByfAo+KOtpMpz9Ty1V/dmpz0\nDTr/DViu/BwiDsw6NWNbf8V3MmlYkisYyK0Y8vTlocBDdPinnBt98kv3YMOn\nGyHp\r\n=RTSX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlmegAGTQSbr01XxAD6YPwKEJ2mCojRtmuxDRK4VnfqAIhANL7X4zTw6znNV5wOek0gdihHseWNwL00QK4UvHdTaRg"}]},"maintainers":[{"name":"lukesugiura","email":"junichi.sugiura@dappface.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereum-provider_0.0.1_1564634349700_0.08032408902299926"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-01T04:39:09.489Z","0.0.1":"2019-08-01T04:39:09.850Z","modified":"2022-04-05T02:44:01.504Z"},"maintainers":[{"name":"lukesugiura","email":"junichi.sugiura@dappface.com"}],"description":"EIP-1193 compatible Ethereum provider","author":{"name":"Junichi Sugiura"},"readme":"[![CircleCI][circleci-svg]][circleci-link]\n[![codecov][codecov-svg]][codecov-link]\n\n<div align=\"center\">\n  <img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Ethereum_logo_2014.svg/147px-Ethereum_logo_2014.svg.png\">\n  <h1>DAPPFACE Ethereum Provider</h1>\n  <p>EIP-1193 compatible Ethereum provider which is injectable for both Web and React Native WebView.</p>\n</div>\n\n<h2 align=\"center\">Install</h2>\n\n```bash\n  npm i -D @dappface/ethereum-provider\n```\n\n<h2 align=\"center\">Usage</h2>\n\n```typescript\nimport { EthereumProvider } from '@dappface/ethereum-provider'\nimport Web3 from 'web3.js' // optional\n\nconst ethereum = new EthereumProvider({\n  url: 'wss://your-remote-node-url'\n})\n\nwindow.ethereum = ethereum\n\n// optionally wrap with your favorite ethereum util library\nconst web3 = new Web3(ethereum)\n```\n\n<h2 align=\"center\">Advanced Usage</h2>\n\n### Inject in React Native WebView\n\n```typescript\n// TODO\n```\n\n### Hook wallet implemented in React Native\n\n```typescript\n// TODO\n```\n\n### Create custom wallet connection\n\n```typescript\n// TODO\n```\n\n\n### Create custom node connection\n\n```typescript\n// TODO\n```\n\n[circleci-svg]: https://circleci.com/gh/dappface/ethereum-provider.svg?style=svg\n[circleci-link]: https://circleci.com/gh/dappface/ethereum-provider\n[codecov-svg]: https://codecov.io/gh/dappface/ethereum-provider/branch/master/graph/badge.svg\n[codecov-link]: https://codecov.io/gh/dappface/ethereum-provider\n","readmeFilename":"README.md"}