{"_id":"@dr497/sol-wallet-adapter","_rev":"5-f8131e1b746df011a5a9c27ac2e68285","name":"@dr497/sol-wallet-adapter","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.5":{"name":"@dr497/sol-wallet-adapter","version":"0.1.5","description":"Library to allow Solana dApps to use third-party wallets to sign transactions","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"publishConfig":{"access":"public"},"scripts":{"build":"microbundle --no-compress --format modern,cjs","start":"microbundle watch --no-compress --format modern,cjs","clean":"rm -rf dist","prepare":"run-s clean build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build"},"peerDependencies":{"@solana/web3.js":"^0.70.3"},"devDependencies":{"@solana/web3.js":"^0.70.3","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"jest":{"transformIgnorePatterns":["^.+\\.cjs$"]},"dependencies":{"bs58":"^4.0.1","eventemitter3":"^4.0.4"},"licenseText":"Copyright 2020 Serum Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_id":"@dr497/sol-wallet-adapter@0.1.5","dist":{"shasum":"4163f4f458ae72ec96f762cc0e2f5b48519c779e","integrity":"sha512-JcjDcUVaVgPY4hjVTPD06gY8kuTc1x5WOshSy2h5hsm4xS/c+vzB2uKlw3mKRO2trZzvNnVNRZMwiNAmiOqtzw==","tarball":"https://registry.npmjs.org/@dr497/sol-wallet-adapter/-/sol-wallet-adapter-0.1.5.tgz","fileCount":9,"unpackedSize":43455,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHW+uCRA9TVsSAnZWagAAsb4P/RLIFWMsJ7zqjcfSpA8X\ngF6rEmn47zg04OTTk7UHf7MCGRMvs7VNciCDZPKffC4yrB2ufjQOTMNmb+2N\nUeMrh1s6FVIfdYQqnYF7iHic8TqydhzdlnpXLm2whz7oVw6LYf/DQ9Q+OCSz\nH1lo1Cla/JnIlEq+UsosRomk0s+ZAwNe2rTH3TnXJIVAeo42lP7zQOiMNk4i\nIq/D67y4Zwa4xM8Fmc4/SXOr3s1CQlnUvjp1KTzYUbJthlSQ3FFIcHkyRJET\niP2rHDMlEm6J6655XkIy/BUfoI5Sb0d1waKDB3eDolyCu8jb4G9sh9oAiqcl\n1iqE21y4H1MYNKNIoJGN8qdob/o1k1ALLy5CEhMAS6NqV62iKnum8BiWRYZT\nTWlQExoYknPK3DOmY0DEMAHhRd97xhmRFr/GNTXeEWGj7ex64USqsbMeK5Mi\nDGUxgpSGqLc4tqGLCs9yIXIeMgJV+mzJdnM4qZN/e8zQePcGol1C0JtFYZ7J\n4WD905qJ8rSPdDnYtslJOUAcLF67wjcQA1CEEjFSqivCXjK/jduXfkMMIYaN\nrV8oXZ4xq+WpGL+pMiucOH+4oaB9CDC7bxLJt8UzIS6F7z+ysAIoufOYsMeB\n3vgbzfKx0kOrKSEcXWKgfVpMs8P1w02thwmXFTwjEfpwO2wCyEm6FIVHwBsi\nYJvS\r\n=d7Ry\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXiw64yRE+Z+X4p3h6C5I3PjEqY8t7wFmmioITsIG96AiEA+oZaWghmzqr9q7p+H2bvDS3oAXa9l+99rFpQdYg1VZ0="}]},"_npmUser":{"name":"dr497","email":"david.ratiney@gmail.com"},"directories":{},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sol-wallet-adapter_0.1.5_1612541869930_0.6477285581946981"},"_hasShrinkwrap":false},"0.1.6":{"name":"@dr497/sol-wallet-adapter","version":"0.1.6","description":"Library to allow Solana dApps to use third-party wallets to sign transactions","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"publishConfig":{"access":"public"},"scripts":{"build":"microbundle --no-compress --format modern,cjs","start":"microbundle watch --no-compress --format modern,cjs","clean":"rm -rf dist","prepare":"run-s clean build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build"},"peerDependencies":{"@solana/web3.js":"^0.70.3"},"devDependencies":{"@solana/web3.js":"^0.70.3","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"jest":{"transformIgnorePatterns":["^.+\\.cjs$"]},"dependencies":{"bs58":"^4.0.1","eventemitter3":"^4.0.4"},"licenseText":"Copyright 2020 Serum Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_id":"@dr497/sol-wallet-adapter@0.1.6","dist":{"shasum":"60fd1e84cd6770eb1998f3ad63396607a893edb0","integrity":"sha512-sUPl/qqpbHOqX9dy/ods6b5JA9IDViu2V5T7A6Bu8rmE68PrJfZHs2RjF+ZS3jW6IXMth33NPVmgF5l3Fxa++g==","tarball":"https://registry.npmjs.org/@dr497/sol-wallet-adapter/-/sol-wallet-adapter-0.1.6.tgz","fileCount":9,"unpackedSize":43298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHXI2CRA9TVsSAnZWagAAgBAP+wUukyVRAb2kJx/qHtVM\n/x6AmhsZGvHRU4n2uwunOHaoSbc8ozkSPs3UiygbGbeBe5mMGiaa+PSb6Csw\nJHC3Amt8+R646Lgrj4XBNhOyfvknkHUD+pVn4qopDp2gY3P8ubzPj/h0Mtxi\ng/zrSF8Uj4kPVXXBwIhpDNzqB44Oo3tTRrGP2eI5KyyfP6enCNpXLFcWiig1\nabYZqefKwYthehtNekUAlJ29mbsrFWoQ3lUid6H4PilLZ0jPqhc+uTjnBogi\nlEjK4dmzkRIJSrbdIVLdr4w6nGnsQU7L8wSe9WafLBdxP8kA9APiX63wICZK\nB3mL/et690mqDtQSY833hFg4tF3QqvMyT6OZM/UlwkYMVgkPSevRfiDqLk3U\nQKYFSbVTszLfWRAxMOD36VW4zixSrTFR7sQUxGVBesr0hN3IFGAfhnRV7X9a\nyv2D/FL4obFzFZDqHDSz+pIsy6QgQ0XNprT0yhWn0oFp50qfbRjKsjmDBFeP\nvSMzcopDdWLoVfN+gQWVRdiE7CZl4fOTHeXIbtzKmX11QhZyNpHlaYc8IdcX\nYc2ksZE/3rIH+RFu0ht9rmxw6qXU4Ygop6EB6hmIBCQtx3c8uTXucsTiyqpe\nvqRxuqoHMRHqXz8idNpVGXBCDXdI7HE7kw22g3WmDfbJ9JUvzDGZy5sTj+Ya\nV9nr\r\n=qMBS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAf3drbTFCqE+tYjbVunalD7u8Q6i+zD5zJi6p3wWoj+AiAmihDqOGRcvYi/iIceeJuwsbil0yHP3TbUj4EQgKDYOA=="}]},"_npmUser":{"name":"dr497","email":"david.ratiney@gmail.com"},"directories":{},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sol-wallet-adapter_0.1.6_1612542518063_0.3495851992668315"},"_hasShrinkwrap":false},"0.1.7":{"name":"@dr497/sol-wallet-adapter","version":"0.1.7","description":"Library to allow Solana dApps to use third-party wallets to sign transactions","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"publishConfig":{"access":"public"},"scripts":{"build":"microbundle --no-compress --format modern,cjs","start":"microbundle watch --no-compress --format modern,cjs","clean":"rm -rf dist","prepare":"run-s clean build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build"},"peerDependencies":{"@solana/web3.js":"^0.70.3"},"devDependencies":{"@solana/web3.js":"^0.70.3","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"jest":{"transformIgnorePatterns":["^.+\\.cjs$"]},"dependencies":{"bs58":"^4.0.1","eventemitter3":"^4.0.4"},"licenseText":"Copyright 2020 Serum Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_id":"@dr497/sol-wallet-adapter@0.1.7","dist":{"shasum":"1808fc54da9b576e3e223197c50c020f8701a699","integrity":"sha512-m8wn48B1QsOIM7eoGzLARNedvdawHRymHHJE/qiouP/A04Iw7v8MfCrC9GBtyBn+2o0IXrqc5xeRqKuNNl+elA==","tarball":"https://registry.npmjs.org/@dr497/sol-wallet-adapter/-/sol-wallet-adapter-0.1.7.tgz","fileCount":9,"unpackedSize":43529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHXQYCRA9TVsSAnZWagAAiOkP/1UYbeoPIehsvLMSdJdP\nE6WjQkcsKPnte2urzCJYW/RhiYVZwHMGRnm6fiN+/5bS0HoRmbahg2UjMsxj\nVeoCjWwNXR1Ui2yjlhTM/bvBVzaP0Tu/uOWit39oXKOWP7CE1BThtTLeWcDS\nNr+z6zMMAVmQ4w3VbSPurEpL209+VNIm+SikZmMJNZO4sPOw1fn7NYvF7bW8\n6phPMh+6AzHJ1l4hju//i0ImtWxIEL+y78B+E8BHsmADKGOS1vt1ZXvGqz9F\nt7NWe9VxOqotj+2Po3UwTf90TwTbv4YlhpQS8+DgFBuMgL3yT0QT0VcQz78F\noCL7daJGQZDdYmGHHmEHvo540Ey7vuhqfqNSX9VsahD5hMD7E0b8+CLgjdlk\nNdm7Oh1ggksmZlpVjWMAEyBkaIIHnvtHyPidJudzexs2OxSbM58vsPGTLSCO\n6uO2AlJyLshIXVsIz2BBqFZfFKFRdvCot72eKo1J+mWZHsFNYHD48VvBQF++\ny4w2uhxnpqh+k1USRwsf1zGL2Y5zoHNKybJptQZ3Kqx+zWKfuJvgA2TTvSpO\nHXIkpCxlcHVXQ9aBBKjs6Jx9NQeTFx3ZiftKriysnvhmeyNT6DgWIzH/nY+Q\nXde0tBtm0SDFPLjrdpfDIublsCiR7pR5XZvr33PsduuOdD2U3t/pHfizbCQB\nhMMj\r\n=Cerz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlQRQQmEdAyMiJmr0yjXxMxxIp1t09CtA2TDUx3oLvqQIhAL0EKLZ4qdYUqH2SLa5+6PNeDgYW52kxbXwo0t20ey5w"}]},"_npmUser":{"name":"dr497","email":"david.ratiney@gmail.com"},"directories":{},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sol-wallet-adapter_0.1.7_1612542999990_0.39600518249669503"},"_hasShrinkwrap":false},"0.1.9":{"name":"@dr497/sol-wallet-adapter","version":"0.1.9","description":"Library to allow Solana dApps to use third-party wallets to sign transactions","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"publishConfig":{"access":"public"},"scripts":{"build":"microbundle --no-compress --format modern,cjs","start":"microbundle watch --no-compress --format modern,cjs","clean":"rm -rf dist","prepare":"run-s clean build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build"},"peerDependencies":{"@solana/web3.js":"^0.70.3"},"devDependencies":{"@solana/web3.js":"^0.70.3","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"jest":{"transformIgnorePatterns":["^.+\\.cjs$"]},"dependencies":{"bs58":"^4.0.1","eventemitter3":"^4.0.4"},"licenseText":"Copyright 2020 Serum Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_id":"@dr497/sol-wallet-adapter@0.1.9","dist":{"shasum":"c9a226911b7c1c82bd568aded06b8aefc64c72f7","integrity":"sha512-X6RnO6IvDaUpyOzwRWk1Rv78OW9uDnoYAgqiOgCukSkoCD2Onfxc7DPrrPMbQUFbkRatdcGw2XP19SzyQM77lA==","tarball":"https://registry.npmjs.org/@dr497/sol-wallet-adapter/-/sol-wallet-adapter-0.1.9.tgz","fileCount":9,"unpackedSize":44177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHXZrCRA9TVsSAnZWagAAtyIP/2Hg+dUD1l9HhMAJDreW\nYdORJ2vzi63elgnY8FMbqA4VSLrPGrVXxNjOJWACUKKvIC4msnha5k1yy/wE\nXoU8bbaUbdt2pmHT8R6sscF5iMFmaYt8Lyxvx4d8KK/EZXq68y6wGl/xyaZL\ng/uP9ZdKT/at2csNyR07YfZILgRgNB9sDZVN4cvYDzxTgDFVqnwucbQIa4rV\nlwdSl55skXdwpKXrBuvqHsKK3eWkbLLkYPju6LlAIv49m0BBVRe1QdIG1GEG\n9dVokUgxOTTJiOJlcaNH6zAanWLyZD5g7c0cHL6mz3F7e0EpmtwwHoaGKY3v\nS2VdZZ/PshW/vnsFX28OG2LONRNt6xlwNqlQ7qZfl7fmzvrWE9B+0IGoM/zB\nF3PiRTif2nC7ngPIeJ26AnDeQ0Z+UOKyoFUbdPnBpPiq3WgBqBqCf7hlP4ik\n1NCix/d48OFKNc4E+6CIsw9gKRe4DqXsQyyCZgn5gkTrzM1tTCHNIyQYmlyN\nEmcjSQdq4fvUsr/z2hERz2LZ2OOxMY7A2Qz26NxwtSKeNiCZE9ABelGfx686\nWma0b6SzLuzQ6Bl1m7x5za4Z766aUKqwmJIxNdwSVzx5FS50hX9Mq42mhOxd\ninQEMa23YSxB3M/0k+M/cW85hgCQ6DLE5/DnC40Xti7p+yOntmTfMPZthwmM\n2lkV\r\n=XwJK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgehkSOg2zFV2HOCQxZxKinsCm7v5OGhIx0s9gDBaJ2AIhAN30Wk18xNZbJh5TZpp/F+vNRZfTLym+WBWfsOSia/5Y"}]},"_npmUser":{"name":"dr497","email":"david.ratiney@gmail.com"},"directories":{},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sol-wallet-adapter_0.1.9_1612543594627_0.6276504164882852"},"_hasShrinkwrap":false},"0.1.10":{"name":"@dr497/sol-wallet-adapter","version":"0.1.10","description":"Library to allow Solana dApps to use third-party wallets to sign transactions","license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.js","engines":{"node":">=10"},"publishConfig":{"access":"public"},"scripts":{"build":"microbundle --no-compress --format modern,cjs","start":"microbundle watch --no-compress --format modern,cjs","clean":"rm -rf dist","prepare":"run-s clean build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd example && yarn install && yarn run build","deploy":"gh-pages -d example/build"},"peerDependencies":{"@solana/web3.js":"^0.70.3"},"devDependencies":{"@solana/web3.js":"^0.70.3","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle":"^0.12.3","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1"},"jest":{"transformIgnorePatterns":["^.+\\.cjs$"]},"dependencies":{"bs58":"^4.0.1","eventemitter3":"^4.0.4"},"licenseText":"Copyright 2020 Serum Foundation\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","_id":"@dr497/sol-wallet-adapter@0.1.10","dist":{"shasum":"2bde4d67ec40aa39685f7ed180cc17e3c30066c1","integrity":"sha512-cNk/PzPZNjtN6NGrL3IWyl0x16JQx0xj+e+Qyzd/fwu1gkkHVEX8OWnNg+Cg0Rf0CHezj369IYtCb1ZD3syWJQ==","tarball":"https://registry.npmjs.org/@dr497/sol-wallet-adapter/-/sol-wallet-adapter-0.1.10.tgz","fileCount":9,"unpackedSize":43875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHYHqCRA9TVsSAnZWagAAJdYP/A6c16Q2VY0+EiXHd0VT\niOKVlPMwDGMPN7+oAdwiELWQEYoAqhVIhURzS0BL9eIc4tHPxfF1qkQo/taX\nZYIHgjF5J9RQBf34FH/tvFukR84r3VOf4nEO3sIZMPd2PuPfkZh0x5Ld3bOg\nBXlDeQFh6qoKfxnVt7qDuEmXqZx9s7fI14AMiZSVSQ3cAK6cBoL+xsQiP6LK\n5ZqVL1FlgquySXrzMg8/dpK5r7XZMz3m96W+X56yLB5j0VmvlB75UV/woq9D\n4diC0xmXZNDJOG6g/K8/NB5lnMV5pscJx8JMYN+70ChzdPhu117XXuIIeEBo\n8TJrGq6EsNXpznspAkRFUFOvvHTnAr8dBAsYMJgYFTMUmRBs87Zy8mtaEUW3\n4jU9o/xYGatRDoQzjXGr6hgzjesH6iROijcp7hMXvg9J4veHhrQEn6zK2zML\ntBCXDifstcpK9S3h9XFco+MXHzLPd/UHWaLeFW+NzWXd9yqkOLmtHEpuL3Gr\ntYe1vDJ4kTChmZwLSEXKsyDtuh2MjstR680DOlPKYh54FvNtn8o8hlOwvNyL\ngeWdNRLJx+IuUSofq1IZsKbqmIPUWBoxQBDRlll/fkeS+WkqQF5wxqTsRgFK\nVonSZt08wSvLFi5TQ+vtegiD3+dJMxLFZ46eejBVr2xkuSElQz1BzH6CaTwV\nPADy\r\n=Dzzp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBbfWa4Uw3IoxBfIkN8dKNB8KXBRgjbEPGOlkc9/ynSAiEAtPgvMpEk9dLjVQ9YXqZoK/dz8ihDJ9WuARLLVX/kLb8="}]},"_npmUser":{"name":"dr497","email":"david.ratiney@gmail.com"},"directories":{},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sol-wallet-adapter_0.1.10_1612546535623_0.7978079205830837"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-05T16:17:49.897Z","0.1.5":"2021-02-05T16:17:50.109Z","modified":"2022-04-05T05:35:03.440Z","0.1.6":"2021-02-05T16:28:38.280Z","0.1.7":"2021-02-05T16:36:40.158Z","0.1.9":"2021-02-05T16:46:34.843Z","0.1.10":"2021-02-05T17:35:35.988Z"},"maintainers":[{"name":"dr497","email":"david.ratiney@gmail.com"}],"description":"Library to allow Solana dApps to use third-party wallets to sign transactions","repository":{"type":"git","url":"https://github.com/project-serum/sol-wallet-adapter.git"},"license":"Apache-2.0","readme":"[![npm (scoped)](https://img.shields.io/npm/v/@project-serum/sol-wallet-adapter)](https://www.npmjs.com/package/@project-serum/sol-wallet-adapter)\n[![Build Status](https://travis-ci.com/project-serum/sol-wallet-adapter.svg?branch=master)](https://travis-ci.com/project-serum/sol-wallet-adapter)\n\n# sol-wallet-adapter\n\nLibrary to allow Solana dApps to use third-party wallets to sign transactions.\n\n## Install\n\n```bash\nnpm install --save @project-serum/sol-wallet-adapter\n```\n\n## Usage\n\n```js\nimport { Connection, SystemProgram, clusterApiUrl } from '@solana/web3.js';\n\nlet connection = new Connection(clusterApiUrl('devnet'));\nlet providerUrl = 'https://www.sollet.io';\nlet wallet = new Wallet(providerUrl);\nwallet.on('connect', publicKey => console.log('Connected to ' + publicKey.toBase58()));\nwallet.on('disconnect', () => console.log('Disconnected'));\nawait wallet.connect();\n\nlet transaction = SystemProgram.transfer({\n  fromPubkey: wallet.publicKey,\n  toPubkey: wallet.publicKey,\n  lamports: 100,\n});\nlet { blockhash } = await connection.getRecentBlockhash();\ntransaction.recentBlockhash = blockhash;\nlet signed = await wallet.signTransaction(transaction);\nlet txid = await connection.sendRawTransaction(signed.serialize());\nawait connection.confirmTransaction(txid);\n```\n\nSee [example/src/App.js](https://github.com/serum-foundation/sol-wallet-adapter/blob/master/example/src/App.js) for a full example.\n\n## Development\n\nRun `yarn start` in the root directory, then run `yarn start` in the example directory.\n\nSee [create-react-library](https://github.com/transitive-bullshit/create-react-library#development) for details.\n\n## Wallet Providers\n\nWallet providers are third-party webapps that provide an API to retrieve the user's accounts and sign transactions with it. `sol-wallet-adapter` opens wallet providers in a popup and communicates with it using [JSON-RPC](https://www.jsonrpc.org/specification) over [`postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage).\n\nSee [`spl-token-wallet`](https://github.com/serum-foundation/spl-token-wallet/blob/master/src/pages/PopupPage.js) for an example wallet provider implementation.\n\nThe general flow is as follows:\n\n1. User selects a wallet provider to connect to, e.g. `https://www.sollet.io`\n2. dApp opens the wallet provider in a popup, passing it the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the dApp and the desired network in the URL hash.\n    - e.g. `https://www.sollet.io/#origin=https://www.example.com&network=mainnet-beta`\n3. Wallet provider detects that `window.opener` is set and asks the user if they want to connect the wallet to the dApp.\n    - The wallet UI should show the origin of the requesting dApp.\n    - The origin can be retrieved from the URL hash using `new URLSearchParams(window.location.hash.slice(1)).get('origin')`.\n    - If the wallet provider supports multiple accounts, it should allow the user to select which account to use.\n4. If the user accepts, the wallet provider sends a [`connected`](#connected) message to the dApp via `postMessage`.\n    - e.g. ```window.opener.postMessage({jsonrpc: '2.0', method: 'connected', params: {publicKey: 'EdWqEgu54Zezi4E6L72RxAMPr5SWAyt2vpZWgvPYQTLh'}}, 'https://www.example.com')'```\n    - To prevent origin spoofing, the `postMessage` call must set `targetOrigin` to the dApp origin that was shown to the user in step 3.\n5. When the dApp needs to send a transaction on behalf of the user, the dApp generates a transaction and sends it to the wallet provider as a [`signTransaction`](#signtransaction) request using `postMessage`.\n    - The wallet provider should listen for `window.onmessage` events.\n    - Before processing a [MessageEvent](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent), the wallet provider should verify that `event.origin` matches the dApp `origin` and `event.source === window.opener`.\n6. The wallet provider decodes the transaction, presents it to the user, and asks the user if they would like to sign the transaction.\n    - The wallet should inform the user about any potential effects of the transaction\n    - For instructions that the wallet recognizes, the wallet can decode the instruction and show it to the user.\n    - For instructions that the wallet does not recognize, the wallet can e.g. show the set of writable addresses included in the instruction and the programs to which those addresses belong.\n    - The wallet should use the transaction blockhash to verify that the transaction will be broadcasted on the correct network.\n7. The wallet sends a JSON-RPC reply back to the dApp, either with a signature if the user accepted the request or an error if the user rejected the request.\n8. The dApp receives the signature, adds it to the transaction, and broadcasts it.\n\nWallet provider developers can use the [example webapp](https://github.com/serum-foundation/sol-wallet-adapter/tree/master/example) to test their implementation.\n\n### URL hash parameters\n\n- `origin` - origin of the dApp. Should be included in all `postMessage` calls and should be checked against all received `MessageEvent`s.\n- `network` - The network on which transactions will be sent. Can be any of `mainnet-beta`, `devnet`, `testnet`, or a custom URL, though wallets are free to reject any unsupported networks. Wallet providers should check that transaction blockhashes matches the network before signing the transaction.\n\nThe parameters can be parsed using\n\n```js\nlet params = new URLSearchParams(window.location.hash.slice(1));\nlet origin = params.get('origin');\nlet network = params.get('network');\n```\n\n### Requests from the wallet provider to the dApp (`sol-wallet-adapter`)\n\n#### connected\n\nSent by the wallet provider when the user selects an account to connect to the dApp.\n\n##### Parameters\n\n- `publicKey` - Base-58 encoded public key of the selected account.\n\n##### Example\n\n```js\nwindow.opener.postMessage({\n  jsonrpc: '2.0',\n  method: 'connected',\n  params: {\n    publicKey: 'HsQhg1k93vEA326SXxnGj1sZrdupG7rj5T6g5cMgk1ed',\n  },\n}, origin);\n```\n\n#### disconnected\n\nSent by the wallet provider when the user no longer wishes to connect to the dApp, or if the user closes the popup (`onbeforeunload`).\n\n\n##### Parameters\n\nNone.\n\n##### Example\n\n```js\nwindow.opener.postMessage({\n  jsonrpc: '2.0',\n  method: 'disconnected',\n}, origin);\n```\n\n### Requests from the dApp (`sol-wallet-adapter`) to the wallet provider\n\n#### signTransaction\n\nSent by the dApp when it needs to send a transaction on behalf of the user.\n\n##### Parameters\n\n- `message` - Base-58 encoded transaction message for the wallet to sign. Generated by [`transaction.serializeMessage()`](https://solana-labs.github.io/solana-web3.js/class/src/transaction.js~Transaction.html#instance-method-serializeMessage).\n\n##### Results\n\n- `signature` - Base-58 encoded transaction signature, i.e. `bs58.encode(nacl.sign.detached(message, account.secretKey))`.\n- `publicKey` - Base-58 encoded public key of the account that provided the signature.\n\n##### Example\n\n```js\nlet request = {\n  jsonrpc: '2.0',\n  method: 'signTransaction',\n  params: {\n    message: \"QwE1mEmQpjGKTQz9U3N8xTJCqCry9kgvJff51kVv8h5AyVGh3L…NfV68ERMb2WsVAstN',\n  },\n  id: 1,\n};\n\nlet response = {\n  jsonrpc: '2.0',\n  result: {\n    signature: \"2HT61qv1xxWUpx7DXZM3K878wU1JJx5eKNWw64cgeauwx6sZNKtDkSRrGvqZmsRwz6c1RwkUFnPj1LXkjNtsCd9o\",\n    publicKey: 'HsQhg1k93vEA326SXxnGj1sZrdupG7rj5T6g5cMgk1ed'\n  },\n  id: 1,\n};\n```\n","readmeFilename":"README.md"}