{"_id":"@calcifer_m37a/narwallets","name":"@calcifer_m37a/narwallets","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@calcifer_m37a/narwallets","version":"0.1.0","gitHead":"c30acf89464a9a1d4fc9f7bec585d32d770354dd","description":"This is the [Narwallets](https://chrome.google.com/webstore/detail/narwallets-v3/bbpkhokajpdphepnclngimefkgblbjma) package for NEAR Wallet Selector.","_id":"@calcifer_m37a/narwallets@0.1.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-6RRa8dF+i8Ff9fGBz37iPQUaWNcpRmyD0NooFxo8+nNCo+veuyM7pA5iA4TwRUCrSDfY6RE7JmpI4sFvWxVJqg==","shasum":"71a6977853aa1bf4e89ff6fc3f4c074e4a9bba15","tarball":"https://registry.npmjs.org/@calcifer_m37a/narwallets/-/narwallets-0.1.0.tgz","fileCount":13,"unpackedSize":27693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA9ymwpds26uKbjSUXHIjB/cUxnbrGpQGib06ZEDMR6NAiEAnbF+WDIru9XaakYpPgPgZ00bMLBiNadZhIYEnnLh0r4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKPGjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQPRAAht9T8Sr3u0j9kV/daIdANbyyrcQ/NENPylcjF5C/XCQPWTGv\r\nVKlgTQLUPVNdKDf6NCiEJpppqYNau3xUejLhN+UGChCo/Ey1iJxx1G+rHZ+D\r\nn+Npef5tff8UK9E+KDLexAtmheJP7dpEqqxPhA7wwGtwh+SKmZGewSSzzqSo\r\nfAKMlKpKoNxjVhwL4+2m8d5rBVuaosGm1VRBQ3Gku7f1DYfc6Sb69fGfylDQ\r\nbAZWbCYnjfjGOG1YI58jYDFzRFRFVEJRhIuh2C7K+9N3Lin3u2Yd4anAAUcY\r\nXhHEbf+pzmgwFQ+lTEko5bjb7HRY6vTIv2y5UlihxxQxUicSGrKX3oH9cpIu\r\nPtgYqjImp66+HdA4cFsLgQOEYerkfx6OiIJEtOsJZJpW8zC1slK+c7w3kVsG\r\nT14kun0WPCZaNXyMh4ZlKlrDy5YvLmDjqjDi2DTbOk4PIkUjIi4Zp/1jAC0w\r\nwaqDG6ihjlQDw2MboLIv1bDswbEgmw0/OtJ0ZTjaeQXnwQVUBUivEb3Jq22u\r\nY4+bTJZrbKcf3lRCjHRktiuyPI6pFFdSmTRcXqixgIJmsmITB9cyjgoTIvx0\r\nPxn770NTJ2cNF7a/1xS74aq8HCbMuXL2wywu9szpeVE7p2g7A0nyVQ2m12o5\r\nU9SKssmC9Z3m9sQQifxfK1o7FxU0Jhe+ebg=\r\n=1I2r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"calcifer_m37a","email":"daniel@metapool.app"},"directories":{},"maintainers":[{"name":"calcifer_m37a","email":"daniel@metapool.app"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/narwallets_0.1.0_1663627683147_0.23421342817075308"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-19T22:48:03.090Z","0.1.0":"2022-09-19T22:48:03.320Z","modified":"2022-09-19T22:48:03.505Z"},"maintainers":[{"name":"calcifer_m37a","email":"daniel@metapool.app"}],"description":"This is the [Narwallets](https://chrome.google.com/webstore/detail/narwallets-v3/bbpkhokajpdphepnclngimefkgblbjma) package for NEAR Wallet Selector.","readme":"# @near-wallet-selector/narwallets\n\nThis is the [Narwallets](https://chrome.google.com/webstore/detail/narwallets-v3/bbpkhokajpdphepnclngimefkgblbjma) package for NEAR Wallet Selector.\n\n## Installation and Usage\n\nThe easiest way to use this package is to install it from the NPM registry:\n\n```bash\n# Using Yarn\nyarn add @near-wallet-selector/narwallets\n\n# Using NPM.\nnpm install @near-wallet-selector/narwallets\n```\n\nThen use it in your dApp:\n\n```ts\nimport { setupWalletSelector } from \"@near-wallet-selector/core\";\nimport { setupNarwallets } from \"@near-wallet-selector/narwallets\";\n\n// Narwallets for Wallet Selector can be setup without any params or it can take one optional param.\nconst narwallets = setupNarwallets({\n  iconUrl: \"https://yourdomain.com/yourwallet-icon.png\" //optional\n});\n\nconst selector = await setupWalletSelector({\n  network: \"testnet\",\n  modules: [narwallets],\n});\n```\n\n## Options\n\n- `iconUrl`: (`string?`): Image URL for the icon shown in the modal. This can also be a relative path or base64 encoded image. Defaults to `./assets/narwallets-logo.png`.\n\n## Assets\n\nAssets such as icons can be found in the `/assets` directory of the package. Below is an example using Webpack:\n\n```ts\nimport { setupNarwallets } from \"@near-wallet-selector/narwallets\";\nimport narwalletsIconUrl from \"@near-wallet-selector/narwallets/assets/narwallets-icon.png\";\n\nconst narwallets = setupNarwallets({\n  iconUrl: narwalletsIconUrl\n});\n```\n\n## License\n\nThis repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).\n","readmeFilename":"README.md"}