{"_id":"@adshares/ads-wallet","_rev":"4-47946e8e3d960cf463ef136e5445aa2b","name":"@adshares/ads-wallet","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@adshares/ads-wallet","version":"1.0.0","display-name":"ADS JS Wallet Client","description":"JavaScript ES2015 client for the ADS browser wallet.","author":{"name":"Adshares","email":"dev@adshares.net"},"license":"GPL-3.0","type":"module","keywords":["adshares","ads"],"repository":{"type":"git","url":"git+https://github.com/adshares/ads-js-wallet.git"},"bugs":{"url":"https://github.com/adshares/ads-js-wallet/issues"},"homepage":"https://github.com/adshares/ads-js-wallet#readme","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.js","scripts":{"build":"rollup -c","dev":"rollup -c -w --environment BUILD:dev","pretest":"npm run build","lint":"eslint src *.js"},"devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.16.3","@babel/plugin-transform-runtime":"^7.15.8","@babel/preset-env":"^7.15.8","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.6","eslint":"^7.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.25.3","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.1","rollup":"^2.58.1"},"dependencies":{"@babel/runtime":"^7.15.4"},"directories":{"doc":"docs","test":"tests"},"gitHead":"523a68c65bdf516159836adf6b887094f660e6bf","_id":"@adshares/ads-wallet@1.0.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-/ujWNITX0pcHsech9lXZquG2TqzqvAyB7DVZiwkGYzwzJYlH6LZsxZddGV3x92V+M7nI+FZYchU+ARoUS759qA==","shasum":"feb1180d0bb54a387276da37c200718ba962283a","tarball":"https://registry.npmjs.org/@adshares/ads-wallet/-/ads-wallet-1.0.0.tgz","fileCount":7,"unpackedSize":59052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk7vVCRA9TVsSAnZWagAAJsAP/ipEnQ7tDvUKSCFIsPci\nq7XNzNKRu8Lj0QNLi5VzONqN0TUwD7MY8kcX978MyBDX8JHtxgbDPUN6HLzW\nfZzV4msTdLlD5tLSSyexXCVJOnLdsHSxSXVqRVcx/MUxOyBEXAEP5LX4+M8N\nrF8te+Y6PFF4MnbHVOTfKtfxTTX2LgF5L0321M4b44k4NNJwrbXLP31/fo/C\n/+zKAThdKX9EFOFFTcU2lelgBchP572nUI+sMQG+qCPyLOlWe+98aSuB5aIj\nbYPGjJmy3gNOkkqgWc8sDpHo1XfmW80PdCj4MKLvo9DEKc1ZldY91w74kLXb\nRHgL64rpcZW8T1tH1KHFWL/yF4Ki5hBzOUMDpJGfX9VtkCX6Icd6AY/7OMKS\nBRBuNuQugNTc4Jbadkx1w0lagL9HMsb8MiJM0Ch9zk9NPlbunvGW9/+h7uDh\nO05MY/oD/gGDW5jJkUt06u/+pzfR3+9rx4gk1Nxs0NsqnHRmSDWE2XzCZpSS\nYoSnUyI0AqwRacEq0DYJKvjw+LRfZJb1sLDtXlq+xsUzNjrFHWL0e+1F6uJM\nQ6zsfjl9/+ZjRn7+jMoh01RrCPsrYMO+AufCvOux6YisBx0wCEdo2YrETgdM\n2V82UOE+Ix1Vl5hSn3EQ+dqpFFaVTWwrBGIsfOzK3119lPlddjhuYLsDi8vN\n0715\r\n=7wiv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmXqQMYKJZFzlo/VgNoBdLL0jMaVdC54mQsXxF0gOp8wIhAPiAAoPv7fSfpy9fjHN6erj0JLubbjED/gGGRJolangS"}]},"_npmUser":{"name":"adsharestech","email":"tech@adshares.pl"},"maintainers":[{"name":"adsharestech","email":"tech@adshares.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ads-wallet_1.0.0_1637071829840_0.46726092688748855"},"_hasShrinkwrap":false},"1.0.1":{"name":"@adshares/ads-wallet","version":"1.0.1","display-name":"ADS JS Wallet Client","description":"JavaScript ES2015 client for the ADS browser wallet.","author":{"name":"Adshares","email":"dev@adshares.net"},"license":"GPL-3.0","type":"module","keywords":["adshares","ads"],"repository":{"type":"git","url":"git+https://github.com/adshares/ads-js-wallet.git"},"bugs":{"url":"https://github.com/adshares/ads-js-wallet/issues"},"homepage":"https://github.com/adshares/ads-js-wallet#readme","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.js","scripts":{"build":"rollup -c","dev":"rollup -c -w --environment BUILD:dev","pretest":"npm run build","lint":"eslint src *.js"},"devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.16.3","@babel/plugin-transform-runtime":"^7.15.8","@babel/preset-env":"^7.15.8","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.6","eslint":"^7.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.25.3","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.1","rollup":"^2.58.1"},"dependencies":{"@babel/runtime":"^7.15.4"},"directories":{"doc":"docs","test":"tests"},"gitHead":"44ff2764d7ea17516a726dd2dd7d53dd898da940","_id":"@adshares/ads-wallet@1.0.1","_nodeVersion":"14.18.2","_npmVersion":"6.14.15","dist":{"integrity":"sha512-1VniYRVJILtTPL2vVWoxm2J2k5wv0kATYlW5fqXjnibO9ACnPhQhGOD4OPZrV4vv0TyfW8RG8IThg5mpbgwlrQ==","shasum":"8f1f55c718bed20f6e507805525ecd54d153eec7","tarball":"https://registry.npmjs.org/@adshares/ads-wallet/-/ads-wallet-1.0.1.tgz","fileCount":7,"unpackedSize":59288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvK0hCRA9TVsSAnZWagAAZ/YQAJhPctMsN4wgA5fKhyIG\nIO8bitj9v1X+G3FeKLUAWrqtj2BOP/eENoqSdjevDXJ5E8VgORfDa7yyVxj2\nJwF8TDXFLgDJ0fXaDcyHXKyf3bnCcT1EUDbCh1LbttVVtWB+Gfd+poIfQznA\nmocGBWLHKqSawikJefbfBiKeNoP7VrEEnUyJu8sxHPp/L0SzPjVWM93hFKTG\nchkdWd9C9lZxl8xTYudeVmDdW4b8nYs909S/5fjrCRKW+F73fAMjQ927u5ws\nCsHkW1FGPzDS5sAIxYEG3NQ4vsHLZpth2vkjW1hLrBVoY9QFoiwgn9Rg9xJ/\nuk1Rhciuyyyc1W9A+1yyZ4iFUl0kFYVLFFZ0RamMvW7JyfGDf3r1O4Vz54xM\npj+3ssyMTXqjYLHDwUjuiE7tVsNMqiZBOcmxh09W4RVmsZCBRk/AEUaa0+ji\nw5SOGsGQ4MOgrLDHbYtuCeGqftFvoxDGvmERl3W/NzW2EGhQRU4EqZZQg/RP\nbRljTWEW4QblHxVuNq5aT3KRqjttLlgaPqSoNyOVcdlCgRWgjLsCHFMlnofx\nbECzm9mKeCHWMYt8NnPcOAzOxhMtm9nlMvq3gZhCpLhIVEyLViBABO85uf8Z\nzhjDZ/0CZcxzRPgJmZQH6p0dMs3qdWE1YA82u45p8UAQWef9AMDjxD6dNE4S\n4GT4\r\n=c1+e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlsSPmAn9GZ9gSulum+xZdtPfBAyMCQ8w/5+HMJmzVRAiEAjk4DJPVu+7OJWxQTCQ64sHqJvsYJFYYNfwITY6okk04="}]},"_npmUser":{"name":"adsharestech","email":"tech@adshares.pl"},"maintainers":[{"name":"adsharestech","email":"tech@adshares.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ads-wallet_1.0.1_1639755041144_0.17478015322328444"},"_hasShrinkwrap":false},"1.0.2":{"name":"@adshares/ads-wallet","version":"1.0.2","display-name":"ADS JS Wallet Client","description":"JavaScript ES2015 client for the ADS browser wallet.","author":{"name":"Adshares","email":"dev@adshares.net"},"license":"GPL-3.0","type":"module","keywords":["adshares","ads"],"repository":{"type":"git","url":"git+https://github.com/adshares/ads-js-wallet.git"},"bugs":{"url":"https://github.com/adshares/ads-js-wallet/issues"},"homepage":"https://github.com/adshares/ads-js-wallet#readme","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.js","scripts":{"build":"rollup -c","dev":"rollup -c -w --environment BUILD:dev","pretest":"npm run build","lint":"eslint src *.js"},"devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.16.3","@babel/plugin-transform-runtime":"^7.15.8","@babel/preset-env":"^7.15.8","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.6","eslint":"^7.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.25.3","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.1","rollup":"^2.58.1"},"dependencies":{"@babel/runtime":"^7.15.4"},"directories":{"doc":"docs","test":"tests"},"gitHead":"b83369c2744c51686570d91de4c132b2fe06ceb9","_id":"@adshares/ads-wallet@1.0.2","_nodeVersion":"14.18.2","_npmVersion":"8.3.0","dist":{"integrity":"sha512-rj4NMDCqoAhDX2Pb0aYE6D0PAPXd9JRWxtQV5t5lTEsI79uj0yAujGVrvcMGjM/yom/tgtiDe3g0pcoNLSNSag==","shasum":"8eaea0599b668fa5395c13a3f9bab1843c6bed47","tarball":"https://registry.npmjs.org/@adshares/ads-wallet/-/ads-wallet-1.0.2.tgz","fileCount":6,"unpackedSize":58508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvLAnCRA9TVsSAnZWagAAENYP/AnOzuRMgN64Dp3W1BJ8\nRBlwGOUYMYjJX8Ta1HJ/1CVr8b01Y43joY/j6KYNkLIQ4tJ4t7d+5bHDaMHu\n2oMf9fvKyThaHQqM2Ns4TLIqJaMVb5vTRouR6xJ5jCSHW+RHdHZBlMhNfA/j\nNzKXd4si79AHkAqM09r00ITMw1yNSu7JwUe3IO3ahNgHaRlgvqKQa786avK/\n7YhJSE5SpstNPTbbWe/uFv6TF2cm6ehNZCUx/fL82X67r499aCcOz8K1sFXK\nK4kep8GvXkcDI84+loXpsZTSJrDJhjHHC2ysORaRlWe6giZBaqsQiA5NTKGE\nlowdDHN2DjHfagRd6mXhV4cH6Q87o+T24fhlrjzOUer4LW9fquMSDsgs3Jsz\n+mBV/PiMypbvRi21BaHVqjJrcolI9CXrvNHo5twzjQHpOMVcaE96nF7FKwQq\nDsu0Wn/7YYQ2cuEUcdOzSYDaQhxDq+Q1Xq4W0ULGiTAbglnPf1A33Oc0od89\nJK9L1oA0W7CIsQk2pxknr0DM3wj7WHzbh+yycqNM8CxGfXbl5tkmRT+tLRZN\np/mMuDYuAmD94JwlgaU6yITT9FSGLMwNBhw0EOGiH+u//8iNTYcJoi7D2qmF\nOb1hEhQlDm7iUjSzWL8vOGtJCNyE+GnyE2x8MCXCyATynjgd3/SGowGNoOtP\nlZIQ\r\n=Y2EH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4GNuNT5t4rCEMhti2VldGD25rjUcUNP+qP1PvBBvVGAiB/wCzD9zyZCg+u4c4oYbFHe54ASBQ00O1N0kdl7BZudA=="}]},"_npmUser":{"name":"adsharestech","email":"tech@adshares.pl"},"maintainers":[{"name":"adsharestech","email":"tech@adshares.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ads-wallet_1.0.2_1639755815146_0.7279628224536163"},"_hasShrinkwrap":false},"1.0.3":{"name":"@adshares/ads-wallet","version":"1.0.3","display-name":"ADS JS Wallet Client","description":"JavaScript ES2015 client for the ADS browser wallet.","author":{"name":"Adshares","email":"dev@adshares.net"},"license":"GPL-3.0","type":"module","keywords":["adshares","ads"],"repository":{"type":"git","url":"git+https://github.com/adshares/ads-js-wallet.git"},"bugs":{"url":"https://github.com/adshares/ads-js-wallet/issues"},"homepage":"https://github.com/adshares/ads-js-wallet#readme","main":"dist/index.cjs.js","module":"dist/index.esm.js","browser":"dist/index.js","scripts":{"build":"rollup -c","dev":"rollup -c -w --environment BUILD:dev","pretest":"npm run build","lint":"eslint src *.js"},"devDependencies":{"@babel/core":"^7.15.8","@babel/eslint-parser":"^7.16.3","@babel/plugin-transform-runtime":"^7.15.8","@babel/preset-env":"^7.15.8","@rollup/plugin-babel":"^5.3.0","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.6","eslint":"^7.2.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.25.3","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.1","rollup":"^2.58.1"},"dependencies":{"@babel/runtime":"^7.15.4"},"directories":{"doc":"docs","test":"tests"},"gitHead":"22abb3e057c84f2214daa1f2c7f3b87f5ef01b8c","_id":"@adshares/ads-wallet@1.0.3","_nodeVersion":"14.21.1","_npmVersion":"6.14.17","dist":{"integrity":"sha512-Qfc6JW7zHhcbUg8L+XKRjHOhrSwLQCLsLEIOJd2xA92CH//GNzG/Gl5/gBXPAGaIsClpNRnm3T3sNYwwaL1arQ==","shasum":"e4305621d67ffe7bab3f8c0fad28c7a47347ab20","tarball":"https://registry.npmjs.org/@adshares/ads-wallet/-/ads-wallet-1.0.3.tgz","fileCount":7,"unpackedSize":59929,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErICP1+zX1eEwk209aVfYnDdH8LaVzI46gLhxrhm7a5AiBeiCJxjMWtzAXPg3br62cb8QYaR9O9hSCExNevzgXOgA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje0rAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyJQ//ZZLrweoOoOsDkR9NDjA3oibRhR+OiyCLz4s6IXfHaKK9HiIR\r\nEjiTbyaqCKdPhn/QhwIo+bXS9o8WM0Ubh9y23KCaZb+j1nLlZbiP6aX958zp\r\nnoS1b96wDzTSvFu8/WF9/w4pXlruD6BKDCSAZrksc6wXB7lt5uMB5F5JGqpj\r\n0IM9N6Qhgj4KOAU0KBumO3/gtL4TFSQzoBEsUErMjHAfvBZkJZXt3MVzlwXj\r\nUYXzyriDXJo7P0IM+pYOP7OeeilqOA6HZKi4FhrPrmCGtoQMKA2eeGekDUi4\r\nQ7mlXroQgICwaSXAm+OEJy8TqzvveDnzV/cYECIMJ6teT+sZtLC1F28j6zjA\r\neMCfBuWkipQ2NCKvsGmjdiA7qDYnyf9sZlODcRoQdE9wSzVs+Pa9dpJNYNRo\r\nuA/f+/tG4o+6e9TYwMBWtx2ABj+JBoQZPxwWADuWhBNmIGyYupegvI02Z6nR\r\n/5lhF7WvK7rg3bR41OTaleonNc8iYKkmgJZB+VN5wlS0ec9wwmWUQQQnPFjX\r\npz15/AvwHAKsw9XQlpekIYYBH0dJUudfilQrkRIq2l7vFL5TKoNpQVGs4w6Q\r\nSBMuommJJwAHBOhxVIpII06FrZ6YBH2e3JDFa2qVx83ajz9R8OA4ZmWKXe10\r\n6vZsPD9zT+NybQvh4MCx3Jbb09nHCwUr4xs=\r\n=HWzO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adsharestech","email":"tech@adshares.pl"},"maintainers":[{"name":"adsharestech","email":"tech@adshares.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ads-wallet_1.0.3_1669024448575_0.3544951450925955"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-16T14:10:29.759Z","1.0.0":"2021-11-16T14:10:29.997Z","modified":"2022-11-21T09:54:08.952Z","1.0.1":"2021-12-17T15:30:41.462Z","1.0.2":"2021-12-17T15:43:35.339Z","1.0.3":"2022-11-21T09:54:08.842Z"},"maintainers":[{"name":"adsharestech","email":"tech@adshares.pl"}],"description":"JavaScript ES2015 client for the ADS browser wallet.","homepage":"https://github.com/adshares/ads-js-wallet#readme","keywords":["adshares","ads"],"repository":{"type":"git","url":"git+https://github.com/adshares/ads-js-wallet.git"},"author":{"name":"Adshares","email":"dev@adshares.net"},"bugs":{"url":"https://github.com/adshares/ads-js-wallet/issues"},"license":"GPL-3.0","readme":"<p align=\"center\">\n  <a href=\"https://adshares.net/\">\n    <img src=\"https://adshares.net/logos/ads.svg\" alt=\"Adshares\" width=72 height=72>\n  </a>\n  <h3 align=\"center\"><small>ADS JS Wallet Client</small></h3>\n  <p align=\"center\">\n    <a href=\"https://github.com/adshares/ads-js-connector/issues/new?template=bug_report.md&labels=Bug\">Report bug</a>\n    ·\n    <a href=\"https://github.com/adshares/ads-js-connector/issues/new?template=feature_request.md&labels=New%20Feature\">Request feature</a>\n    ·\n    <a href=\"https://docs.adshares.net/ads/\">Docs</a>\n  </p>\n</p>\n\n<br>\n\nADS JS Wallet Client is an **JavaScript ES2015** client for the [ADS Browser Wallet](https://github.com/adshares/ads-browser-wallet).\n\nIf you want to integrate your website with ADS Wallet, use [ADS Wallet Connector](https://github.com/adshares/ads-js-connector).\n\n## Install\n\n```bash\nnpm install @adshares/ads-wallet\n```\nor\n```bash\nyarn add @adshares/ads-wallet\n```\n\n## Usage\n\nAll methods return Promises.\n\n```js\nimport AdsWallet from '@adshares/ads-wallet';\n\n// pass true to enable testnet\nconst adsWallet = new AdsWallet('CHROME_EXTENSION_ID', 'MOZILLA_EXTENSION_ID', false);\n\n// check if wallet is installed\nadsWallet.getInfo().then(info => alert(info.version), error => alert('Not installed'))\n\n// authenticate\nadsWallet.authenticate('message', window.location.hostname).then(response => {})\n\n// broadcast\nadsWallet.broadcast('4164736861726573').then(response => {})\n\n// transfer\nadsWallet.sendOne('0001-00000001-8B4E', 1.23, '4164736861726573').then(response => {})\n\n```\n\n#### Responses\n\n```\n// --- info ---\n{\n    id: string,\n    name: string,\n    version: string,\n    description: string,\n    author: string\n}\n```\n\n``` \n// --- authenticate ---\n{\n    status: string,         // \"accepted\" or \"rejected\",\n    testnet: boolean,\n    signature: string,      // signature of the message with prefix \"message:\"\n    account: {\n        address: string,    // account address, eg. '0001-00000001-8B4E'\n        publicKey: string,  // account public key\n        balance: string,    // current accoun balance in ADS (float as string)\n        messageId: integer, // current account message id\n        hash: string        // current account hash\n    }\n}\n```\n\n``` \n// --- transactions ---\n{\n    status: string,         // 'accepted' or 'rejected',\n    testnet: boolean,\n    transaction: {\n        id: string,         // transaction id, eg. '0001:00002361:0001'\n        type: string,       // transaction type ('broadcast', 'send_one'),\n        fee: string         // transaction fee in ADS (float as string)\n    }\n}\n```\n\n### Contributing\n\nPlease follow our [Contributing Guidelines](docs/CONTRIBUTING.md)\n\n### Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/adshares/ads-js-connector/tags). \n\n## Authors\n\n- **[Maciej Pilarczyk](https://github.com/m-pilarczyk)** - _programmer_\n\nSee also the list of [contributors](https://github.com/adshares/ads-js-connector/contributors) who participated in this project.\n\n### License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.\n\n## More info\n\n- [ADS Blockchain docs](https://docs.adshares.net/ads/)\n- [ADS Browser Wallet](https://github.com/adshares/ads-browser-wallet)\n- [ADS Wallet Connector](https://github.com/adshares/ads-js-connector)\n","readmeFilename":"README.md"}