{"_id":"@dzek69/bnc-onboard","_rev":"1-15cb7087d91331c0089e8dfe091965d8","name":"@dzek69/bnc-onboard","dist-tags":{"latest":"1.25.0-0.5.2"},"versions":{"1.25.0-0.5.2":{"name":"@dzek69/bnc-onboard","version":"1.25.0-0.5.2","description":"Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.","keywords":["ethereum","web3","blocknative","wallet"],"main":"dist/cjs/onboard.js","module":"dist/esm/onboard.js","typings":"dist/src/onboard.d.ts","author":{"name":"Aaron Barnard","email":"aaron@blocknative.com"},"repository":{"type":"git","url":"git+https://github.com/blocknative/onboard.git"},"license":"MIT","scripts":{"build":"rimraf dist && rollup -c && babel dist/cjs --out-dir dist/cjs && babel dist/esm --out-dir dist/esm","test":"echo \"TBD\" && exit 0","prepare":"npm run build","lint":"eslint 'src/**/*.ts' && prettier --check {'src/**/*.ts','src/**/*.svelte'}","lint:fix":"eslint 'src/**/*.ts' --fix","format":"prettier --write {'src/**/*.ts','src/**/*.svelte'}"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@pyoner/svelte-ts-preprocess":"^1.2.1","@rollup/plugin-image":"^2.0.4","@rollup/plugin-json":"^4.0.0","@rollup/plugin-node-resolve":"^7.1.1","@types/node":"^13.5.1","@typescript-eslint/eslint-plugin":"^2.30.0","@typescript-eslint/parser":"^2.30.0","babel-plugin-external-helpers":"^6.18.0","eslint":"^6.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","prettier":"^2.0.5","rimraf":"^3.0.0","rollup":"^1.27.5","rollup-plugin-svelte":"^5.0.3","rollup-plugin-typescript2":"0.21.0","svelte":"^3.12.1","svelte-i18n":"^1.1.2-beta","typescript":"^3.6.4"},"dependencies":{"@cvbb/eth-keyring":"^1.1.0","@gnosis.pm/safe-apps-provider":"^0.3.0","@gnosis.pm/safe-apps-sdk":"^2.3.0","@ledgerhq/hw-app-eth":"^5.49.0","@ledgerhq/hw-transport-u2f":"^5.21.0","@portis/web3":"^4.0.0","@toruslabs/torus-embed":"^1.10.11","@walletconnect/web3-provider":"^1.4.1","authereum":"^0.1.12","bignumber.js":"^9.0.0","bnc-sdk":"^3.2.0","bowser":"^2.10.0","eth-lattice-keyring":"^0.2.7","eth-provider":"^0.6.1","eth-sig-util":"^3.0.1","ethereumjs-tx":"^2.1.2","ethereumjs-util":"^7.0.3","fortmatic":"^2.2.1","hdkey":"^2.0.1","prettier-plugin-svelte":"^2.2.0","regenerator-runtime":"^0.13.7","trezor-connect":"^8.1.9","walletlink":"^2.1.0","web3-provider-engine":"^15.0.4"},"resolutions":{"authereum/web3-utils/underscore":"^1.12.1","authereum/ethers/elliptic":"^6.5.3","@portis/web3/pocket-js-core/axios":"^0.21.1"},"gitHead":"3f32a228637faeacfb9a7ea1c77778f80a0fed04","bugs":{"url":"https://github.com/blocknative/onboard/issues"},"homepage":"https://github.com/blocknative/onboard#readme","_id":"@dzek69/bnc-onboard@1.25.0-0.5.2","_nodeVersion":"15.2.0","_npmVersion":"7.0.8","dist":{"integrity":"sha512-dcBpCrovCnRbwJHbMOKJihi891Iu2LYunuDtxvjAIbAlkKN22B3ipXTJtFER8rYJYILue8q7bQkbNVT2rf1EoQ==","shasum":"0a924ec17eba77b7087ed861abdfa503a64df9af","tarball":"https://registry.npmjs.org/@dzek69/bnc-onboard/-/bnc-onboard-1.25.0-0.5.2.tgz","fileCount":152,"unpackedSize":1425423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpql4CRA9TVsSAnZWagAAE0YP/34JExEW3HjDSkY8881T\nrIXRkh3Q3pPjrEVZ4x+x0wJ6xFjs3i/NAMhtpnXC4w0y1qw+bWrhmkfMuCyZ\nJYmMOih3lemDikh+vHPDzvzID7A+R5ogFoBBINs40ierK3IePVob7z/xTSVm\nJzvCopAcoE+6OiSmv1MUPnq0WsF25op7ak+MVXruefmrMcAUKywqpBLhe5kw\nCN++HJO6nWyBY0vdy0B3wyL4RkDXjSG34RWBJbyH6rfM9wN8wOb/B00HZvvc\npC8aOxjd+8c7wt0z4oVJm/Ho+/YbPmIiDCqG/tiTYGr68PC4pxe1aP7CyF9u\nYIHooHjxeQxOXkzHbphLhD0Zrj6hLCNce7gBy9cvm/UaHvCzqn1TAbXa1kjp\ndnzX2hMK/spaXiB0rqX305uSKP51kdHudkAQ8Ag5/9ZR0s78o+d27EKXlzeB\n/wf3rAMQiQ9iQFH35505+NvWoZLNWmP44yU0IXwRlixrc/ow/StmYEmgSK2J\neLBDDa7mfLJZVbuZ5Uz95i2Zy+Dxk2qWvRWfQwOYNep8E/O36224TX6Op1T3\nYuQvT1qvQydOzhxX7mDnHc/o2sPfBrs6A352PhxM3EGunR/UDVyvLridRZY7\nejXbEZW7uhqyfstzCtxQLGGjPPUgfHhrfGEIG2MFjuSQuS3wcV65VF/CLBCy\nRPMv\r\n=O23V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuualXXX9dbk2e7voBOUaZ52f7Z/Utx8eMewod1SzX6AiB4DFtC/7PNuKYTv9Cypdierq79mzwi4oyphjjNc/5luQ=="}]},"_npmUser":{"name":"dzek69","email":"npm.spam.here@nitra.pl"},"directories":{},"maintainers":[{"name":"dzek69","email":"npm.spam.here@nitra.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bnc-onboard_1.25.0-0.5.2_1621535095686_0.07323310144374084"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-20T18:24:55.636Z","1.25.0-0.5.2":"2021-05-20T18:24:55.963Z","modified":"2022-04-05T06:19:36.789Z"},"maintainers":[{"name":"dzek69","email":"npm.spam.here@nitra.pl"}],"description":"Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.","homepage":"https://github.com/blocknative/onboard#readme","keywords":["ethereum","web3","blocknative","wallet"],"repository":{"type":"git","url":"git+https://github.com/blocknative/onboard.git"},"author":{"name":"Aaron Barnard","email":"aaron@blocknative.com"},"bugs":{"url":"https://github.com/blocknative/onboard/issues"},"license":"MIT","readme":"# Onboard\n\nJavaScript library to easily onboard users to ethereum apps by enabling wallet selection, connection, wallet checks and real time state updates.\n\n## Install\n\n`npm install bnc-onboard`\n\n## Quick Start\n\n```javascript\nimport Onboard from 'bnc-onboard'\nimport Web3 from 'web3'\n\n// set a variable to store instantiated web3\nlet web3\n\n// head to blocknative.com to create a key\nconst BLOCKNATIVE_KEY = 'blocknative-api-key'\n\n// the network id that your dapp runs on\nconst NETWORK_ID = 1\n\n// initialize onboard\nconst onboard = Onboard({\n  dappId: BLOCKNATIVE_KEY,\n  networkId: NETWORK_ID,\n  subscriptions: {\n    wallet: wallet => {\n      // instantiate web3 when the user has selected a wallet\n      web3 = new Web3(wallet.provider)\n      console.log(`${wallet.name} connected!`)\n    }\n  }\n})\n\n// Prompt user to select a wallet\nawait onboard.walletSelect()\n\n// Run wallet checks to make sure that user is ready to transact\nawait onboard.walletCheck()\n```\n\n## Documentation\n\nFor detailed documentation head to [docs.blocknative.com](https://docs.blocknative.com/onboard)\n","readmeFilename":"README.md"}