{"_id":"@starport/vuex","_rev":"172-e3f1d21c6016d91b9e8ba41887e7e511","name":"@starport/vuex","dist-tags":{"alpha":"0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0","latest":"0.3.10"},"versions":{"0.1.12":{"name":"@starport/vuex","version":"0.1.12","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.12","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f9bb6532bcc5b8570f9cf2041b7bb01f5f3ef6a7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.12.tgz","fileCount":20,"integrity":"sha512-HAZaXhxbfIhIoKNw3I4WUk5y1TLS0klPkGG4xStsWfTAcThGvX007lsVBJ/+AJsK+hxXxodolidZOg5BGpxLYg==","signatures":[{"sig":"MEUCIQCd7dR4NzV6T3WTJxuFhL9uCFocqiATxvd8rAelpjac/AIgalgiOPSHdCM65PJzIYv3Xx/C71KkX1XLP6qAWJ4e/Lw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNQPRCRA9TVsSAnZWagAA9NEP/jGW30Baj2fNjkvnp2T6\nzylT3/xrfU89amVXfnzFZfOeXTMN01jwMSzTMJ+NNFSgcDIVthn8dFuWYOfS\nk10T5xgKt9AL4osgBxbK2pypI3LeXVq9U5gNKx5WycCdxbSvsor5owb35dWF\n3kYp+6P4vN88ucgh+VSREflyOA+1jfy1FPqeRmix2CSnwL+NEnT9f3em0GOk\nAJ6NYjT4SnOJpmhV/jOssmpR/HUC5PDIpaBXHYT5/nsi2jlbINijqsQa/Df4\nPXXmfiyWU//TtSbpK/A0/LgCs2rfBtmUrn6wkat7EEVbWKrmWDsHWafPnnuM\nkQyn9J+CJOMV7Wj4MrMkZyUl0dcniW4xNbFaSfzZFz6yaemTW0k6jAse8QP7\n4BYw7SmljjE2kiKCaGQLUOd9/gU9VHYkDji7cU/SFUYnfEWe2eFi5WsQWAve\nIjvYTWlnr/n1H8G21SAia4w1KKmMoZ4Xkf+jUeTRkTTL0Gyk8i0WRjhcdGym\nV2k9EXi/7IczLyWwpibLZNdRrZhmPvF7TGwvqEEkE3EEgxfxQpn+buG0STPE\nlKVczyI5Fh7+xNY4rTdWb7EEva81wO+UXU43vbgbdqcOEM/2/Pqa1OKJKh7a\nLnJ4O4hkIu0il1r2vFrhz0HAP2DWaRVmwLKnblVYmKLtNT9Y5KkfF7NSWnie\nRCFU\r\n=yzQ0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@starport/client-js":"^0.1.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.12_1614087120828_0.19226362510055117","host":"s3://npm-registry-packages"}},"0.1.13":{"name":"@starport/vuex","version":"0.1.13","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.13","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"7700ac117ffb9b5a2c878a9c38da0176a9bff6a4","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.13.tgz","fileCount":20,"integrity":"sha512-0Vme0y26zeoIYSARs/U3ocEHzXTIkz2F14n4HJWzIHgyy24Jw+0eEd3jtU4lShuSgXV7Atp9rNrsJoSMJMzIOg==","signatures":[{"sig":"MEUCIQC8dAXf/GaC7mABVUjPHlOvNv5FHd2Vfa8OoLZ2GNbWUwIgXteAdGd82EbqOQpn5RSV7+rANoS/Pj8QkwLgU2tpD5E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNQZrCRA9TVsSAnZWagAAhewQAIFYBfnMWVeKgLxQdib6\nNdV8MrDfNfZFjp2xqV2PYR0YhXqpzvblEJtXqGAWuS3feDfOVFANePuh+zkG\n9mXb+kz7FQKF8Nivyw5N4w8vcuf/h9DiP0+oKdcyQjnkeaWAGStulUiS/swt\nKI5GtStAbQ41xMi/Iru9hgmC/SIzRZkcVyLesTqBSs0y/X7PsDsxEv4/4K7X\npMRrm6i7P1mC9gDEIYx9DVJDYf5Wou+jNTLooac1Vc2vSREU0a9po2xHyk67\nzx2AZU32iEBOIyjdNEnpgUoXjFIUfLYnGW7JVlc6pU71f0ucK2TfnF5pSFhs\nyrD8oeDF+A4A6ljbL+DBmSowSHbrem3Zw45PJY7Jvno6QUgG0fs0AjGkgTJ7\n4jjSljx/Gk8Bj1Pyai4R4cVAlbYCrVJoWDZtI+NlS8/Yy1Is8FO/FOqKvOlu\nLjJuDXkgMnBOnA4PS+1a6aKulk7zUaP6a1xMRWUWSNjdTDMEDC9xnnn4F75T\nr5uC2bcFritE1Sx2ZB6oXOrKYZ0vyPsYO27dFuPe6lf32e6xFYUHTw5tQZE3\njT/1yo/mknv5a8GpogDLePdC83MKKnRonhW35ik2BcYxthM743PT3r7YY/nW\nDMG9mk8ZWDwN1aaO7DKVvXVvhEolMH8PGo9yapE8tVMFlEkkZOtuM2kqS3mU\nCKvW\r\n=XTfh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@starport/client-js":"^0.1.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.13_1614087786941_0.29824543223530675","host":"s3://npm-registry-packages"}},"0.1.14":{"name":"@starport/vuex","version":"0.1.14","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.14","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"59a3f031be5bef6f372ed66abbbf6d0c7f86ebe7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.14.tgz","fileCount":20,"integrity":"sha512-qwyHhUeMK8OiFmIjCmWOtUNcu03fOyhsUgo9wEFCVtHZ07uVBM5q2XQ6OzSk645avYQINPFh6aPlXAsAa6QMDA==","signatures":[{"sig":"MEUCIQDWwaoVRUOTZ3wF/XG5TRpAj4vGdkkC4HFf5D+byBPQ4AIgX6NgtlpaaDEBjOyuVh5OMZbEKnY99wdotv9QLWPY2eQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNQnECRA9TVsSAnZWagAA72UP/iLdRQ6bXZ81sWcp6whJ\nu22UlA15a2gNfSjsLukSa/gasj6ywDnLEwruIguACvnWYW4hGP2jj+UouuOY\nwoc3K/svj1uWRLId7+HKB+dFMg7P+8jJEu9GW3ehId69B24QnpFtgd2aLhUx\n2kUV+YqzXvD5kl9OFkVDMGzpe2gQ5FHeoM6vzpPXGEkWi0pjY3obnDcpfhWs\nW77ck+Uh12zKOQjjn5ZUsu0HfrP19mGM86I9vy6nXF6O04NkxLrJnwBJlQrA\nGoaukJWmKpQ7+kl7WlKWK2Lx3xhvAgk0RN2HEWUpKttJhMsLZFQWEz3UEnzl\nD8xJndnzBU4y3x52UO0B1bgTktRVQ+NzIHT5QfqP6QjKqTegDHT5zqxWVGMW\nF07eiSMqpLRvSOlueZ7U9uge8xcWRvJfgdiLtta+7ASExiz2xrwWqLrBRV0o\ns3HQ+76S+jM6F6YcktVOwCS8m8gxwMQkDftSBAQSV4U99POdBkgdLQ1Rh+Im\nhuo402cNIHrFxxYQPuEaP9wXmsqvY2sREpzvyP19qP5GXjUdQ/2X4CxdqhUd\noGB9On3RbFsqU0UNYPhsmeI9JwdITsqnX9jc7Gt0Krg4Cp7mjXi2PTQmU1V/\nRj7p9BKWD+R+OMFMaykC22z4Xi0B2dEVRmV7/UhVQPWr+2FA4FmXcXlpBuVP\nPL8d\r\n=0Qny\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@starport/client-js":"^0.1.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.14_1614088644194_0.8433357892160325","host":"s3://npm-registry-packages"}},"0.1.15":{"name":"@starport/vuex","version":"0.1.15","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.15","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a4776f003ce6550419392b213ce612bdadc0329c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.15.tgz","fileCount":20,"integrity":"sha512-5x6W+AFIDk7t5T3tav9HFhK4z6PQM66Uvk2Ddm8VK8UPrVVZxOiO9X1uKXBSPy+7Z7ERaNVLzgAcdPsvFmHRxw==","signatures":[{"sig":"MEYCIQC+RFzXKSIjEIhmV1FCzYnTWP/fYvWfA/hGArlNCOIWxAIhAPfdNEsoVqfba5nautlskja3XjvQcQdBQgUs/9IUqmVA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNQwZCRA9TVsSAnZWagAAu2kP/0RuST1vFhvKsRNqLcdd\nZEnvgAb4DYhbLAGrmM14XqDcKJqQPdOqNlNG9hL2W90NenZ6h1WhW3kOBTm3\nKzWWQncOBZrtTyLk30KYkjKcsDT4ag3grc+7X9lHDhlK7x29e6bXs/lYSA3F\niHc2uYpcZTwraD/pq1bIIEbpn5GcHqa7dkY4m7+P6feiMgWQLvr1NR+THUki\njcjDCxPwgRQ+KQfB/lRkJTxZGDGCgw/Jf/KtU25gxuEUOO4/c9ohXStbSvCk\n9RrV01oaxDL1mQUuTohr0hY+vxGufoWOsERT1Hg/64lNv0jtg2qi27wzhmq6\nXl5fUMmpqL11HUveGlc47KBY+ZkCNZS3QSOsmYIG+XHggaGcxw9/rQ+mOMTI\nOYu3EK6gHKzIWbt7apVviCH6mKxYR2QdXONEt8b/VFWxk61sYfPDb7MV6VsV\ngmupqgN8FRnZCIJeFLFOrzL7tKszDiAvLIpD2/0GIPP/cyd8624Rx0Rp6znO\nRMdB+Df2fkOGv0SH7cwx3GpgPMQ/644+ViQpwp0fnkMUllv4vwVC0yobgWGL\nR2A/Fm7Yzod6ksZnDfR3N5nh8VSr08+/cXxbQ3QUgqRMrZysEl6LsRde+qHT\nQuy0TUEcxLhiFojsMCimsnsIt4Ax+f6xdeAaSpsqzBH5TUIyX1kqpnX8+9Pv\nx1mO\r\n=4SR6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@starport/client-js":"^0.1.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.15_1614089241525_0.26912244332857016","host":"s3://npm-registry-packages"}},"0.1.16":{"name":"@starport/vuex","version":"0.1.16","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.16","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2824704099d502a88ba1e891fd85ed05910b9eec","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.16.tgz","fileCount":20,"integrity":"sha512-psRpGdWNRZJxqTXPrTWnpmjU9AnBw9OxWP/chiH0fp/VRmbJFbxUB6ZmbspdEHRfxzBFzk3p3HDNAYkoDiVV5Q==","signatures":[{"sig":"MEUCIQDXgtHATQ2y8h2qyZGLiUXZ/ZFZxgX4IbiNEX0NIgJujgIgKax2y1N3YllWRC5tDK1ZkFvnZ914Ptd6Pag+7L88tfM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNQ2zCRA9TVsSAnZWagAAaqIP/3QZRAIp3nwwNdwy3OCi\nzbhopDRYgYFaaPpF9DSbHule6RhQA8yfAcewC36YPfmROnMQiK2M6Q7wmVgU\n7B08KMNKkEIri0s5S9CRhJTMMVEZg+qyE2Jy5kCCMdxSrpRYewvPIhizfEYY\nT30o0QBe98yHIaSJUQi2X2Pg2TRSJ8M4u3VKILkVXXFC/Kz+pGUEtPWWAkyZ\nUzWWxieDW2P8i6CCguWULUXX/aBRxSrbBuaUJnuxVLQnKSfCfkDWIGU2LLRG\nP0sqfLKy/ajmMfMgw6tdxTmf1929pwSLsS+ScmOORFnuU5Jx/RElxCc9SCte\ntDYv3lgMIFsvZMl6eyYiv6pRomf0GvIeFPq6wqrH7H8ShCZFhviSqvihzHu/\n6o92e4k5iG1he8P2gKDNJ5xm/qD7Fc/1/UsTZubwYwnZ0/EZKL81hzVi5xDn\nDE+fWKZuChDgPCgst/BuQqeH36T/fIDrpBzbaV1WBGUd1ZHzcnLDaTd0YjBB\nrmJYUg3XHKzZ1+3czwQRCEF2W8aQqBiKqp/Lgr4C45KtSBDNuRCld24wf7vR\nLtMq5i/px1G9vkyLGBBQW/zW/Oqp52kPmJ5fkGY1FmGaO6HDGgf8ndBMgFYI\nfaaFYCELTj1F3WAKbfmvLBZ7mD/ktzz7sxCX7oaH0vMJB7nN7ajczWO8Fpnw\ndULr\r\n=GnZ8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","@starport/client-js":"^0.1.13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.16_1614089650760_0.28993075176872285","host":"s3://npm-registry-packages"}},"0.1.17":{"name":"@starport/vuex","version":"0.1.17","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.17","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e87d435569d2146868ec70f9af7f513fd18d65e1","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.17.tgz","fileCount":20,"integrity":"sha512-SVzp0W0vq2Hf5BqF9p78/bfZAsHWu9LT8TBsd86T+GHyglUomahrVU0xeHR/zodXc4ghJeZcspO7dgaVYmFbfg==","signatures":[{"sig":"MEUCIErliVw2qS5Gl4VWhGB5SeZbkdhYbRTVjKS3uTgAcsNdAiEAkOtAQhZxE+wC/iHXi3SP3hr8RSbprEJtp4OhWmpPYXg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNR3CCRA9TVsSAnZWagAAhfoP/jq+h/AGN5AuRiewUe22\nbl1FR4+mV4gTeQV/y/L6EUORYqmmlBzQAOx0wQ/ueqYlVJ6BPJb5ixENlbaY\neykSdD3j5s+tpmv6xM5C9M2H/FhloMeGA8gmy8qsytpxHoNNAK8n/pKgMQEE\nvVvXW3Zyt1JaopPF0k/cLfYjkJKE0d7o9y/6rfG1DRwHvSdcsx/l1W8Pc7+3\nOtATwudEij3AjxcGTmSa5xmG7Pot0Jds1aWV7telHt9fzIN2NICk0zklGrGc\n2H2HKPrFbY9f2ov7hr0YuTxnU1XHyADuHcT/AE9uz6whdNk6f4p4ptLFeNNU\nv7gNNdW64wsXETswrkpl+L0T2bjj9T59HZESUQXLAX2kRNuadM4QumgqMHQa\nQVk/zm5GaCNw2vVJdCVQIW9cQKy5kLJpl5jcc1x5g6eBqFpQGBXSzJ57f1hL\nUdU+Jhe4XTUyqvmdhBj+fNxASOWz6QFCN+XMR3lImsS0N7Bb9OtwWxM2NXB8\nHsoGAgPvNUsrLVNianRuOHPIiPxxmXNgJ0rEJvg1maAxFX16o+eNVQlPzBJR\npAJAzLDsdoMCY7P+TrnEjat1vw8TEFmaV963+/6nmwVBVuHVsTvf6AnHKiFc\nLLykpFm8C4JGoCrg2dxps3xsD6YuWLYRiN7CmmF1ryDQESO5IsDljqz1mcFX\na8Y/\r\n=ZEPC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"axios":"^0.21.1","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.17_1614093762152_0.8744427707683393","host":"s3://npm-registry-packages"}},"0.1.18":{"name":"@starport/vuex","version":"0.1.18","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.18","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"67d27e1987c6fb7cf76f702123be7b596752d626","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.18.tgz","fileCount":21,"integrity":"sha512-jsGGJptfpoFocxPvVY/WR0Oojh0vi/e/Tz0qnVbVkXQGA2wJezLj2r7TUWiHoOrlSkz/o3XCSUZEF/WJh2s8yA==","signatures":[{"sig":"MEYCIQCDIyZq8oZytQyDxuFUiZurKzOtvny8zi8/zD5/WFr01gIhAJCpM2VaOYzvZukrAQoJIaKI3ZcWigaQm+yShg+k7i2j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49721,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgNSf4CRA9TVsSAnZWagAA7bEP/3+KwVKE6x3ML9/DxNsH\nPKcNxHXBq1JU6Y7u1rV1BStmEnFLkXpkQ6HkjFPfPafVuuCVob+oLiK201DY\nIlMknvfOy4Lb9qq8kuultN9yJcCZw48UEJp6zeWdYnHeQ/s9stV3JLoO8OmF\nHbHL8J4sFIBr692hdrX2xbpNyfuxJZYiCemJpXTJdCP6V4emAqzwJ3GJZe0g\nipRzQt8Q4LTBkpT6iWxcQEPwX17J66oxlplgWpLhaLFjkCLaXjLPygpCFWkb\nmAvnXHVFjYeWEc2mNXjuiwfdUHObmZ6iXY1KqMyeLE/Ad3WwNOemksRoAGkg\nuLu/NLqrd+nzdTwzZdXl9L5TmjMX2Uy5eAZwTVrrZFq04FwC2Wj2G852Aw/r\n8jjpYOTkeZFimm1LEH8WI/RCgXHwgfivxXfrOphtFB6unzIFDgl4HyIEAbsG\nAiD+Dl4NR6RGPKij6pyZffPAGN+tCaYk1Hg92gXry9myKsujVXSNpOTxQjS3\nB+1fGlfhXJ1dZDNveRUu+vb4lsSVRBnby8HorRItzMlKtC/H6sWoreUBNkac\nSUGoDGmzL1Qsd7+9ynz5zDFbZwIWAPgjczglsjWp2z1r4p/c2L28BmhDxS+p\nWCIGNubZtAhbwtl6Nor+AI816R8+DOAWCsS1G2lOqZzLw4R0RcJSfvChAVHH\nclgz\r\n=H7uM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.18_1614096376379_0.828564153359753","host":"s3://npm-registry-packages"}},"0.1.19":{"name":"@starport/vuex","version":"0.1.19","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.19","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1e46b78ec2dd27304d7999222978036030dba5f2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.19.tgz","fileCount":17,"integrity":"sha512-5QifSf81s2UDQ/p9yU1nnJOSuMSE9e4jWi2eupNpgCPS9acBiSCt1QHBIE1J3w7wTrGpoyzxhyVQL61IL/rk7A==","signatures":[{"sig":"MEQCIADmzpLtRKZ3roUIZnGIHphlblc5n83FFTH5iayZCJIyAiAOmlB4oZigTFJTzWvIvec9miXNKyRW5yWmCvJy0vDBmg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPfZKCRA9TVsSAnZWagAACPcP+wQZzOHZd2SYoZsNYUOv\n/67AsWm/aaiTBg89WUSW4QIFcgbqXP9uZSE/pezUvll81SG5ZiT+sOEwC98k\nkG7FRZILTbwRk+7voobY+LWl+eVgOjiqCcS42Mez2McHM5OUF+1qod156Y6E\nuWh8xsfAkhTmJYrrZKumktCn0BNUhXevo/OAvUgGSJwSCghMrd9lqD8E7qzc\n87/2+qy/SJM5Ix5LzoL47dp6mLsHxSw80AuRrVVqUhiIEhk4Rr6lwqpPe1Hy\nCge7ZAEGSQFmw3R6f+iKLUAWD2K0ngXXjXK+mJRQMT0cOR8j1r21l3y3rapt\n0Tly5NgaHtdMvkT/DcClQFV/HspV6CbI4c/bWxTSBkGP0uU4PZaeQ8Ffd24A\nAk3xtTfT92xfQTSHONWE6u3VRzHU680cPmcj7JlJxeqBcu1pqdowqeK3/NGs\nr3kGqVHy9hp1jPRz6iM1xhfgdC84VAySu2qPgXUJ8Brh2UN4xfauy02w33uM\ngeADI6TxMszrR6SJ790zQliNpchB131xoZhzEr0M09UKxukVK7nMT+FzfXmg\nN5EkrXkxkz1d+3QL+z2t0a7Uwe4vSjH8FIpDZWqpcHwDw0ePf9vgouRcYHEp\nnH2jd1mKT4fZaI/62sNg0EXi7ZDNU2CdFciBLnfaX4touZEwDZnF/z0w0HF7\nuw/+\r\n=pf6x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.11","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.19_1614673482077_0.19699889014190153","host":"s3://npm-registry-packages"}},"0.1.20":{"name":"@starport/vuex","version":"0.1.20","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.20","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d9ba02b7543267c1b64ffc71bb2676acca394ea3","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.20.tgz","fileCount":17,"integrity":"sha512-SyPHc7U3w0SZ1R+LiE3oEAX6Z8PD+zm2E31rnqsmr0PaRmLjwza3QhKBbmsm/9R1LPZIh7kR/1s4GUduDXNkQA==","signatures":[{"sig":"MEYCIQCHTBY3r74rGQulzdDPen92aWKu7Bv5uPJ6GfMyX6Ny8gIhANwUuQRqMaJCo8w8tlAoW8q9M03NnoMd34PTPP1qCkJS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPf8ECRA9TVsSAnZWagAAiA4P/j7fukP/VesydSniUsmE\ncXRwamvIf/1b5KKVRYuYvIAozw6s1s1LqIJWirOL6U19YgAIstL3d8Cd1thu\nZQ0KkBrq1uVRv6ytyC7sEXmqNxCOQ/FN5EjDeg8AkjDPPypOEsJCqnnp+5La\nGYk7OqfS2fhOATnJp+XVGnVY9FPnD08zQg/EWDhTZvVTI7wEtUIgdeJgpcOa\n8VsDjP9jEKRdXBPOAgPDzmgL1AKfVzX/o6cj7hiOoLaZobz79CNn3h7N7XM1\nknFTWRkOucZ3EZtfYKMdrLeQ6eBVcajQHf1cFFIw/5Np+koeCE2QTROY4V5U\nYdTc0574pAyrF4/un4dack4kJHp18rZ1zjM1hVLhDS9vbGuAdfRF4roCaCHV\nbdvRmJNh7F2lhsO2J9wdbRgoMJ2c5u7wml/zKLXIQ+B/16QqN2uM4nf2712N\nxN6q6MZrLroimJYmHtRw8VD9omw7EBsItJDQy0N4usj28e8pWTXaCvHHvNsv\nlOeNGSks34XFlv/isSqNK+5YsYlpRJJbmU5yRpsHV5ktuEaIT6pEhDRvIIJR\nzYYG2p9wuxbRnHC3plZ4H2QXRpZbtx10AfxW9muqy3BvieRcl4W6UEe6wE/X\nD+FhbCavDvSx0bYUp3PFVWOopyuGkyAJzjXHtMsS4iHPxs7EwY095F3BD2kb\nX+5J\r\n=jRH9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.11","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.20_1614675715631_0.2731606045545625","host":"s3://npm-registry-packages"}},"0.1.21":{"name":"@starport/vuex","version":"0.1.21","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.21","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"80cb6d194378afbce1b9a291c46ab68198be4f07","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.21.tgz","fileCount":17,"integrity":"sha512-5A/cMGcYUtwF+X7vpkgwrBhQkehu9o1Yw8Mj1rw4m0US56zmwxZ6/FJSpkcSUGxWaBkcMjdMehiJw1s4k/Klkg==","signatures":[{"sig":"MEUCIQDs8NgUTeMe0wyJeuHJIk5RKlFqNIP2F0t+vOb/6ULTJwIgeNbjun4rYN0FcNCy4bRylP8WzUD1XxXCoRUBnJbcuaA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP5KZCRA9TVsSAnZWagAAXEwP/jPx7xmI6m0vhnd2AyaY\nfMT+J+NlbisYvAnDWjq0WYX61UX8dAnDrxbQQEzPooQkXACbn9PB7vA0DFIx\nUOSPFc5UumKTGVDGLNaAIg05QVPKmdnHdE/RlkjGq/5MyLrXPqtJqm0xYoG8\nDSzUphTWlmJSdeWG5pk7kNNWNf591RuhYk6ZtfjoL4xnv50n9Yut/MWodUD5\noZiSEI/pNnQ0FHMIiE1y0yuD2Z8K6vPEC4cGRQ0O5lU35LVuVgyB2k91VuHR\nQ0KdzHrrxzudGWa2QXpZ6tNztQ9m/4/ZS5KTuqLiJ02qTSHb2LwV/0xZDtyF\ndVeQP6LNgrzhyAl41+qKIOBQQk1Fky//QpSY8rJn02pyd4MsiCOLo7VSFy10\nr3yPGmIJVNIHIcedS9hl2SyXsLYBpnpNmnYVu5WpaNGsKRSlm80RsDyCVEH1\nKAwWa4dlDspJU9IR0iNTRkaFRr+s2SljlJ+xxLIE0tXf6vtYQ79Ee0gkNs54\nipEmphMOfNgYx3cMwBHfLbjhRfMEoljrQ1Nun3jOVANJ2HPRdWu2+8BrCcq1\nBYzrJECx0imbN8J/v0SjViKRTOfjVHYMT/3dM6Rqoloor8s/0I0tDth39lnx\npWBp/wjiE7jbZUBXzNFhOTzI5VcWM4smX84zNhBuWZ5+eeZDPtmVhWW8qfZp\nAHiv\r\n=Ygk5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.21_1614779033269_0.16860800680011812","host":"s3://npm-registry-packages"}},"0.1.22":{"name":"@starport/vuex","version":"0.1.22","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.22","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dc6e2190c1a3bcfd3314202654cf289363189e6c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.22.tgz","fileCount":17,"integrity":"sha512-2CYVgltEex5SNAfrRSEsjJeJ57jgNMOBp99HZVxnw93iF6OMssbS/OK20ixOP5Rpc37+OXzyV2RBSBM0iw13sw==","signatures":[{"sig":"MEUCIGmirxzrk1hEvSkp7NBm+BgzwOi8aqkjv3pzT8oTzKDYAiEA75KNyN88C4cPaqCtys52aCiGmDmnAuQjnboGs0Ip8Ks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP5xyCRA9TVsSAnZWagAAOAsP/26+Zn0JZ8KlpGnZt0nX\niVDLUXH2o8HE2aHCw0/+mssrNfhg4chvLwYlunj0ewU9NVVSOcid53ksjz2Z\ni5ty3bwN93mx2tz97a+8EI0DcCqNSHLccjzWI7GwDMuuViOeV86mOaqNlGox\nlvYmiSs8YldLVCvayAfULTrSE3ksUNzAZ15MCDDEbigxIq7ZMpPPbmDHBvU8\nXtlONv+TA3C7Rv/TYPZRm5KEvsuiqJL8MApBlP/7XIyCGtVTEBwGmXdRlFZt\nUOII2Fp3RXFrszT9dr6egisc7osI3sL1ghz92poP3PdeX5O/sZgGR+ZpFOlB\n95kudJnp+IYwfr/xU3vdK46SgPQFWhGn11xHK2pFkdbcRcNL3L0X+hK/omJ7\nXqdOtFh3JLMr8RX/AeTCk9z3VgsaekZdCwKE/xezRYaBW1FFOk3me4NbpPlq\nHndNRdwlHULEG7V2LgXEL/BoNREbMcEnyfLZaLxBraMGiu9Hh/qiUTS1/COw\nX9LuEvlNc8Snc0Dn8ZnEySZPOKCZwWgAYYKJUYp1sR6sHZMkcbipXgTyXshz\n8SqfkLFn7TCCfugsUGdGe2OuXX08U0ayPnHWUyf1ypBZOpMtDnMEW1ycZwkY\nNpD9TYULCC19afnNWycAGYNhibXbgu+xTzawLYiL4D8+6rOrwVqkaM+vqX9t\nu3Bc\r\n=b3Yk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.22_1614781554536_0.9349392887531816","host":"s3://npm-registry-packages"}},"0.1.25":{"name":"@starport/vuex","version":"0.1.25","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.25","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"ffe9870994687fafd2d6fcaad8835589afc5ca52","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.25.tgz","fileCount":18,"integrity":"sha512-Uqp4nrwsx+ltKbP8CVl+Qs7DzJS+t/S9Tv6cAkDCGOThl41KrKXxpwj/XY+IwdwbIV2KR+jzoF/BAHKnsxw+3A==","signatures":[{"sig":"MEUCIQD0ehXrTvBbyyOpMI9tDUNjc8Ruds9yNOXT/6DC0nM7BAIgWSls0/GPOqR2nyPrKxuv6NE/kCdpo21lQ3wJYmJYf1c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRgKOCRA9TVsSAnZWagAA2YoP/3aQnGt2IEvNixnvs2u7\n18MsXjhieoyCyzdXWAVbpMwO3JHHlk2EKIjz7BA0z9g+oLPGW9fvQXBkkZcT\n0x0nf87z94x8eRrI4x6VlDlXxznFe5J5Md3VqMIUSZO8Rkqf9qKC8aTuuZYD\nr81n9cIzziFe7jOOdDfStqXjJUvZCAtlXeH2LxruQ/PYLfg3H+nDpvAqFMty\nllTKAQio2rAjpOhaK4dx9LmwleD89sDrFsohRBT9aBp+zeICMYSrY7Iy/ZNy\nnbXPI+CHx+/poIMQZMnUMDkW/f6kxZcC83I7UWgFWwmz9DkcDcQv982yPbDH\n1d6nR17GS95lTZOSN42teoXiZ1dhVXc8dFDz+UqAkMJeVxe4whFJna5bVjma\nK+nE+6LWobxGm4dh8pBqy+jLG2nBAIMh9yk/ziR6vZ1Ab6mhHfGqTfJ/+xH0\nSd2vCvBJicGk0bfATVWlU/L+6bEUtATrrlOBYJSjO7rDB5cptsPm/zwk/RQ3\n0YkX+SCbNLAHAb59kXvm7S2TvOQ49zSLYOTZcgoUREGKMTrHk1g2UAaC+54X\nLF2a3Z0erCjqb4le9zbPVd7wQt6Yzzi3H6dzPHvwPPUIIigycTCJn1Qp76qL\nwZ7RVmlDIcZkGgK1xNVbc/mJizHFWE4q2zbfHgb7b+aTAeFkr01g+4mzuExm\nj3lK\r\n=rVzr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.11","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.22"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.25_1615200910340_0.16413806852297452","host":"s3://npm-registry-packages"}},"0.1.26":{"name":"@starport/vuex","version":"0.1.26","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.26","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dacf114cfe773b9dd7cc71f7f6bda2111e673487","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.26.tgz","fileCount":18,"integrity":"sha512-Wkwjs87U81rrhrRUGp4vW+u2qjnrrOyPhouuZz9BaFippnRhY9Xr2h1Jqa/P1K3c392bwjGrThs9DIHhUR5evQ==","signatures":[{"sig":"MEUCID6kKfbgH+p3RObbifIUtUavndGLqS5KOXJUutO85dqNAiEAhSb/sweI8xBc2BcZcjmoCrtRKA5LQO2uyjNvE7MtDRM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRgPfCRA9TVsSAnZWagAA7nYQAJqahxfAvAWgsjWwE4Sn\nc1NSk7UB9a5suTM22z01NCSqdA4wYmKce00uARDpGH+vsE711x5x0bTYLV1h\nkpdunJtXe4NtANtW93xyIDYWe5CLAQ5i9SmQmSh5tNFjktuJMIXYtageZ1QV\nc1pu7KmJ482Lq3OCGvtO/UPypD3sTrR+/KvtwPgXd1XeA++e9kpQ/hCkz092\nwx794WKa7IUAkhTcein7yY5arGFnWfl69ga1NYMR4Oi1G+EwjEmkpZAXTk1j\n2f5enHUlWjNwM8jWwhiCjSKdR+6bizqNUyEk/726IvGN4csFBtzhVuE9amdn\nBXh9P0wvcChrVWaMylE/kEWNqC8ACdKmA7VnohFdrxIjDS68jwMva5H4Vf1O\nN6V8PU6HIUyCXBTpuFbP4NO2qgk2XgOxi6Yr5DlXpz6bV21lh9Zx7P2hEkv+\nxWVTJp1rDGplh+BW80vqWeCw4129ysU8ks9ue6wdG3ps0bHpyrVRhE/rVjSd\nJ5lfBfYMk6p9iHDRgk01SFUxR5Hc0cwnuh8cYEpNeBHlnj7Bg3+D/oaWEslJ\nYjBucOu93Mind1Ylb/8ZgTP4A2h1Bh0gTWoxMBfoNadB3hHHDwJbfqqIZFAr\nGs+LG4EDezylCSfbFPNuo1RyHnI3BCeBFvQoDqfsyQbUOZNFhnIUuW9lQmJY\nimCT\r\n=WjeX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.11","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.22"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.26_1615201247373_0.190970409218842","host":"s3://npm-registry-packages"}},"0.1.27":{"name":"@starport/vuex","version":"0.1.27","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.27","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"11d6cfe6a4d18dee2a9556aaa56a74cbfd5bbf71","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.27.tgz","fileCount":18,"integrity":"sha512-rzMHdDnfUnxfROGum1G/Mgm95l5FFYHDc4D73Jou/o5kqUGx8xX1uvwHio+jhtpGvrA784qC92+mMYJTHNuAZw==","signatures":[{"sig":"MEYCIQC9DPo5voI1EPJF9zWBPanjYiCdIb37VWQXspepdbXJDgIhAMltx+B41Erj72b4tlJibxVz7jKlCUj0L6C+5aN8j75P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRgTRCRA9TVsSAnZWagAAqWwP/ji2YlX6P1bNDQuabtTz\nXX6zJ3JsABYQjqhjRDGI1XDE1CmcmgR8mnLF0YxK1UZjZKg4TRyKAliO9ZO+\nisJ8+JeZfqJmhqM0+IZl0Z22hJ3womHpZV8CdeGyUxCfSbwb3AAFKj4AV+ay\nRbromse8sxSWqtco+9EHoDhhuQj0Mka4/0YpqH/JyeCIXlUI7fkdLTSz7xo6\nBSJfWuJNNQekYaNtBZcmobgkIe5I0nU8jHjU/vComk+/XqEOkOxU0KAUFxPv\n88MfZM3KfaRtis5hzGapN6aJbaD4F/HRxgkPIiDj5Jjqd0/hVLMFeeHELkI5\nnfkQXEZJ7UkYJgelqrq3lMGgl6trAFFG1V08ubai6mmaefFWBeIwFnyY42d2\njLzqNnzlQE3TUku29rQ/vz85dyZlzpcU8iEfPnB//vxodgu4BzwoXY0cjHlq\nA3XiCYwYKgfsyqWHiaQEfdpYm4wLfbVvuqJQnlA5PpBe9PQMA6WqK5d/+aaq\nTQEd6IUkmmwb50FGKeFJuj8nhacBdVOaqLRUif8qL9r93fqQNDy6P6U5wAVT\nduVbqe8AUDSSjZdTEgptw5H63QuacYgmlazkQf1ZZoQxHYfgtttR9aJEcRR7\nFa2Z+rPeLERQCe6JoxbBdvLeNipr0+IwsvmXw7nSKRiyK4G0EbWIq0QN4qcS\nJrMO\r\n=99a1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.11","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.22"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.27_1615201488951_0.24218188821517272","host":"s3://npm-registry-packages"}},"0.1.28":{"name":"@starport/vuex","version":"0.1.28","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.28","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5df7a0a3624d1abbee9b4869a57c3245cbab8eec","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.28.tgz","fileCount":49,"integrity":"sha512-FC+TCKeJc0c2ICokQIDXjGOLNxU/Kx69KC/VhtYv9X6iXsdc/NITF+bpvywS+iSD8HBjJ2pMeE2XG651k7BCjA==","signatures":[{"sig":"MEYCIQDS+13FOmdOpecUNl4QwvMmkowYW9p4GPAM8Wye0F52oAIhAMYhA1CQbKU2Idkr/bxOzo2QTPJ0CPZ43yOrF0zjFkIi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":210927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS3MwCRA9TVsSAnZWagAAg9AP/A70mLtEn5FCIdtpZW4U\n9LrV17GmeqW9H56Y1T6GclrE+jvw8KsmGXQdlWzRtQdLtFBCqdJhiqJ7QAub\n+bPHm71e6zkL0hAsPQ2m11b4ohXwhNtr7QLin5eQzOy0kC+8lDEBOidh+coJ\n1P0OuJkcr3MIbchmFWyHEZg8ZVj1NjSE2z5F75a+umxkHdxY7D9vXCp06bPN\nehElUv9nhM+lPcmC1Sy/nt5P4uaozGlaadA2ijMZwo3SdfOLuAQOrV4x+tru\nrekNgZY/TpPSl2Hvl2/eXg4p65k08AHOHZ1PD8yw99tuB3vyouJXUbB+6T+j\nyRco11DtRAG2epekNvJg6E/VM5ZZvBx8dDQfBWuEHUeAujc5ZavukSe66zFO\nTJZitH5xyjVynxaOZOK5nZFOvk7AGrvPE3tuHwC+yIT7pqsfP8mBVWxzLZ07\n07CuVN67lecPw3l9JOqYfR8kWJ//xvDFHsyupP88u0p97Hgb41ygMn5boGGa\nU325pQxtRx/P2FDiQh79fM7T1wkjMAsH1XIxv5RvWrlSQhwtUARxv0ybhQQp\nugYDfe+CsI6qpzhS58+FBRr0P+KmUHsn5ZzunXuABXgkJaHJ90Di9z2Azk19\nOIxQRhIiyYOnRcf/QC31ZAdhoG8db32dWiGI2qv2pe5jLZ3VRj2f9XjLzncN\nQLV2\r\n=X4Fr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.28_1615557423997_0.06110427188005296","host":"s3://npm-registry-packages"}},"0.1.29":{"name":"@starport/vuex","version":"0.1.29","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.29","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dc0bd9af02e89d1b7ec45eb828994cc8805aae07","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.29.tgz","fileCount":49,"integrity":"sha512-caXab1RqIvXR4gl64xOi/G/yOVGxHohYFEu83xzYgRPssizZbX2H8lGnGfM039TpTVA0vipVMDHY/hqSwYoKuA==","signatures":[{"sig":"MEUCIQDX7SsjIyaerLP7EuWi9iR+dOk0birJNJUP4ENorwfQdgIgUU+/n6rf8bpNs4BddRnJN3ZmWLX2w0adUOkRMlz5izM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT7QcCRA9TVsSAnZWagAA/dIQAJK1bejx48THIshR0mu7\n3l/VlIycFYCZZfR9yxpClpWIoyO+up+sbRcu8RLGEzztrkMxLRQFxycneR3x\nf8kdNwivTaHV5PAcS94I2S2uaJZP3hjvaYFFsdDWA4w7n41WPCvqA3rO3qqF\nmHvLvE1cRvBf6YjCyWhpjibhjN0AnSn1t7EK7PrGq082iTOsTM9Wo9Aer37U\nHM3yF4Xtfw5o5x9NiBxmxoerb6KSyHeBtXeshCrtfpnLijI0iFO5b6RAwF28\nJqjZLhQbIfCAaT/Uw9AN7RHvPOWx6DEGar6gB1124abfCegoAdD0Q5rgPbww\n+nAngTKuiL8tEI4TjEwC9Vd7WbMY3cLU30dFmKQBmcl+XdVPZfYSXzdlZw2B\nfaTyZ9Cve2sMWbH7EYmTamPfYO1EMiIs6oBhaPLTmDbUlKHI/JWvHV2zHiuQ\nQUg030Tp9R8LPXCbhVnzFzfCACMmysQypfIJo0FpZp0jfey9T3dbxoGYHucJ\nIC1N8JEqzjvBDAdm/cJTMhkArYn1kPuDbalMfnfHzexaID3lKMQXIS6QPigD\nRPGycOiK4ImZC8SbJy3+ryGw+34HuO7xm4ttY55lY5FUQjbHJnRgqxfo3JNp\n15lEzaRD7fUVgGUOEB8krLLOZX2+eF0wWtww68l9vTsunORwU6u6L41Pm6eU\n5hXJ\r\n=qd2f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.13.6","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.15.4","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.29_1615836187907_0.28174997707687144","host":"s3://npm-registry-packages"}},"0.1.30":{"name":"@starport/vuex","version":"0.1.30","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.30","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"32dfa5940854b110744bd76c5dd77776ef16d2f5","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.30.tgz","fileCount":49,"integrity":"sha512-R9C450cutgCCIfBiM+eTG15DYT0maT6W8UT0uMQR44vh8F8+4qnwvX+mcnGMO58WwR836aKn2VLs5MQBdt9OUw==","signatures":[{"sig":"MEYCIQDaXt7vDBwBripIE0VWdNaB5wqvjl5GuTf8wta/1LiOZwIhAJpnMp+oFvZasVLwLv8+73y4wDwbuHpNIUbbJJikDqaS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":214954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVkr+CRA9TVsSAnZWagAAq/QP/1IHElhuDqmEMvVfrtNY\ncu4fGl1ZCqhIj4D1ISymwDE4OTzWQLlTeP+kMBFgHEBqtrOUxFfoXuAPNV3o\n+GzppSEAfUzZ7hH9w+KVVrN/8qydMuuCvO+eblw+LjzNhfmY6GLCUarFuL66\nxKaqWbnjTYddSiEkrBQ3UsjySuC4515FT9B1vCPbhww0dUjtpSuoL0iOhobH\nBvje1zwZwmVf05GrmR5bc1XKkjEypDwuxS8tf5u56bgfY+JmBYN6YU/TdaqK\nrYLfX2XKjGyzZsHyzJnAg78o3eEqg/ELtFSJzQKys0syYnYP1t+iAfgqKoqo\nruYV2s3s9BTFXqtRnI7+JSUeu2cqVvT7QvcUFgdpHBfXDjj4vdRfcvFJxh4P\nE9NCY6dafyhtdyeeMUtFJcAqt3PMHq27ZwvgVUce8puGZHplcTEklozAfdCo\nuAFxYlegQdz4/a8Dcki8B9NAqqpcARKCE6Cq4fd2Xwh1OaX3y6A4gHYULmrm\nsm8O9mzT0BwOg/MDmzw7IVB+8Hibk6ty8235omSMZ4MuyO7TBuHA/YI+dqZV\nZ3qSNeIXwy543x/DknmGx65+p+2jKpAw08GvP5PrxFZWGmLwfUv7mEmTdCOb\n9vd181HU6tX88+ieiF20686lJ0SevHVzZ4SHbR0eN6bsOQcJlssiLc6vcJ16\nDJ/Z\r\n=F0CU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"7.5.6","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.30_1616268029932_0.9147736915703517","host":"s3://npm-registry-packages"}},"0.1.31":{"name":"@starport/vuex","version":"0.1.31","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.31","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"27e4f8364e24e2cfdfe4f5ed6e8a86e23c2038e0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.31.tgz","fileCount":254,"integrity":"sha512-EOxjGhEGzU1A/hfrpxh1Su5ySzHOlmE43Z2QTE6CBEk+bf24KoxjFnD8pX26BT3yQDRWU6dzB3xopBi+FOsqPg==","signatures":[{"sig":"MEYCIQDPl/SC8Dx5bOeAQhbjah4Mxb+VziJ1svOFtJyqbdnF0AIhAJB9Df8tfhHZfGOayR+v41l80G3KVW0y3CNYJZBQMdts","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5271918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYebnCRA9TVsSAnZWagAAXJ4P/3I6QYZwAJM2JpVt7Oxx\nDiFxE0WHG8iQdtAEH6+xupSeb9XpOCq78DKoXvSCOX1fDR8nz9HjhXc1cvJm\nZtwH4MT1kXZ58MSTnSz5lP6JRziTqQkaXCqHH+GFlHq4Z8k7Q58KbOs/ZhLh\nKWw93bEHnIvnFLm+yEVH+Mn4soAPsMkP70LnX7gEKWz34KAkbY2cQVPTCAe5\n7Tl5/SdOMq55o5G+ovuG6qG93iN0hykSFgS/8ClW3NKeFV0Y7D16mYPd28iG\nRZzyPxhBYUkYyTyxELOY4YdlvW7AT3yYbRIGZmzRipG628+Ts7o0ZDh1kG+r\nXBFu/SKxo3DdIWPQESqKS6pqjcJPloQ6QfAgg3FYnsSQmEsLBXOhbJP3wivR\n99RFGjJBc6pRG4CPDyZfKdkDDCv2CmzPTGi2CNSOYH9pGzV9hGO6tgAPWr9r\nJkc+Zq6MYWjFPGrk023/ZTyd2Go+OIMmIWJid7+mx4DM8fA494SmfoywRw31\nVvGy24PAQlW5m/L69DcjGayd+wi8Q3MJxAI7mxJZtVwT61a4/KCP8IZcbvzj\nr80DZTVG4+8SrAfIrd81yKcib1SzOMuDxYZTPmN3r3r8jx7Es2E1oMvAU/4n\nToBmaWTxOrgsCDhuomPhUunalbBhaRqBhEqpTdQLAm1yMn5tS9a6X+w5Hp+N\nXsi2\r\n=ucKl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.31_1617028838548_0.6369751737006899","host":"s3://npm-registry-packages"}},"0.1.32":{"name":"@starport/vuex","version":"0.1.32","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.32","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d722298549181bf68130d917573498cfea2edc66","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.32.tgz","fileCount":254,"integrity":"sha512-EL6+OcTVSDwVCtEcsocpjcwPYj7kjTUjlkJSOVNwELaUfXFniCPEfkNa6Bm/DRfhjQKB1Hff9IuozGdEVKw5pA==","signatures":[{"sig":"MEUCIQDvtAwBMoAgMHKHUOp2eTmVQsiaALzB5MmeOUzrW+ec4wIgMyNyLWPnSk/XIKF4CPOQOWKOGiRmMAMnplQU/akyb4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5272124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYfHGCRA9TVsSAnZWagAAleIP/ipFt8zGFh0SL9+m0IRs\nOL6bBGKbazHA/5oWLz1n+AJh2+NZYCXyq8V5mPUOaDKAcaiX+oQmf4vGkWBK\nZWleZA5xN7heaXgiAjquuiNhPh2Yjn3fMD5xywbwBhviQGFAC5TuU0Ed/K3T\nPmsbgVmbCF5mmhCrYM5PozLl9tssKI4lGa+SqmeRyzwYWJRchLFrVBVyUOhj\nn4POIbzfKuXqbMVvuFywXXxuqgxQGTVW+c5uE+sSGxSMCNZFtTx4PAgZioII\nLZeKPRQbmQs2hOmYuagGl9KnKPJ512Dr5T9GlsHx67Q6kGVzcTzbO2JWAA+u\njdyzmcmKkK4kphfNHNa/MO3QxwY6E3Xd21Ne08YidT4XRNqwPj4TTrL6/r1S\nfHuw8EAjjdOyCQi9e9QbhL60P2rr/dSbWmUUNKA+9f4AhyB+VmDvNV/n5VCn\nXvQe+do9jRnExqvEgWXv8DHWDk4Dq6OFaeM1m621dTCozb8WHc6Hxlj97ncd\nZmHmDONjsUSEDDuYN3NR5mCA1V3HSAYaJtrnyQDaQ4JXwiREUwu9peDnEwaN\n4iEPjlNSti4nIwxE0vz3HITQWJQ4fihadmLTewq0bXceYa3LHbCTOhRdYIzi\n4P5npRVUdqFDmU6BA3xV7dOmR/5D3Qb1tNEOxtKb9PjugLjXEyJGZZy/37Ee\njoqV\r\n=rHOl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.32_1617031621459_0.4612833431699732","host":"s3://npm-registry-packages"}},"0.1.33":{"name":"@starport/vuex","version":"0.1.33","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.33","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2d7282613ff02828e350a3cbd72e9d6541d017cd","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.33.tgz","fileCount":254,"integrity":"sha512-H2YxYNMbOql8aZJnSDiw+di+OE8FspynK335VCw4E5/u4kpfBJj5nHGtum3ilcyffH09u1A1lOpIg/nXz3CRBA==","signatures":[{"sig":"MEMCIE5rlQOzphEwO1GsakEFVyLj9817OiOtaexEc5phot8GAh9hd1KTE4NzWJxpOjRst4MVCT9szAZ0RqQuDUsMjirQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5272096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYfSWCRA9TVsSAnZWagAAulsQAJUts9LYx9yfUOgq9Hmi\nCqhipBMIVxuKaLF5qRqHNzFrVN2to9qluTQnQxvJK/YDG8FcRNzIfxA/+CPC\nd0l+4lVrmiNcexVBJ4NxImZe3CQvbcDGZC/8ENywfAGKjh2orAxkK0nsJsLz\n/8Q84oMvyEucuF5pKNQqK7t3OuZ2b1FllKtV1h33BL6XtZmSpDEixCIuFPu/\nmrGKk8ERD6icLURpx9bykG+dGB0QuKtSuYSfVgwqhnX5aoDqCE2RCASvQhkX\n4QCJ0HGrL6QcpUK2MuMhZhxOMlyHHPE+wKX0P7lxZzVowb88/x6zwWa5N/Ka\ngmxy6x181CaaRQIvwuoVcvI1urSrawbGcmOer5qZd+lxnavmPsu8TeWU9B5U\nR7Csx8g4nYV3Z7VNlWNzaRuHyFnDmHIRFNcVS/Qlt/VqtewiXycx8rbCI/kG\nizuIqsMoBgwaOFcp4PeOgqbU/BCO/I0bI6HEJTYDEDZ37fbOALGuAjIh1qor\n8I4tSeDapA3TIWwF2sT4QyKe3Jzm4S//ok091sZKLIf38mUwW9NHIjlorgck\nuQDFolGcP6KmL4GZqOMyUzIqEqZhMZdjeXK0D2CzvWTOPynWkcwFbObA0k43\neaxw/mhOMDUC+L/rrqLI2C43icCJjMYFAeL9AUEQZ7WLwMUUSUwtmgyo8Hg1\nda9S\r\n=Wck7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.33_1617032341665_0.621271624471557","host":"s3://npm-registry-packages"}},"0.1.34":{"name":"@starport/vuex","version":"0.1.34","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.34","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e80f14533831a50dcd6dd5e0b65fc9817969015e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.34.tgz","fileCount":254,"integrity":"sha512-DnljeT8p+gtJANsKypwFfX2z5fbunQlGZWq4adi6HDlKBVI8BnUwUwNaJi5vPtyBI9X9nYyV2dY5ZDAxzKa93w==","signatures":[{"sig":"MEUCIHsjeaXPo37ohVu+Yr2bcvd2aENyFMdD1elCQFAVgy24AiEAremap+v0LVFXOgFtTqI4HsEE1KbNKk+gN2T2+GT31z0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5233101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYt2ICRA9TVsSAnZWagAAs5MQAKH+P8NwxZmX2KB67M7c\nydmrYJ6jddro2DhuL5/uoL6EYNHr48qWJSBibd16QNggDH4/vArU3lqFmooo\nR73ENVAWBAMd/FNhVeQP2mgaO6ud5/Ypi6FXhehb4GqgxFiWl/erlRubbvNl\n/gSiPcpxALcWzxXeKTqhilrN79VZXTZYcSQ9EMgY00r5pi2oYQ6NzrK9MsRm\n1huiXZ+1ksB5XR/GT2fplGXgHRC0Mgk98Kgem6A+ny9UI5qSKtGXGeIQJqFp\nibbcQ8EuW2borJFkOTIzwSlreOtw2r2JbOU353qCtLuB/17Qiax8WML1pnFx\nWcFxisiTVKlXIK8Pe1kzzKtkPnqChaRbm1jK8gmBMBh2TKT+SU68UMReMW9N\n/BPc3SxGWIR+L3nxUOZ57PDHNr6fEoB42pZTjdGu3xCn5a8yUXo8vuJpWTl2\nBLuxqbeFoKMBJUs0dgkLpHyd0DwSGDT1R6Zn/RmkZYP0MoJNuqoldNFJUrLP\nZ7hKAfb3vabwnAncdblUUSWNIUpvY1QRXjaCitYKWafm4jm9mLOE+YL/YMj5\nIPCgytEQjK0d/wG1IEwfFyuxvb0N3gT0ZlYQEfK9PwWon8rO2btFSXCKzWt6\nKkVnQx6j3bD1dUcGz11jtuoe2w7o4u4+1/nRcx5YrKA0sKDwk2bugNEPw89n\nFskO\r\n=vI6R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"7.5.6","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.25"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.34_1617091976031_0.055948162315037964","host":"s3://npm-registry-packages"}},"0.1.36":{"name":"@starport/vuex","version":"0.1.36","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.36","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"58e5b0e5a58d04b27f168ad413d09ae881621a41","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.36.tgz","fileCount":254,"integrity":"sha512-uIc4vIc26yA3OkX29sCAYHll6Hsu2otpz/kXVL+k/sGdN4jpckkDUv8I+Asy3fx6EpiGJeWv+tmNoXOFzAXZNQ==","signatures":[{"sig":"MEUCIE1EalhuaeN6dx8ZQOnOAKLznHfuBq5MIpKjaeG/Fk4jAiEAw3MoS5M/kvlAMW7KCd4iQeBBrU+AD4I57aK/XBjS9bg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5233101,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYt8UCRA9TVsSAnZWagAAGRQQAJ/ydUI4IhRIS9QNbWLK\nEx4xwCIX0oPOQDaGZeWUfexkC0KMh6HU/e8t/p6nJqKW7Ikps7KAOOs/hU1j\n7NXsfPmpPbqfh2aI/XxyEUyVhC/XJJIQ0lFGtzEoVP5MEJngjQYckR93G5zh\nfUOphRu9Typ5T1YZvVoUDU28YnboLSRLGMUHEIcHo4KTH9v6Mq+8fU6ZPgKH\nUdIcIKiL4gUY/qBcx0njFrFQ1+B/6ODUNh606nUkVsxNXNPB6KlgV1jWiSLy\nPFQJOcJjXN+sHsUK+ll66IDtTMBP9X2OrwUmTCO2keiBkj/ji/L3+SdQe6hY\nXPok5IFQsiL6klWUQXwviAodjUYD8SYNkXXm0pkl/JZYaxgowz7Dtn7Ei4Ln\nqnXYoFybzrctQTPxaz5BFb7ALaftNgwMdFWPLCkrtghVxAOoZ4k1uNVLwhAK\nWKMrSj+VGcPcu/GqOF9bbDhybktKe+tqVXBS8JDvGyXM3yU3qT9zhkAFkMB1\nMOxb0AH64okcA2jvAImWuwpOeiX+1DwoCsX/s6B7FP6+VJBtXIWAdgRYw9Rc\nY/r3LFiqaQzQZSHTWA1k+BVxCEDqw78S4V1i1bFrdDPprXnhteqvOOO8ExMq\nxEuU6wv54XpW4CQpyseKw0CbofezbfJkg0FEVyi2rYczSVabGATZT2rd0eqB\nMltD\r\n=TBv9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"7.5.6","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.36"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.36_1617092370945_0.7749329802315796","host":"s3://npm-registry-packages"}},"0.1.37":{"name":"@starport/vuex","version":"0.1.37","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.37","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d7b4cbbf7969911e8ec78db60caf5e018e88c9b2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.37.tgz","fileCount":254,"integrity":"sha512-eHN84qNHhlTtw9OR7xEVxHD5OU7ITEhwzjknOn/1jBtFwNw8R/D0V7rR/x0DjVTRwMwS4xOVAesusV6/MjSGEA==","signatures":[{"sig":"MEUCIGg0AO2j2r2/mwBOqfIVHHHgdolRNWRaeFqmaLqgAskRAiEAoudSWQEIlxWf0RNR5VJJ37uZPZs30ss04wOujMEsWHY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5233338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYvvsCRA9TVsSAnZWagAAvr8P/iigTtqJKozHZirI4y80\nP6NBJOxWMzPHGPdOSt4ulnYOTBp5+7SvClNfMvBI/81ZezUh/gJDMNudZrtv\na+h/CVvGX62iesDFCWI9cw4Aba6ZolmfFljr2bRGk9yczzUQQPZXQug6eaLo\nZdV/v16BY+Ph5mZdPvy2uQMGOhlOQN2ASkGbGU0wVYowW3hHMiQtZAz0aT6r\naePVLcl3xunRYwRSQAoqU8WyKFfzm2ysoyd/5u4jtgH96+FWScL9QOmw52lj\nFUxOfn65Afg5eBjyzjNo9bBQCSMGG6fHD91Fi/fwf2KPB7jYNzTUEDDlQJd6\nsEkkXDZ9Hsoq8ZmBZQhkfXm+03x34MFyY41aTIZScsrnxSgt2XXIv6be6Fra\nXgu6V4sZVkfrGFgyLon4a1GFJF9wyMTJeEr5+u0fyOx9V+dbYF2s8nv8y/zQ\niKSacPzIveJlNiEDuDG3gxkNHsVsOvcAYNUCqwiK3lV10ZEI7/Y7usfdj6U9\nLSD+m7GPMND03U17tcPbU2RAuTyB5ZjPMSPJvQG8YJrevGNmFkcSrQyxRHi7\n6qDT/Ql4G2/5H22D/AmWmybAkyS79hW42ASlaKSoiYZfMTF76i7M79kkC3/4\nXfzClKZl1pyi1BpbyHNHO3YiisHf/VT4YP295V+e5rCW1IJ5iuSzWK1AIa1p\ngGPw\r\n=Kl3P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"c7ad5edd391a9884d29991db27a6c49509ba872d","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.37"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.37_1617099756375_0.6327450162801196","host":"s3://npm-registry-packages"}},"0.1.38":{"name":"@starport/vuex","version":"0.1.38","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.38","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"ce0d68a96dcc39475bfac1d723b5102ce9133f68","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.38.tgz","fileCount":254,"integrity":"sha512-OZFipaqW9XUb/7lP2fweDj29SQ2T8ugpmdsJZeX6TJg0f7biMt5esryGmoYyD0W4bMILf8VyRgogGvdtZ9tOXQ==","signatures":[{"sig":"MEYCIQCnd6ZBbh2PdgTZqAF8b+SmQeKgVOCZvMknjLpTNgsJXwIhAIehfscGnah+scAf0hYkwspwTPPoiNNTHaNkkIjk1CCk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5272154,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZIc5CRA9TVsSAnZWagAADeEP/id+z5vd6FDG5B7w7X/9\nXVXmkQeLvNk8+o30Fgm/TD5u+ZdmOUt10bjojUQ8x20HOYQstzgHQiMVldLu\niEnmfO2Zm7m6osfGmWvxB/4XgjpFjinYrKN9beGwdtd296PsvSa3wF19J/bC\nhT/DkHTYPuuSZFnH8DzS1c1GUVs6oQdKrVkbOXN88B/7AyAqmPQOyI+PqPRB\nb9Y1GtIyJgJKa5Dvk8QU2DWBmdpVZ3/wuK7ZnJ8rdjoFlFXbyk/hArBiqjnM\nyMz0EMnDfwDFRoLxGEgkXj4kaZ/12Q1O/3vJoPpe/8oBKdsk+lKsAiEnx/c3\nuLsj1UMlZw52iPTu9JS3iRKHRkwkdu5Ry5a4DG8meq36yotpnmwwzG+d0B+w\no4XogvXexLDQGPCfndXzS0214fUPuQ6iRTyHV1KJMX57DGzrt7SOIRsZ4vzc\nEeSPjjXoAQtNlQeCZfRn07ixUdRuGeuAZn3L/WlxtseF0JYJR2f1CBvyrMje\nll39iiCkuXIA+WCa1cQI26Dy6MTxHR8ODwCR6AdkE95wSAqrdMQV8phUcHf8\ntjy2oLBJmIQRFn3rA7ESJDUJTeAVkkFrjLR+oZ6XBvqJ6669Q8G7E8QoUvx+\nKtc+JrcBpuajGdZt2R9h4/LolLy58h3dLVJoywVFCJzNK1ki05Q/4M/E2yiU\nXgyE\r\n=fAzH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.38"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.38_1617200952856_0.5294308494545512","host":"s3://npm-registry-packages"}},"0.1.39":{"name":"@starport/vuex","version":"0.1.39","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.39","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c988368ff5f2d30230c4bde3e63c196a92007b01","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.39.tgz","fileCount":254,"integrity":"sha512-T2U4GCGWJo3LNhDRdvQCapEMaSaQkUwUawJXvev20b85A1S1tJqOz/HnHx/nCWEBpGRbyj2zs8mNJobI9zur+A==","signatures":[{"sig":"MEUCIBQY0AM+3muh8n1yuwBYISy6RT6Bbmd47qAqE+1BFggPAiEAmsT3O2GnyLC6YEDAAtdq3A+fXf1jQ/jEA3UMHnsy9Pk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5271990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZIueCRA9TVsSAnZWagAA7NEP/0OIwB2P8YoKwYItGSUc\nHsrc4VFEtS2s/i3Ut4mFdTQFUZuepqGXIGNzfuzn383q+7aj4x+shmRJfs2U\nsqKqCDEDu2SgVWJwt+g5h4bxaiIhnC5xetb7ZLdnx5Id4rFIOprSIYyVdnKj\nnSo6xbGRtbdyWZHST+PUS7wFaNUgfg1z5KU1W+EMeD/Bw0H06EdsBusbitCF\n60TclsIdAfj0/Rbt/eE5MMVjfSilCj68Rhr7xynxZ/O+Qb1JianVbfFp1lnl\ndzNTu3oJlSgH+jqdeqp7QAqBk5FL1LKOyD5bmB+CVEkPtYsxdk/S64lZ5SJy\n80jWzXtwf6VH8XETIcyz2oIxHwQlHeCaeBvPHwTtrT/HPSS2CoARYDqDyIdp\nnIXRV8h/ynhUXFERtwm1sABww5tD3WQOB8qbpyyeQlQfs6qenRfM2axbny87\nlHgJcfkouOl3FX6YzCOk2xi3HYaFeKp35wRtkBb/cxlloWQ7lLufHnbhn1ji\nUQ2RzEHPdOwKe1Q4WBuIwg2egBHdFd5pwzLg57FjYAUVm+x3jiCo7w3tpJdy\n40UbBhC9EgvWKzAR5pownpNpssVwoHVG3S07LlvgjWaW/nXEup8/++47RZsA\nXXT5nvlinc+/epqZ8ui6ilbvMc4rBH2s8vCH3U7QzLGqEEbRlG6CSQe9th+A\ntMNe\r\n=FCyR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.38"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.39_1617202078317_0.8720190824065606","host":"s3://npm-registry-packages"}},"0.1.40":{"name":"@starport/vuex","version":"0.1.40","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.40","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4d1b60b693040efe71f8c5f4815886fb971c06d9","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.40.tgz","fileCount":254,"integrity":"sha512-Hc+qGDiyvydNzPvAFLnuNku6zkt7sQytHt+Ko6G0SUQJ1QI8aahypkQREqXOfw5icej/YwpI0RCp/bq9i79LEg==","signatures":[{"sig":"MEUCIGe2hXG5pVs7PCvqgZX9qgQ9+5CbmJ54cBlt85dc+/YpAiEA8FJnj9VZGCDS4CRlEXotAaXp4AqWZgeDl2Lnx1RUjQI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5272437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZJInCRA9TVsSAnZWagAAETQP/i73M4BqVockza/2wWJt\ng5HhT4E7Jo1e7i/HIZoF3P6BJ2UjF1TDHzEgAWsmq6Qd5h7c2VPLjcXJAIYk\nuJgmyDhc8MEtuwO894FEzMw02N9tYKsqsMMM4WDUMZW1EWcJIbxwTUGT62Ff\n1kZ0qyC452Rx7KX+FE5Wz14YQAup2vLM/bWopQ35FY1fb1pAjQE1piP9luLh\nP7pmAcwk/+VemVEe2DtnyMgZoxaw3VYxUUlYMiLo+s/dSyaGH6ZDJQ+o6WBa\nHoc2keT+9uPLsKu4WRyElPTlamFmi8vWgAxhioXS7C+ynSpyrgArpY9LjTY3\n/MnSby0TbLfmbbvpVyHHegH7I8ciufKoKCZv1jX112uJpbq7NxEjQeesHWwB\nixL7EX17o1asAy2Z3+CSlu9ieNkQJw7lSRX98JBIopgaE3BhZfnLd/81NaF2\ntvwQwSr7/fz7N0mUU4azPrueYlwKdJ/nfNHtzK1zn/B6eSPq8nKbI5/iw7Vk\naZwI01xwI3gXtVmIQTiJrbZWlb7kbJV57PjWxyb0L8VVA2IpOBLWO2/OmKbz\nVmcwmaE1ChPboAgCIDqP6TaqC6wRAwmwWQeQjCF+ZCdRbYCgxU+edD7xuRBM\njq+CnIJEcZcnF5FiDBtJv3x2oAW0Emjh7i0gDQUz7Qj7MjjRnF7AEX5olo41\nxKxv\r\n=LD2K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.38"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.40_1617203750999_0.6797514913393288","host":"s3://npm-registry-packages"}},"0.1.41":{"name":"@starport/vuex","version":"0.1.41","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.41","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b5fca97b6ae494540bb9b4e0c3635d8487cb1343","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.41.tgz","fileCount":254,"integrity":"sha512-2ZkGIg+OalWY0WM+/0M54whrayBgKFx3Q/2vAvgoPaqgtty8XAXudWNPUyIHT960SeQfIVixfzCh4cyUPrA/tg==","signatures":[{"sig":"MEQCICGpR8+LnVKitdZu8/LcqFnJULSt/PYm/9WCxs4UtMklAiBrZFift4OGDu7VZL5Iax6/y/eVDRWIZO+0IRbtFA1sRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5273916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZJUHCRA9TVsSAnZWagAAiLEP/2lc6kBzif12U9sygM2L\nrFG1GGPX26QcHxvWcM22+2KDh/tCNZgSbAP9xg6mZ8KVGZY9RkInl2+cQyw4\nf1katN8xcymkr6DoOwAcKmlx/xWFS3fcn/6nIBCMXTfXawrpWlyin2rLAvLr\nJAJMti0wzGMs8C4SNw+bDJeWDHZtHqDMJCplcegUswHwbKC8sALftGkE2538\nUYd+PmfxE5clqpJb+jb7aFpHHkxLeZc95Dx4cxS+dmoAx60q8ad3IXR7ykc1\n5M9YFeUtRd52ch5Ps2ZGkTE0A1+umkdebANiD2BNTBJAEN1mPlgu1ejEUiUe\ntSo1ka+pYacaGKUYlCSktWqgdvpdWEHKBsxyfxWpzRTVQd7B2cvFnaRb9yi3\n2yiW009gs+8PMoO7XmPxw+ccQUNbF3Vj2M/yvSD0P42KML8Ujk009/RhmsTe\ng2mAa2ys2qZC5c8SKf0tX/mIK8TIp5qy6KymqbNcmc3vBQx1eOsOpcLCgGLi\nOzDttH5ThdviFU3BADp3QMpg+ev6HX8MpNWosCC32NIU8zRY6B7eAGRRNIcS\nMnVIJoZglTy/PjmV/ZmHzIhIqD7QZZNG8pWcJ543fzn39AyzoZXEdZgWSOYC\n7BWjF03er+qCdfOHVpXPBIx9JMWj2mUJZeGpNp7m6yiZY73W+EWS/zx3KCEw\nJdi6\r\n=4+wk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"6.14.4","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.0","@starport/client-js":"^0.1.38"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.41_1617204487013_0.29645459555072873","host":"s3://npm-registry-packages"}},"0.1.42-beta.130":{"name":"@starport/vuex","version":"0.1.42-beta.130","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.42-beta.130","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3121420b0dbbbccfaa6924b61012be34f8c1edf4","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.42-beta.130.tgz","fileCount":156,"integrity":"sha512-CqYvweokGjyvy72g9aRthKjnMOty7rK9cgvkM6ccYJ7ceuTxD5PC81LYE1nEntOTeUptfD2kCBpno9a59Waxtg==","signatures":[{"sig":"MEQCIGfrN4gkxJR2mg8d1xWPNLreX2pxcS351W5lCuwWL3ogAiA4QY8Ywh8I1kGU20sBHopPGtcS2Z+0DV3IzLvXxV/aPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2646829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcCzbCRA9TVsSAnZWagAArFAP+wUGKUMruBATQS5O/Zpr\ntjRxzMp2Vl+hdBTihoKEqPEVPpIWA/Abwfzrm8b5CdJ5YvuRxhd/KMidLS0z\nt1iNhMI3x8lER/4/4eYOX2MI6u9EOLNmvywer06rddoQUVKfNK5OkRYbCRDe\nfcSR1+0+Dt7AUUpnMCg7PsMloRRXUuLAf44bnqr3Ka6A9r+8RzytdYuApjIA\nc1ZGuSNgHvTLabOEn7gPsIUHFDfrguOi30CCcvoSmWisRPU+Lntfb9JL2AXi\n4NdeNLU9JpCFcx/1tCLsiIshYmuGeLRNEXuCIyaJ32vc/O5AXTyXYllFtnlD\nLc6y9mIXOthH2op2SVtWax+fMnUeuGGTapudZs9eBhB2hKXZl7t+LV/4PhfT\n6vNqiwjOkjd0RpuuhR6lA6j4TY2VyjlfD8bpD9tjvh5At1O+WDlg6WxI8t4K\nRgA0/oaRSqjaQT6gEcaUJFDm+fkmPRFYnhWvj8zlYlZNlF0GZbSzY7P+aHWD\nO4RVMhR9xYmE6btUqKbG/w7far62zynjdI4CCTQnYCI1jPT781+L6yFL3VEC\nhkLruhoZJVeId0x7O/6+oy8LdP4jMn3baJ0pkd0gD2xHrQQYUggoyGgzSeWU\nG3iEdgIHYXhgyOHzW8vxevE+/Dy5awQm6h9noRhoa3drh04ID8cs6vCGQlp9\n8YyR\r\n=Mw6H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"6c17090071f1190cb71e8180d8c1d1920ccd196d","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.42-beta.130+6c17090"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.42-beta.130_1617964251281_0.6831879028581169","host":"s3://npm-registry-packages"}},"0.1.42-beta.0":{"name":"@starport/vuex","version":"0.1.42-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.42-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3347275375878c7e9a7706f9ece215d890cf46a7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.42-beta.0.tgz","fileCount":53,"integrity":"sha512-fNjNg+DQurqfURDQwZbMCvihWECd3ZfUA1Vkg/UPMmUxsGclzXmUEIPVBeVbVTzga0vkSITubU2WjjllcZbc/w==","signatures":[{"sig":"MEQCIDeI0LwXBmO9AuYCh/HKp46Pd22pY9qSX0ekcBlzvbiZAiA6v+Xqtp4HUQlmDM9rh5mOyV/lesGs+ytoAb5TAb1caw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":313817,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcDYCCRA9TVsSAnZWagAAbxoQAIJw/PC/0qapLYeJ9qEh\nILl7JnfF8jYeepH0+ryHAjroLEL0CTYD7xWFBPFqnr8/d0rjDpCTaJeZrHKU\nqJIU9pEbz6CoLu8OYztEPIgt4ei6ufvZreACA4qg1d+2WbEKG2KtchgLSuYy\nWZRMyRztLcAoe4jpSCg2q3z+CihiUCPBKgZvfrNdmBvAFyMXuenc5HKoF5et\n80o3LwANNRmfBSL6ccjSeAru3hqZzqop7K7NeVkREJfZxIgcEQx9YCoSB9+k\np8/AKGvAuMRbq9LclFRuBLuOl4ywjv4+8Qf3Pt1l/NqEyAS6S5MoU6woRMcW\nAdTKhmktejieG51QvZ/DtUMQbQszqlvRBn/TIxb7uDaEgfEKj4flq7+3mYKl\nLRnkh59PP9jahOK5AjaL9k+76y5XtIMWcNwoUx05P7DaRYeacbvVuFTbYnjL\nc+1zMVJMQ8DbyWW7YuwrVB+8VwmFQ5EeglNBqwUOV4Wa8MbjnsAiPJmPjUe0\nP+k+QGqClSuN0BpbUot6PZqmC6fGNPFiqqDaNJZIuywzPJH6gZBHGKRFuLD0\nr7CVnTPmBbFIQlvoJDh0gH3GS0UH/Vx89opLZzJgFp53MFDeivud2eVT/cYz\nt4+mvmOd4CntJo8+s0nUb+zJq4+rYySb5zFv1eulD+GVVZRJT3cSeLOmgmRc\nnLQZ\r\n=CqCy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"5cacc490cff00cac42a46f80dcee0b459e7e818d","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","js-sha256":"^0.9.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.42-beta.0+5cacc49"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.42-beta.0_1617966594052_0.10052485593013838","host":"s3://npm-registry-packages"}},"0.1.42":{"name":"@starport/vuex","version":"0.1.42","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.42","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"cf82b8c5f4ae1346c1d200ce92d43cb1d8842f82","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.42.tgz","fileCount":53,"integrity":"sha512-7lW/V3YSLyuHWAONHmkUlVeBxKuDHPWGA1AA3qgJoAEJ+nFRCmB6vk1/RJfg1x80R8nwcugRWViNdmZhcONwEQ==","signatures":[{"sig":"MEUCID3DiB+bHdQXsu4dyiZZKkpvj9o1AtiugCmO7JK+teMWAiEA0bpfR1/L8k/YfNGcK0hGZ65t9alAlsC57IXhvhPEkOc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":314290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXJiCRA9TVsSAnZWagAAgvUP/2KNHNbPAbJH+U0SH78L\nxvryllCRRkeeeA2ogdZEb6K85ztvL5SmQ0/EJFQ76sylAuInU+n5k50A9Alm\nO7+pdVRLx5HNa5nrzjl5Y8l0GcEcqzgPLEo5eJXvrlkNlAXcoG+iOsKOVGU1\nreTcNo/aSB5DAjO+hE/VQQpTJ0cvnSuxWaKnRy+C9FReAps8R9mV1CtyYVM2\n4hs0Zaed8Wn31NGf68/gRUl6k4I4rCNz1XCRqJUrIlnkhYEEqngXqBDFhsOV\nyqod7vs59Oi3R658r14tHe2dqRq3mNIsrv5oDsKFemCxpHQRMbjyEc81IKhh\nQsnIAqxhJgMmsIkc7o72mpeyae/S6dnKGce0zqEcOu9frzfKiFkZa+ZiZ+Cf\nBuX0+jnF4FAIqqwAROxPckv0nU+CXfuQjgEYAb03V3LD83ZBRUFSVhdJ99sZ\nlJae0O3lviIjaGyGwujUM++KoUjUdv+KQXeZPc1u1pDLXxNkymawABBtEoO6\nAXgqNsuWiKQEWrwvdEefzSaj3rUjYY4+AkLbXRmkrhr/AMO6360Qx7qhxiTD\nLBeGC8uKgwjB3exv+7jbP6NL+oB2K2uh4D5LSPvbpdSDpHSIQ6o8JXkSzlyL\nNwAMlhFlFwU/gS9KqcgaZjH7eMo042kn5C+z1WI+5kvVDTCN3s7EL8Hu9BB+\n65XS\r\n=OpOh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"e1d9d963d15cb5b57748f1910271dae84c7d09a1","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.42"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.42_1618309729923_0.26435173959417213","host":"s3://npm-registry-packages"}},"0.1.43-beta.0":{"name":"@starport/vuex","version":"0.1.43-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.43-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"af55a6c00f044df47c94f20eebc078fe82b6e92e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.43-beta.0.tgz","fileCount":56,"integrity":"sha512-bFRYr1Svz0FhOMB1sWaFGp/44LOiRUnp9ykVdth19LGwJZRsVkX0CSixp+TLo7yAASIHrydst+mj8LbGC/ezOg==","signatures":[{"sig":"MEUCIQChyiNge+4Yz+IE4ma+pJj2u3cx8HGWPxfMdS9UsedZ+QIgaxBcViQ9y0tGUYlM1ox36KXw+A62IuxgmRHtEcaJQ4Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":327820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXUBCRA9TVsSAnZWagAAdzIP/1gR6ng0F8FHbwXXnYib\nCZk+3iaw3WOZSI46/tbMzKPxaKHqGF/uihW3mfiLGv/K1vgvnAR+vcfSqkGG\naJuFoMH6fc1WYkdcCIRiX3qTVIujtcA6H/BddcsepgIt94vW5cX5jO0HLwEt\n3jNE2fMfAJStbTYExkOJbNDLi+NIz0sFDqz5640im47KSYYgLWi1+c914bX5\nUX3OsAOicKN4fhG5abqmqT3UnLXDwlymwfDuQ+bh5rNKe945KPjr0nE2iwgo\nBWqYqAA0gjT2sDyi6exUultn7T4Xg02bUbkcW4sQgELBCIa6DfEX8GmH9I/Z\nErxJx5N8uXomv+sYSxqkBXrwfI/YotYEgTzNFyo45edHUMlHFkns7AJ8K+dl\nZ5XXTtCXAF5D9mxHppZIvRRZcqwo2NNT8Q92GFh2E5657GLcsaKgiZepaXjb\n61qnkH08zWvNOIBgLZJVzfmbQOPcmS7BBCHJSjWEb+Iqm7qkqEE7OUIvjs5R\nyMPsBMvq429r883c/32ZZW/jWuStHYYcEYtdkQ/MEbxQQsx46mc5e25bm+ax\n6RMKNr8k33yH3HEauWOEOTsUfnfJ2oEzCjPE/H91vTRBdOEwSrqBwpGPac3e\n/cF7XgEHmtXIeLUpVpg722u4bhhOXnIrXG0n/lo6AvwVhf02Rv9pBdyTSVR0\ntyWN\r\n=IHia\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"0f713b3aa77fd3dcd7e33783fc572d735e93f798","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.43-beta.0+0f713b3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.43-beta.0_1618310400601_0.6239190325988142","host":"s3://npm-registry-packages"}},"0.1.43":{"name":"@starport/vuex","version":"0.1.43","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.43","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2fac0c93acb3f6133b9491e81a472988018bd8e0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.43.tgz","fileCount":54,"integrity":"sha512-3QnHVG5a4Kx4OWKZcCfgemrBnO2VgsQHqijyhsEDo2GYKC4rYEmuFJUzXsFC437SUxUSqqE7htjfcK2MGep6og==","signatures":[{"sig":"MEUCIDu38jVWanzOcw36TmGd6tXanU1efbqiC1OMaDiqrXWOAiEAv2hfJFkknzKheFtwvfIN/SyN1VdUsAsH4Iusb5PuCVI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":315597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXarCRA9TVsSAnZWagAABj0P/jAEhFYz+w/BNaXjUlJa\nuFiGLzMfCZqQOulDofhLCXmssWq3jhVn3UxYiBMiknCHD4JJ3E508pb+4vem\nT4oPFnXaRMRuhnB/g92mgYrtqxoOC6Z9NaWntL1T+borQqFKOFCvfrr7tM5A\npPQ9HCKnfUFMt9i0mipAvoiKSXnOam4ww3b5L/1QueAJiwg9XI6fsXNzI87k\naCWX+XT+wkG1ZyDIxVe8/ZaNzddUcfzTTP+ivfDujiQyHaybQPckFWnsWkm5\nNCqysP0/wdOdbDfnwCUEOrHLQpws3YDDmKUAYeJXL8EHEDdlzSvKtfJY1Zvy\nJTlmRM3QQgaJvlwpGkfFUKgBoz1ozA9D+cMNe0BAR/ogTL2aBZX37sx/oGqi\nHHoURqoLvwT9ufLZPa9BcRXCX0TeritOxDD4iBvJrfLt3trL9sbkoC3/mycv\nVPfJMeYYcX4ebhZ22zk7zIcOEWV7MA0WG3k2f/BLyQTQEMApL1kPnsP43Juj\nS9g4GQusf3yYZuPbV6iY/ea8ESIgZMOMY5IVwK4v8FQ8ZDMJRNiqJamV5Rix\n6PPSolOjBpHITzzpqAgBUyBHPotO/4/mIObfP4nljKiaC1ORFVaacJvVGGAK\nEm+JZORs2/h8gqK60KI3d7wzeCtKHKqhGYvkOrM9ig/I6S5fUNXuzFsW+jle\n/1by\r\n=bM/4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"19c725f96c15dae3f5c4893f8e4291501fd17774","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.43"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.43_1618310827467_0.6761044696041796","host":"s3://npm-registry-packages"}},"0.1.44-beta.0":{"name":"@starport/vuex","version":"0.1.44-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.44-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2d2a40d6d010bef5240f5bb4947d7b1e6cd669b7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.44-beta.0.tgz","fileCount":56,"integrity":"sha512-Br7e1/8lDCVJbJWh4An0XZJxcd8F2vmLnEkP2AKgRWrRKjybIcRowN6BSYhxD9OIktk348rAIaz4QTtCzHkLpw==","signatures":[{"sig":"MEQCIDu/1duAJM6cnoplLdYdu3isf1ILRbW+9tCTHDJFPHqYAiA62JINjYypGFC3JlS461mfRKNJG6yn0NrKWnWqfH2H4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":327820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXm7CRA9TVsSAnZWagAAsbEP/0PNyvt61iIyFMP0gl4b\n39YU4Fa0Hww6ngAwdZrY8ilLsW1z/flUji0cVeSUr8y/QCdHORonsOshIOL4\nQ6GipkD1yPmEEYi/6Pe7IM8iQCVkDZgxs3K1sjP+AOHx+rk9i44wYssZUezp\n/tJoh2Nvl3uGTVeh62oT6samM8WPZ1cn7v/l6sF0sC5R/HzfMIqkhF+F5mBN\nIl2v+ERK9h1fhKDPSieTHafqrkZa2JIgLrfmdp6rzVQ4KSeCDtKLHJM3YGid\nPwhBdaJhSDL/tz3fSKe6F7H374CODcRwcITqyRxGUdrA+pNrD56QeV0+dFfe\nOJ2JnctFGEbBUuRThJT1Jq5d2NqCgxqDbuVQVJy4EEeI0VORYW1PzzUN7iX2\n44FBCaCVpond83KERC0KJwAoKDLf7n1wvA+ygtx+qlUTnrpo446a4Fy95CZE\n/3eqwNivlpsoaKkwIXShJ+0NeUp9bKJaMBY8r+NiaLHBV+wPuDVbBmSP1/NL\njJf8XyBhPg7WDFK4xgSF5027hcdoMSzCynrOwubNuMnkK7d30VnU2FfY3EHM\n2MyTRHFdfG3p+3fgbqwdVaarpHA9qgFm7bEpIazjJOZhcEF5+Q/AjYa9FGV8\nFr19KqHdEMR+131IcSynnlsscbM8O3PcVmqW1tbijwZTQ/Em867xZ7yoAOFA\nuNya\r\n=YSve\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"497f385f551f2ef310530ec33304784b96b6b503","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.44-beta.0+497f385"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.44-beta.0_1618311611444_0.506413252996678","host":"s3://npm-registry-packages"}},"0.1.44":{"name":"@starport/vuex","version":"0.1.44","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.44","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8a528d41c7d633fecc1e132b9d28457a7ef74814","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.44.tgz","fileCount":56,"integrity":"sha512-0vURV9Fkn6qe0dab1VGeBnAwONisI5MoFAcIiAootqyETgJKb3+25lSeIAOu7crLeNJ6/8rfIQEdb/nwifIzRw==","signatures":[{"sig":"MEQCICP9/HY6yJo85qiPMiAzHRWI2sQuZJePhl1qCT0dL6orAiB0xrVTEsNlNCm7mSYN3uSyeIS0Hg1bLTlBtryTlXpUDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":327790,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdXn7CRA9TVsSAnZWagAAXVsP/0EOwzlXNp7WwudskpRP\nZ8a9D9+pcvDAlt0bbut/KhIx3uRt9aWy9Jw4yVfaJni7sa4g5KuxIs3+j26b\n/ulQQMAFkseaeCR4iI9lIzDEvEhjMIdgjbP4E+tmh4eQpWaweRVVvdw9ZIGK\n3Gk/c8t7bggaIFUzPH+fPzXCMvPMq6OM5XKCehLnTuHn9PJjkdXlbqIL6CNa\nh5c+sXJr9CpAWhyZRBV0KxRbr4HWJyRMfOH2xqPI2myDhUHSgSwzxR33MlDB\n11ZkgYj5PZFiQSEvP5680nEeNb7Dpa3+wd7Hn0GBT5FMyY/9MXJ0Ku0NoY8H\nfKTNHDQUNqmsv8lXDoKogLeDgkIN3G/TnS5Ye9stgbwiwBrYhQug3c+PFZ2q\niWzg8KxDjUvNTrmC24t7Sb4uqO0s9qnI8yIwtYEGiSmzReBHvvwRqNndX0Hc\nSvmHKxfg2veehgPo+YbiAgZwjkCfVR0cAeeU14E08w84xK2/yutNdfL/yBnl\nmCeVT+HR3zBiNCcdU65bzKUkbtuZ35aNw4BfcDpXErb570idlhakSJOHvrUI\nPl4Osm8Xvdo2Le7z+CzRoTt9e1vtheZ1S6W9EnWCDqPLSVQSod8zUOZl18CC\nFgaTaTmp7pEGdrffT52+/VzifKo6yBoScJLfbyEgmT0lTkrVrVGNw9KCnpO0\nHER/\r\n=X9EG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"f50faa04e5d00087b96cd65a173845640ac85aab","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.44"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.44_1618311674602_0.6724705368828161","host":"s3://npm-registry-packages"}},"0.1.45-beta.0":{"name":"@starport/vuex","version":"0.1.45-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.45-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c4dc94dd7111480001603414eef7cb793a4b1a87","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.45-beta.0.tgz","fileCount":56,"integrity":"sha512-IG1jGVwqPZxo8kKZlYqXCVecTfXxfs+onzoAszq1lRCu3hQPkf+vccdEZd+ZHdlV3gSh58bS8cQ8fe3Z+e/a+g==","signatures":[{"sig":"MEQCH06Ib3OJwsb86aAbuLp0cRSLLwN0HOETXOogXDafsMQCIQCHGjY2xzahXdXAoUxNzIGuvKQJvt3O0P/WBfcntF5ngA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":327820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdslTCRA9TVsSAnZWagAAA+gP/jjgPdjic+Y2FLaN5lKj\nnJr0sphlFbUwlleomJosii6/GkUaYu+g2MiyxFa7O8R7Y7BzJQPSqEikkixM\nB7Zl/QXoJJpBQ4eEb0wzX1xYNCRLk2W51nUswGTHAczoWgvmkY84vxHw/xro\n6BNtQurbGLz1ge5uoRoSJU3AX1ehXrp4PujYq3pz/wiWQX4V2/bmABY9Y3nM\nJomvtWQljscsAmJxmROX3EHCbfqS5O+k/D0h0FQl27SAMMQruq7AUccuX+I6\nh/OOebAOIKP3ijFWcDJik91jPfIH1ZhRS+E6QcqtXhAr8dDJa053Lkkh/GNk\nRbR2wCCAumQd1V+EM3Bf+e63pwG/EPigjPMoSRFgsiBcNluGrUeDhJorKgq2\nzC/EyCu372Bg96PHJl1JbYo/KehM8CTn+8BTvdQrSdrIuW8G/Rq/6lh2EH/M\n8h/arLRyAueQ11fsayykpWHuZWrishBe+vsDO/TZWG9Q/k2lPd0jq1AF9zbR\n29GXuPbrdctwNEokgSRJiBcBaOOsGvaZV4t25pHzFXlk+q2lNI2/8YAiclsc\nctFuCZnjaSyfbIC+1cFu5/Bno9Up7lk+RP7pLIQatE0X7OV2LlqlU73iiQeH\nvsxFC7pW7rzekMQsTzeIdr7/FTwyQiKEbNnbkOdlEshOW5Fj/YJimDaL1RzN\njkGi\r\n=fMRw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"10dadf91ba2398f22c2c9adb9c6c0dd4b5a68d89","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@confio/relayer":"^0.1.1","@starport/client-js":"^0.1.45-beta.0+10dadf9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.13.10","@babel/preset-env":"^7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.45-beta.0_1618397522997_0.44638923558625443","host":"s3://npm-registry-packages"}},"0.1.45":{"name":"@starport/vuex","version":"0.1.45","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.45","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"acd3834f8b717ed8d86619ea308f918621537507","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.45.tgz","fileCount":56,"integrity":"sha512-BsM1C0NRnt6isPDYyzYCfKuUB3WWP770PpzgyDIb8VQ2tcNhwa+XvXTVoz6uTZTRvEDJDXk+LQ2e2h6y6vPfrA==","signatures":[{"sig":"MEUCIQDrbRgPfJM3DsoNDVUFCQBaJv1udaOECNdy8V6DW+m2IAIgblWCeccvO4GhZ+CSeWv5XNbV0edofpP63/sHrk6HjJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":325224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggZlYCRA9TVsSAnZWagAAuVsP/0iOLUHtJ+mKHZ/geXWE\ng63jyrpGw+Qp7LgLqd5NyYksqxWnLMxFX64MjpFPVd4mbn9wiWABhj45fiZb\nqKVa6VHzVUv31Zq++8O8uYsOmY6DH6O37+rEzR+J/3GcQYI1m/JGHeim5CQH\nXw19KQc14Fi4OYkWxTm1qbX411pK4rIaUREt/SdjHwNy3bEGshgStTXXnLcS\nYkOYPsuAPRfOPMciGDNK1gHh0i2w1OnqqY24j/p9WVZZWYsMV161Sn2CiSbb\nhscOJGWyYrCEPccX/MLCWSDesqpvpvVkOkpTat5suq5ozxlUiIvaSS52fWl6\nVNC8RDBWvFe7Jy0zCFAhLWtDujWC5w0Pehga3JfOY8R6qjYh6zF1VixZ/gNj\nWVJ1Vdm/noROJxbfNqic9FNGje0qQ9ck44cxetFPviGy8qW3Lw3ig2n9KAJD\nfi3+rMzXxoOZXMtDNa/6cU+L2+KD8PqHqA2J1DI5/I8MEWs2ZuheYzgOdkp3\nfHTEjwxVeHYg8caPFcLPfObOOqA3Nb8JTNn9iU575r3nPqsp2pU5AfhZWN++\nZHes4GBbbsUHsV+F64YyZ8fbQ2JcWISnJAVbjCa6V7Cg30YN1l0/9dBjhqFx\nCqrC3Wyve7glGtKxDKiA4zFPD9eYrjfoxrWAPLJ6o6cczhTX2OKNibiUNiMI\n1t99\r\n=pKQ6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"d183bc4c37125d7282fe47c782aabc5a0be87284","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"4.0.1","axios":"0.21.1","crypto-js":"4.0.0","@confio/relayer":"0.1.2","@starport/client-js":"^0.1.45"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"7.13.10","@babel/core":"7.13.10","@babel/preset-env":"7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.45_1619106136163_0.6455383514274855","host":"s3://npm-registry-packages"}},"0.1.46":{"name":"@starport/vuex","version":"0.1.46","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.46","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c2180a6a5d2a080732a989f062f76be550a6723d","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.46.tgz","fileCount":56,"integrity":"sha512-GARqXw5ZuQArrojs/EXAuLfu32PsnXvDBrPUI6/Z8uTg3/LyqjegJoDsg+WC4NasImUWlvMEXA5EYmdYWAGB9g==","signatures":[{"sig":"MEYCIQCwYmmoGGS5497rYT4Ohy/9GOBFmnQKEypaEmu9gwceVwIhAJ+OYspOxdDa1F3ylhFINrVJ9Lhwkq7trWotvI4NQ/Zi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":325224,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggaajCRA9TVsSAnZWagAAEpIP/iVwA8k1X9qLOB7V35/8\nIQe5vQvN3g5vi0FrNPPkvuzgcWzIneOrMWSgy0TwmvBRb9UlEYMYVqVzl7ic\n2u83BkOfsBHW1kvJOhvylVmOw97qje8E/mbwsoR28z6HKP/w7edPsLJu4x1+\n0F+SPIe91nBi6Yv5ZSeoaLpi/8N90h31Id2aFJkCkKM1hEQGkb83mDw3T0e9\nRkk2G3JNYr2l2xxiXnK8OEsUboMTVfS8nop4lB6bco1028wttG6z/2xVS8hE\nT1IQP+AKhcYiy/0e+iMtg3qmzfeXdLFP0lco11YO9tx3gl66bo++AjEglkCP\ngI/l5pcXgL6CdU8oJN2xElRXWDX825zB1BodJ8RM0kO/MX4tfBWJuUl/lvJX\n/nXA4gFOvVMcfwuHe52bucOARDW8JOM3dySw6W7Z5IvA1cRuGnFZGPC+JPik\n4XOIKLVJubXAlX8o8ryGcq3H9GaAwnKXcDOlZFp1ytIqvMEMNhidVjmvmu/2\n07a5YYcy9E5hZwdaQXhoZ0n4t7eOUvgJqEF9AL4GPcbh/qh7wjlgdkb7750z\nMurKdL7jCQ5q+uOAtr2S206M5/X83SACK+ryTGIJNM4U6r4SNYXuuQeZQNbI\nwOdrScFoD5zDALa9oxS1IArL4peWxjKUI7wyvlELgoPnPyNb9uJkU4mzT0/3\nxs97\r\n=cet9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"dbfc774b8618d96a3a31ace2755ae700360d749a","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"4.0.1","axios":"0.21.1","crypto-js":"4.0.0","@confio/relayer":"0.1.2","@starport/client-js":"^0.1.46"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"7.13.10","@babel/core":"7.13.10","@babel/preset-env":"7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.46_1619109538654_0.09003646090007389","host":"s3://npm-registry-packages"}},"0.1.47-beta.0":{"name":"@starport/vuex","version":"0.1.47-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.47-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5b294e983f17b4e4e9e77acb2fa4ec74b5eb14bd","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.47-beta.0.tgz","fileCount":56,"integrity":"sha512-05sIWKs+FTr44g9YSR5qf3VFv8aWo/YOOIM0MctO8KZAuq6609XTrHnNMJQDbF/0rvOQamvDu2lSIIdruBdxSw==","signatures":[{"sig":"MEYCIQDHLBt1F/i6RpnRNTRR4Jipa0l3/BrZxJRsuHd4iORkMwIhANv9TcGi4iJc0HPhb281qljFGrBgTAKx1sLI16MIA2A6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":325513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggqQOCRA9TVsSAnZWagAA0KQP/1thIWASri1zDMzIrbTo\nULrhjSWVGD0tJFmBTe38dWPyk9//K82XPAZW9diuQgnSIFDSp/kAEEz/xQOZ\nl0hp21hXIXRr6Vpk7+ckz3Yblu1Ux41SM7qcbHnavtuz1uPzBNFLie03Cxyr\nHkC6b48YR4BV0oLHRdNYCT/DRNkY0Dd5JO1jd6xVlr2+gLFFME9mDzT8oG2q\nFR7jdT5x8Isxo6PssgSQp2mfsgO0jDYnYIHjJRDK5vJfErcyymEGqrBqUYFl\nlRS4X183tnkzNR3uIsweAuravtq7HijcfG5cO/2F7zsT/qruRSuWzWm7dguH\nzUo6iXYecWwC8uWsc3eeYPzU66ps6auIwQnTtYPzAkZcRzciYvfHvq7lRokA\nLIwyNs3LBzzEufbB7ogXDEkaJuJZkZMoTX1GHMhA+rbOh/JKQBu0RERAiDM3\nsWk3uK2x/DD+TI0X/Lhb78juR+jwCGlobRlquyFMksCTHeS3eKUel3QG/bWo\nLWxnhGpUrVARulxiIPAx+n+Fm6Advn6UbVca+3v+p4Fkl7Q7E3E0KKGdKlrO\nJgt1jkll+6aMvBRGRB3bp+f7tcs+37Ed4vk8iDBvbdINP9HwVfEJvUX8qPYo\nd8C8S/llK9jjq0da8aTEIF2CfBFbE2V8jwbcqvQwzrFziXrYyjeRDxiSkM5O\nh1t4\r\n=SFVV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"6e847e6c443213bb0b1427b1a18774ba77aeda3f","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"4.0.1","axios":"0.21.1","crypto-js":"4.0.0","@cosmjs/utils":"0.25.0-alpha.2","@cosmjs/crypto":"0.25.0-alpha.2","@confio/relayer":"0.1.2","@cosmjs/stargate":"0.25.0-alpha.2","@cosmjs/launchpad":"0.25.0-alpha.2","@starport/client-js":"^0.1.47-beta.0+6e847e6","@cosmjs/proto-signing":"0.25.0-alpha.2","@cosmjs/tendermint-rpc":"0.25.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@babel/cli":"7.13.10","@babel/core":"7.13.10","@babel/preset-env":"7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.47-beta.0_1619174413817_0.07945798571350915","host":"s3://npm-registry-packages"}},"0.1.47":{"name":"@starport/vuex","version":"0.1.47","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.47","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a701fbe4925480bbd658be303a4254aeb059cbe8","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.47.tgz","fileCount":56,"integrity":"sha512-mYjyoBhST3tUaA1ccL01veNjYGQmzBa0go6HJ8zx2KQr5mDHjcRiTJTq/HKNpCPamAF132Lfzoao6G4TxJFH4g==","signatures":[{"sig":"MEQCIG2ngFOm7PSzr6cwKumgIfImG/UZF44kMxSHNFMDkZSQAiA3Z8wvKaMTJgbZhkBiuNcSUYAA8vGzImt24FLNHRCa3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":325483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghRKICRA9TVsSAnZWagAAxSsQAIuHr5duz6qDCZp4Dqbm\nT7DbLdpLATE20RRhvwGS9+9A2XwGNbTHfy23RF+Gj+uOSBjkAJ3Eq5ASu4ML\nmWs/D6kglkiE+VTkfp2FawVaaYVQ+9b+Tmc2Z6AvWm2EAFXmne/BKuK/U2SP\nPL0DvjFwf8sUt7bo5NuxALl1EGddfpUW+iWCdbzSrTw/8epxV19fGLhiVch3\n+LogaB0w57EwT62axHdTZFpwm/SER9ipa12SPwws4L+vhO0pNTCc7iRPQxYE\njUje5wldkKprjolnZfYJnCN6+4FHUeSNU2da4EsWiqFELAbuP1wTZWxFMNy4\nHjMMMhQp/JWezDn9uiUKTxTjlKsENhBg6+5peVZ/SXENMPnep2nLOT2yzH5N\nBPymqSgpIQcw5jdd8eRbgoqqD490c26gtiixXrtxe9LUeYOmVSuulkJKeWDy\nV8uY/N+8Dh0od/aLSKQ4Hf8I5XbiCBEC6XfAmUGfYazVThy9tmPfjsrwxZ2p\nNm49uHieUk9b80lI0DXKNMRWcg2H/TEyw7gYQ86MRGNz6qWBvdC1Hh++OSkT\nb7ZpfMbMtds0E6/CFWOvOTCOvFxr3igB9kZ5gisPSQaq0yCwuap2kIJ9ycHq\nERq497eNIdlg+BGVAYlZSDifGULh2drBk7DknXQNMFea9R8JYbKpjPimQ+II\nLXWA\r\n=kAla\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"ca731429d0417bd03755e707f6d103d2c8866d75","scripts":{"test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"4.0.1","axios":"0.21.1","crypto-js":"4.0.0","@cosmjs/utils":"0.25.0-alpha.2","@cosmjs/crypto":"0.25.0-alpha.2","@confio/relayer":"0.1.2","@cosmjs/stargate":"0.25.0-alpha.2","@cosmjs/launchpad":"0.25.0-alpha.2","@starport/client-js":"^0.1.47","@cosmjs/proto-signing":"0.25.0-alpha.2","@cosmjs/tendermint-rpc":"0.25.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"7.13.10","@babel/core":"7.13.10","@babel/preset-env":"7.13.10"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.47_1619333767725_0.24574175359145634","host":"s3://npm-registry-packages"}},"0.1.48-beta.0":{"name":"@starport/vuex","version":"0.1.48-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.48-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"40036727fe4e1d1e9b35302f91f31bf085172924","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.48-beta.0.tgz","fileCount":50,"integrity":"sha512-FJPSGAPs6E7jHvjOMgkgZjCjIsSPx19rLK3D0mCaec6YLJNKW8rLC5/9HkoUSTiOsEEGeSdm4syx4FFelxq6kg==","signatures":[{"sig":"MEYCIQDA37vntsEkqlaXDULZ/xaABCz8u8Knvy0xm3OVkaK4nwIhAN5T2ePpk12cBY1Y6+aL2kyQheUwfOCAQhig6H76Xt35","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":284865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkUznCRA9TVsSAnZWagAAiAwP/RmR+LR4/w1G1dnbsPwg\ntIW7fKhzeKc2dCfGmHF0XSO9yyCHxyfzVUwTrm8oyLOgdjd981KjoTTyMl9+\nJZ3BvzYX/2LwTilm5hSsW7qjefEt2qQOIgugwGLYRmTk0KREwIGCkgTDWVhA\nLuhytM21hOeCzao+Gt9MyzZLUsYLR9A0/Tnwt7lKRNdjJX2ocpjxIggA7kZj\nliAm+xQ+ReB31IVjf5vlgzc05nlibHDa0851PGP4GMqYvLoZ2Tj7uNDs7W5B\nCWxbIS+oGXn1Q0dGfzLjLfnlStVuCm5dUHxTFlzD/cPtXrMiS8H6OjU2iEI2\nMC55jdbDCKmD92/Gmo7PSig7QA/lgjWs9cITcR2uKBUfaoJUmIDVFwUI4Ide\nq4V5Mq57zrqhlXHc24Ww/jfpjDZ+GIlzx3DE550WBdB5GMhyJwR+yVDNT0lR\nnMz4Pg8vwAQZz8Bg9texY/FN0XtCKVJKTi6E7H4X4EI8FAAiVrlarEWSxM66\ncFKGbaNTwzI7e6ZaTgauLX8EY+FjtVc5QxGQfRF2SqWsAeSulxF9PwyYafMD\n5EjvIJWwN5yAdNuW5t035SbAe1NpG3uVZma+N01pV1GCAI9n2FN/+Z1UlLjb\nXKulh4VsMI5L7BrYztIngyEsJMhhF5Q0KkdtKe7oY0YKstsHCh8bFGqBVmhF\nK23s\r\n=Ibog\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"842aa9f3a6f55ba68783f7bc84697304f7adf659","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/amino":"^0.25.0-alpha.3","@cosmjs/utils":"^0.25.0-alpha.3","@cosmjs/crypto":"^0.25.0-alpha.3","@confio/relayer":"^0.1.3","@cosmjs/stargate":"^0.25.0-alpha.3","@cosmjs/launchpad":"^0.25.0-alpha.3","@starport/client-js":"^0.1.48-beta.0+842aa9f","@cosmjs/proto-signing":"^0.25.0-alpha.3","@cosmjs/tendermint-rpc":"^0.25.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.48-beta.0_1620135142533_0.04293230017595784","host":"s3://npm-registry-packages"}},"0.1.48":{"name":"@starport/vuex","version":"0.1.48","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.48","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"37515ac62c8135a3bc2ad7e0a1463c0231336c7c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.48.tgz","fileCount":50,"integrity":"sha512-10SFtNxX8m9gDooxTjTQmYvVWSB6LVCi/dlj6SBqTRtUSlImMNaLB39y1GrN3xDYNjG7dHpMcpOki1w0T9AtdA==","signatures":[{"sig":"MEUCIGIM64MMgzQPiky9VkBG9UWIFuvMtbJXRPpPpzCSBJkgAiEAhoaO9N4mdJ/IW1djyKtu8nswJm/cjdyhzIPVnW41HjI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":284995,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkVSyCRA9TVsSAnZWagAA4/0P/j7Awdbfa/eZ0XF1WeUa\nUFlwk1IaPkFbaCFtYF/+OtKqTc50DNn3es3ewFNRvod8GopcYXujtILMNy+d\n6zboktZ2LdgI70gaIPy7qvd0G8ednspDfu0AvkvAgDLo4wYQGfqPQn8FPQMF\natMqOWMxgL0rcxu5aWNdQCUXBhdF9uJLjDZCm/szWPfgLtORR8GHp8KlJDsR\nCAFlkQbEfds8OoCMEjeUrGwUaZ2XPMgXaKlxvYohmmX31AIuyST3/62B0LT0\nMD1saj3vuWyEkhXyjJOfhb5JitDtsCS9a4LugYjl7UzcDR8+Oc+dPZfrrApd\nYyc7nBovvpCkAe5+U0cxmINmSGJ4cCjBfZvVvCRYmXWnjfWelY8tFf2hrpgz\nEQc56R2CsBmjz6X0Eh2daSE7JEaQNOlaqdlvaE4/kRLsvU/U+rBTsxmUn9X8\nf7tZhk0iJmw3OPdx/F1UtuvqCFCrHwkfqjvXXdR9AVZwyod7fP6kdv29+6Pj\nps02h1QoUJ0KDRp8/ynmRV6yLD7blC2VU99WLTv5Gijw38z36EJbUHSY6Vdx\nGtJQNviMN8J1GAHz4S8AdBBemkNFnaG4jvvGetiFQLmhAkQgXaviW4lXf1i2\n3/0Div/RIU8ZsovGN2BmoK+9wMCzDG3yZBkolWvhswKSFKm4ucNJb9HG0x+b\nmDak\r\n=TUXZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"240fe66591ae55e0ba5d5e6b849502972cfc01e3","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/math":"0.25.0-alpha.2","@cosmjs/amino":"0.25.0-alpha.2","@cosmjs/utils":"0.25.0-alpha.2","@cosmjs/crypto":"0.25.0-alpha.2","@cosmjs/stream":"0.25.0-alpha.2","@confio/relayer":"^0.1.3","@cosmjs/encoding":"0.25.0-alpha.2","@cosmjs/stargate":"0.25.0-alpha.2","@cosmjs/launchpad":"0.25.0-alpha.2","@starport/client-js":"^0.1.48","@cosmjs/faucet-client":"0.25.0-alpha.2","@cosmjs/proto-signing":"0.25.0-alpha.2","@cosmjs/tendermint-rpc":"0.25.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.48_1620137138418_0.31210389854518317","host":"s3://npm-registry-packages"}},"0.1.49-beta.0":{"name":"@starport/vuex","version":"0.1.49-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.49-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3127722b72dbe766838bb264793c499efd8846fc","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.49-beta.0.tgz","fileCount":50,"integrity":"sha512-58OdQ2spjPwTy24Q3WUhDhNCudGl4LRxpKlUGFixTNXyxg4RV80RLXxrhFK3+3fRGRKfrbOuFWsRoNt2+S6CbQ==","signatures":[{"sig":"MEYCIQC8LNFl+ieAzsrIxVT48EhbnCAz6UNsQP6p+aJQhWvwmgIhAILKf/6W+XSUMis034YxA7wIeFGQgd3SSjVOCde3TP43","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":284805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmShECRA9TVsSAnZWagAA1jYP/iq3ezzA4irICDt69A8P\nH0OZfcWmuQcT0FBMX3jnexON9nlEEBmkUhdS2qnMBaWiMWxtUaQDXfuS/kem\neVKNUtr5TXaXj4cVAETeICCkRJzsDs3ePfqjKUXN6GKtNgPBbV1eIdoKyVGC\nv6hDyarunEVx6M8uwb5pO/FVHaRfa9WRmCb03vTLAVZRsx7kjJ97MjliYioH\nsbGCZEycfstWuwSOlxP8AM55PtLV3AWd5WfISFHVLgjB4eJU06kiFc+MaOt8\nthKlY+KqSy3erSwf6K4RCN0NYOTzrSA3iwxTClOOnEA9XYv72yYtBjdzN9DZ\nu5t/TRoiLLF9dvXpzjshM5wkcl7yTMbZ/jqwMPXeWC/bfDB0X6FqPhCk6x38\niaDlubhEOVMXJy21qIOjP+8672GcoBJjzyHk1NqhEUg0SHrokAXHGGG3Jenl\nRIzO8qj29lWjfSXqoRm2P3CoXKLQzzdHo+Az3OhATQ/099dek4vkPC79F2Bh\n9s9cAQrdXz8E08eGGOo095qG46swRuzguTCaqU8CMuk26YK6Qx0hBCgL4i6J\nyxCPtwYAOOl/JiNatec0JhDkCC88XqBMWN/InH3x22V2dSzRlHBeBlA0V76q\nuySJGc+QmCa0xwzpJIzsuTkP1Ej4ael4Prm9nbVRd1Ycs10Z1uQxj5qxX0eW\nTLgC\r\n=Hzb2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"5af61d29902fe20a605051aff0c60b96ff49ef27","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.16.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.16.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.49-beta.0+5af61d2","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.49-beta.0_1620650051969_0.5379244010885935","host":"s3://npm-registry-packages"}},"0.1.49":{"name":"@starport/vuex","version":"0.1.49","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.49","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a58d6fd1c0a257e4f418b9a78cdf9b7f200392c9","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.49.tgz","fileCount":50,"integrity":"sha512-jyCS/KEKzuqeu+4aKOna7DUbHGduEtrKUpzfwnwxXDVHj6qiOQHXX5+o+beA6pnNFjoXCyq5vmt/mr0MW0MaiQ==","signatures":[{"sig":"MEUCIFHwhrZvxHvR4afFrN1rhkAfSra4NIi64ovEeMABMbTVAiEAnuOpo1/VjlQU4Q85DpmniSkXykHbGKgsFHpDLa7pG14=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":290999,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq2y9CRA9TVsSAnZWagAANY4P/RbHgtDUXJqJaKzoX0BT\n6uExaiuAXrWXFHRSAoPabN8aBgwqXhlliZJHxGti98nuu2RJOSGHteZhDN9E\nyoJkEq0GOLQF5eezEEx4+Z0HWxkgpmVJvP3NHqSoTs0fo+x4OvPRugo9sWVq\nCtnpHL2s5sn3cuIicfSWvz/EPFYNfscnCUoDsuJ6wDdJNRD6cCxvRKZy3WxN\n9x1DnmBcLe9hdHFWa06tMzTvqM/lSMjuu3cd9fdRVGStCplyLT4mKv4JsXRo\nTIDU3cAarGRPC8SiVlG7EB3bO1zsoll92vPXrNJMHdrt7u5hlinhC0yvF0FY\nOiXMR2Puk+IVFm1wlXxCjEbLYCgM9/j2lkQ3arAagDHsz4Y8kMFjsntjBHAN\nAJ3qDJwGYbzkNRw86YFCbUMvzMBSaLYz7e4dpBeBpKjnIB751qA4WVhVTOTj\nT8wwQgavmsd7ohwOJbkrU0mzyz1fkBXkRg6r5gTRp+GqUsfLQay4qFS1FM+F\n8RXl9tHtUSXz69YIlqJtPu1mu2MKZaTXjuPMtlYN3e4tlWvwzvZmnDvlI5Fx\nobQxKA/82usOurWGs938WCx+A51GHR3MYvq2IbE/TKl+KtZpvqTt0lpHbZ1L\noN/o8tWbJSjkL7jRuW3ZfGjLzbzv7zc/EoVoww/QoPRcwH/MWkA5ILTFfLZL\nPiml\r\n=QdQc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"c3de715d1326437aada3c50fbcd3ab49daf12cd1","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.49","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.49_1621847229053_0.5609292265851102","host":"s3://npm-registry-packages"}},"0.1.50-beta.0":{"name":"@starport/vuex","version":"0.1.50-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.50-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"96a09ec20041123c3a1fe34c3a4bc6234f107783","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.50-beta.0.tgz","fileCount":50,"integrity":"sha512-VYl6GOYdPscNuIWDO+3GFHYLYXI3r4JGizQxvY9hRAPm76diM3RapB6t2Q/V9GDyBTUrRxU69pBQ3a/Hhtay7w==","signatures":[{"sig":"MEUCIQDjn3uUAofkEKzm0+VeEZJMjbOrE8AOqQImINnDda5o1QIgDe9BGc/hHYRzMM2eY5ptTY2QiaaAX4VC7QHcd43kZJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrMBZCRA9TVsSAnZWagAAxeQQAJ74oS1XxNG+ykty2jyI\n7tvdcc8nOTLrf1X9Xzos09BqNR4Q8uN7VufP5o5U4IYvpTG8RtJegZeISFkD\nmkkSXvDCaptbKhW2YLsnYGmFA5wZASf0U2ORxW3xRwphx7EowCCJY0/JEmuo\nyaWiE2Gya1hrxrflpqsLTthMf0uxCnxqg8eZuYhmghpVQeV3x+ilosi/rLMN\nETKzSbrMcEODhJPvpABN7P3bQkLga6Cx00D5jTSSVMqyT+Ul7er/Uj1jSNio\ny6aUgCfE14ySOf65h73+47WeGG297miEV9UWn++57DcfcV3amml3ND4eGxem\nOICswAP5kfWkXvm4YCTB6GtBRdvbAOdg47GQrwcZwdV2tRqmvv1g79Qdsc43\nm/orocz2BjLtN7g6ZujkmQY71YzyhcbjFWz+QBD+ytySFPSRbOAUih6Puc/B\nGXYk786Zk9ByBoUHlLd3AvxX73UpEG0MdWTlVb0w5MzrKeOupAZMe++AVzAM\nI51Pnur6noxCuYqWmif3hKWAIwj5X4BwoCJsgg+XYaVShPdFt/KHCKj8s4cL\n38A8q1z3J2m36BrRdjZI0YokV1L+2zXakKAQJbCcOPsFcF+grBt6xkI9hiw2\n7CdcBjDheRDc7Mn16bGmKbXbxgpkid4U+B43jK005qJQDVs0WH45Fv3Jckaw\n7E20\r\n=DGM5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"18b1863fe9380a90e47c638e7917b2c9a0ea98a5","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.50-beta.0+18b1863","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.50-beta.0_1621934169042_0.6142733087014576","host":"s3://npm-registry-packages"}},"0.1.50":{"name":"@starport/vuex","version":"0.1.50","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.50","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b5652d766ad62afb44bd1fe7e8c0ccd3254d526e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.50.tgz","fileCount":50,"integrity":"sha512-PwAn0AeYqbhIPl1W45Xf96QS8wtScatVzRqrXag75XzFLSaAhBU4VRYfWf+nfhuIkcNfJZxZivoQ0ivkXnIVTg==","signatures":[{"sig":"MEUCIFRaY2jJzs1VMZ+7uqDfZC5io75//4+y9ahqfwI4n11fAiEAiS3WR2zeczlCs3DH1cYNYeaOblt3W9bSn/lBb8akRec=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292938,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrMIECRA9TVsSAnZWagAAeisP/jLnGDP27HvfKdpQulNj\nG//7c3kRdxiRcUtOjfDd4TIc5LFCmU7OrUiazX4C5xUoajxW/5suwyEO1/Md\nCDMSVfgU6ZF+vKN+q/Ub1nxosW0zvwrX1ohfOYW/Z+6tlRHoP/eh5KULWGds\nfeLfDrWSBkq237PGOXWUV6QSer3UdL1hO9Jxc+66uiR5L8NcpXw5vyk9x5P6\n6shwwbC2UwWQ9huAEpaT6JfP7F7i/Of590gFVrUZJEAPW/q/Yrc7c9k+CS53\ntvSPNe+OQ269rfbFAoYiuVKPvfExF/jxFx+tyiw2icS9Sqa7F7F1o3EJ+NQ5\nv1/WR5Y8LTXIZg0Te0i87CAwi0MwhvDnooYIbXKsp8Wr9uqyN0LPbq1sYhuu\nWhLCluVBx5C80CWOuCyIgJnhEzm/jN8+gSZlnIMiXtmksp0XFRdd5+FOGGl0\nhVEBbV60zq6dey5f95jF3vNJQMT7n0YVUtsfedjdfUParUPGhSvuJ082w8Sf\nCGGi3Lf1E8zwPv1028YBl/0sAlmAJ3gKF2jg7H/83kAzNiC+xzMlbHvzkrUV\nhrt28M/fnsRsBg6y2ybAAKslHFsKX5KywTSK93yFxk9H7MsH9ViygqWLq88m\n3UFWz8c8Umu/HkM9e0c3JgTT70gC3btmfo30MKceWsa3mHGLhn3g3iUu/unI\n4rRe\r\n=WMHN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"55678e1636a90c745a960664c27b85dcf8b3f394","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.50","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.50_1621934595645_0.8357718984551494","host":"s3://npm-registry-packages"}},"0.1.51-beta.0":{"name":"@starport/vuex","version":"0.1.51-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.51-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1527aeb5de9225ccddd77acf80eaa0159545c884","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.51-beta.0.tgz","fileCount":50,"integrity":"sha512-rA1qklrfTzqvDAhESAtUSJBqYMQNWmDZfsQAAnPSDO5Dn9Y03UlJFs1LBptG50wzYwNMVtz6wZ8GRn1GWNk7nw==","signatures":[{"sig":"MEYCIQDtK9qJm3xcvSGy1AMyaOj77Ztro6Z127kK3fWJxlUilwIhANJeq09WqpaKqIDoDbPb/9/tEK54ymsNymE4JUWQeuMX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwc4YCRA9TVsSAnZWagAAm0kP+QAlScdOx5ZNc0o/XmB8\nhq6fP7eBEQkFEjMuiOGdn0lBmf1SRsoKhNXCLwXbEl69a+YNodCdZeKsF5PC\n+aBPM7TDBmwq4OigaEsSpJ9dnHP283vXyy3NiiU0QWfYmj8RJl0lljSnNNQu\nNAG/BIjQPIBm/qb5K67KtM3uwrp6f/hB5gmLFtvIZK4Fz3+/W72l2NcxdMcp\naNfjmYbiva1dEdqBFxBuOssehF2MGruI0QDE3sGUTuoLNGAnH99dqdVIogoA\nZ1ftxV3aXOtS5U4g/8kmwT/J1RvS2eKh/x69DxzQGtOI8R8LdfFQ/7/b34f8\nmicJpKLvJylZzmalatocjssh8uxGAVsrkKisdEV24+INPKpWtdoBKAepy4IG\nEldu7DwIesQhIJsz16go3DGPGrBTp+nJ7+AfZERjcQ7I8xlD8QRHqnZjuGZN\nBQDs1abfQX2/nPbGd49fCHv7Swt+HAzsIyBtNw5bYGmuDQ7D8sKJc3zZ+JDd\n+MW8ud10DHwWmC4DMtG4cGzGl9DDzgc4H3K/WPRJmVF0EBZrK1eavccWK6tu\n6N7/qfnjGEyRD4V2GGm4ZqAbUgplGlJ5zwuWrwXQCk/XFmC9RB7UNHdKtEgt\nSOWDAqQm/qNO09dAdvYfHJhSciej1TDTfDXZtaIR1LEgMbBM0S60Bg9p14S6\ngZ67\r\n=NQLy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"1b44e201c472ece8aff72f0d9f65e6bc85c9494e","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.51-beta.0+1b44e20","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.51-beta.0_1623313944652_0.7277856927007362","host":"s3://npm-registry-packages"}},"0.1.51":{"name":"@starport/vuex","version":"0.1.51","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.51","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"51a9517549ee92bc49b9f189f31fb5bbcb963c5a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.51.tgz","fileCount":50,"integrity":"sha512-A35Puhd6hlj2leW9fnG+GQDI/X9WNuM38F0y9ril3SpzDSHJ4gzFivfWGA5WXhjpnclQpJt5Iszb7QOANyT0ew==","signatures":[{"sig":"MEUCIFx165a8LmL+Mn8v8zjLfqlo8SEYNk/+Z3+ekUIyuCp4AiEAutmZyqIj5KjO2MC30BLUOLsNSn0SFuPSrqcCWqjzvss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":293642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyLzDCRA9TVsSAnZWagAAmd8P/1NsIrmIYmno7uo2U484\nRTa3AwrhGLC3H/wUKn5lId4dbsQn6VpHbKTZFjGL6tLnKZR2DrOuazedkXVP\nzoXFypL1Ztj2TewA+py0xwqQdjxGlgQN9xL8Ei8s/z071NSVfaDmWWAc1emq\nSe2NP70BOasi+AS2gghNvGdv8IqcXvSO0ySIKlqgMwfcsya3p46WRINUJ27v\nU/F2QqVXPabhn1DJUsMNv9XO9SBxNor3PWhbS8JTcDQsjSL/AxbZLr5Ov9wX\nKNE/Ec0MlOanTj4f161oiHIf2FHHs7zxgxaH6G5vN9Mkhf8ZIZNu+CWNxTsu\nDW6FHWMyqFBXBN7ail02mwdDbM+bwXkujfrX25gpUkipK73c2gPH59sGEtTI\n8pYGr7UWrxGbPVclEkg7zWOcdhEzgDrlAQkNkGMjijL0zrCu8+aYtlzCxmFf\nM+OehzoL7UJLeYP959xSLce7IRyNY8WJnMBeqSltaU2LeOzI3jxkptSqnsDy\n0PX9HsQIzRXEQyX3pheo4ee25BgfVJh1arb/WDFWt0ekUYYhoa5pcJJZMYmN\n94maVfSsjqnrFVXT96ZOQrB4T7isVmiZQD6i7jE6ax6L8CbHSrGvzK1VUxsz\nzzLGYUntJ2nCN9IM5a4X7nwNxWO8OnNum7zowcFI+4HfF5E28Wb1t/Gv20bz\n0icv\r\n=WZWb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"e3c17b754c1e409c22619a833b981705f6a6996e","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.51","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.51_1623768258957_0.4743175370645474","host":"s3://npm-registry-packages"}},"0.1.52-beta.0":{"name":"@starport/vuex","version":"0.1.52-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.52-beta.0","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b05417d6bb1218b4992b744a7c566684e63558db","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.52-beta.0.tgz","fileCount":50,"integrity":"sha512-Jkz5zwYgsZCty/E4G1F6ZBj51SGzrFOI75msY8cCJBq+Qq+xhlpNlGKOBhaSzR7wwD749ZpNclHxLQE5dn7rxQ==","signatures":[{"sig":"MEUCIFCpePY2jlAS2T8FFCTssjdLuXIroNJ0Sh8sha1eEun9AiEAyKKqzYym0hllD2spgsKfIZGsBMDtLalfzd5r6DHOM+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":294202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ZGPCRA9TVsSAnZWagAAupwP/jv7/zfZcJPvisglOWUg\ne/5IacrzCfBXdwl6g0r45ozwyD1b6gpIGOgCv0HL3BB2uE2LSzY0WSfkb8BG\nBH6rEoqYtk9YmMtg8rm+QpPsnxBW6B4Ljpj8ASCFbZ01wzZcDUlj6Qi31rSh\nHEhY99W8F03Bn9eYdVoUpzPqrd24wKp0rpt7/x9kKdt7Fert/XrU8jd1j8U4\nhwM17Ywm3XLUkRQR+yhsJLvHxv8GZ7qByZjlTI++KAxm1M5kJ2voqnKBRIGa\nGrPF64cz6H7j82XuMgV+BnAUCEIMtysrRxxFcpTXSIWZXXSbs92C++cfN7ba\nS73pwrryDAccU6BKH0sanK07ZHFsGtolT+M9YGhl3Mg3obdHuAcYPEsP9GsA\nMgmvXHGcGUWEBW+b+8DOppYDxIVVU9pAnWsnz7TAMdKiFdYqWm32p8PKFoDq\n5s94T+Vp0bvZf8L85dy3XPn0fbmpziuNOX2N5M1nfUeMpE4JonR8NpaNfpQM\nWb3oH6s5Pba+vaQPqg8Oaw136lYaVRHmtPQf31QgC5iqRG/SYZ4G5vlCIq3P\n5FsS7+UJSHH68hQRn36sdCmoZcHoPAZC+PbUDeQElUb3Cj3u+nJb9rTN/2we\nNvca0frT7+DeUC6LDdN7etP9ZXJ2Ms4NgV2AjdXX9m/pILNrPnzY97rNbP5t\nXmJg\r\n=XdXl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"f907e5b150c631b9a071cafd9d38b73364c356eb","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.52-beta.0+f907e5b","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.52-beta.0_1625133455396_0.391386026451791","host":"s3://npm-registry-packages"}},"0.1.52":{"name":"@starport/vuex","version":"0.1.52","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.52","maintainers":[{"name":"clockworkgr","email":"alex@clockwork.gr"},{"name":"fadeev","email":"denis@fadeev.org"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d5ef2e89494d3b3d819a02fdf5615bbe47119387","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.52.tgz","fileCount":50,"integrity":"sha512-iGhj3NQabxuzdibn/RZgjAMVarZ5Iumqtg9ZddZWgdihCpu5ZvoHRXylA5VtgxKeGdWWCrZ2vof/1UgnhHi4vg==","signatures":[{"sig":"MEQCIEQqLHkg4DOa15joYm3YrSxsxxWgUauWQ1TU6hcCuROBAiAuEN0dgto4fFTPKsZEfiTS364maQrdjGwRV/TT49wbug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":294172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3ZL/CRA9TVsSAnZWagAAEOIP/3vmWniYBrfqsNxvTQvm\nm8mEnHKzZDwGiBF9NUJG99jFHukkUa69RQU0dA8VqM5uXEC4TIzdtpwweorR\ni3SWgkjaLf0ohr9r+2scRo2BoI2JYMPvE4HDyUrxBBGD5siOjBt9DwMVHMCg\nNdq24K3+CAtdpn0EwMpQjQrjzgys6HrM3mhALAAbRrzfH7tJj/AQRQIc7f+3\ngA5W8WFz2Zk+67NocDANSfLG5KnWTeyPVubeD51GSrJguci+wC4HYQK2THxo\nl9WlOB+0PLRhLH0DfwZLG5CrDZviI8mp7MS8it6OSvD4pe09zGGeRerWmac1\nGB6e4vSQ6RxsNFijLpgSu9blyPgUaNzMPwSfjYUjK7SMTWLLhYq1S/nX2pEw\nXgID3D6nJ3ZoqxqctrumVRVhrQakwlH3CSufuWd3B8dljn3k3RFBqpYFapEL\nxdC1RW5canzOjrUU3Af+sW8caSVDNKohsubHczTtYKIEOqODZgFlUtnKej7J\nD24S9E6/iliglx8cBOEgDi5sptVIYIW+JWSx255Aa+0SrjLL1kV69vZ/5CNH\nDOdohToo6LPpjdGsJL9WKrShsVxiu9DhuSnAcz1HHOv4PczjSSXH8b42W/RN\nU054jSZWtFr0V6xEsbyk7CwpFkysrfqSVlTKSoq8o0mtI+br8Mny+oFoqz1k\nJ35C\r\n=RF4V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"b5957e85d18c547b0c8c5032c753f765fa355e89","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.1","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.52","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.52_1625133822402_0.3014946929263904","host":"s3://npm-registry-packages"}},"0.1.53-beta.0":{"name":"@starport/vuex","version":"0.1.53-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.53-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4ffc8997b8d8527401eab11f144013a63330b24e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.53-beta.0.tgz","fileCount":31,"integrity":"sha512-cZ9TSm7Nn5mEpeJn0Yjai9MOPwqAcT0/6YKoIaFXiscTe1gij/ZIIupswTRPo8TrS7r2dgLsWvBdYgc8bUwkFQ==","signatures":[{"sig":"MEUCIQDfIr9OR+vbCvGAvfplmAedAsQ6aFaDZo3QVQcBfrnPnAIgXb0UAn8dsCQSypY2GsqaHCirIyhHzv3KVgX+lL3HEgU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":251205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGdzeCRA9TVsSAnZWagAAae0QAI/RJRofd+3fLabI5+ho\noPt+sD0+cNKp9AuIN5JFUCVOZ9qwNa5c2y8qWlymBsxyowDoFwLbBE/B55fD\n9hluLkSDWG6K9RTZE8H2oMu5wcsiXuu5WR/1oIn3OimLQbW4vdllYTde1Vtd\niXZcT5VPqzc5av8t19Fr3D2QxguIPEIs1YW7yUy1mS19/1j6uIFeeeLj3V8O\nOLUwscSLuR2HmXVV1j9wcklzSn1ckEpl4xYnPZBVBLoxFJtsk3wNIk0RLur8\nhDEAXlM4HyzA8mjWp1pgykcwAk4m3M2r9wus18p9jkWfVqtaQSv44gA3bffZ\n0KwP6evzISdajkMOxVw7LBxHuLbsQGhDt1112dls1ClYpXLvIjeZ/KtGr6BP\n8Bxa4YAAvphg8340YwuCZgn7gT+1BcfroWCeLVQSIprnQwiFitoxhUYpcFLz\nFrCUeZQlY+ZDEtJq/PYhWjAUGfYp77SIX3kNItKrD05uEQRRyxuUesruABhP\nG52bEIv3vblgA90FIekKWwaRGFBZ0gLHJYHPFfeQVXc7y3MYoCpDSGY5RJaR\nk9nvpQr3LB7ZdJ//ttkneHo4790X4pYyRXrg6AsBn7f/Y9fExDmwMmCitK8a\nCBSJG0t1wJPcYQ0jYU/w61p7etUF5Pmk2064lW2EbROESociRq2RYfc/4H1q\n5OPo\r\n=jd4E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"7a823c61428a80ea4c1d369d81e7047478f1d9b5","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.4+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.4","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.53-beta.0+7a823c6","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.53-beta.0_1629084894207_0.7735388913011558","host":"s3://npm-registry-packages"}},"0.1.53":{"name":"@starport/vuex","version":"0.1.53","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.53","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"06fa163ab244774a5232f89800b500c0f5886be0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.53.tgz","fileCount":31,"integrity":"sha512-WXpw7F5UTpwmKJhenC9HDeHVFhXBDHKK+UU2wx/IC7vm+FSG04B28k/YWazFH7xbaWHu+OwWFZRTqD/rf5Vl+g==","signatures":[{"sig":"MEUCIQCIz5bkgJokVeqf5FA0Dsrgjzsae9LfkkqpjUkdlALERAIgJVlmbCrYJGHq1GZtoFE5vmusmQcQZBGqSpqpS+ME/+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":251175},"main":"lib/index.js","gitHead":"0002f118709da37f940a7aa29eebcfbf4899a925","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.17.6+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.17.6","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.53","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.53_1632742098125_0.29958605777979463","host":"s3://npm-registry-packages"}},"0.1.54-beta.0":{"name":"@starport/vuex","version":"0.1.54-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.54-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"635cfe67f0237858fe38080761cea9889b71a46f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.54-beta.0.tgz","fileCount":31,"integrity":"sha512-4iP+EZFC253Nos2fSIU/Bik4CkWMYXBWArifJPLIzZ8clbotAO7R6B958a0OTG1Zol79DAaOjd5gWxB4NslOYg==","signatures":[{"sig":"MEUCIDLN6GPhrsmwASvg6Oob5fjzBnRNYv138GhW5nnhbarSAiEA4Y2AcQ1nMuM/W/n8cX3deA3o/8eOA7zExJo+pP9u4s8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":251205},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"eb8a3ebee4a6f9fb834e8ef365ae2b08d8165fec","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/3.22.1/node@v14.18.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.0","dependencies":{"bs58":"^4.0.1","axios":"^0.21.1","crypto-js":"^4.0.0","@cosmjs/utils":"0.25.0","@cosmjs/crypto":"0.25.0","@confio/relayer":"^0.1.4","@cosmjs/encoding":"0.25.0","@cosmjs/stargate":"0.25.0","@cosmjs/launchpad":"0.25.0","@starport/client-js":"^0.1.54-beta.0+eb8a3eb","@cosmjs/proto-signing":"0.25.0","@cosmjs/tendermint-rpc":"0.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.8.0","prettier":"^2.2.1","@babel/cli":"^7.13.16","@babel/core":"^7.14.0","babel-eslint":"^10.1.0","@babel/preset-env":"^7.14.1","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.54-beta.0_1633082483790_0.2526305326529614","host":"s3://npm-registry-packages"}},"0.1.54":{"name":"@starport/vuex","version":"0.1.54","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.54","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d102314a5e1d8d617bc2658d1e5d46a652b0bb91","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.54.tgz","fileCount":31,"integrity":"sha512-0mq2GKvsM1NUDPkvcYbYIdH1s2b44tZ/qlFyN9hlQRwdnW2pQpZ+t+VQuCujmnF1Jbyy2ZVWQEkX9KNdN06Oow==","signatures":[{"sig":"MEUCIAza4n6/jmeqSubCyJjd//HhNxu+bFRjMT0By91MGTxeAiEA/rAOH3Fv9QJz9V2C7qF6S5YPexPjg/RG0OVdLemSipk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252676},"main":"lib/index.js","gitHead":"63169568f8cc43549500241ec55149ef382395c3","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.54","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.54_1636649910357_0.8826604747813724","host":"s3://npm-registry-packages"}},"0.1.55-beta.0":{"name":"@starport/vuex","version":"0.1.55-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.55-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"75dfdcfb2d6ae0db6cf235d913c0226c73a3ad9c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.55-beta.0.tgz","fileCount":31,"integrity":"sha512-Z/SKJ95esG0yHMt9QhPScLWfK3gYPVW6Nf4nC6wn41HCILzCcGFxCBdILKGMoEQ1TxcvYhKYe5O0xQ18gNPIFQ==","signatures":[{"sig":"MEQCICCR1y/ZrhTNljhXuWQcAFlEFTfURS6qSy+3VEGMw969AiBz6uJPNL0pW5PvlT+WZ75IMd2HsqgszynwcM8AjGRZ7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnSz7CRA9TVsSAnZWagAADC4P/RrQgd+3zoMvnujVda/2\nlB3Okagk3mHwnTd+WnV53pY3Dk4nmLsbeFNYY9Varh45fAZdty8iu7ffsl8Y\ntFOYmrh/tPR3qqKIjAFujho5xwzMNNjrXLjnSMhDrvrJ6sUJa/qtWo0fJFhH\nahcyKecFZ7MYxB7RKz1W0Dh/FSlXcw9dFgFDkq/BEPSQL82aItfSPFkc5dGY\nSWnFj1JUpo67Av7N4/ErhWAO/y9OexO1WtKYXgm65DddgsgB0XnapUjKtcCp\nfkwVEw+7iGQHvFpARopItv+kQYy9YEZ6TiAmOFIt27ahKYzaFVEMdDCcsf4n\nAhGqI1EVAyiE+eCpFHZmH3IYOpu8Rk0PLHpVIHfmyiP5srILntOASkEKHOtR\namfht3yUMvFZRKFQrsrSxMt/KVie8oCp48yN+97sPwj4k1RX1vFKLGsdukod\nayu1rV1IdHFO3Hz/NreDlzvkO85qQDJJaCD1Ss6ufslnl+xqNGVmZY+C6MCw\nGbNP3mYAPQa0Mns0LLOYUDoSK2d4xhSSaMFqYcHHxhDE4BXVLzWzY8lGewJq\nL80nz2pzBwLEwzdJZ+kDz+NvdMtRiedv5agc9+3Yqhoy20sfGpZEoNbVXOyD\nS+ewv1BnGDIM0Q7VVSWKCAmdBUcxZzZJoUHFdPHUDUpjpDPg6r0h6dG+KHrj\nFVoY\r\n=sHmd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"53bd15718fdad75023c9997cd66a939359d88a79","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.55-beta.0+53bd157","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.55-beta.0_1637690619400_0.21263784604756597","host":"s3://npm-registry-packages"}},"0.1.55":{"name":"@starport/vuex","version":"0.1.55","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.55","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8d226bc588dfc90409b6f1bd185765f819ba06af","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.55.tgz","fileCount":31,"integrity":"sha512-ykMEkEEEa0o3WPfwTq56WaioJxvwxi8R7088gOF0aQR23YUn/visSmIsIsl13JbY+KozpkRQbSYEoaYfFs19HA==","signatures":[{"sig":"MEUCIAN1ZuJvHKP7z4uWCtsOLSr5ZW8a2J4kG3tNbN5blMDdAiEAqKIsUQdHWdDQKldo1nXb4I1WSjROIQyPdie03EWdP1c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnh3LCRA9TVsSAnZWagAADTUP/34XX491PC0HqUmX6V1z\nSVVSgldotD0INkGKz2SJjTzrHZ6oLkXlnSr+/mQrxXNvughkw3tE+kEs39fU\ngG0t/3H6x6YJ9/+R71AfX3YGZCVM1js3ASbqbvSoizIGTZXdqJuzfQOAZd1l\nSOE2ASEK9ALC45ECHahed4VOgWRXIPpqEgLBvD4dAWGHub0xLDI9RRdwmj68\ndKLyZsqWTVVy2QVwS2MHGKsh15cfwpoiK33OabuHWrbh53AfhrNxF3rMAbsB\nArh4Ma5f5OOXArUN0uv7EcIBqcwJNBZoHjXD+87WMIHLgOeFEOkO8Wwv7fHL\nkw6k28VhJiOReB5C+h1V0+W7xor+aAPBElbR9++8v1n8k0FqI8p61t/bYkke\nRZp+E3HU0l3qDhGaYhGBZSVlK5cLlcpjfHMM+g6qDUtfmCBX5RqD1z3uHa66\nMITUqg6W5gH+93WnJaY5N7mQtGRJyENTZAl9mlslsUAgnLDANcA4iMEXvr7s\niNgDmV8CIhvEgoXZ/AAYQOgRwDyMpf7H8FnQ4re2kyEHG31PnKYwC35Rb9Pu\nbNIizDcptKZCBwfUjY1ybQ/BnRyAxzviwKbDFE5sp2QpdEX1T0aUWmXvqJd6\nXqAy6MlVKxFfPtNXmb2zq8GCa2L0YNX9p4G2CRZdNsXO62tzpVFQFzlqlF2R\n/A5T\r\n=Ybv3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"215b5325b02de9fd4abda325ee73b5f9380848b5","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.55","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.55_1637752267645_0.6780550843259703","host":"s3://npm-registry-packages"}},"0.1.56-beta.0":{"name":"@starport/vuex","version":"0.1.56-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.56-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8da92550061ab9f5ca7603ea57ff9b534631a5b0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.56-beta.0.tgz","fileCount":31,"integrity":"sha512-y6Ce0wisf+uBfFCAgtBm8OEYr2E2Tjxf/Yl5FqHTagG2C4Sl/ZTQ/ldUaitYv8N5F61GhuV84D8jCZiPX+zzEw==","signatures":[{"sig":"MEYCIQCD5OyuSV4EuHj48/2GKmCH7WPou0xHt1TD7+vulwT4HQIhAMobijdbNSp63ZON9bIV5gWkUm9kjpRQS6gyKLpaotY7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhphBRCRA9TVsSAnZWagAANbwP/2RsJsouZc0pMfCUGoGx\nqMIo4POnbcTwMRwZ57/JZaIV0+dmEWHbXFpd/b+RMlClH5Gk6ffet8WY0UxR\n4dwbCBbDknhhsIThpu5WHuYckp6iWLoSsH7jEeHlHzwRW6cZJHGK+scQrcYc\n2I46wQ/jUUsoc+QaSXRL1EE9/mY7HvtwHUq/1QPqGrPA1Y7sIx09WW4mR6t+\nbIk5hfn8beRFxPG1giasntbwOZK/4LmexMQBaFTtHq7/pLAs736ieM+thKNF\nnaNi4z2I1QpNlGmsoZ2OfxKL0dHSUI1bPRYqUq457dGtHA2Oerwr/sC4eK7V\n9hT+D7+lCPSGK3IcIEXolxtbEPy3KzUPNYJQWbDjT7lofBfv9C96UBo199aY\nR5SRVPCHZ+Ss/f4Xt0VFdmRpga7lRgAVsoGF4BtFE1NqMgG1nN7fW696IMkq\nHDEBb+7SwmznG83fFj3PYk2dijEJYcnMhzb6Um8fKDZ9ZwcAmLxxZ9fdk4Qi\n52PFsq+57peTNaKcqIG69Ql0enVSMqD5DQol6vpF/XRcxbSu5WEjEhUGllE6\nd52HVmc6+kHabQr1daXWpk9+F1iKwrpGud3FfNr/y66/GNNTtKcex39aX0zw\n4Pp6oQQzk6HK6jT4lvNIBGhZynRYwqgYfDyMZiSZiht7erjLAtzxn/bC3ekh\njgQi\r\n=OYC9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"737a3d31d450e7a969fc64fb14d289d09835e2b1","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.56-beta.0+737a3d3","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.56-beta.0_1638273105259_0.356182127559991","host":"s3://npm-registry-packages"}},"0.1.56":{"name":"@starport/vuex","version":"0.1.56","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.56","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"04f632e1908e8af429dac184a4a4670ca5ed7cc3","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.56.tgz","fileCount":31,"integrity":"sha512-nMlqHUGBhXBBIlti3ns9NhoVuxmkZ6rK/h4hmV+gGHq77mM6L+q/K/iGEvp9ov8tJ+ZbNZoETCP8J3TAeOyOTw==","signatures":[{"sig":"MEUCIQCMqhR29QLO1xVmZEaxeG6u/yIm5MBuNuOfhyAJbYMvZwIgMNpmC+pbUHVTgSkAnfVhS2c8HqzzRR7hjr359U5y36E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqQ9pCRA9TVsSAnZWagAA63oP/10JfwMI/GNpRdRo7y+G\nT8wAPahbqHAyx6J5qLdpKGe+U6gEsjgnukoXmS0wzymWK/m72M7r80Jfokpj\n+XFzJ0EN3w9EI6439p8lPWhaouLAkxFlMQhhxjPcDW1kksvoeW9CQsEWZ3Jd\nNr7xsZrDnYDuzSqLaPXYbROcCickmt/OaT6fIPF/HkK85+FlIEXOGBwmViWR\nmA8xF2vzVBILuSMlNUrqgJaMx+TaGIX5vn4lDm/KnuX+znTVzZINlNS5SlVf\nJZW45Pvdm8rq+gq2Y3G/8iBzE+d9eR0B/6Oi0ojlSbxB2c3W/oef7298URzu\nyoDqYmoZOt5UHjBOXzqIwEq05kexMeBUzhvEh89GCFic+ReyKuYiRqtqs5mO\nflThyXO2p6I/eKdf1guzHzkFNZHn3hM8WAa6yzJ5GHGdaGpFjWcSdEyS7gfk\nMpcJY6R38j/yITR1YXNiniA+ZulU+H6g8FZpc2ciks7NaalEl2Cd1EtArrgT\nLp95CoHaSphhJerbnxpzbbxEpPBi+ikoq1x5JNYfU0SUecPFmNkkR+xz7JZ8\neWHvmyCXEhKv/pTuTYGQhqgw6LWJLJq4qLcMcwQF8DYzTqWXDj8luQ2QFdRt\ndUFTnrD9mjYtQof9qwO6zGcVJs8AOfTOuCGgJwKKGwuXAV463qYtHGnBxXE6\naFjJ\r\n=qVqA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"f4a60c9aa39ee0f7ff91fcd9b6aa382f44ef155e","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.56","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.56_1638469480849_0.12621487589784564","host":"s3://npm-registry-packages"}},"0.1.57-beta.0":{"name":"@starport/vuex","version":"0.1.57-beta.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.57-beta.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4c4c16cf642383175640014886a515f0ef626823","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.57-beta.0.tgz","fileCount":31,"integrity":"sha512-29OdmdOBF4GE5osGXS1zyRqs3tX5emh2JGbo8ImR1QzDF1fLPxlcqC0l4Yb8cpWeJX7Rmmi/ekr4uMQx02tGqw==","signatures":[{"sig":"MEUCIQDPVJcBZReCSwhuIUqqX6+jI36gX9GoSFbSv9Q/bS09NwIgXisAqIS6k6MwMvARTs/wcybC5egGFzI4wTcrEa+RkiM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252706,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqg1OCRA9TVsSAnZWagAANnsP/3ifeXcG9wj2IRgkTjoy\n+++N/IipNWn/eCcnKtnt7F2npgmsm3QZD9zKvsyBcPeRMzIvMc/x6vObYmPI\ncc4OcZIWQaXhvI3yTAzoOoc2p8tHLODZw2W9pWylEPWVytdZ37rUzysf+dha\nCMqste0r1e+pmTQfLCAmYgzdvgkGJVfPpuBAWAtjuuevpGeW+PMgzCf3fD9x\njbvToJ1s6LEhEHoYuCOFlyyypTbuAHvow51MAsZidr2RmB9tBuzs7Zjy7+lz\nf7DCsrwUs98TQ9jfx9ZlZthUwxD1IM869lalk466gSc4zeYlQC7yKOPj/qsM\nTPcg380XqAicF8TXbU2o1OWduAAVD4RJ+d+4JJZTCOz+9l3MfajlPYsBTqOA\niDjSRUzqQ6IXi0x5DxXDq01R5Cs+dTVe304L4LU8vrwX4+B5kyGSSlj2Fa7Z\n6h3BhFZGnN3mAdtMcXDAuXciOMGqYcyWtdz86Nj+3HCjlYnfdJwP/lKgAiMm\nA/aUN4nwzLhImA/adi/E0q7dBtd8wf4OFIDs26AKJMngSFSJhqjCFUbInayg\nwc0jLjvxv/QkzjFyk23cSHrZPD79EDioCnNx0gwwql/hO9ENLkCu/vfZT+Hk\ntK5YUF3cuVcOixiHPfnQ1ZzAOq1ExQNf8BAhu8QFYoEk9+WJejgso3zjs/g2\nRDzF\r\n=R3QN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue  components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n // import modules\nimport { env, starport, blocks, wallet,transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({  \n  state() {\n    return {}\n   },\n  mutations: {},\n  actions: {}\n});\n\n// init @starport/vuex\ninit(store);\n\nexport default store;\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env \n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters[\"common/blocks/getBlocks\"](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so: \n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n});\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event: 'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\" \n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: \"My Wallet\",\n  password: \"password\"\n});\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn'];\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut');\n``` \n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount');\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3);\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch('common/wallet/switchAccount', 'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5');\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName'];\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet'];\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet'];\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address'];\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable = this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck);\n```\n","gitHead":"87e4e8c335f92f81cd0edb8eb52cad610c6d5ca7","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.57-beta.0+87e4e8c","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.57-beta.0_1638534478368_0.5635005953729226","host":"s3://npm-registry-packages"}},"0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0":{"name":"@starport/vuex","version":"0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"6b6d0f0e82cfa7034d1302f012f4a6da768c3a4e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0.tgz","fileCount":20,"integrity":"sha512-39y5PR/8R+RRQUXr0QTO/xnMQE/FDcNsjfgTPILQ7hj6kuXN5MpykYyiSVVX1f3u1xeJb7O//XxxLo0OXr1Y6w==","signatures":[{"sig":"MEQCICXKK4dVOiXDmexsJWfoTwZdp6dPG/r04ODqgsrkt+wAAiAPRz4/wOQRuupw9P/N+oIJJgoeDSa738nm8CIt+IERrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":345810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3KEACRA9TVsSAnZWagAAgXkP/2NZ0JnDJdrFNPVnB36u\n+fblIDaJw0ntbNhLMrN6NhyLXkPg7/Volcqlwz43IyM3KxXCuP4/nRS+zRVt\n+pXQyTcT234XJdt+uxUj18BSzD5/Xs4WPWj7PYLai5bWoCNnMIUdPSeBtONm\n3EeUDg43FsV3YLE1b2jvcXDHMm1dey0Wibzua/4UiJJIKEpaU6htjrOruPNn\nRRHpPZ0Tn7bwYsfXqSL0V9jD67K1vvMnIphLByeb2PtiP1GXYUzseeCUE6zF\nNxSuQW6FS6JYvnTAXCe3vmYzsbvuYACcniXLKvcSYPBRr0DoxmNCof7QNJt1\nd6F7GDNqSC9y3ZP6z8cDMjv6DIxr5ppQNPfWY5SJu4nrq5pGID0ofm1Dhz5e\nnhMUloFVmjT2jWMbFRO6GizABh/5PYrFr3VZ6fjfp3Snd6F5sBiWFY4mI96T\nkSgwgeysv9Txm7wqdqu6cA7U7WCt2ndZlzQmDnjqI2U9ksPWqPFQUKXlpBCR\nJo8pKky+AjiUz2hGwXmo6gaMiJE2pvOLicfWs5EPHDwVsp0R25w3UD4DxMLC\nYEK5ziS6H33XTVGsBj46qNjj+1Gu5tJKmeqsAm8PauLbsYwNa5DF7xlIHQvb\nu7o9nDWXtYdrIoqTnOO0n4PBf7fiH/iFIzTm9z8HVpjgJH/6J8QSIXcZ29mr\n5MQ2\r\n=hbLM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"c20ca865562bfe682645ad7181badf77a68db8d3","scripts":{"dev":"rollup -c -w","build":"rollup -c"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-typescript":"^8.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0_1641849088386_0.6173382232189693","host":"s3://npm-registry-packages"}},"0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0":{"name":"@starport/vuex","version":"0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a0196df32cff083e2485cf1cc1f55f41793fa345","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0.tgz","fileCount":20,"integrity":"sha512-xBZQbIZ4aTWWrXwxTPDnBO7OM4kaB1TypMgF48iGDWwY7bQqmncUTg4AnaMihZNOFw2kuSxVRItG3ub811ajWg==","signatures":[{"sig":"MEQCIAHA3MDOQ8804cWyFBcfxXNpbCW62XrpnhMiveiRyq1MAiAr7CAWD/eqeDavW1Jld2qed7YyIbSJiOCQ6uQP6E45VQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":345810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3KMWCRA9TVsSAnZWagAASAcP/iH1/yb2XU9Nq/rPQtbD\nynWtB+LhKw+H8m6x6nN6EzHAscjnosVF0L6o7NcWLW8OXcJVjJBiZUWgDoS2\nMAQNTObHt3b++9uq9hGqoPjsOyjDwGkwuULjw3mh7kgVoiVCHrSff+KVoji4\ns+yWXuiufbsz7fG6j0XUh5Gu7rDx5vM2AHQNzSmUinvPOyYgbxmVqonIAq+N\nwzHciOFOdyhNECPNcKo8eCCzG03ADqp3pZ3xqw3BMMvVk82OTEW3Lsc7WvX/\n9v9djCuy5iXiJK1O+MPpcmM9lqEVuSIWPQEPD3NzIl3wNYdz/9C6PFUZxHMy\nz2omHYZ+4JKFmcERVUMwGpLeZDd+iGeZ/g8Tyhu08JgC4qEYJemm/xaNdDuT\nHLdfn0Qh8d2ymO1I9EdPHi3QD4kI61TfQ+qPkqSMeAQUzVlqgMKH2ioeAAWt\nTXdXtaDxzUY5f4Z0e221w5vmjlZv6TfyvwiYTev/INOc8LhQApo4tiGDDQuM\nt8K6DulxiUOhfnuc5yAaHTannp1UpCy/XU6+dVw3faNnHnH7qMYzeWmb1GEh\n6FcbFAVcz7846wc0/VRH0fYsCJkn1PtN06Z641Qd5JTdaG3Fbn+yNQ1pNfBE\n9xNQcWyRbqBb89fed867XO/k7xwm2iL7dnWqG8JAhvuoTaEQm7sswZUxIQ9W\nnEeR\r\n=9nuQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"af50128d22b15d316240c8c5a93bb3769524eee7","scripts":{"dev":"rollup -c -w","build":"rollup -c"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-typescript":"^8.3.0"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0_1641849622060_0.809393701287153","host":"s3://npm-registry-packages"}},"0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0":{"name":"@starport/vuex","version":"0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"75608d658ef2f93cf361fe4c0df7f61a7ac2d1b7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0.tgz","fileCount":18,"integrity":"sha512-ccPXNmpcdjgnNAHCINFqIuY7lmbizBJ3v7talFJ0JpLhAUzmeRRT1zDOkWeQTFsVRr879j2llNZNAcs4KbcCXw==","signatures":[{"sig":"MEQCIAkShQn+I6YncC/8Hi7zxnphQvIDnInNbIM7k5HLrJkpAiAg3+CYIjFi1i5tGprG3IP5kFQX0sUxSgY9O3kipjgnkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3NqqCRA9TVsSAnZWagAAPpIP/Ap/dMajfNsDi/bc0iz0\nSijgD+fRsE8gmZoqCZp07cot1OLeTVbKND8Ss6AzB8RySuCNOTeXFFY/JG/S\nXouAWZ8cusKtXVDEVAbe/Lo0aq5yh0EfYlBwOB0uFaVPYSPp8AiJq9CNX9We\nNWGcN9gxGdD4uSY1giNmqamW6BxvnWohQcZmO2sbeTch0rV80BwKg5u7oxVn\nJ7X+7lOxma90oNOEKucj+zzdj0cD/3U9IVMwHPCMvn+KIdRXX7+odm6Yc+ya\npt26Y50Sd1ATE4uwO/HIQB8FplfvT41e++/BN6Wi0920ef3TvVrmpUXn7qjK\nPwuGLiickaDJSwnkwLJDNxM8DdyVOXgbwCb5AFa1NBKh4HeyRjl2MoXQLFiI\nD5Rz0kUCy3pWQ6rL3oParD9uV3IpONfkbKsZWfguFY5hvprSLQWYVfqGIK6q\n5+BAvqYu37gsOdU7a8ctN44tku2R5/4RG7Ltl8V0Ntha1FHwN0CGJdjAe8CK\nxNjEV5viYshLf5eD4gK1+FwIzBRcBx9lSysvmyp4UtMM3vXsvGZu7QksGGEN\nJITS1qFTHjFKzzUlW51H4TIW857zF8AMMZt9B99MzgvOoDMbxwKXUmWaHbFw\nDAV8k+H20O49+WGlHWimYP2nfgcKQJ+KxgOTjO7dS7+49c82ASVIhBHAxXlQ\nYwDs\r\n=UnBi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0_1641863849911_0.15711179597640168","host":"s3://npm-registry-packages"}},"0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0":{"name":"@starport/vuex","version":"0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"51df6fe1543524ff9b7dde69afe5243bcb1ab1e7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0.tgz","fileCount":18,"integrity":"sha512-f1r6VdIDPoBP4GgkcOF+rir0OASiGRICt3hE6XdLYeDCx79NVnybioXBM1Q3JKZfUkBR5uy3MVzJLK7TTwFZiA==","signatures":[{"sig":"MEUCIQDoSU7z0GvOsodU1kKA5piFJqKHyav+b2qqfR7yZwVOcwIgYftqGCz6Q8+fw4CUCx3MOLgnFjg4hWZy3Ow+PGTbc+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3NwnCRA9TVsSAnZWagAA5I4QAJ0smfOlNz8KtqcALbik\ny/5idv7unBnlaOrid7NoRijYj2Wxplt5frBNENxS9Q8NyDGVN1EUYTmRySVp\nP+H72UrUVN9IsPUtGN/1sQYoM7eqct3cPklUhiJcRmJcbiocCMsHVeMJueXC\nYJl8rrFQB8AFMnGPyOe6ijKxjPBv1VKYF1IZIiPOCjqzfppwsnVA37c7+Kb1\n3cCyrpWYBP1vzJJC/FvznGNqw+X7X7zmTmzqWyx4I4lgB2E+xOJPlAx0QHDN\n7/YKcp4Wod4I+URsXk89AjPnIk/CKsscg0EDQb4HvQuZ+HlNaNeBZ1/a2+5a\nHNBA4ZQUckWUmWOvtc9Qr0fnx5A6ViXGMHMhjZldrKqgDuQ3+wu6OXbtZY1z\nfRmRRlTduc7knUgvJ7ynq6HYWFdhyPeVhBxhWvMTr5fv40ICY+0z9hvEEEMw\n4sihvyNq3NX1Dn0p6Y4F2Tb/lOQA2fdhkiW0wSIuGULkKendKtL7G7mIDyRZ\nwYUsD9iNWz3cjRWMa8cmfhi93lU1vlbU8F1wrCPfxS2mebIayqInCR8aH8Ij\nO4BPenQxim0WAdQ1pfXKmwyZ57aWr8iw9aCMrrY2j74w5xxLLuORAgw2J3rC\n9IEZHOb4O3jkaDomOpfQX1/Aq28LkdA81KFaCJixNRSPeXzY5ggGxvMiMLJY\nR9Hc\r\n=SO42\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"cc905e2f8e99e0633bb4bd917c9176bcbdded1f1","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0_1641864231155_0.18305539776548496","host":"s3://npm-registry-packages"}},"0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0":{"name":"@starport/vuex","version":"0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"62832bfd9e788b52650b17ac18dfb56b10ad7204","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0.tgz","fileCount":18,"integrity":"sha512-q/d36hqDab9gs8/USQeS8xIr/0ivotiDE8LbptqS9LzPDTp+0R6uXwCS+tU6q/UQ1ozjmFXca1kQj6AoqqNIMQ==","signatures":[{"sig":"MEUCIQC+AEB27dWs+zdVyH/cMRY1gdwDO9s64xCSO1MONXevugIgWcAhO/9o0WXLdQUKO9KxYkqU7WWVRY4clxS9BO/8lnk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3WUnCRA9TVsSAnZWagAABOoQAJ57sCgI4Hi4kwCD0TFj\nTjA2Ym2sUVXRv32T6UHD4OBF4trBP5XbakPYRdHkyjQNzS2zNSvV7Yzyy1Of\nv85Pos8Ic1D6WzZeFq2dYMlAfmvXG7OixlGdhu9nRJIleYhbpJIoc7/+OScN\nWPwio/1wht6WpqMYYswRj/YcXPtusq45KCYAY2ZtYP5J3sWkzPVOutDcFgms\ni9h8D29mp0WRSQ1ZEgNWT6wzuQ7oEgxOphC7+gZTcUM2EukgRg/DMNk+K/T1\n519LUm7A+WMhyU5Ee2H0VADd8KzR0QGHnro96ko859QSz1dMyJtmDOVmr8MN\nzdpwk36kAU/eQzGS0gyUuHz7hPF5RTl9GTTOGVRR0893EeJzrEqpTDyed4xv\n75LECTDgEfXJwL24WuN0o+J2MdB90ubVL+kdv356n7I1HAHZ+Lsi4cNDPOeJ\nFHY2aLueezm4L6P/QNKHK7qq45ZAWUtjd3vpJmKJbyLbyflB95adWw25sWbT\n7AO02E0nvjaozcWubsG0EdppdOdQJU2hHMOwG8cIOhPnpoCFzuMeCJoZkOI/\nLzywaiCYnNor86TRHuaVR0bwtthVpSAyOor//lbZyEZfVkrv8O9BJzuF34nm\nBYjen+hVbDa02NqWLb7hisCBcDKUMwpsiijEa0hYiTTWhNPhQFgcQtCYq9Z0\nJYpV\r\n=i/eW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"041732a553ab8c8cb98c15a41f1b39411c298534","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0_1641899303749_0.7095705886585069","host":"s3://npm-registry-packages"}},"0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0":{"name":"@starport/vuex","version":"0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a6290a1313b67f5cbd639e0be0a80e65b2d23cfd","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0.tgz","fileCount":18,"integrity":"sha512-6Xnzyr77jR19ncaKAbQcEn84iLEYgSA+YMBxy+csC0SGR2apA6V4vps3MSAMArLlzqUO49p5gtaT6975DlfEag==","signatures":[{"sig":"MEYCIQDNjJyXcPCbyWu+OtgBvGHrKYn25EAJV6FBx1KEMjX1bwIhAPxzROYE8nTipGBv4OdYFJILaylyFFbvjbM6qXH5RlUy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3WbACRA9TVsSAnZWagAAJHoP/2O0vRhdYhLFHTWHTlYw\nXV++U2WYdkzM5b9IhkYRli5A5eyLc70VtIY/lXUMYKw/ZJr25yBIcvOhsKBT\na4CLMI71dCAFgppQ4XCjJ66sUa3XwtUjCkOvURmnO10519WATX9zg7eRcxl6\nL1bNbj76/1AhaTALeScc5TtKMNeLcuOC5XFOLsu9lZFg+t7xLvBVNJYCMw4G\npCvUR14l5+6zxCQQT3nDhCz5/VOf7txcy3Xy7PTLH4Idp+oSJ+SHYGEsmdx/\n8SM10k2ph2LO4I+gLZEOAAcV2G2DWvRsCSRFD+UJPtUjhznJuKBoDwbWv5ES\nVnzaODSaQPq5LWEpvoNOd93XXVci71/HhGz5OQgyhcRaPRzkoawOZlsIG9WV\nzEq2z/t37TrnneTMGYq94pN1HIzhys3+atTYr2SdBqougkgohjLb59ywkT1A\nt6VGRwc/NuJempU1okZQ57Wd5RXwNg7yuVN+PbLkxGUxOrVaODoSCk8sonh2\n4J6NO7o1yFC4UpBzq92zY+4Y2AnkjNTSGbG50Xq8J42lWaEbWPSI0bcdOktv\n7hWDIBtu1n0xzSXb3BOIcx28T1rwdPrDJNYKYuwgNn6p5fYxOyhgvTGOZsqj\nHz7OAttaDaTVv6U8z1xGw5WoNlBd8JqFKo+5wn2mzgGv9UPzoXq3WO8uUThK\nZsYo\r\n=KK21\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"2de44e5c0154a3ed9e670967bf534dd3fb2a22e4","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0_1641899712606_0.4487169146081855","host":"s3://npm-registry-packages"}},"0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0":{"name":"@starport/vuex","version":"0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0","maintainers":[{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"34d07ba205ef5388e4c827f88fad8d20d4f91a7e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0.tgz","fileCount":18,"integrity":"sha512-MYm1P1sC5p+SIDyqOD1VwjNcxe+8zzKiRxcFdctXNh8bd8yMLugXXrY4eAFe9QM7Eq9fwmDyuT7tqwE9hrXAYA==","signatures":[{"sig":"MEQCIEiusvlg+E4R9jBTa2vEUo3nxHMlNI6lxysuRjfrjfRnAiAMAtWdlUomcP+8x0Q9npMwfwSoVU5bPcJMkUKDXecakA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3azMCRA9TVsSAnZWagAAg1wP/0in8w1kZSEy7+ws0KlT\n/duk5Jy0wF8oAJoV/QmqOjKy5YAKKl+9yOy4LHzi2+aUzSGBza7sH5jmB0xs\nGl7SsX152B09OUge6J3UrRR53QFN6eD6UUtKXZX6MF/WUOi6HOlxsz8ktigm\np67g8CWJ0eeOWcf9/HpdaHbDrbrb/FroA/JqqCXzbUGhCy3I6KTWzX8s8jqo\nk9I9PZb/Vg+ljaYzt9gU3S1VBQGTTDAyvJdCittS6YNG0jrNvyAV3zbRAkwI\niOUdNV+ys+Uo0AQx0Qd965VFdjxf4RqhAuoxVjsprU0CEn6RSlXgkCM2Obnw\npue5OYEN+XTW3NWYv99oVj2V5uN4TGsGvSvfv2mVEviAtT00C9O+mHKDWQl7\nlcLgZOYMo8fvKrN8o5HU93X2FtT+7S9XtLdW3kOUS5cPQdV9wEFHT3YlAiNF\nAH/aV+LjfEDL93uFUy2vsSDCs1R8K2W1O8VAtQPNLjlnojq7wiDeX7hJwdyC\naMyXsBxqHCLTCzxtJ6cZAnrA0bLuqbd+LCcU0tdHNX2/Cj+37YLf9GhhkCqG\n8dlm5tfqapablg1upQOqyqv7FSjKMsg606bRVokHlCk0SLcEHHcAT4vfQWds\nZaSEkaHWdq+j5phlAxxa6Es7b4FjoWC62a7QCWFni91trBe7p0f27zUuBsKr\nmELR\r\n=bIDI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"8dfc8d218c6ce8191e270cd2bad70b396506718b","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0_1641917643902_0.2147853209040944","host":"s3://npm-registry-packages"}},"0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0":{"name":"@starport/vuex","version":"0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"9c3e93a0fca669d742fcae95c51a80eb34ac27ca","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0.tgz","fileCount":18,"integrity":"sha512-raApN4KTV/Y84M0YldXiBAugHnaS95lk+tbi8hwThPQ3FFGqdNIdgD2j2e1Onmtb8wrXjUyzXmCADsCdLlwvZg==","signatures":[{"sig":"MEQCIFiJVbjquieGXZqvChca7IxToEdC22jrJxUvNB4w3Mw7AiBNXl/ZkiKDmvXczVGxk0phlJccSImPkfA+o4PzU5PBoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3ivXCRA9TVsSAnZWagAAYB0QAJ8UVECXJ1HL6p+Jfo9L\n4iXPrcyeRJBQ941JyjK/XFhwDdTeVLbQDrrZr6Ad8VHw2iwvQOWnC2VnL2nq\nGyO9E2Xuq5b3czeQaw9ibJ0ldwZYs86jxyK6DrazvuWrrpSRPjwVNg6yt7O/\nGf3ry0vmdM4tlPbIBq7IABILDbgWVu5HgZF2rEwtd7LnhE07NCsiWmzjrmqt\n9X+VD3RLWcsFQOHbRWxOysFf5B145z6nWei7lMQe9soZ/8welS9Mmoqr+Mcc\nP2vt4H10vZGx6PUZvquACqQKr02VHlgaZMwqPdezKwPBu7yA+zTRqjkG+mtp\ncDmtRPZRSRxvxX0uEe43ycGJ8qWfxHT2QYs0yf5unJv8SoXovAMwFQU/B51Q\n+jFIzVOu+9P2EQSiYsb+JdBx/G2/bGieN2F3A1cFFn/3j/MUrPRz8DqLlarn\ncB28GB2Psw5O+Rlb5sxwiBy0QbZ+XtuRKi4VZgzZreb6SurnUb5H6+Jff9BN\nZEUb+y6LIiOQb8V2saIJsS2sD0Pp4WwiQ+AEyvh4ElMJtWZJ6/BrIYoM7hOm\ngEO/bm6TNSNxeno/ADJxhri/DH3CW/F+niEqe7YDFjwGdDDeCDtNcXTuf8td\n1VwD1S04HMdKAlVEDi88lCImxwhIFPQGbNxfThhJQT7slgQFxRJj9kxR7V2s\narLa\r\n=2H55\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"e52e9f2fd98e7eaf92765d9d71405f6993f55625","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0_1641950167556_0.8781462589299864","host":"s3://npm-registry-packages"}},"0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0":{"name":"@starport/vuex","version":"0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"91aec01684ae4e683897b6fd7150363a9532a42a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0.tgz","fileCount":18,"integrity":"sha512-z7jDKgshfy9qQw9SfUHf4DqR+TuZS64dzJ2llYsVcuhjEoc/oCakcNzkxkWgCKpQANwkosHZOdTQeJk+HDJApg==","signatures":[{"sig":"MEUCIQD/7RtDLIiWAqvaxgrxJ9NZQvG/qm7L6CGfd3Vc7n3I8AIgGasQ4cfRkjSLgfVCEnWWIAJeOlEV/h5ftF9zhvWx/S8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3t2ICRA9TVsSAnZWagAAYkMP/0njUUuMizFySQY9+DOS\nvl4ClcsB7H/JO7tJ7Eg+Oqr74dlozFjZ2kNDAhfS5m4VEUDCGuVNhzUXm6b8\nXcaTnBHVuNosr9+8nMhiTeJlZHVKWzMnth4+zTUy2lAgQh8YKcdbCPnVSexy\nBRICKMGJdeGq8cReoIqkB/5u1GCcXarJdK4EDWUZub73DQTltn3LgM8kpoxp\nKYqYviqWD91e3gH7hsUp+kb/oizK1sGrDQj2af4N8p4fzNKeFBRboGlw11XF\n+BWWLUAsxu+fU6U7y2KKBxS86lWyOCWqU+jK1nRugiWQWBw1pjLMgnIf0tQm\nubMsAvQy5854osg/t2FIsxEE+1ENBsSAitEgYJg2TKvcjZarY7OGo6kXaZ9q\n4MnRl0Gisw/WsCNpOxqjp2HC4zLb6TVnUNkS29BmIA8Z7tD/H9ZwW6Zhr2kT\ndRrhQS4cts8VXUersYM+b2Kno3Y5c21fFLXB3goKiSvDQSZqzt5u2rZfCrD0\n2uhdXQ5svW72h9ehHvaYEC216eFwl9BlC1rAuvyJEn9FLdZoM35YtI7vyc+1\nYjwTIcHs8C1rQC8o2C9C+p3R5ypVs55lQnYfGJ0uzt+EkEx9sE8atrKx+5ow\nG6K9DA/8/XUBQa7x8FTRYXNW9GM4YlfXJpSuAB4yzMNJ+l+v2lA0TZpp8XO9\nidI3\r\n=WJ9R\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"741ed2a1b915ee9ed432b58c98d688834c7c9825","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0_1641995656268_0.2538329518679905","host":"s3://npm-registry-packages"}},"0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0":{"name":"@starport/vuex","version":"0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c40e1defccfdea54c137633999ecf0d386b4c16c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0.tgz","fileCount":18,"integrity":"sha512-nFJNSvjTKu/kTRlZWYYQ+4Kg0hQfYSj4cKVA5i8PD80LVWpa2Mq9miH7/xdhmRAb/e+C5oRMJ/UnROFRK9HbAw==","signatures":[{"sig":"MEQCIFxL+D3qXEeEA5scph6EVHAqxP9wRlow1GIwDoCsBnmDAiAvdCaJwqLbJnCiJS5uuJ4HUulsM7eDnQ83mxnKQ9X1vw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3t2/CRA9TVsSAnZWagAA2tMP/3BifZnB4RRDyjOUCMRB\ncVwVbGIz0yDYA61XDFaOfgRzTYKXw/YLveO2pB9xybB86AkogL7WslswB5yH\nvjhPpbq3knJ8IRsYdIElQXZ1bmTTcok14nSObp4sy/3Oy+e8r1jhMuh1DZbG\n/5ELr1OSWi9A3ZAJ/LwUewr00WFZMd6ckgbLNHx8AyrULugYHXq4jVkq3UbA\nJ87TSv5raomNOARg+2foBfhRDY5EAMqY5gyhgealsb9O8ksQD3eTCs3KGa8S\nrA6ox7gQip8ICRGEMO2JGXAqaZ/LNSBn7LtljwJ2KLvReSa/75w0kVtJauKU\nekFcZ58EqWTUAn7M33ITRlRIOafcLkG1TLoIHr91FrcJbdoR34Iqryz6+NdB\n3zyiQauu5ugouh83u78u6d3QUwf8UZJ/kmDw5SWv6Tt6/vdwRQFSE+RI3m2f\nB/vrF3cLTxx5s9boge7elqipPQLC2QezqV3f1J4EelmY0Sj9uJKLVdCBl8ih\nG3NpxlPrzk7p+1oBcvo7CMPSKVYlHlXNbXxbOGVajUIJvuY9crMoXRrM1DFD\nyegWl9jkHJDZGWnFh0oQaQ7DuIx7Mm2vc/wDrA2NQYGv0y1z8TkfPa9iwVC8\nKwQdJsDswI6V/fMz6P2r3EljgKNPE14eSC23bpOn5Q+eHBQjCgvn/fs7liZM\nEkYI\r\n=QzcR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"66323eb238eed5286e72cbb0fafaa9da8148c00d","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0_1641995710981_0.4233111890530097","host":"s3://npm-registry-packages"}},"0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0":{"name":"@starport/vuex","version":"0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"aeb55c3e99df8d38dafd2d859478d9bced322996","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0.tgz","fileCount":18,"integrity":"sha512-7yKWDNtIwa1VNX8x8HKXawnj6tLPr411VWB8AGq+BO5RwKI9D9AUZm9RSIQHvVztgBgMFBYJSbOO6MG7JU362w==","signatures":[{"sig":"MEUCIDI2rhWR7sIVfVzC3gxE634WcG/wZxrl0+x/JBL9TqGmAiEAkphpChSb4wOwjWgacA2JoRp8Tnl5xkOcgmjJAlyqtXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3t75CRA9TVsSAnZWagAAXGgQAJJQUhmx9laHps1TlmGK\nBMNb27AR1oxRUE1grTh7SsVBEdpEZldsEeS2ykfI1lK2lclmwp65ART4ferc\nsF1zvvvZUpxQaU4LDlHRL6rM7KV8zr7bXCJK1fQuNm64XauN3BizV2gaSpaJ\nShpiGECwF9kcviiSI6BT5p9I8cgX/p/P53jJA3wnTWsNzVXzFflZROSGefCx\nh9bf++8A5PTAEapbx0UwTCmVkWk0wBMyRfxhplbt6xXgCDe8gZYWuG7xUZdn\n/0YnwsdNBbGaey7UKoMvcb0QcuAu9ib+plRlJy/mCoKnLS5zx30NvQD2uEO1\nuKFkBDpI9sLhkU+aKU/Uru3nEJzrm0iVkVIT0m6AypIy/JC6JLtICxef3f6U\nz8dkL+ow/JV6L97auKf2TiXv1+5ePJfPLZEXDZLdXS1XzZo5ei8jAfe696yT\n7IciZBOu24nYQY+/KlIFGiyk+QoOxiM4Q13Jd4qF854bzm9MHZYYPDkyifrX\nk+wJNeZ4kzCiVUNpx6dnK8ortswL2eW3eR5sd4SenY61UU3jly/PepESKKF4\nDUPiPW3D74ntFewuW35LZJzEGqMIEZ7ax64loKWQ9RBBYYNUOeZUOBDixt4O\nbI7vDm9b9ZgqaDahIgMMtSCiLHBM2EQav4xI8QOWvh6RaL/9P5Gf/ff5errL\n7IF/\r\n=i0Ys\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"382ee034810eb1919b83c1ebb6896fddbc384da3","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.1","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0_1641996025101_0.0439400500405307","host":"s3://npm-registry-packages"}},"0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0":{"name":"@starport/vuex","version":"0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3a36f978e1ff059569edd9a02034cc947d378a2f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0.tgz","fileCount":18,"integrity":"sha512-dMGqZHFgGhUejyNmTb4N/jS6BlxO2vgRWpBvwHLvx59+w+rY6jR0VfVzJ4SYSL21ue41+EWJ/8a/1I15oTdfPg==","signatures":[{"sig":"MEQCIEothUVjFwouqotm+Bp+FtVMm+8crrb/aDMC3z3S44sMAiBllpovbBGDySLnJGwa2LJqAxM3eS0x/E9v7sVL3t5Vjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3vWbCRA9TVsSAnZWagAA5pEP/2IbwIUXkg5hG3it1W51\n3RV1cDsuYTmCD9JkmkTYrB0Yz0qoeuH4B51Zd3jrc5/VoemCtpXcaPTbebUt\nguAc15aUN7EEAPv79WHAXYQqwY7ADvzodxry82RX+1+WCOFrtpQ8C64o1r2q\nUullm8g+pN1GmDfD22wQoElX0odTM7mGSecQxHqt4D2vNnPzLTz6MiIsN5kg\nKmydp/PGVFCmqZoOuHZFTPT7+om12UJEy6bXobweKGYLweREBL/Sm5Ltb/av\npAH5+mHZOitwtDmxoELrV/Hd9aWMKXlVSnQiHc0EshYsz6wipnLf8uMMDCPG\nY5IhfTX/rtCbKgcYWY1x04ytYrRrPMrkPgXvIxu3qzois6CA8jpn7hMdTKf+\ntwG2zbL+VrgA3HxF4XrEn6zCZ/XpMUzUF08E+5zgrRVZlTY5rLBb+wxNvjkR\ndz0ZB6rBKbVpTWVelFhvbF+vjN/JNNPjk6tAjncZGioJ7QYoJd7ftB6iRaiJ\nOU2fCp5wHafYbD/oSMxTaeVWdU0bSEi5OLxrbUja92RQfbvS4d/hul2b9D51\nvm+YueadSWyzfyM6RaeKXA90LQ4zGiyVzFNvqq/8WEh/LKXQ8AI1Ly1f0JIs\n8UygiT2soZU8kNRnsO2erYmo7424X1GjMYrmChL738ZN5pzlrnU7vw7fXRdO\n0N7v\r\n=gTZI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"7d9defcfd41190addbf306745f1d185925b8b9d8","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0_1642001819277_0.7566676449896275","host":"s3://npm-registry-packages"}},"0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0":{"name":"@starport/vuex","version":"0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"192bfc6f647b2671c15e7ec7611080a264873f9f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0.tgz","fileCount":18,"integrity":"sha512-bisdjBTUpqtxsVZ4uO26S61bGk1imR9jLcMYx7I1Oh1aIsvDttvxU1CpvbfB1WYnRbPfJC4bexO/e+EnS6RE/A==","signatures":[{"sig":"MEQCIBYXcnwbkWmg4CH6meolir9gVP0jvVdge1Yo3kD0edFMAiAhOjb90Za4T9U4M7aZNFj/XM9SQUmUd1dbT9/K5In68w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3vktCRA9TVsSAnZWagAA5/kQAJgdFfChkUWmxJlqTE0B\nwIH8zEhb4IKr2b+mltKoLafeIIzoyYb6velwaVIbnlWqQkvGyJUK8xgKiUa+\n9DhUITsK5kB/4tD4KPmIhUGgCnFKCOleWsS+LZ33XaHAlf8t2FiYA5rTE2lK\ne16EMsedqTLrg5WpnAwgdFvsdHlHemowC7DNDiCKSoYQ/EwG78l/OX4YUAPl\nKK87DuF/Ss2CVLizv3a91kcMjq5wyR/cDjqrsGkOOw24jWtPLd8fuwqpBl6/\nQ1UBz90OdaRNPruutRq5Tu09FRs+ADAMHpgQKeK7i+a4fs5OkPtud06jgqJ+\n36C2/c2iFDe5VItwi1JMftaZRTEbyGaAz3XUZwi7umrmb7Hz81qbOdL0y6zq\njKI1u0hdwDkvgYAnDX02vyLwFN+zMGkwTM+j6Lir25SRy2ESKJLHuLKmbnaT\npOZmc5iLvj7N1brfRIryAc1q67XFeezQVViPV3DueUB6sPtMBr81nRFfIAs2\nwzNwpYU5IKH5iME+1jXqYa2Q5vcLYnmPxUOsDKVYDbumB7nF9PrudIPAhTWF\nkYecIvXNJ1o7VyK2TzslV5brQ4iyFsEqkBXEJGjl/3vqXuiXOyn4Z8ucLaJ3\npcrpT8mThBHA24UJj85XnjuBuvsFSXxANPlsUsV0ZT56qlJ7sDDtCgh/s+0b\no8lf\r\n=M6V6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"b44c9e4a30bc1375e8935d47f588e2ab29717963","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0_1642002733574_0.09207643867486759","host":"s3://npm-registry-packages"}},"0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0":{"name":"@starport/vuex","version":"0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"89a81d6c472171de2d707569ae3915237fafa699","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0.tgz","fileCount":18,"integrity":"sha512-9hI6zFyGHq/BGkFzqyNY3D7gEKvTtOTgMlWwjbWjXRW1XR0qoPJ48yNTUF28OwpslGWIB4yxvwPvdUD3z0XrCQ==","signatures":[{"sig":"MEUCIGmbsckWC8EQLYXk0TXYZ7DwjYhBVeYa/oOJ6vAX5flzAiEAmpc6J5ezxwFEk+PzQuyxZzyLIxNH12HsttT7fCZoEuI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3wlsCRA9TVsSAnZWagAA1/wP/iPakH+P/vmPj0NuOeNa\nVF3om3m3FWf0I3ye/sUJ2YrSABAXdQa0ka5QtGm3veqSYFGCBsxcSx89hRXM\nuEI6XqFItrLfeIaul6QJgQyLJuzohiH5cvUzGZe20fKdLjmUJfTrTt6cPOQA\nZ1AeLgksAD4rkJ92Y5IjpPguUgUPPpGh6ydlkrZ82/BYVAXlgBxwnlspvlm+\ni4SreQSW6La/mZJ+HxX9lN5abIwflrGPC6qSyvp6jGBrmkCrz+Eog3qODB/u\nw+GwVX600GQdpzshLciJ5ECDyv6WHryd4ofp9LT0rb6CI8vn578RyzxpZ/d/\n2tQ1koxRpCdK2kCUfYUpcPsW/t/PNC4UbW7m5jEaMHOC6lpq/ym82cwT32Ld\n/2WREC4RTX3u+jsu5/5eDJgbnIduU7t7BKv02ct1LQu/m4IlT3721kZzm9y/\nk+qW7+oU4CQctJhdpBjSNVz8aJeRre6PSZKOHEuzZshM1aLsU98nOld/yJvn\njbAReF4CCAQLZ3C1LVWzUbFV2FCOIcPOCVca9iNOLFpXGQRCM9PR1e3nStst\n+dQdhomlPZqFpjJq4L4VjOcwKNoDZcdcF+73BKqoO8pHuhMKIeO3PLvmawOc\nMPjkRxhDvpAqalpeyqXKG09sYgDunjNMnMB6YKj3Oe7H1QHWDXoFbWvhCytH\nyU/w\r\n=7jUj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0_1642006891924_0.19109950489335525","host":"s3://npm-registry-packages"}},"0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0":{"name":"@starport/vuex","version":"0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"9a56051a974d6bdead29d7a93966b3deae084c31","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0.tgz","fileCount":18,"integrity":"sha512-JKo9HmgsQDuMk7AvxnXDcRrw9xXnf9VcXdxeH0aXYcAxiBcGDoJwxwbU04YO0FOPH3/rFsimCQajEz/WvgdSCA==","signatures":[{"sig":"MEUCIDu3Al2wDweqJV40H1NsInAFHa4z9dFNp0yZoOXxsWYfAiEA2TaFNtcv1Elh7CTBMk4SfgqYSpBSzreW/hdevKER4og=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3wvJCRA9TVsSAnZWagAA2lkP/iaHsLDqz5PLNTZRntrG\nxrninU2HL17XT3Z8IMwkcOnSr+DjuHuSxcBtbPo0i8SiDPUAkjZxPyCJcQkP\nYvi3Qz3DGsLXvY5RuPZrYl+QJEacWLoLVxjhxSkWjm7JA/yquYgWDFKcGk1q\nPs1UH8j2UJxnIvvapSZlToiLF6mtP83IToFGghmU6lOmudHleE3o/RDNGdqi\n4hRs/58+I4NDoXwFjBG/Lfy801XFrtglpYjpefxfGhwt5yovKb1WCWRFAnHR\nGfrngnYXcMM86J7kQgfT0GkPibq/Zc8hqqKuqKJ/i6GUV3TG9uVT24Z9N1mJ\n2GsZ9N0bg4jTxgdur+BOAUkrCl+jwW9Z9bNdk181zivuAg70uedcBsw80i//\nN+tCnYXQ7s+eBGGBpH6oPLc4bXV5uBYnRffQnKkrNC60B1YdFhJ7OffTU+h6\nAlUKFXTqI8H36JqR+ZNq8yQXU/V2O70LinleS5FwOBkwtgD0iOaaQW8S2+t0\n3yNV/UXA3OGAv7JrelQNN/7BohH2ConPpBOmimEpjQamaurvc4iSXKW169rR\n6OL4OtibUVTq4SqmxB14PyHO/396DtTxxnqc3pWlTSq4n09tqvWxxXYzBCT7\nAeo/M93ARolRgjz3wjHB4X/ZXwMJocR3lmqNOsl0gWB6/kfyJ+hUth8Hr0ze\n9aN8\r\n=QFGi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"61c3cdbd511e5e95883c9b7048083aac028e2561","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0_1642007497415_0.23913277265782695","host":"s3://npm-registry-packages"}},"0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0":{"name":"@starport/vuex","version":"0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8d8ea2cc5a850f8e905b976eec9674aa50409c40","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0.tgz","fileCount":18,"integrity":"sha512-UUS755k2Wiesqf969KI+l5c55TdfeelnPvmyVCJ0PKxzMZw38z1Inm8wiCZTY8WNHZzx40mM0sBJT01xLqc10w==","signatures":[{"sig":"MEUCIErNLzdAlxqPC4j2RFI2DgaR8Yjbv53TdhOiJHoEbhZDAiEA+j+bMMQu/xRhkIhacyEP2G2GOyOQB2OAAyH2bPUBfYo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3w4sCRA9TVsSAnZWagAAhKIP/1Sj7VaJNdPF1rBh7crI\nvx7MQ3fsPLvd0Xe03TLqZCflr2Y6aoSvdHIx+la/5W2LwIQl7KqiBu0ZWm+Y\nfL6CZHTY6eJ8ZSlAUaLbcObnjg/A7IQymc0rE26utcVAe6m/ATYtKExcEund\nIN+lPyWz9l6KoDx0WBvHhjcoWrWKX0PlxG/mVTVM4ciuzb8JoGpvJQbpT22M\n7u2Irt8DEBql5MApPpH/cjZq6oHZcSuvR7oERfSQ2Li+iyaCd5al0yCK3g84\n1JN/w3Fdm5ywCGYU65c/AvTJUrClDOtEegNHOftfMQksfCrt/D0svpxRxRYA\nah3LbYtM2AMnSPDCxwB2rvFVpb0SrdKYvsO1gbG4YC9kK+iQmcP4X2X7zJVP\ncD21Yulh8kvTb2siNP5kfrS3n5WkZ1hrsqbhdauFQxi9LT4iGE5Ylc2fWBin\nN5VGJ30HY7OkwDYvI3WfDEObfvqX0IDpyDGLwKclyotfwvKAyB9d7hXT83er\nSOGxI4Z6Qxoq164sGytyCIR8hoDxtKPAf6k07d+3zZP9RuoEqFrA0yynj+4N\n7LJViX/6bqZroW2Z0hXswGtC0j4IsKnqFjeDkGgNc7QhN7ftznrI07lEbD7/\nHQAG8NRseAHmVW1P5PTPlM23jv8fz2M8X+hRdiG4KhbnDPjOXlITs6iu4hX+\neU9P\r\n=hRbu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"bd87f315f263094c393b530228c7b9ddfcfe7ccb","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0_1642008108268_0.20499925596760726","host":"s3://npm-registry-packages"}},"0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0":{"name":"@starport/vuex","version":"0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5e93042d3277db92e30fbc7d9375bddcfb8f5d6f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0.tgz","fileCount":18,"integrity":"sha512-YK9gBXzJlhVM/4r67b07Q1ehc90Sh+Ta4EfX87IaPZDfS0CEd199GRIYz6TPmAonaZ4p26Ym6j5B8CifMXgFhA==","signatures":[{"sig":"MEUCICpiXof/HT8KS+AKljvdHnaz1rlLeeKIB9dQMEne5n9hAiEAgadkGHdmAu2pxPmJHoItc9Z+DESSD6pKFy+fQENOD9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3xAnCRA9TVsSAnZWagAA/pwP/1bViIpkkw6DsC0gBzUB\nUkNSlGob19ZouUHdRmvt+K5kTCPhyT9/qEXaMsIc6GeQI0pj/Rog8Ht7DMpT\nT20v+FEdbF66jqSR4hTgrva3rpmcpuhH5ha3Dys7LsZ0ERSYp/RifjXDH4B8\nEZmEOv1Nw9nfT+1uqMUzY3aa/QtgW41cw+PZ8mgdh/hS4Zg/kt3Q0tSTHiZZ\n4te7Nh2ha7ddgTmfDAInWw2STYeE4r4+ReUUVJ2e8XxzsUDEYWeCOadteWLv\ny/9af+yJlG26ShZ1hO5T7Gla8AP43+irRtrgoObvSFJCEaxyzh4k+Vf3rm+R\njhScHkoOYTdlHpXUOE0xoPNgwJ2XEKbG0OFlG91ER2RGauXN5mhg2ZM6h5gO\nOOGwd8fX1S0zJeL3r7jX6Fp8I2ykK9LN5Sel7Nu4qq3v9BfBwLNaiB4RmN+j\nBhkNOTlbbEHmUqrK5fGqOuaS17BAK5ynYKlgTIt2BnvfyHdmSiceO3nINac+\nqs2/KKbIHDZcbfWoLnCu27+cLALt02nCrgD5dOm6X+QWIxhFYkomJaOM3zYB\nZCRkx3HWwo17Za7yoGqbVvC7mmBTMVWXl/MhweeZGjylNMbXn2j2arDwwkaZ\nFJgJWAOO5ZlNXuZipId57GqHy70hn4WHTDvGFEd9PlvmnXwAJsdSSLUXozy6\nvPBf\r\n=r8v2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"7fcb01ca2be7e8645d4045d9b39f386c89b60b01","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0_1642008614870_0.8812405762781439","host":"s3://npm-registry-packages"}},"0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0":{"name":"@starport/vuex","version":"0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e56da50f9425e50c717ca990b9de8dea86e67417","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0.tgz","fileCount":18,"integrity":"sha512-JFsoJkUAUb9oBLBASkQrVvAgpkD5eiZBdPWGUy8z4WTlehhfvLycZMN5ZNIHgX3u3KXQ3+NYCK4ZBu4cBnSyAA==","signatures":[{"sig":"MEUCIAkvDNoGR9f6A+A+sjkUSYuYXjaXz9qrmXAQJBlw5K2OAiEA8yAp19q8GC3lvbweKj/OUYZebRLqnHLPlq4UzWvIHV4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3xGtCRA9TVsSAnZWagAA/FEP/3FKKkmhLrfhtVqyO+wf\nHQdF1xxk5vc6BAsY8efwLLf0zoYF1CUenftoiFo9k5iZQcRlEH4slqQgEH3p\nbzPYzK2OOUCjI0tMQmU7VhPxHH3gqvwRHtWFDcYUjPBpf7EhkR/3ihMutTPG\nWxdj9rTB6QtoietKwbdl18prXqvlfXGds0WLvS4mnrgq5DEO0JCGTx6ZdCQl\nAkcGpMA+eu2nDp7MMMxZL9t4SUXaHaWqcxSXS2Y23g7JHFWs7sk5eMlKy2UK\nbXHvsTnUgF1kb96lEBaE0rCJMl+gaYjf/pm2BY9h29+ICnS4zMWBdt6GP9Dx\nGzu+weLlCE8J4jw/FimHVJQ1uMQSBd3NI5mrDwSLrKhz/98FSex9U1iFEJQs\nnAh0YvGL+hhxBCFbdKxNwQyJ5w7tAGlKs1/rhc5G6semPbqh8nmCYAdEdETa\nABf0uA+eqE2qZpmzMP7tV3+OU42aN3U2NPsr3WYYOOTxNBGh0LXAvQG9OC6y\ni9tupeeZnShm/jhcPi4mKy7xaN19yTkNgA1dEpr/CqeS9/5TgmkzJZlj/Rup\nNudMqSavNzHwy18kAnZhVWQN80Yx+wGRtCcCaqU61OCwEHLLCsp6yHthNog2\nRkeX0ovPLwtPtTmsFnKuIlZQEHn76IT5cZVvUvizz3avSpBCgKUACDogguqu\n1YTC\r\n=L8YR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"703151d3f7e695ed6fcb7f20d358dbe781d5f50d","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0_1642009005199_0.6665148395034286","host":"s3://npm-registry-packages"}},"0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0":{"name":"@starport/vuex","version":"0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"257380c30dc5d6b4b90d3973d8a8a63b9f4db18f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0.tgz","fileCount":18,"integrity":"sha512-/rqWJR4XR8Fjn22CxXlST/4lV15uJZxfR5SCoUVc//HaKeLkIZ5PPzruZrvNYFgmjap8N8IchV/USnm+gV+zCw==","signatures":[{"sig":"MEUCIQC+wQaNI59WUEA0vM1VLRGgPT/WZSfbykZmaU8oyOCm+AIgFEz6ZBqigBUFuOxzErukp7fN+g0VolAONJ4mT4shUJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3xMMCRA9TVsSAnZWagAAaVIP/3OYcFuzRay7xQBV97CI\nNVokZYYHXgpmbf66OTkyXOOdoCoLJ2G+GQbsEBsOaujs4cS00LbMpbBZHO8q\nIHluC1VNSH2rLL5YaPXXdKRK40Mn2/AurSJKVgB8W7P/+wuXUqJZypOF7qSZ\nPR6JgRcCjW5MHeEGWEMjYICCGjOBja+rYcAE+AYU2+WwCEiBYWEJLlj10AOi\nTPmnrfVEV4RhcmIshu9eadyvwzyAJb8ZSjBVFn1H9k4+pxCTrjznRFtE74bR\nlPOElfuuJFj2tbPalXA09LgqPyJbvUA7EYzCg0gQdwMdPj4EdHAAa/F8+ND7\nRZurHeqO1TFUXMXH2V66s13mjSugedXmWgsmX/sPY2NItx4ProJ3cs/e/YhB\n94FDY6jChgYUijAx8RmeUpFiW1J7mk4ucnquKYoN2J7RtU4ywM5T64U1oMJ6\n+skGCp8y1woCHXSUP2ceQAX+37A6YrPg4oWMqwXmGm7S1GQmW0htK9S3krBC\nTt3h3ePmfC3gUhnZ1u+ex/I+tVyEvahw1kV+aCrimkaV7vlX4a6jXhxiTZCP\nsmHtSdywa0QijSRxKbd+1+UlLs1vXnNDd0oVd+TXHaD2VAT7lNShc6LPYVdp\nCJtHEave4cgsPh1WaexEaw0KQ9vHhyV6P/sJTjjxrJCH6RUkc51KxO7k50Wu\npm42\r\n=HF4e\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"e9e090b5c973be58a526b0e0ef7ffe87bed83b77","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0_1642009356234_0.937716762275167","host":"s3://npm-registry-packages"}},"0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0":{"name":"@starport/vuex","version":"0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"0d6defbc769d74de68ca279bce7390a63e825262","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0.tgz","fileCount":18,"integrity":"sha512-c5Ihh6229jwRMiBMnV+p0xjEjHZXGMndajCDi/0rtzdF/D+bu/mNx8vQ8dSSj/fZXwnMKAr5qHeSvbODZdZW9A==","signatures":[{"sig":"MEUCIFmDz0rQ1Cb1YMFzsj8gM4gq1wfCv7970Y6bWWMAr7XsAiEAmp/iuwmVQYjVLD10nbpA2XrS9hpM3NPaRYrHSXiXy+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3xQcCRA9TVsSAnZWagAAQ/QP/A1obcj4sbJkxs8a9w6J\np7O55vDs3apWR5N2aXBIshaft37+rsjyjisdhzWd+bZ3AntPqktsGwoIsXNV\nQD68YTXS+H75p7v1oL8p4yW8jMr+xTkwzBapPP/xtH3GTXNfnbx+1KwEbe29\nYNzSHq4t90e6X7qzR8hFdShTADbEmGNaIX5HWiEVU9eodUIGsrDvp2xU03Io\nH7zuMJDRJO1GEgTvkG7fiMmoxB1dpZ0nLv/f5Uf3BIIkLmNwKONiCQfZZc6c\n/Yf9oaiJOq2kxnbccu+zFSpR7gBO6OvvlUerOb0sDgcsjbSknwx0+YRIc26n\nNIWLcobhPgupSu3fnuu48PK8/8CuxeKzQXTgkEMswI3CFdIGSOHePDQRYPYj\nfsZ+UJ+dDweP9v1/LmqnAqtaRbin6W5wvY8sElKASWO/MBP+5m76rOsjUSJO\np8pelYYdeQlcFkR7E3Jv6LKKA9xvChhZwZssMtjS0/LPGSwwbBpXAAFrgqjQ\nwuoe9nQSk6MD6mRq91jgZtFymHqV8WPQ8TGDqNwIHC1QYa0+bMCVM02HaNiX\nNlV57D9Gj1a2eYU00Ots9dniRKkHkHsVjrF+0lPiCN+jNuPNS1/ftWX33yhv\nxJpxzyOqoH7T41Ti8c4+fEUZ1RR6cy9SNYhh+BH3DqXZimdKft6o1ZhCELeG\nuC3Y\r\n=GqBu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0_1642009628735_0.862452223990219","host":"s3://npm-registry-packages"}},"0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0":{"name":"@starport/vuex","version":"0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"961cffd737a49840078e1550cd30037db5ad318c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0.tgz","fileCount":18,"integrity":"sha512-Dp3mcOYhRhecOVnPqiQkbb0SN+GHaWEApY2Hv6TmZDXvNa68VqREhUFY7972MCPFLaIKT2rq1iLbsCPLlCSO4w==","signatures":[{"sig":"MEUCIQDk1TI0i8O4CcinhEWvYD+Y4Uy4MZYyYGhf75XD9+ov4QIgZnVSH1ZWPrIXgJtJiAAhAnPbzZyhLhLIF85RzwdwsFs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3xyvCRA9TVsSAnZWagAASvMP/0ErM0uTvAwIMC97aQYS\nrWsEi6tp2K1j5W6bf2dvmpKwi6DvzrkLRSSbZcBSRAsHWWn5R6/EeKcTVEo1\nj7GTU+XtjGfCROPlNq5VdlAEjFoT5BTDJrmKxt75bx1VekEwt66f1o56Zx9P\njvBxE8afe4SesRUZcqcATlzKUm50HbsKZAV9/RAEEJ/1rsta2iFY1JZva2II\nGJVWbeZpi0cSpK3tSHB15dhuFO1q/e0jt4dHYUbFwF3r6sXuXsuZMqF1k6A2\niPD8gb5JHCh+SM7zimUSbB+CwjPy1WHYQ4jfeaZq0VSu/YUwjDs11JyMDrEv\n62nSjyZTLBr2Rq7UYhssb/fKzZ9NvTaPfKDQDOPBsiimCryRjWjB0nzX2pV4\ni6+dFUc/FOEa8cY04wNft9fHZ+9BbZHQTVybBvrwRGiIRZBJ/aoJTlj3mSCF\nTIzPwU9tMNqV+dxF+dA0bRlKSOrXXng++N8hPyp6/+ga1ne0dkAZgvTabLOm\n1wgtLCHWTPxAPl/LBK8noLcnI4aBc6K7Y3nIpZ9lIXQuZODuOzMn6JhSg3+b\naWIo6ieCbev0NC4kdDfeEORZ2tSEwT+7UEDdfpas7KW01mDZOMsu/Sz3sluR\nEW+8CbFf8cRLFWkLKs6MjGlMTWAVF8bv06GmYLojsEmKNo8YmGFkel1HvdFJ\nbA4/\r\n=qV2u\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"b3ce64c25b7a64fa144437f77a19936afa114e52","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0_1642011823349_0.643647520611059","host":"s3://npm-registry-packages"}},"0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0":{"name":"@starport/vuex","version":"0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d74ae1ff640dfb10df7077a8fc89b3cb03bd25a6","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0.tgz","fileCount":18,"integrity":"sha512-+N+B+Gw0SaJXSDrrRxuWhLviGs1AAjfYzcZinlH/Dv+LarziUcSrXc2a6+VZzrIKw1j576bvEUtsb0SbW9s65A==","signatures":[{"sig":"MEYCIQDY3/uvQQOiNLvQjml4ryfI8ViZSZS/m9Uyj8LPJJ5DCAIhALpM59QAOvV15VC5my3WpxpMa1G9A27ONWJFd9a9f6Lj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4HaMCRA9TVsSAnZWagAASJYP/RiK186dETeCvUKStAKy\nxheUyX4+dCAElclJm0g1kKd0xlNIG9GvRh2CpFDmzysGSnspe0rYz/OuJAA1\nOXaW8APsea5ke078cRP1AvCurIYKTOl4jFtAmeuecGPeOQafWXQTg8bBa40N\n8OY3bxxEM5t3FyfyF1vQHuwQ/KxWzpftvzL4geJcKELsObvBQXy1tc6D4R/5\nfa8N0+f1/s73imYC9WFtzJsP2muDoPTmH52RcYyE+f3/er+ecMbNGlpBbfEQ\n7S2y4JB/CZwHeb47W1M1a+ADmFoBIGUbVzMxquGO+Kz/2bPPCXIUhWgE9pRp\ntAoQVjZwQ7pAKv+IuWXvfQM8PN2LFhvRIAawLoDk+JFDSzI6dRW4+vhiWo4S\nOlP0ruYAF7nQx8U6xxGfngo78IaSpYnn++mtgEGr1uymqadqYtKMj3k0O8V5\n3puQ4qVsOgDfG0OmFe5vU4meC9RL3N7LOdtB+j/MHDw5Z8b71wGQrrQ2VLz2\nrFIv70lKuMtAt2PPHmo9AQJfWcd2qCvWcdyr7AC7RbomVZMzALUjhtzrIBUZ\nDXOtrk8Zcq5wzaNsE07tFHmuYBIoIEgLO5V1mnWDcJRek5dwpUWCT4cHxV7e\noC6BoLXoPGcm2WsilCU6PxScxKb+p9gWg2RVkvyZ47z0Cl2W1DhBETcBRLuB\nO2Vi\r\n=55pE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"95d8b00260f8e0439de99460220496dabe00d6cd","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0_1642100364370_0.22697554331038305","host":"s3://npm-registry-packages"}},"0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0":{"name":"@starport/vuex","version":"0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b85daba5cc187febbf4731bc54526ec1c7115009","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0.tgz","fileCount":18,"integrity":"sha512-nNrjbV0xf6ALpnhCO2yis9KDHqYMu3OYcteDbVBAkpOsNyvKjbyEuC2HSxr6ahAj1BuLvhOh2XaO0Y29lpVteQ==","signatures":[{"sig":"MEYCIQD8e8oj+h7SRT3qpDlannxgRSPkq5OvXnFVsf4gXYz+RgIhAO14HYc7p246oIT1NGfdolylYSsY1RP15q1AX6M1wTug","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4H5OCRA9TVsSAnZWagAAIAkQAJKUQoYTJyeqjwwQlVFt\n1/lTcEsJMk2MvQb+647ure0ua7XR5FKErsg/mAS+QYoIFVYvVrOb9+djLmj8\nJyofvD1Ni1P0SNGk8AA2jY9LfvlUsVGOQdsyQ19GKya7vU3WR7Q3KgV/r4/R\nEmbW+C/nas/TxJyHLUkJxjgRVvLZDXknKyG1nBpYURAt0onZ+j+j+4c1meSC\nTnf1Wkz6HwuWCC8K2XKDs5uLbxVAXKZwIeznMiA2qNGAlddAtcLGmZv1XPlF\n/JoGYcVW4ZdCNayqJ+b2AI/2+aL1YaLxpQSPV0AD/S+2evN9BBjoRaBgzKLi\nG0HsR6EOYY4xOnI/28FQAg0GJkLUO0oEypYGy2h7bjCVjqoVvzi/zdsLz+UU\nRypYp9Foe7MLEQlZ85NodLWFiBKdfDdDJehjb5vynzTjPhlXR/ovvjV6Q+GL\nNj/SznKM8ejhAy2992Ha6m4USuk+T6hzdAEjEoP/jkjDS2eQ2U8jGyGYpQ8x\nTIyPSvkVuCeatHucLny/XU0+PVOZApcscDpiqXe0D8fHgoBgEudUpakwrdHB\nsdWNftWL4Tlxj9KamSr9Iy/QkvepIo5VEbKtqngKa4VGwP7hDkcQtzG34e0R\nN30l+hs8qliOGxtnpNOiVozOLHjGqEtjm2vVI+QWjyisJ99y8U84Gcg2AUlo\nPXi/\r\n=LjUp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0_1642102350377_0.5585493406529238","host":"s3://npm-registry-packages"}},"0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0":{"name":"@starport/vuex","version":"0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"34b9eab8a6ff8c59a5e56c34529d77ac70968e80","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0.tgz","fileCount":18,"integrity":"sha512-QQs4XIWoXa5Pyr/mIGUGEqzCXGVxSThzI+JtcT1w9WujbPaHG+w7jwjgbI+QtN73cbaGO5XWRHuzZDvkJK1Irw==","signatures":[{"sig":"MEYCIQC7YElKmbmguchX/RAPXc3JaAQafkazUlMPj77GY5E0OgIhAK+KL1RwnzhXu+CtxTKASE5VrlO9RLQVS3Gf3btT6inr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4H7RCRA9TVsSAnZWagAAfWIP+waj/2NZaAQsHhUD3+AD\nJ35I2LLa+/A3VxM600jGz5PeYyKMR8ItXIASakbNF9TO1SekDSWaR3iqHEpc\nr/m5nlTLQcQRygbUTKEGzpST3kmp8c3ot2iwrU7GwnkR/F5L9CxNkdzF/kdW\nzORP110lsP+4P+8ThkEHFas+wActyD4/q4iRFfMCo4Z1okPVq/orgTt3ihOh\nnWgklgvtobX9CH47/yzHFGQYv5+3/b+tKbB3fbe7yH7NfrJa7T8mSqYVEQIh\nujnWZXWhGi/qh9Dx+VIBexpZhpDMaalqGxJnTk7zFRu4OB0G6jw74Uc7qBDH\nNDK0w+GjPs+ifm6U6xqeRfzYAj1mQRrcXykrda23SpRMz8su54QgkNBpZSNq\nGyW4FzUG9iNzU4ZqKQJK0pEVu/3DBmwuKMmpd+wdhI6VlOTi7JYMABNa8uT3\nXoJjVj96/jZvtbA/i5QfBAq/XgCp+I5cFagOOPBD6bBNC1XiCK0UhtzFhdDY\nC0MMdwNIPRRHOTOja94tK/+PVN6RvYyBlAuRsTgkc4gAy6vDrJQx1WFRguvO\nl6AVDe5MQMPwr9EFkR50EZa0E5zZP0CsSCAuBZjN8gp+4psE9jpgxsISE+FU\nnnyeteBaqw1hEph3RgPnBc8/wLp9Bt/sVD78MGkI6dTj9gIkdrQbUENUPBaE\nXJZJ\r\n=viOY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"23fd308f3ea91bbb1732ca8982bca99c6c823818","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0_1642102481049_0.5112679457369231","host":"s3://npm-registry-packages"}},"0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0":{"name":"@starport/vuex","version":"0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"869a3d4ae468a5b9503903bff2d7e54007954402","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0.tgz","fileCount":18,"integrity":"sha512-FNV5NTUmJc8DIkPV++bhrRWEed5H0Gv3T41SIjvELaWt4ySSXn3vsfxwElobvPVn3Y+xr1sdWaDAH1d2gpxxhw==","signatures":[{"sig":"MEUCIDKE9QryfDcZZk9x+XtHRCyBPddwl9KSCaYFGajnCgpBAiEA2ngf6SMbBsqSu/Blpt0VMvSQnc1zY2Dbx3qBRyqjSPI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4VRcCRA9TVsSAnZWagAAjgwP/R9PnvVejNCrNkTFS4NZ\naKhEO5tVsPru9uhnQsj2cQ8mPkaEEnnAtYBrvZeToS4MpR2VX0sLYLGH9MxK\n3XlVYFc5fRKpSNbgdLHhBp7anQkD2R4t9t/LbTDuQOLNC1pGC5pwwl4QR+Cu\nqY8n/dd9VLPlNxPXykTw8tR24cdN1I2VAfOq4B4+1pHfCl53TXmymIcETRAK\nV0PD7qX4RdN1WmvM8ZgH0N6Loj34r1OMsJJby7XPdOIEx8o4aW2+klHBY37K\n3XkbTrIRE9u2ucVdy60gGX9pKgK55gLAnWeiqs5kB9uMAItxEQVFb16nieFb\nkNMOx6S1+KlOyRN/MoEA5grUFqcVzpUZD6HAzGq63n7LgcL/WtlzxS+qX0tb\nzzzUzx1Xo0lzFPAqItcmewlL+JDhMKfI6iOks4qlDhKMuG+All15RQFiG/kZ\n1x+anpFI/q6QOYscAte7Nk/4xdFYwnvmvFcBfnd+KSjNTEJI6yOWVtvY+um9\nazTfpkMqE8MMO6JxORTIVMwgCOVEhgDBzr4a/ao7uyRDz1/QYfkN5QUzosT0\nah5De8VT9xlV83F+2LiQdFoVYpX6wiOXQF8EUD4dz4yfbbbVsPN+dGK8oHt1\nw8LMU0026a321gM9FymgceCu/wZEBrUJBkuPN+0iyDmuqS0fGVYzVhwjIFbe\nNUxI\r\n=gbEo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"d8e1978a185c3f2dd13cdc2ef30540119382bd4f","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0_1642157148511_0.8039003457084695","host":"s3://npm-registry-packages"}},"0.1.57":{"name":"@starport/vuex","version":"0.1.57","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.57","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"379cc6dd944aa7bb3c969b307dbc3a18d359f821","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.57.tgz","fileCount":31,"integrity":"sha512-HNT3kyUtv9jzMKja3cAQLZQDxYbT5gpbICpGMWemk9GN2SODU6QHJqz/WmDZFRbVxQ+zsqbTjVkb7/MaoBeJ2Q==","signatures":[{"sig":"MEUCIQDJTEtH9unjxP8HfJfEmwwGt9GLk70/ez9GIiq8sV/qsgIgeZ4uyJNiAg9W8dkyEJHujMHOrEypyoROMXJIjw2II+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4XIbCRA9TVsSAnZWagAAZ9AP/jjX//fD6jgnypnSknCv\n8wePvWFVd5V5ottm7CaBozKGny9s08DgiGEPEksfVN4Fis0Uh6XgauiVUQzH\nR0fS1H8uq9amnWAKS5G6D/dKO/5gVYhi2CUYbeQ47oPMZA5juViBVHky/RRd\nHDrUX2rmgyRQyUxksKSoDDXkVPFc2sjrHtLJBr9LI48D0X6qBCFIVOVbx2c2\nSqvAMnM3y9j3yX0yaOa/e1BMejqw/DqDatPCuPwcKXCodQnMcr8I5zzeGLvc\nCP35h2ajbo7JfCP5zVjSFiLv44Y65i0eDx7z13MYRxPnjLbFPiBTttHDqXhD\nQVoey89pa1bnE8The98K94Ybm9ODRRwqOHR4M9d+Xe6nHkOZNZ5wuFJgduou\n+jrEockczIKH3ELTbfa4zC+Ln406Xl9InAX6KwUDAQd0LwSSD+wwtm+Ksacr\njnDeyY1zLKRwMonm+go0JCpGrTtKlw1HgtpqD/NIe50eei1rQUJnBV37VKle\n4ovXMKLwW1PPApTy2E+FmMnhvg0VoeP5xA4FcytjD6ZxIHkLuqgDXdpL/JjP\nR1++ayJ+j09CxGT0EseTES2RdjiQ5eIt+QEZ4iZyk8vYUDRzJtBGjV7YFukX\nkK9O3m4od3QR7GNtfddvfqAGpf+CUi04HPDsjso0FK3LkU6kAixL/xX9D5qV\n9bWD\r\n=w2ER\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"8705f1d21c61ed4bcc9096222180df6c34d15b43","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.3","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.57","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.57_1642164763636_0.7967358248687677","host":"s3://npm-registry-packages"}},"0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0":{"name":"@starport/vuex","version":"0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"0340594fe4fadec316c2eee4a776735a6ad0f0c8","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0.tgz","fileCount":18,"integrity":"sha512-YsesPrqy2YFRYQFI2aYrv4rWaqjd622jYb+4itDgytfXGAUgiTW9jDvk6eXJ+1FnBuDCqG1pwRL9sK4mCzdzlg==","signatures":[{"sig":"MEUCIQCXlTn+r7ojjmVC96sTkjEduuA1Hs6pd/2BqziStoGSnwIgFmudgtR0Ppj4y41npNc0xKpNbnX6zT0nOTdeubgWPbw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4bsQCRA9TVsSAnZWagAAh+EP/0b0uOUhxWDDtReoZ5we\nWsDiTekf8iZTFK1zEaTfMWfJpayHHHTqxqosDWHNLKIYv9aHUdDHNtlkXFiO\nUdXx7wiSTAy/SvIzeofJFQdygtpq0taJcGk6J6RxqtLNGlZ3LwlNeD1QJQ3l\n3xS3kvYLAnbquLDURorIc7C7UH2lB1DyJRilzMPMsExtMPXb39sCvmzMVDju\n1E/y/kzS9AJ8wfnJq1ydXch7xa8saioYwss1QvpMZh5hvzPwOrVDzB0sdYp1\nwHhBMRrOyolj2d3f8PLBSg3OEdAHbbgyZC/okbCv/20KAa39d0KgSjOJQuI+\n9jg/yyq+TUXoqST16iz235yVLO37Skk57Yf0At6y00fSgkBPMrUAUNExm1zf\naxT11mM5wO6PCU7E/5vocaAEa0KB3ZG59codBR4oJBRF2s9oQitrOOlYnELX\n+QI1qTBl17QAn7szeIH3j/ywsof+XZ1XlLpD94RFdQCLR/gc8+Adl9L6Htdr\nLzFBgM9190KA1CT8pA/VIZeI4Z+cTJt2q8AOJyPtTTj0XDsBZZI6mEYFNadr\nDLmwKHyBiOrji3Wdnj9LEyeuMoMGlcZz9pVsUEMLLKBoILdp1A4fp4SlCZ3E\nlktDcNe9+N5wCTtEuCRxcjRRwHrPFB8EguM0NEve/nBZ2G5cyOEolp65UeU5\noaJG\r\n=qwLM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"cf35a1438cf3f7764e2880f9debbe135d7ae9c83","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0_1642183440050_0.8749919322200728","host":"s3://npm-registry-packages"}},"0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0":{"name":"@starport/vuex","version":"0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"82945a420305514674055744327a0417c9591b83","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0.tgz","fileCount":18,"integrity":"sha512-biltaCeASN1r1iNplo4XBlI4NiDEQ+GFU56CLd0lLpoVaiWhbh+4Vr9vau9gp1NxKG9WjvKOTlH2KiPGKiCnLA==","signatures":[{"sig":"MEUCIGmvY7HyGpuR44RDTm4Jo5NK/bf2A4gNotLl3JZBZbfIAiEAy6UNjdOUCD9GUcLAtbzYsEMJR7OLYpFk3jo+Y1p281s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4b6XCRA9TVsSAnZWagAAdU8QAJd+dJ7YArxaZH5Fig+Z\nKno/y4VcbMfM98gEsqmQXG9CHLUYWJuOkuTGQOb105Wu3FPiOkK6wWixV3lb\nr0JZOX/ANR5MzaVOwe40IKLpLfdRv8KFVfvvDZQqWuMdj9iQ0fqQVevC2y4x\nb6wp0TRaR9btPmYHpcVonIklGl0HaZ8O6hev2HmntRpyWk+m0CUugCKuHexo\nqADnymPWUt+Y06NTnGuPue7Jb0ha7grprZQfjVoeN50cBg1aTkE7/H6L8YOD\nMtzHXtBScvyEI1C4sf/V6loJ8KnJy4rPd/FlRkYakVH2HgteR6DL1MLtp+xV\nBD+mUFPfOkN89NEl2vGAkfbSdXwsMgmugm5kcwEExknDGtYFUKW/C2zy+Cj9\ndtHmc/zrr8zZNI6JPpFkCyZ/PFLXrQO/jqc6nUGIcrFJRZik94wI9cVofDZ1\nGFxbg3vMDn7GUHl52HwJz0bs8bFhu/WOCX6rsXKvPMVehXMrgDGR3fYP37hO\nDE9e/+hgHbBha3yRzCaKN1sP8WTaCS0/4RhGrA+IrSbRzCg+Axyel3WCVWHJ\ngolqtE1sLMBxuSc1At2kxIYzTqjZ0rsBvKX00l7LGZju/Kq9MWHLS9SdofKh\nibEBwC9ylQMbqkRU4jNFYaGpo2CxW8A2NRkg0NKLCShEzmWvYmjnP81MT7Td\no6GM\r\n=P135\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0_1642184342972_0.5197802158445612","host":"s3://npm-registry-packages"}},"0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0":{"name":"@starport/vuex","version":"0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1fb2dc18db1a7f9137a655acea26b7e401d0861f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0.tgz","fileCount":18,"integrity":"sha512-4bZLWT9384OkZ1khmcvVE6nVTp8CVBYFaMeyyljfkZeNKVqdaRx5OWH7WSvaclbzMJe/1vG2X/AJj/pHKctEYQ==","signatures":[{"sig":"MEYCIQDmW3tKl5sImzFYlZVi7Cu1PJv7wPuLKU+3rTwtQHFg3QIhALS0/M1AT+x/GcZKa21rbokFSNwy2oSobPdoMCLhQzv/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4cK9CRA9TVsSAnZWagAAscQQAJlol9rHdCbbMBJzDY1q\nlNuB33RUuiTQpNjiqecaJK13hQ0DoPRcVJ0fbovtRa7YY59Lr0DbDGWxx9Sk\nfoIb7cFO1FmRicf/67QCwdCEkKm72P4V1R7KqtQAhuwWKPtyiNR0CSRTgyMi\nYLxxkGNXxl8o5mdZeCjmj7V0SO6HCABbLS0TsQ4suA18F88I75DqgS4egP26\nwufTLwvMx56EyxYQZV2nkvgNfP7sj2qS7yTMtAJ4zCdj/nUGgZDD9BzV4B7J\nlBBPUhRdD5A1SdxvdPgGQGBkrXXYgqB3rs/CckM0QiOIBibnCfvemfYUus37\n6/5ehNNU0JALZHq8NcFnoUvpARXnMipGSbrqaUGsHaYXwhPR+WNwTEx4FEyU\nEUUYev9vFjRQHICVxNh5pFD7ujbTNl2Alq4f2wfr8JPsM0+Zsm7iF8KU/j2Z\nW5aky7xJFAJiNHSqYzySvUxYtnxrzCck8EMkAXwYccIlwW03q1W4MH4ICmJW\nUZkgka8il26aRaylBP3UlXOJ4HRzrDPdcM4ulDCH3AKyUvlxamSsC0B3A07o\nL+v8xYC3eOU2NvUeAW7ZPcp0b4/OHCDLY1lOSyTGGRtsowO9dI+yG8Wa4Cj9\n78SjZTn1bQrvyfKTYfKqOdhAI6DtwLWFsuqxJy3UCG4tLsee8wfbMCQfyDST\n4tls\r\n=RZO1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0_1642185405758_0.3569774543596691","host":"s3://npm-registry-packages"}},"0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0":{"name":"@starport/vuex","version":"0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"970b18d2cc8eb7cfa1234a2c2f687bff8d1d1b2e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0.tgz","fileCount":18,"integrity":"sha512-ILrk4OVaZuQRr5L3/jLjnwJQlj69mMvtud9nlA5PHbIy64gESYEhilG21RVnRkLtR3ft7sMCo/Ce7NFdyxQmpg==","signatures":[{"sig":"MEQCIDRm9KNbVYfi2qKn/7N++8A7pzu8XNh1LBQY4rab3+7AAiBfWCqPiHFuNKAIQWxx29sv25Yb3dTjcVpRekMNDtNH1A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4cT7CRA9TVsSAnZWagAAszYP/R+UOl3Qs/HCF7xgfSYM\nHNOGixmhei4IQwQwn1RRIGqzuQURWDYCNT4UAEb1MwQEzJOI/0RWhXqp69W/\nAHG36pkI+NnQaRFGznuJtPaizhibo730nzSbLzFu3PXzZ4OXfJ8AROct7Dzn\nc0xEvLvnvlgnJ4cvzue7XljAUfZVqTpqa2bcMGCqKYJLk0q+7MYlzoTWEIhu\njYEtgs5N/0vxCIqKJ+vorKKX9vUxTgHQkZZL0WDEXMy+lDEQpVLg5dPKgGA9\nX7BNFKaT8NUsE80P0I0wgVbMQ1Ij7TDEJJUfJzTHupNeL20RI8tuIH4VJN/g\npTmeWinlhplWE1sigzT+p/6g6jRqiwlZUrKE5MBILLx37s1b2vhXubaCcEq0\nHXHigfVw/6aIScjqn/FCvZb8+yYBgBLh7wvb4ZZkePPK4JH+WmW4NP3i65K7\npG44dR/8kQ4QyfskCFF8tncpnXALzL51Sk5Z4K+9heJLkiWEDFgiNkvHfS5z\njGfuNgrDy19ThBStdLDbpmWcja2wRm3EjBvF5pFRu81CRnDBdi1sCcsdya5v\nk6ueFwdj2R/zIvBULBLSW01F8c4VEfH4hMCAtXd0BNPijE1BiZgNa0ZaHTPS\nUpQOlhvvSz+bab3Fh4QHrUt6EUjc6V7GH5vnhvisSXmu3v6OS9ExVTfxFuZJ\nd9f7\r\n=CkRy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"c39c1c2febe92205ca86c9eb01c5704c5012c7df","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0_1642185979520_0.894163844854805","host":"s3://npm-registry-packages"}},"0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0":{"name":"@starport/vuex","version":"0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"ea5106c34c9e53eba02c6803532451c28bded3d9","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0.tgz","fileCount":18,"integrity":"sha512-ZPLe4GkE0bA2uarmIkdLdstW65bsr7IJ+QyTmfl3HEwYzXlFXZl+0DFvKTHaUymQk1Fj8JFZzht44UXaSUuiZA==","signatures":[{"sig":"MEUCIQCnH3p9rVpvMSC/qbDJm3GvLqtDNmL9b5lviU+TkMQ4FQIgHXtKJFqN/Vm2GxPbb+E8nyNyfmoCOwgvrym4Hohg4Cs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh4caJCRA9TVsSAnZWagAAUUEQAIoZU0KAwF3hASo3KCrD\nCwkdbkuZmuP4T9k+ksa4Csl3SYp36VtS+AOMJKr4k3ICqMLbzzd5xDM6IkTc\nhbC50aDZBrBMoajM26sK02t9r7D2cRDarLW+VCwqwlpzcnmfUNjZwvI96yUI\nQRhotwDe5LWEyTsinhZ02B6d72GNI/+R7xCXoPbtB9quGymcajqpA+IjtsD8\nHW/4xIaBDLrJ+K4mBTGbZz0Dvz/FurY80dlM9toUpBzGlhheYOXfQMpjB7Ou\njZL+qTWE1g2HeVbVnTQmOw7dERsrBXkWv8T8h6Rcv6zBIfc6J6mmKR/j3SFj\nPVppeeggrkcQm/poQjOp2vSTSp7OgtM0Qm656IpQw5WGduEJVGbeUA0IxQOi\nB9bnh6+cPuENw5JvD6leWb4IPSzM0whcySNHV1GQbxMcN7a7E1n4O8liI+hC\nX0keyUa0f+r1z34947QWTO6ln42YXxbFijjgwfcKNkayqv/baX7+CE7IGg5g\ns1u6DEkONgiqlG2brYHSlaGQUJllsOhlUxxOC/oMos+/vGVZlZWseLTX5uIq\n0Nozb0mlYU4nS7oUTZWgoKfgonM1PjjlAoLhCPsg8NmGGqEysGzUfmUKdq0e\nvaJsitsiaEaxxc4JefoKx+z+Xkx7UPsOqJnJ9Ray40Lou3InrXOhsacSFCO4\nidBm\r\n=4KCl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"45714691e2d1d99ce2fea2e39e062bfa1a51bce7","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0_1642186377082_0.7749592849137368","host":"s3://npm-registry-packages"}},"0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0":{"name":"@starport/vuex","version":"0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4233cb589c65a877d957eb701612ec0050b84dcb","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0.tgz","fileCount":18,"integrity":"sha512-oe0CrAcQYv+mGwQetpLpswYuMetVLwO0hJr/ma4I5aBMJSQGXvda39w1s3FJIvg0qsjJRchF0rXP9ZSQ3KXoYg==","signatures":[{"sig":"MEUCIQCjnfdGWh72uX1RZuingIS1JxjVQXx8lQpFs9jg//07pQIgdw6EYaL092B4JV4oH4EUxvEnAFvpivJtq249uo1/F0o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5pSzCRA9TVsSAnZWagAAYFoP+wTkYe5qVtWt5tMsPG+y\no2QWiF/q//1BGhk1iiF2nOPCfKfpcMKm9jK8Ekklb5HceFvnK4Tj7WRqoQoi\n1Yf//5CdSW3nSuZdxhg23hUYRISRQES479LflqMd32wY2XEOPeQX3e+kultU\nlCJRlacweHhaFONbN9GksfrVOonzGlgWgrSJsro03soV6ROUY+aCsDLSA1Fd\nJgtrgM4/XEc9LfsNiXxQZiWHA3AGZ9a9BBzyX4rpbBK73TvQ5QbPI/eiD1J4\n3xpGEdB0UzuY6v/dft2/PHtQVls3FCFnvf+5rplteWlzpbVrWyVNzcsGSOmt\no2jveUOPEkBortMQ07vlZym0btdWNakVsiwG8VfeEkLN+SvCZxsF5pIObWrA\nxyAfuSiIT6MsAcCcG8TuH/7bXRZIr/SgaRNdgKJlsX02TRQUX+mn/nI3Uk9S\n5jou6zITBJvsIuRM1r9nVOR4+V3rfLveW+c8VepUhtGXe8fcwHg/JcDiZhBc\nND0vWsqNYMEsHdjUnL3pyGQr9RSGJ4oh5FvNP6ay+IiQU+q9l3TNJP6nU9e1\nbqFztbyz+VsfIX2P3elUIwYNB0LpxCmiX8Omqj6Q0mFrtC+iakIkO0f/PSKe\nkClctXJl70vYkHFqYTdRU2GCe+mh8rNidew9mb1V8+juawQMyADfOFk9iPbt\nhlxr\r\n=Vv+J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"f8753213951794dc6802d13b23fba214d05bc546","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0_1642501299392_0.3537938522345587","host":"s3://npm-registry-packages"}},"0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0":{"name":"@starport/vuex","version":"0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1a9f6344ccead45ce60774f5981e0a97d74921b2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0.tgz","fileCount":18,"integrity":"sha512-G8N8RKYB9OPswK2ILFECnnyligKSuRk7LhVGS6iLpZVCyuW9barrl3iRMNFTWWWYgVrYo3bKjCH5GWGvdPQwsw==","signatures":[{"sig":"MEUCIExpIXM6qaFCe9yxfXgGbS6sIErPfm8JGupU9MfaA4u+AiEAqa9Rc5nhLZQpSNamGv9JiRWOTcO1/JlvnBc9WPIhKPw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5qMWCRA9TVsSAnZWagAAGfMP/1NC0wx3k9RcA6p03T29\nViH0ELo3iFv2uHFBSI7kEA6g0VtI36YEB+kB0nx1BxBY2abzt73ijeHMAYPI\nC66nsoy7vpmEG87cxPNpKZ96WGZLD1lLUmih/TRqowKqeb8AS3NcyKw3TQ1L\nUEDBtzOgzszp0hNyvW/cQKaq3PHm7aGqr6tBEBANAaVoY8rurkWpQslqvatn\n1Iu5NVqd6Sarx3qpU3klYxBx4d9zYy7OUzUU4jDKZPDN1S31BQ8cNQdjnVE6\n+ssW1jeKMIwjZ6DqLzNCnsFjQKRyGZQ7Y8KWtzm9Hqb0rBzBG/YiXjywhtDH\nSzety5Th8JhGRPJ1dNcqgf1QxG3v73lsAwT/bG64tsIMgZZi8XBduEz9cOiS\nOJR14shwbwSnfj8eBGVduPxTeIiGdGPT1m8DTgvcLfJO4sMsGTVIksDDuHfk\nZNZfJVEBYAq/1VzSx6gRFOB0qlEZpxuCHP+qsdjUm7y3LReo4IOj294Nxu67\n0ArSbU1eOC1I7JFeKuTYrSXI+ueeBjBVx3SWFgBB2klDA7O1YCc6Ak6qrFbt\nH2HrEk6apO4/Y1MiSbyaJD7+3lsULttEV1ikPS/g9jL2kk42v8XXwfaUG331\n+J5E943awa56tGsmCko+9dpPaVABY2vUmM2xISklforkiA3TNuBy4mM8vy1L\ntya0\r\n=iBf4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"d51d4e06d1346d330fd80fafa696821c4e47e045","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0_1642504982783_0.9611605467660802","host":"s3://npm-registry-packages"}},"0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0":{"name":"@starport/vuex","version":"0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"ef455f4e5233c6159f96b89d2fb4df863a6cbbe0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0.tgz","fileCount":18,"integrity":"sha512-4Wb76hItbGSVWHAB7h33MfBSAEUGmJUFodXp/h2+J5vFWebCpo3GCJYtoAMVSR5z+ObDUq2Fpf0GJNqUfQ79HA==","signatures":[{"sig":"MEYCIQDqvrL0i0Zcaasp2vTnMPEr53dmEQFQy0FrVgPIMexW2QIhANjxPsT/vsgNZkEhIhASBrWEIMy5OhLSBJmOKoLAUrT8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5qN1CRA9TVsSAnZWagAAyRcP/3MEfWwDWZD89YVr3k1f\nZ7NFHwnPDq9QQZuCIvvL3cyYMf0TF8pCq0/IXg/3tG538NIMTnx/mm7NZibr\n+8dlg1OqEJF9aduQWnJhtDRoiaRZW8+SO69wHzhCSM0/wJe81PLPWbVXExDW\nvFhpa3Xy3jYpKc4GBtMlOrqVIvOl4fd/ppB8NGe/7EHo4glfNMUyMWAHgwfK\nHI+B/AR82aD93q64p/Zgo+8SD0/OQ5nmeF9japHqmRM6QBBB4Mzs939PIyl/\nQ90uuDNwWspI6NSOJiTyWnPwINe94qljYabHVsqNftWj5021xbhRIhB9c6Pz\nIxFg4FfvpX5WQTvXr5IJGn3UbdNdYREg3XOpypz6WLQtyl4Rk4eO7+jr/vi5\n7OhPBcr5yjl0sd19kcOXxs2zpKDBsablQeO573RQXwWNYqIrwV6gj3izrK08\nmx7xhy8pwsjWL25crgdyb06FSm5/43niGmfX8/WdZ8Fwvh3HmE2dHl1++HzT\n30+Lnn6iLPPG7HqntkYBShHnBiWQAwM/AEa8TqEQ9YX91CfsNTZgBrDOK+4W\n8F11TYDJU7O1IQe97a9iNT7szmRQIIgiQA+pQPGbGtG0aKvJVhGFa9R533gZ\nXTpv2fn+Q2JDN7GuK/lvyylieHK8gi5/vRN0IML0n8T5HfjJ7v+a+1aDHhYG\ngsK3\r\n=AOzi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"fcea5aad9e13e94bac027d43d1b09ca224dee6fc","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0_1642505077198_0.4884461327006284","host":"s3://npm-registry-packages"}},"0.1.58":{"name":"@starport/vuex","version":"0.1.58","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.1.58","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"11aa4639178f0e88526abc62be4dcecfbe5b7c41","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.1.58.tgz","fileCount":31,"integrity":"sha512-+RvKB1tC+zhKqoNLA/kotjZPRVKZnA90T20kNsWVDMw88zhzrtH6lTod5u0pY9fgYakxNUuh8qowef3VzJ8JZg==","signatures":[{"sig":"MEUCIFFyVKPwBd5pbDGmyhmwQP/Y+9ICBk53+km9UxwC30HGAiEArvtbstUV3/3/I85khjammGBjwBO1YEedUrKXvDhzg+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5++hCRA9TVsSAnZWagAAxvwP/jFmGCXjDtl9BKfafA9B\nrnhrPQcObs9jWMBP3RGU1d381PdslRFv2oTyVohWowGSihq59FjvVXMoJh/B\nQlp/TeJMOiwUxYZhHkk775UWBvYAfYMsuGO14MbKifAFxcmt2/Te+ZBz4kIJ\n+VOUa8D0UO0QVQ/M8/ygi0FNsQSGnrSf0wIo+yQHUVOUsyFn4hWOKSr7f/rU\nGan82SAMVW0BRmSTJ46trlXk13Am5cysVT8fqaKKwe1ihHrW416BBEDRZAP7\nSV9idylOD60N/PVtF+i1Qe0xD/ziWAqIwZma9LFYM+vAtFIMA56398haFRQt\nny1J3Zv138LKFN+R+HPWSbikWjEeFxXLAk9WCDI9RclNGVezuC98QHnPff6y\nOw/WDU6EFVQPuCygdunn+fqeu6/ruLMTZTYwck05aibS010tK1IS/6X+sjiJ\n9B8GQ2c1b2iSCc020QsfjS86uDsu44zMrK0QO8nCBabdZfLSkSTa3D4HRMAy\nzA89JFM09YH8IR+NreabkpY+PJWrBOuuxz80qvz6hWSG/GAguUpHRJDDrSo7\nmktD+rfZcvIQRzptmNdr+HLKXs2lNme2X6Rf0jgRySYkG6IkxM35SgEAmG0b\njcYq8P8QMpoTEInKrHueKLJRNH6vrYPN71XT4lWq5l4AuImO1Q9IZeE7w+mb\nNiI7\r\n=9rJj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"8592c94e43592b17c7367606ace161d80a9fff74","scripts":{"lint":"eslint 'src/**/*.js'","test":"echo \"Error: run tests from root\" && exit 1","build":"babel src --out-dir lib  --source-maps"},"_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"deprecated":"This version has been DEPRECATED. Please upgrade to the latest.","_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"14.18.3","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.26.1","@cosmjs/crypto":"^0.26.1","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.26.1","@cosmjs/stargate":"^0.26.1","@cosmjs/launchpad":"^0.26.1","@starport/client-js":"^0.1.58","@cosmjs/proto-signing":"^0.26.1","@cosmjs/tendermint-rpc":"^0.26.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^7.32.0","prettier":"^2.4.1","@babel/cli":"^7.15.7","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1"},"_npmOperationalInternal":{"tmp":"tmp/vuex_0.1.58_1642590113677_0.11735602934589462","host":"s3://npm-registry-packages"}},"0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0":{"name":"@starport/vuex","version":"0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"14db06c36c81328801f844ea687c4089ef6fe19d","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0.tgz","fileCount":18,"integrity":"sha512-CkjvvRqk4Uvf0EgvAS/G7bHQOqGJO3zhK9mrtmm5ieV/bCx1MEyLYyCcYZ3dIuZ7YFNcNWbemuHs8HREFDwfzA==","signatures":[{"sig":"MEUCIBiGLbBWfEHxhHBENr61TZryxEWz4nQS29xbVh0G0pqjAiEAofEETCPHur/x6MXbVZ3xKvgTBnKvT9aBzNpYqnI3/7I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7qMeCRA9TVsSAnZWagAAsrgP/A2HzIRrNwKiEigo0XAr\nKpP8r8Q3tNDnavFhR7ARZXw1Aq3SOiN4U+DJAPDidMCKZO/2MeUJD92ME+Uc\n6c3RgcGacdHhvMTz6h/HhGAYx9Bo0MAC2Mtl17AE3s62giGiJjZdHiJoqaa5\n3D01WbIoMWo46In8iotLhKRdbUQDlJDcTKH0YT1loTvIO+v15V0vdFJHCvDc\n/VAPu2zXMf0r1kF5nuBgZzurESeOoHE35kCA/jIryfarVGketsJGPZkU9QFr\nsM0nywu2sNIF0BiAjjLxZMvxYHhrjfLPsamcveRTOj8jC9XFxNOvFIoYHOTe\nW3A8To/VrrW1bcO7isFP0UpBmtD0UQHRFFc9c2PFlDNzDcY+ThW81ZLp/SYV\n01XdE7JeBpqVkXXiF1O6sxI+DHfakFLHHDcpN2EO7Y2xDs0NDtpjhDtPd1pw\n81b//mwyRId5TCMSgbdwYxa+cevf4XHFhHnCLWpZDuhrc8U0+4ig1zbD5+Qz\nYd27XdT+XXSNEVEj6sGDS+F1XnwKoqTcZ82WR12nmLTMOxu3vxwtBDq0E+NA\n0sA8DKp43r5iR7WJaRVZiyIwI3WCUSkeNalhAv8P5/nub+8hKvpLOgGS9jSs\nsgjneluZU/26aSpRVek3ndxqcS/6BpUpitpDv+lWeMrJ2YAlf5RysbYom525\nXEF4\r\n=4qyY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"def9b8da9f37a2aeee71809aa138f09acfd51e81","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0_1643029278491_0.4690648208985444","host":"s3://npm-registry-packages"}},"0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0":{"name":"@starport/vuex","version":"0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"7a3872fcfd097d224d031abd56a90edecf66237d","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0.tgz","fileCount":18,"integrity":"sha512-pUwEu5ZRrUJt5iFpiot7uZfq6UIGeY5FjARVUaaXK8rJoza34o4UsYCe5QnFiYa9m5GzyEWEi3o70UAoq5vc6A==","signatures":[{"sig":"MEUCIQC0yPEIznYx2xc8SbzbH9vZLfJUMIqgLj4qhp4+woaDPQIgQbrFMXpYTrDZkLEY1LS2WvDojgCsNDrPAhdBq2CRV7A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7uGSCRA9TVsSAnZWagAA+r0P/30cAFmqNbFhqzgzZu4R\nmJ8EbvBbX4SXDI3nB0rBD+UQb3kqImfNf280GRJKDdIL5SOW0aMCHSLLTt1X\n0YtANktk/Yc4nlgD0L+WlsUbzSI6ewVGGydqQQH40gLZRElvFN5CFUGMOV5b\nzbrCnOAqVGJ88AIA7pz6sMo73IlW9XRrG9oIfYpbu2Lt5thH3/lbseDVpyv1\nCdL0UollExRC0EeRIN8zGboGsqgtjlGxAFhC1g5nC8iPa/ArKUdSKJWTLbX6\nWuXRERWSeJxp+tXjNYrHwbEENWUsDikcKKGPz+INuJR99pIlOrZRjxzV/25g\n3UN96N9A1wj+ekkjKUtYjzUPsKBnpshAT6jVOVlXKMUMCEaFzZsS0CRi4K0D\nxdCRSLz3J6viozkxXst1MjCZ8p+nnPrAkjqa06jhv8mIMhI0COnzBuQz1QtI\nFAwmX6GaQ2FBkzD6La9O82xsDrb0XTGbSBsUPWTDkn9NUUMfezX6tpUfo+jo\nXL0ntKYcw+euzSDgUG0dfRnI28+QJZ8X68LoZhnsoHjNZ3bjJFFESaBDxHku\ns1/WGQ7mOozGEt53qzUXjc8x9HQg/14cHOWW4/33A8M6Ob1uUefjrKK4Y2Wb\nn3YJfuvjYejlcUxTfaaZDYNIgu0lg6kDqbdYLV2ZV/UBgOegpvGt1GHyvVwx\nc1gr\r\n=7Kre\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"594304f0ee459f1b1458584ba2a9a8fbe3cef3be","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0_1643045266391_0.8598186275194295","host":"s3://npm-registry-packages"}},"0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0":{"name":"@starport/vuex","version":"0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"12faa3e3c1e0f481e91314b9dbe8373dd843c0dc","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0.tgz","fileCount":18,"integrity":"sha512-vJ/7cCV0XpBoPEED0bNEnZAjk3f5Hqb72/Xrqwi0vIu2LdHdRCkV5eCwbVtP2sEjetzXd4XVwAjl7pAhp3K6sw==","signatures":[{"sig":"MEQCICBMFV42XglZXqyeCGdFvQp/XNtUksy65yA1DOYZ34GCAiAPS9Weqzd/HOhE5vRdB4sROMzyP1JjqO73fJh9dRhBRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7/LPCRA9TVsSAnZWagAAbOoP/j/+djpW7X90h9gY8oLn\nJMkXZLYq/8h1T/D1TFSjmhz82Ku/mdCvBy1CsQdlNApCS1Safxkjh+jHWdls\nu9Zl6O+ZiiH8tUzETa+HxIb0RUkm+Btus/7S3BIM2yY81ubr4BdszE1c+8SL\ncvuv25rsBCQ1TDYtFYD3NuTfYks6SSz+nshzvqLXvpLes/D5o/Kr6V3cLeVQ\neO+B559GHM8mY2gcIAMiNq8+ke1GT5jLC5Ubjh0NM8D7ieim3obFQG3TzouC\no/iKtyCeKh2Or/roDfj0+X9aOhFzkxbExR/jQxKlindUieNf4uX7iVDl/nV+\n6lwQM99hMt52hd/dEqGWGg8UzaGhIWdhGeQjfsJobtmzmJ8oMbtIq3etXSwS\nL6Unas4U9ZbeQvmVs46DPSr+WtDdBCxDDXi6Aae5/q4KQmbXrDReBFn8TNoH\n3TBfYvpWvyIXy0gxHuTxQLz2XUaNwwBH48ENggwxKk7diOnEK6Nata7DOpiQ\njijtwXdYNXROK8wAWgUvecm0raPqiLlfWgqW1Fe2QBn4SVkfjS7ch+z/15wH\nQXfydqRxhEnQ2VRRoq/ol/Xe1FgAbC0LST5EzgB2zWJTgItlvileAuc1Lgch\nrHygBL90oiRkR4ocS5BWQZdwd0zc8+lh1dWjr2/YiPgokLjT02YZltKSkivz\nbybg\r\n=dnGB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"6fe7c90c499a197d533c0df708c64423872ec7c9","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0_1643115214950_0.45933409836975625","host":"s3://npm-registry-packages"}},"0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0":{"name":"@starport/vuex","version":"0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5a1ce6401170b6b924d0796cd8bc7be0af2868c1","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0.tgz","fileCount":18,"integrity":"sha512-wcfOmeEp+uZWq3qHGTvc1+118qG3ojAkaR9HyanXN2wFV1mgScHD1k5NDMn9iwzGxvCArdcTT3VRq2MRPBcJwQ==","signatures":[{"sig":"MEYCIQDGYO4opqkmFa3KyNYkGyN7ss0cV2ALww2RmdeXEfZCCQIhAPDWtiWWq1xGpckcZG6O5iwVpTQ36ajBsuxCiKmFKwnr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7/LTCRA9TVsSAnZWagAAfLYP/jl+abw0JvsEK/VkmHRr\njxIjNCVkh2W4coxlBiINVbyBHK1DXJzMkrWyN0zGnMwFOUKUW5NTjdfrIPjz\nX0a2+ImUhmH+FpeShUYqJrHb/zxGx2lmmQ6lFrUmoku1NL2aPtr1n8AoUPoX\nBmIeIhYu4KsoY8/7l1hcHsH3C27mgNzW+woe7eogh01h1H77nqq1wbEmFY/j\ncTv2WAxPaK71WhwuknzdUCqqV87Q8gzHIBawCXHPy0mktYtt1dneTFNh/1vh\n/dZBHmeazJOBMpWlDi95Yn8TPGA38j8/9eIP98pqA4NyFrXaOyrgYfNZ8jPU\n2OwYXFrvgOmGSFMza5rKVEJfXP0dKUgNh8uF4C6KoNsFxW2JDA+tv9cF3Cla\nW1yQVHOJBY7gkJWpfEyw+ApOqdeZJp/EZDBMDezostcv5k4h4C5Yf8+rVA53\nGcLQ1HKRIYshKTo+cXNg5RA83BkgUNpaMcod7iFSaGmc15mvkDofM7cbq4AJ\n6o2mcUC7prbbG1ZURhGuQKrM11gm+QS+vyNqhh4xKcJDDsRxCUAtbKxA/3UE\nQKnQdI8iR60kaYuL2eZxkAJy0aJp4TIuQnYtEjcpqDWWO4CPumH4nWOjalZ0\ni1GtlkzPqiSLhNv4sqdZy5EpUO6AYwpAqIIztEQaBVfd3G7m/ustV+8idP9I\nMQv0\r\n=KVBM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"e5bf4b3b7a241835253a13fa26aafbd8ba9451cc","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0_1643115219756_0.4335925587754723","host":"s3://npm-registry-packages"}},"0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0":{"name":"@starport/vuex","version":"0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8b5704dcdbe1c09c6f2ae9b4e2da65a4b87356d3","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0.tgz","fileCount":18,"integrity":"sha512-8Q0vGpx1V08FrkMJJAQR0e3h7c9fuqOLW3HnL/580Zaoi3WeqN0hE8clu7dl+b7mPmed+nHizFwztZsa2oUjYw==","signatures":[{"sig":"MEYCIQCxNaOG0FZpxzkb0SUTAk89L/xqXfFIrhXaLIBjxDMnPQIhAI5sS25PnhX2Syya0Dc466kUXAuD3Wv3tNwqq0vXg7nX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8EEJCRA9TVsSAnZWagAAYb0QAItp2cuuKin0YnZTZfuH\n7jyrwFzLlc6UTSYCvzTvLp/PaTTlITqjtnzVOgjCHqj0gw2XbrlZQqYqEOjv\nV6it35RNMlOnxSGY65DCO18CsR1ZqNB9TRqi4bqfUjW4qckWqM0sUqJbiz2I\nqR8V3f66L/o3nXRZTxhRqF96Z88oM7MGnhj75sdvvI7RS4ZjNf+9uKhR8RqI\n/pniMVYk8496CFloZp/0PgKaH3PjzEqv2vW8VmksloU897Zaz29qVKOPiJDL\n1dSSiWdS9Vop7PCiC9eQh5A+gTf3CFEhaWpggRAJ+U4Yyi9ftbaIubzrfcwl\nc7iPkedyaogR2UFAQlB5MY82A1TlEhTYfqDys9IzCs3FNlaVkaCsI/pzOAT9\n1yLiB6qm88apHVTjh8NNG4Ot+/EqWzhlEWLnkEgIqXVWjH+fbn4GeG9p/55T\nT6GZzQEZdhnH+J9LUfoIBdom9kLI9/Unp/JteSmQD7w7uaS7NdOAx8e7QTVD\n95uZVrXSfg8Eo8fdue+9qCGCedkx2OY4ddXfMaapO2BoBKAGjXqWXoA81sqF\nvWzSER5vmCkcB/F9dZ8EdcTZl+rAYf+ucl8epG3XpvoSaR3IZRkew9FwmGLf\nGwhAs18PXHsyef5dJJnhqc9/LVVIibhkglZlpIMlW779QdYhCLfB3CZ1TW2X\nS0ga\r\n=wZTt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"9cede7433d520c8bacb140e7c9b704b1807b93b4","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0_1643135241013_0.8850702700113156","host":"s3://npm-registry-packages"}},"0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0":{"name":"@starport/vuex","version":"0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"93d09f7b24c92b3fc3b955efd78ddd79cd637dfa","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0.tgz","fileCount":18,"integrity":"sha512-SBHMtvA80RScwE1QRAlAOnipAVyrKIO9GJLj6XDEl0SARt5TpC31OK0e7f3nL/6p4DOgv3fGcRiOyqiX/GGGeA==","signatures":[{"sig":"MEUCIG29bQI6L2x+e1kzoSbARfqwLZMJaYBTtmf8B7iOeR2gAiEAt0wHeqXMCsFiAFfqwLI7vL/j0h0WNXAYJL/h52NE2VE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh99vxCRA9TVsSAnZWagAAcAgQAJY5QR48XNly2T7k+8qh\nGxi4/hO1qNy/H+mNVmibPjZxXci0dPlbmo13P/Vn7rW21RwvdRVdA2xZWtUk\n80iPQ18iZZgML5MLOTr8Or4li4vSRw7LloHQz91FB8UH+wXLxuymw9tWfQOX\nMnI6REt9cPEQwIurK+orQsAdv0DNb77Uned6PSDVHTQ6pAkqG13pLoTvFjqr\nr2543GOL+wPjIIne0o7X+oThubV6nFq1IX2FtHdZODAHcXX+GmhsIi1PtdXn\nT4a1HylcvoIRd4LPJOpuponSqXpxt4OXDjzOsytPNT7wmAPLraly5/V71vsB\nZ4827fkcWO8yXZsnfd9/Y9/WFal4eHqB1i1G4am1RWVHrlHLeoxwJ04TmBSZ\nVrDHRTLr6P6PnqKhSApuV+ZDTfGdVxtz3XI38cs5eUv2BXrg7uVlNBkJr+kf\nuzw8b0RF++M+KdWniuRFqHOO2hwNLiL0S4cjyUA6HUyZGty5Yb9SVC+/8XKY\nvazpNtvoQQDI7vtver2KXa/BDOJY6IuB+/GJJkJWXQ+NsOLjtvLL7+Vktg+f\n5c4Z0mw6Q7ln9oIu69WVwpat3wTL9I82IVmJPXifiPxpDdYM1JPTvtqSLWDO\no69qEhmdEE73OlSu0us4exOCxOenNgQNkpahGSvSyjLAVI+v/AtobuuBjA6T\nx/dc\r\n=PNwN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"7ff441f9e0deeabbad279ec5a6393f7d814053fb","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0_1643633649482_0.9770859643359957","host":"s3://npm-registry-packages"}},"0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0":{"name":"@starport/vuex","version":"0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"52414ab91d01634489863cc054dded8cbced8200","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0.tgz","fileCount":18,"integrity":"sha512-45UTuM6jfRlt5W+oDxbS9xXp+c9qDMdFWGfBKNogkQQu3zAwDXorjtaCgB/xJ+CLqO3VCdvFlX/sTZiRpTYvAg==","signatures":[{"sig":"MEQCIEC1pqtJCI3NvNGGVYLerVBhFUWpxX0CgjUF+UsosGSBAiA6Gw4HLd1xseBux1yqBuXgm29x5LJxVJLBVAo0MoEb9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+B/tCRA9TVsSAnZWagAAstQP/Rm/qpSk9g8V0kw3NfVp\nPQKQBy+doc1o63JLVxSvMyXcl2cUayyYE+SFMO1n3OJyS5+PlHhpgIe8T3a1\nlf360ur04c3p7K0awDvRZ0HI8F5wJDMn+477tslSVzSiH3C8WwZH8VoKulZy\nBMzXpymSIvaggRfHf+9Tromeh6QEnZu6zq8r67JVeOMlk46YUakaj7L+583E\nLEXpgCkWU86d1vR8CJPJxRJxDPYfWWE0l4PtgPQDjvp8fKm297R2LlD9CMah\nvSeppGVA/+qvraqh5xUhuohD8lkZTWLCmT21dgAddLoY0canoyTwwLYsAycc\naDHE601mCYcow8BFB4lE6VVG4bDPx1ZAZp1kQnKVC8Tphaoq9zOlHT76xon4\nYCB71zvF1BFePUQpJqEUQTxbKSxb5orfF+QOcKTThUd7VkmtCdzYfYnxZrZF\nC695ccB1GfrZeCiYQGFuSKxH3jNpMT1FO5AErcdT4RgFrcKtJhtUH2zdCarg\nxMzpv+B6zJ4HZrQMWJd2e3DKZ4uhlDkwXdKiTT4UAc4JCaO7Kj/xhldIBaZR\nOFC2tPj7zNrWAuffEk1jwN3mz0FiY9PyKv0fCkP/xoot7fd5HSC1Ov56Ywok\nUI9zxI+/PvxB2YdckclNRmiYkuKv7xua3lLm2bAaMMzZV5ucx1U+svVu1p5q\nT5zK\r\n=8aHn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"844af885772c844269073d7fa2a7031424fcc327","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0_1643651053554_0.22228022581040596","host":"s3://npm-registry-packages"}},"0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0":{"name":"@starport/vuex","version":"0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b5b7c8f2e5fec46eb85451f5cde90bbfab98b723","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0.tgz","fileCount":18,"integrity":"sha512-E/VTiESZVCydXS9jD0Z0QjHbeoDxGzjeDq1WkIiNwoVsbl/R3WmJu29yZckj3FXyZeviOld5/snOfN5zwRYwLQ==","signatures":[{"sig":"MEYCIQDCBdS48AYN6r3uzxttZZRkE2Fxu3deXYKj82HnhrakWAIhAK3Knnb0W+5PRDAISwrnZuLOKZjTzUJN/0GVqgTzSZkv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+ZnoCRA9TVsSAnZWagAAmuQP/jwHoapJ4iDzsGaFsfkN\njM94rpt3zQV72GeEsnadpRHWzE59rsNLD4edH2WvuUI9OVrN2znK01AY7RO1\nwcMqTCy+ucEXdIo6DYZoMJLXfLdk9D2/VXQcwZKuqNzHx+MPfMS5TXcsszZm\n98xjWMVSstKUNDOEBbNC8gl/gN5uQlYtxzmpWNgeYicfdd/h198lOju4RHsM\nVc2XDFhOSuLRQU93LTaKyKWb7bYT8UXASGSBm21o76YbvZ6xn9m+37NNp94t\nD+59oFKUWrjCcoyZJxe8RgigNd+YaVSc8BNeLIaAzcFDOcrQLbMQzfvILjGC\nLcT1vXMjxR76nm7xcjlQG+wt1dATHFcfA73EiRiY0k6KwvXOBWhTL11wbpZT\nh//FiQ7ynbQL5yOlogA9SOI53qIK7s2eTAu8Jz/+lsSurW/xG61BjPZl2rFP\n6I59TdF6p8Sz6bW2i4eHl8GOI0NCq9/y5n9lET6EeExcr+wbRdrmMQZJagXZ\naR3+2frIrq+DBYsEhfqI9lUl9fFDYIlIBM3xGJEjvEDxvQ7RZfUFk/vxIsR5\nbABaL/bAPA4XwvYBbgp6i5c4mp9krRyvRhPC0eqTlpoqh/0c9a5NfcZSyQrH\nlPmYLToOY6Q5QBFxRWX0lEK8KoPext229m7XFrISwphMBu/OgzwmK0OV25/R\nWH13\r\n=8c/P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"270f910e763524f25f339289b2d0f6de7ddd821e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0_1643747815987_0.07401677553375863","host":"s3://npm-registry-packages"}},"0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0":{"name":"@starport/vuex","version":"0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c990f78dd8894231dad505a153ead4b0b74889e2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0.tgz","fileCount":18,"integrity":"sha512-c+zARREQ+r0UtcWPPYYTnS/iiZrEW7PJxSK/VuYBRtwlCSCuvWITRoqwIep2NHftObHX72qwgZZq3ajNqbRZRw==","signatures":[{"sig":"MEUCICMQoXcJPgh9z+SsKWeLkgvGd+58BelnGZizALr+ce1wAiEA4gY59LC9zK0qSMBRUseVwGqotnGZLxMZCmd7GlTs3Pg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+m3aCRA9TVsSAnZWagAAP6EP/21ahwT5TokcfvLNIjlL\nu4j3uBrSxVR975B0oWGnLfUBNhDLQTi3wI95TY57gMXmasZ52jHXovsWamqw\ngxKgJm3BJsdB+MxChhOIxa1pyT4gA4xOdmzgSBk+E1B5OXhknJeqaJ3Iq4b3\n5/+a7cKIxTbgonlUTPAdD09HWfOzCd/exex7kKrYrXAzVa0NCkdFntPP0tg2\n8w+aL1ypCdcaRaONJU/+1SSVeiwTHyYxWPAT51nS7NxAau84k6WWwb/abLCh\nZHH4XB65O4cdgUSNQDnXf4GBc/egrV6cRahV8rnsjf5qFuhCigyLq1GG573+\nBO4GvvQGEi0Z8fnjTYsOr9K6O5AHQmty2dZuSzKSiogRTgdcpik7IiPP/e/V\noQe+5MV3bRGemxRT2ux9TaChpPaVYuZ8bdy0KYYg+KePth0334F55RbmExm0\nZQIaGSu1I79AsI0w3867OVU5pJpy2mY0vCTkX19h9odo040aRCkNnajTeJ0g\nb1IBlNi4GRxutTLuE7yv228aB4WAhB2i5YPd2onihUow6u27qdn+3xsZ2Te8\nFADL4VjCgd+2pHB6xSOf4p8JPf1Njc2XHU/K4N76EtigbtzfS7YsGNVDt9Me\nfKOzRj1PAkCJXGM/ARQcVlAO+URj7F+rE/AzzFp5om38X4LKs8XkE644TO4A\nnG1H\r\n=rA5/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"0087759a4b3532534b0383734746689cc9aa92ad","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"^0.27.0","@cosmjs/crypto":"^0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"^0.27.0","@cosmjs/stargate":"^0.27.0","@cosmjs/launchpad":"^0.27.0","@cosmjs/proto-signing":"^0.27.0","@cosmjs/tendermint-rpc":"^0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0_1643802074186_0.8630014924537288","host":"s3://npm-registry-packages"}},"0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0":{"name":"@starport/vuex","version":"0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"071d99a0b816a0b124a20ff5eedbce5b70746c17","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0.tgz","fileCount":18,"integrity":"sha512-ArpWJZt1x95VOqh6SdgatngRDlHG2tBrW1gD4lYfQCfn7mZOM19NGGGoZTVKQgLVjUeIlw2PFwQ9J3lZcDtPNA==","signatures":[{"sig":"MEUCIHi7+fLZvxs/KWSGgk0iENTCbN5Hq9BKZ7vRM+YKMXpFAiEA7xRtZgpHriDmzcUctrY+o6bKkHRNycF1GqZPbCZDroA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+o+gCRA9TVsSAnZWagAAXWEP/2cYmHvkoQ6mzaXmJuXQ\nwVp+lj8xUrgRvke8jv1PcPgsq+3jgCXUMTxiMeLPskFZA+iuOueogwiEzgdH\nOHQk8SPvqY3PWIzeNfTGjHzGhxKnsLh7U/oxG1T5P5etfs8DAdDNdmN7SwuD\nX+dk74b2HX4qQx4TcL7Sy2Ueo8n9v7zzNXFaZUjjWSg/7gUSpMufx/j7kkC4\nDulqC+eYG8eQFBr798RgBwMoJTPX3xfFV7Efj06p4D3/IaDuHSNB8Z/W/7B/\nWbYnsD1QsxnCkSK7ZNmEjlbAb6f65OfL6ErKnuipyVUkNbeRlX1PeRWR6Bit\np3/EaDIz/JQPozoyqkloIgNk0omyNmhhLDBppoL2FkwAe2OOKrV0k5t3jW82\ni4QpIamNaWtFtfjEbYDw63IYcJR/WDyTBnyHV0xO1vk5U9h0NQJunOwmO90R\nmoZpJJYFhLlJjB9wfnq4mGkJN6KJJPrySnxiK2O5GHA1eWndXTQ4Fx+nW9t2\n3WLngDK6rXTBe+9jXbi3pdGDPY6MJnNZBOxVGiR3PqLXF1az+muAbROg7qNF\nsJfwIFQidZqIDqhgLQoFGHPgHJVhOrVc7e/V7GnpQRhSnV5h8WIYsUhWoT3y\nHZa9zjubBbHCkxqQdTnkn1V2VaVyHDZNEL8UERJxRycCaEjsqMN9/vVpuJZ7\nECtN\r\n=RXCw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"a38dcf50da8a428b5f2ea574fbd206306e2beebe","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0_1643810720741_0.31077767778622767","host":"s3://npm-registry-packages"}},"0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0":{"name":"@starport/vuex","version":"0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"6a481c406479cd8c7fb60209b7a8f569a6028303","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0.tgz","fileCount":18,"integrity":"sha512-6zsoEhusEtqaOVkT8FtcDamsDhihZjnLHsep6SQXWJMP3JpUTnDgf3QAKgobQP3uG+U9faZNtz6X3Um46dGZXQ==","signatures":[{"sig":"MEUCIAOz98bsx/iKqfQEr4otc4d3koi/qwBXo/krCYdGkMmTAiEA6AvZd+++F2sCQyYpkunwqqxehrPvM1ZIhBYR4bCE+cQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/RG7CRA9TVsSAnZWagAAGL4P/RRmOwLVNDMeutB7UpMw\nXssqoVNBp2xEjlWhWtQ9ykReUtqM0wtvTw55ab+iGgdpWyjaRsynMVeIKuys\nbZF6V3t1KK1Ie5tQrD1EIkzzO6vO4r2Yutdkk8XUsa8iD1y/+vT/0II9kDft\nyhQme5rhlCijyEcZGvlX4guyWtysE91Jk3Msm8BtCPjaamgA5GHUiMafIZm/\ni99uw09YNSjzRw9pBcViRqaJHyYsGH+ulHKukp/bA6gZcXS7g+5+zChZ7dSy\n3s1slUksSJyi0wwi5ccYLLJWC0bwrT0ORfqXnYwC8x715wh+eG64rCGmXSes\nRwsQvzDfnFK6HiJkDK+XielMoaMhi30LdM2iu0z0WiGkhWOXRNTqR8H0T/a+\nd1d3CMg1V3bhDEGskD4txoywXZXGSUvZ4G/MKmvySXV4QJOIqUkxKEzNaPZM\nXG1lnii+19yu+tRCTOJBpOVxcb0E6LsQPAMWmY1vN6PD7Dv02JAtJu+jL868\ne06p7usdhySrRwYcctj2olyQx48iDJrP+tYx9nvPwkxMp2PcQSc6HuJjtII1\nu0ZeZIH57YDTD6X8TfUsyB3CaLsgqdRGCadDfjQlHUXqXLVZNoE2PR7qte8A\nJxAOSiTGFeqKcy7/qXNPdTrHZLPsiBJ+187D/WxeWQQKW7Z4BVdPc7u/nnAa\nAETm\r\n=4c2O\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"f08e36e48e3bce8a7e33accac22456939c582e95","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0_1643975099424_0.6020484174000658","host":"s3://npm-registry-packages"}},"0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0":{"name":"@starport/vuex","version":"0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a6e9a8d6bc645c5898bab27d1bacba5f5eaf91f9","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0.tgz","fileCount":18,"integrity":"sha512-abS4fT9/QmZP0cnhbB6kF25VrCHPikPHRw9Pcpag+WN6V2PUy1s8Ix6mnExRcKTxOY+ENC3455aMp7Qan3WCyw==","signatures":[{"sig":"MEUCIHqDLEphDgDGIAziSoPUw8nfnUYUWjX4F+YhcQn3wWuGAiEAwpZqITjjC0wKjWeNKx1qNpa+bdkDYeMVfXVW4iKyvXs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/WqJCRA9TVsSAnZWagAAMbUP/jnk3habrQkTM8r6Ljjf\n0cJU+16bP9MvgbiHhEmGncEgQaWue9SGuZBcCXA6WoXm1Lz7axJhMnzAXH94\nCXVRV6dYi6Zkvp56Ow4/prEgsfs/XB3ktVRJoZDBSP/Gl5VoGTX9xbYbvGs5\nNny+omZM5FHPs0qwH675XI3U007VGnytfjeaSFxH9hjZA3LK+rHnD9vopJoq\n7JjNumYvh1LP0sJ/zXL+cbho0pqyK1xHjX/Xbit0brgxuf/H6kUEFJSurLbb\n2uPYAdGD9gEr0IR2DQqKUInvCoAvr11hTRQLMxUf7YhbYV5RB68Uevmd+N90\nb70rSJpoWJkGSn0rIXTIMATn1sFyRgPf5VbkT2qdHFechYvcYRs33CsRY324\nHt5nqwMZLN8SwDx34xfX1sED0PDBzTqY9Z+80WW1ust7ZBOzVzKY7bvyxGx2\njOYy0lA/9kVm0BURXKvA48wWV7s7Am/XzxWl8tlPJVcTqgR8i+vx7DP7XIpK\ngvfqWJYuZQyJrpQ0ERoJXc7tE/BH2fUVOFjdzH07phK2ccTb9zr+zCb04ncB\nQBrLVosJPTwilIZ+KJGFHPfUaSrvke8icb6Hcyil3M25rJfGpCCHF+HEvUxm\nkBo8sgkBzXPcyi6RT6Y/pXdZ7zj+r0rZindsMjd1MqL8Tp2RFXCNNMzw/Qyv\ny0qe\r\n=yYen\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"389cb75ee282c5a82b7c92ed9833ebdaa549a856","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0_1643997833537_0.757912365188931","host":"s3://npm-registry-packages"}},"0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0":{"name":"@starport/vuex","version":"0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e769b455e7f3d50440964366289f9b96697fd1e0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0.tgz","fileCount":18,"integrity":"sha512-ULVjK1syt2yADzZ/fW/J8vxcDfp8DyAF98tx2INphcClP9vGhj3x/8/wbQy1QjNpvNV3k98Cb7hSIJBHbW1zaQ==","signatures":[{"sig":"MEQCIE3cDQOfmPVhHOVgKYZ0sC51dGOdkfqfhEfUPQgRcDyLAiACWQCVhXLk+xyL6bkXF37e+LSqpNdSxWr0NTCXWKKXIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/eX+CRA9TVsSAnZWagAA3CsQAKGWSRYeWKL/qDT6mOvn\n1mjdS1v2wQUZj03drB+mmEjzvc+IvwFArhEZ4Tb9tzFsha7+ewkaGrFEy8aH\nWCu1a0/SGFONJOmU7vJBJXMYWetiAc1V8rouy3wamwxln2rHw5wIM/dYkgev\nkWpji+TkOHK9DafEwwGL9Sma3Ya5FHi6LKMYTygY7uMWt40uk0Z3TqikVCOM\n00UHcMZ23ZMcQs9NmZ6Jltz/HkYBYsXOy2mZzekPRgoW651AtRGHtC5EyDru\nAJT36bPnZajlB8KqZBo+oJEmLBuC8h21SZ8T1UKviZAYNMC59x3Jki7Idjn2\nJ9YA0htBqSnWGCjRF5Iasxqu0C8EdqPjEEREfpK2AetBMsPTgzPyRagP2HDC\npjiUH+KKW9qjAvO/nSkz2hYHxJ9TIyAJ9qUvv3bKtCTg2CVhdvsKpEP0+ZaR\nvPz76u/kuD8GKQghiINhWzy3iMsryhwvnVPGVZ0aLLAVLCNG3vIP2rSPcRPr\n++Is84FWWJU8J0XWLE5MQWiypoJ/xgmge/z1teKAdbOnV2ffRC7+3z12d4wU\nHw/k81FWYYss183gxLHyvbWgn2eg6AgwlbB9TvanWpiflzx36LPKIKJ+4ME7\nC35rjbwIMeXhN+IKcaXKxLvDUnHwcUaehEOsRPS28oWaWV2+ia4MMOpCI4xp\nWWlk\r\n=WhcM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"cc46d0808b0071ba565e6647c2480d260037d574","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0_1644029438496_0.9728838858994495","host":"s3://npm-registry-packages"}},"0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0":{"name":"@starport/vuex","version":"0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b035a90a8b0092b8ad605cbcb8d1999fde5aed45","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0.tgz","fileCount":18,"integrity":"sha512-9JJss+CBLACIl1JyILlq5hvMCiEAdlmgioCYJ5geDfrtjen5fwFVJ2qvlEdz2jGpSxxPwHvjzMWXECgFnwZlBA==","signatures":[{"sig":"MEUCIFtglZ/apkhVG4027JBgvUSqS7yoElM3dsiC8PfUrGdGAiEA2YosYcPhEtItefcn6gcH09tqXxOA+2cZrTdoBIabgJ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/efACRA9TVsSAnZWagAA56AQAJJAx6n1fQIGg+NI2Xvq\nIb2NP4TidUFk48nQEvXsCLyEiRWKAMdM2oFsV3pPVa3hhbIrWeHY7IYJOWWr\nBptMJAkXo93n0qfZATEvoGxSVvw1Sloze7Ms7NhRg+ufQKLJnNJUR/PSJNNp\n17A8Xk9RLaO8uCaTpOUCCNtpjR9El+Wki+LpbkfFO8BFOGvEaO/PbCMVMn0S\nYpva75QJNyMe1YGZiDXJ5+vr8DLBXaYu+6orfmzYNYMlTcqwJP8M5ZoH/f5f\n9YMiCeCTV2bTh+S2EV2IdOYfnkLfyEsedw/BVG1sOMuY1A31VQXRnjNgCyVp\nolwaBvaxvxieIb4XE9dQZUvP1AXa08AOwXI2mJwGNb3lw26Wq2Y0AlZE65uA\nb1OUUKPLBYaBlIYT7TY+RovJzRa1zWLzt3ztzKfbSIxj9P/x5R5iwYvivVqu\n0c9KlGBqCS85bnN6DyZxZkdzSGKR6xnRIPIM9k0JtswPrnCeO6ZUrTGk1T4s\nE13tGNhoZMChmPBFQ/EbBEuMZh5Lco9V8lNE12LQ74MJXdPVZLRTGkJQl/cL\nYxpngXLPUbpQ2HUREy03Yrmhne66smdJW+ZIvH9AF44iIezh7Lj/C/wuCGI3\nGtI632f5/1By8XvZUZQsg/FlkMFOR1mxxDC3Lp5udMbJJIIXGDtXDTn5VKKo\niesG\r\n=RkZO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"e04728860543f0d2c09c72955035c3ee66b5a795","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0_1644029888794_0.44461207011775716","host":"s3://npm-registry-packages"}},"0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0":{"name":"@starport/vuex","version":"0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"813bb3ed2a2767ae70c682563afb63ff44db771a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0.tgz","fileCount":18,"integrity":"sha512-x5xpS08bnARdgP/+4igQVpQTDWrX9TRIzk4mGcclYZs4v7EmFOWhHMx+6ii25NqvtWfNjTmprjtZzPcQVyFUCQ==","signatures":[{"sig":"MEQCID0IgbwDsnaaT5yQGF2PDUstMToRI9O2ej7clD94JzLwAiAoy2wIIPpuqNcXi3PoTvV6rEmRRFaxCUyB86zWfU9kww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAQpTCRA9TVsSAnZWagAAzO0P/j8BMiF07AwDh+nlqF5x\n6NxY2gTUHvYbJtf84srXmLB1HSualT+79i6JLkFXGBHlZlHAAC2Wp81Xa9cB\nK7FLlb6fWGXMrI2Kx8dex1qkzCrAGBlI8gip+WGfBJPw9xiqdHj4S+UolrUE\nu6baKLlWcByGi1COGZ6ukCoQ347CnOxktTK7miBlDdmUvQRL1QNUHBMWAXEa\nBuxKTHQyClEGMpC3Owt6DK6vAlh0NXiPvpc8NiU3whbV4qbVc+JPxLLI0xnQ\nCeDrsOjNQUG4lExcfcmePker4fqoR/k7UftT5Zc8/6LpEGN2qZMqRnXZ3PRj\ndy1zjDBQxeGvsnrQPKrp+BJxq93OsVK2h4G45oGnURXwwwEvhKgLOBjMWc5p\nuFH6KT2X/UywbU8Ru2ORrW5fUa97MTMKn+AmBVRme8+6+hRlje8NRKCo5f1W\nMKNPzxJpEPMj6Wb7r1sW0emvt825CIhv8qDiruCQPWFyNP4lgU5pudgqInbE\nMX7sngHcvaqWxeebx8TgxQLMGWl+nT0y3iPLKeMdkOVL849v4pq0iVWBaho5\niHSdFWU9O7lZ62lqvvI0cgR4pZBQNuV2dDFS0yk+JhM9C+4B5K7ID8D8oijU\nwOhBvOxt42RzpxFbWgGZ05sp6HFiVGPj+sjeNXpoPiTAGhilFtB+if9Xnkwm\nBLAq\r\n=UZ4z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"82592bb65404c9c42d24533dde6cd729e945a9b2","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0_1644235347529_0.5620278355813533","host":"s3://npm-registry-packages"}},"0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0":{"name":"@starport/vuex","version":"0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"61f9c085000cf8074390dca0e95e87e607944f2e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0.tgz","fileCount":18,"integrity":"sha512-KW9aRi4z+rN3K7dSztkEFkRygfMPHj5Oy735zMKVrbdf+eZPMppSk/anOXX38qT86HqkNpHuvskZMVjAx46prw==","signatures":[{"sig":"MEYCIQCPwjX8KKTa4bO4RBuVGtWIR3C3aKasunEkdk7BQJb4xAIhAJTmNWeSW56BriBRXCuxg/ZHzw2UGVUBWQe+rwF2UqkD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAVU2CRA9TVsSAnZWagAAyKoP/jTkIVJRkh3hU4+yHwPe\nPuk+SkoZuQI7VLA/C4d55/mAVs0AQsyKFMlgFSDvM0al86FPrKoerRXuVtVk\nUxupSXwsk7ly6UNH53Qa1JHyE8NlZz88fpCZtX9s56QNfmtKbbwLQhI/5Un8\niLnWhydIh1++VWp9YUvXHCX3ZRzx+SsqykhxW1R4J/24pnhcOoGJrsk/L9p6\nAPXY5GQlwgh8M92/NpG9pBqiOk0rBlmpCKgDSxtQytfFv6z+ipdS7lIxydEM\nxANKXag3JA13NvYg66E8jZuoRct5eTy47J5H+4OJem/arEtA5McV0UTKalap\nPGq6mdjAWosC0Fv5daDRHmwPmeJdhlQXLQu/2C5zzUKab0SnLMWvK8fFtRvc\nWx/Qgj8hlZPJ0EIxoRfKyh9MpWd5XTlnCV0PJ03u8ifZ6J9K+ysbuFr9dLuD\nN+m2Qgptdm9qtGT3992JOg8jEL12dg5us/crk0ItSokfETYZOyUbwlz3lo+K\neHnqrtmnVY4CVY+qV9sPhFQ7nGVU2ZRGPnGMJohNgvPdbArfrp75xgxAp/W1\n5MCJK/VSt4zD6yX/mcyQZlQbbiJCdTwE33jhbCWz4z5dQRKihrNyRX8OZ+4l\nCx83lHPVufpT5NqGPo9SOwq0kX8ihvpjN0dA0/gDtnN78Q2waw5S9DR39UlZ\nTvHl\r\n=D8k6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"3f6f21e2f0a39e16226a292f94ded16a06855fa1","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0_1644254518288_0.3973660932889893","host":"s3://npm-registry-packages"}},"0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0":{"name":"@starport/vuex","version":"0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3b1ff9a657031372a37ec0771fe8c776825c0d51","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0.tgz","fileCount":18,"integrity":"sha512-e+ej8oVBRyKuVpCtW5TUq4bbC8o4DezpLkRY+454YapKpsWUZjvzkpu3ITxz6taS50zFo8HZ4yNrk25k9aH5gQ==","signatures":[{"sig":"MEUCIQDXgMQAslGIfwpF3WgYe6NLMXWbdcAYmM5kZ6zVpx5LpQIgeYkWIQn9vEH6Mlz64jBzbxTAlc1EbXf/ctyH8MR2b6E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAVdZCRA9TVsSAnZWagAArBMQAJCdRBs0s5M6m/iRFHz+\nVl/y2f3RHShiVbGvD/v9AZccptYSWBR4F1LJGsc/el0sJyYtiX8dATAjT592\nZA6iRLak9KRJ7/L2hpXVgHnFRbVK8EuPowabFCCH6Dlb2FU9MgOMfNOQc3To\n7J+1XC6fdkZesehlVQdT13mMUhz+9JgPvuGSaTvncY6apNSoXdhu9SpbQl3J\nCxS1/mKfvTZNKB9yqvat1H/a7IrDLZh1gpUGbqhlOFaBA37oQXd14OAlkKF+\ng8an+6Gfts590S9B9ZSy0tSL+VbZgFWgHNyNuBt9FtCTnLeX7+4SicP5pQmA\nxnbVI4JGrHHtWBeqxy0S9Y06gm0ou18XG7rYH5Fr34UzaL9hpA475Qh7bDRc\nt1pCcIGLBetQuc+8d/W/f+tlxfJdb7i/n86gIHuU2ILEPZ54cDV0eA3kolWv\n7jehXbnSRV5imAG3/2Jsb1Eo02vfrJZ4rmiLRqj/DcLl/eKv8dBzG/P5VTbB\nB8aMEqcWIgUwbS0cYRrKHBsDCpGPeNJKYPyxD8rdVDSyoWwF1imIRrNwTZXJ\neBm2H5tbccU24IoI+trt71ShrqGXvMTsFArH/8DST7zsFHUtlZoVX1XzEJHL\nnLvVxyBdGmMMf8ZjtkABlUvnZDK1QD7MncbFscY494RR2oGuaA4ZJ4e1EMx3\naGZb\r\n=k5Rb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"468794dcd7ad7daff91a7073938718ab62b26cf7","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0_1644255065456_0.3329214100283995","host":"s3://npm-registry-packages"}},"0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0":{"name":"@starport/vuex","version":"0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"8d4f118899fdd09a24a9af2e1b1172b7807eb92c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0.tgz","fileCount":18,"integrity":"sha512-HXXUDg/4A0oDBw7xbNPyJFxGULRm6adPqVGKDLVJCPXG+e30n27kEXMyd/jtvx6930BDwT1dBC1obMU9TF06Wg==","signatures":[{"sig":"MEUCIGWwRvlBpYMMvCTKMNk4C2v19tdNQ/AEaaFbU5J6L/L4AiEAzxbvntYL/53ltdVWtpNeeSMK9VyiogQFdvAr3Eh83vo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAqe3CRA9TVsSAnZWagAAVJkP/3fh9jDuyf3C5Ds2+DNo\n/wzSlSu1vbAo663v7zYcuLU57YD3iA6PVMRCCW/2xcHnbHI2H+uNmp204tbi\nke3Lxiy+6KRwmsng95aFNmrZOxcT22YabFf3mfp0o5feOJib7i7fnkB358W9\nAS2roM4lAXQdTf3dKCykc5PzB7WhouAOt7bOgGvMQVbAe5ltTeDlcVTyPuhw\nhFU20lLgF7rvXsWGWMoCGyX4wyiFdIIULaz9H2iJvNKBQrS8r1BTFTzPZ33t\nV7oodaCQQAMYTMY4gcajmQM7g8fWkxrrnZe340c/+5YjLpiDjlNHewu8HPN0\niGPEDY394qvC5VluXw47Lzx0VvbbqKxMSrRp6UVPFzFJ+yHkc07z4ZVP0lXN\n1T1Um/DuzGcDHtDPZwBjzsb5wnQih50s5815Rj0cCwwYraS1HnlTfWga4qvA\n2KvHOUZah+zoJQ6yNxsF46Bl6OcuBRDQZoTLMQQ/MiPb6nf2VWdc7EQZoP24\ndUe6I2EVTaOOk8cEPke/YmxQPhF3ZsNvbLwdJ22HmkIn3+tX0ax606JGuFI0\n56ESD3SePmTskAv5gCxEj/mdk4+cy+NUDq6H2RIoHORQ5ho7drIC9W1g3+4R\n3grq2R/qpEYPrgx+sSNQLKpvas0nr5TihXAXkV9SOR4EMYds6gbxn7xtqqb6\nJoFS\r\n=z75/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0_1644341175609_0.9579173453904455","host":"s3://npm-registry-packages"}},"0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0":{"name":"@starport/vuex","version":"0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"5fce3c8c819ec7809d282d801c85420ad84f3435","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0.tgz","fileCount":18,"integrity":"sha512-uBSeEZPCUhRqYMYotY1ziIxeYiz5UUwwL9wfYTxH4yqsu1gB/luqmRIabQJf9ltJdAUSIz5uBMDKTNTOTe4IDg==","signatures":[{"sig":"MEUCIQDvAH5TQrQ4oV9/ZGM5G6w8zZ6HxqR9ENqmbXisEqYvigIgMIYg4ONUOfnAuf/1A+HD20jPKRzZ+52icdQIyvsmjGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAqvdCRA9TVsSAnZWagAALXYP/RLho+4HK1S6PRvQu8F6\nSjESS/4hEcsXjPVQ/bVGDkcBqiiC3YVL8+6EirzW6KQZwNZaU/XTmILHG0d9\npESftDfZ5UsPkMXVGXjpFB6eb5qlsHmQ5WKcmfjMfybnHbXnQf/PmPUc1NFx\nHMnFPDWUfBGeFJaSe1DRKXHe/mZpxBjOydjNZO7zRu+LjnkbNXTjQTTe1YNq\na/37PMZZroSdVf9WqHCwkqHJ5fa3DULyWNvv/SqHk91vh8yIYEGsScjXF7lC\n8lxKhMBJkk+IrcVHFty1qfEx2LfahO5m5367NijW2lNOip0V1jIV5Y76Nz3a\nStpHaMMD+Kk2lLSSOd0bux6zCE/RG6oUJp6R1arZD8mfOHIJi11PjPw4qMxT\nEe2Sb0JlZCCYSxoSw6P7j8/vAD/+T8wzdAtdth72n8jWFf1qHxjPQ1KEptCv\nsMzX3zd/iDm90pL2I6tYbDmUSr/akPnOMmawAUZAh39sMIGGoZ9bfRwYBvtH\n19H8P45161i3cr0oH6hXHAU42V4/RQyXGPRMEtFEkFspKut+0TRI09vDl/Nv\nYCtQkT3Pd3RMYqvLsIq6fNocRoBFP3QmWq/UwaGKR1VhgoO3XhokLz5xsxq1\n/MzVcUmN6IIHGqT7qCfjnv56O3K20egelhrawnqCILOyjTZTRaL+ytmx+H3A\nwmoA\r\n=vtHG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"631dddeec92833f31e9590bf87e974e8642bd759","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0_1644342236698_0.38222080934643743","host":"s3://npm-registry-packages"}},"0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0":{"name":"@starport/vuex","version":"0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"f63b3d820d10dd01bb23b98c63e18bff951c9e41","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0.tgz","fileCount":18,"integrity":"sha512-c3oDH1jbxmD+qVTep/mqlvDG3XhNK8bHKTG0n6QOK0CmyhrNWxZwr1/ImaR7uFaa6cFndy7WJDLyZ87m1/rvyQ==","signatures":[{"sig":"MEUCIQDJzAmpdZZNdSpjJLBJXOSTrsunptNsPm4IIUPfcFa2MQIgLefKx0tnKpefkcS5QTKqtqJtanvfYmjqVclYQfXn3Qs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAqziCRA9TVsSAnZWagAAbxQP/2SMBTTPR31bYaXyy9V5\n0iMIMhGlYaPAyl5SlbE+rLGYpqHybyQFmF7gKCi3BhJrhBioWshJ5fMSV0hO\nz/Ie581YFdN4k68R55e4RZnhMo8X1YbUEnJYXQiEuCiIZRcOq2EY3shGWUOH\nLjasiIiKGvoxFe6x3XX4F4uYpaTlwCWSc9fMHWznzNflmUDkzgCpztgCNFe0\n4195A6DhvTRJlOMZWMEV5RS5lRh1PYuDJpGIWE2NwZ3Vfn8WeAKK2G0MwZMm\ndffdOvlyiCA20vcUfKubPZjXxBu4KtZJZSfANoQebYtjHr+fJ7q0jNEOi/1b\nkogb/tuSlbne4SkaJldHaVLeEpR65sCGdEG+CQZPuflsNF0Ysvojjd2SP8+J\n31URynosUsDUnFFMovsuWnkerIGPg2bUsfDMwiD7l8+zLJV6MDqqueM52nOe\nZwdNPtoP37WeANzBAS1DljuXoteir7Ze8ty2kTWeimB63dz/eYKxRO/DWRHt\nMUlpxn1/PIWiT/HMQo0ev714zplqbOSMXhvLSPbOU/MLqoyorzUXgxpzb+vL\nE4k1qAS0KWfeCCOn8AOQqRscyG+uCw3hO2HUP1ueXOQ+XKOXXAfZhhGO12xO\nhVMj7aaf+gs1x3w9U0vQM06JRyLp+yMpLHE/JIHBF3n0WPf3BZyYFkvMyTg3\nqu3M\r\n=FLVK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"318368944e0a8d2c493c20473ea33615f173568e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0_1644342498493_0.7646198627512124","host":"s3://npm-registry-packages"}},"0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0":{"name":"@starport/vuex","version":"0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"74440b668290b3704dc8e48a5f117ee7a181cd69","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0.tgz","fileCount":18,"integrity":"sha512-qurnhAH0k1lFtEi/gZNUGVQvtAE06CJhDF/gLtpgDWuXgsiL/6QuB18E4w1hS20sisQMrefObY3ILsi15Oee0w==","signatures":[{"sig":"MEUCIBz1sZbYHP4q9c6GMQZfv00gouMjBhTNAHdKfskFlgoAAiEAzMNuV2Kmoc6kqubftIHqYQa00NYvOQINwRQVTXOzXSw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBA5bCRA9TVsSAnZWagAAl9oP/1L/8gi3YPao/LQ74QMr\nwWCnOsj1kj6Uf0y4oXZ2k7Mpt1zjjTWjamddh7JkzAmvuLqoLGeYZqW9fpR3\nrpR/h0TwSbnNk+J1/RO20hexQu8BWcPNZ1qS5C8KbS07oYGdmY74Q+z4Wsn4\nKaYaBYpoJuoh8ANCqc5gUXo1bXUP/1aiYMjnVfyN76bvVAJG+aHYuQinBnHq\nC3o7RAqoou+hf4ACG3/k/jkX2J/DGgmPj+4/9av0lQHDRihZAJqat2YVbztq\n485qKoX6wKDhJu17uAWaiWpM/CnwVH+nXBX2Cw8DIFfRh6/f8/BWoG8GQVjp\ndXIw69+2KP5oQRQ1/FDsKKXMDeJAvcQm6lNI42wwNH7nl/zKNi7CjLh0V5m1\nPefx3EZcew+r/fxayPARyL/ZRO7PqTwMeLCRhb1xBH9Kss5GIy+gQhrBWC+f\n2dcnb+NBtv/wFJuxHi9LywH9mxqnYXrWW0wjGbRtNA6RpjT3CEK4Tre5lNEF\n2RViyOSDqiDnIWmWcyo8UNP0YIZHvLoTwm5dRuNUAgV0OZWMPK/jBb+RWxM9\nf/vJG1/3BsZ1RMQ/zSzAD5dSViUHHDercv1FbactkQ3MB8ziZzxKwc4VXg62\noNvKEg9LV4UaG7H3cNvxfK2BJq464BtWrKDxZhSX9L4FkjOVH7ac5o+LO7rx\n+PZi\r\n=r4Io\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"46bced47f87733f2dd1e835cd15b172023d4b79d","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0_1644432987568_0.6966893484351824","host":"s3://npm-registry-packages"}},"0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0":{"name":"@starport/vuex","version":"0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c498613228333f71a463ecacbb025551f89fd76a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0.tgz","fileCount":18,"integrity":"sha512-/q9dPCGRoPnpWtbVJXt6rRyN2tT/Fc2SCgp7wiNJbcZvDT/OzagEVD6cOCH2UkHKVlB8itpEPrJdLnKXcvbXtQ==","signatures":[{"sig":"MEUCICHSTvGSbupAPIh4rRjgw3HZdztCqeAU35vIQABMBcBsAiEAzJBQCVdv+2rH3whVBhVwiYCzogJ07RI82gHlU9L/q4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBKKFCRA9TVsSAnZWagAABk8P/3QcJyq1aTGmxLcU/3bw\nK3sOKsjnaEOZz730FvfrjukKYOb3xp9YlB9daTR9w1SV9i6bpe+yJIiFi9qN\n11c6n+pT5vbuHVSAqrfrXURsjPnjNYp8oraBnpPG0gdw02FPWj0p2N632T/F\nv8NOd92OtFjtes/y89ZVGCucSovGfJwwf93gS6ErYiYkHAYNBL9Ei2kvFXQ8\ng4Ub7Et6xP2bAchl0L+/J0N+5h9yjkUygcXaazXekujNx51HQ3t7sK7qMii3\nG4I/0GdLxTmftSUumXK7Ut4Zn06jTBVnz22TUMAoRCWVP4gbXQs01dDL8lIe\nR1DPYPf7vtovsx5rMtlHYSFWfX2Yx4pHhOLzJr9AKC+knBJHeJbWuz8+bEZc\ny1VzyZ4dJ6aqK0nyE56NkqyaIWkWdhFg77DqNT8FVj4BzmnNTZVmeeSd+665\nMqFwyL3yCwl4p8bOV0ysNlhBovH1aDn4p9zponROpAT+e3r29LCx6y3LRK3W\nJjFOBRLVMDvdlwdr5zKnGbq+A8ntJVweI7zXhaoSCiqbvUGyWOCY3XhEIFba\nvL5AIg/fD1DMMuaQPHszH4aBNaRixU5aQUY/WesdKBujPOZ9oFfM192Mm8i8\njDFU1jWDeH4+6zg9dWHGD7xdKDZC2JHB7KDOulhXsEddx2+r1i0DpLERAmHj\nkvc7\r\n=oQ1p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0_1644470917093_0.3566846420274905","host":"s3://npm-registry-packages"}},"0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0":{"name":"@starport/vuex","version":"0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b6ab58254a0a0ac0e855a529ea7892e5f3340295","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0.tgz","fileCount":18,"integrity":"sha512-sM3E6E+pXh0jZ+dhgxHDAqwgukLKQ/hcO524ZjwKPrZPef3umX8p+kp9ME1clkeDIJ22r0Gj3CA4y7LYke3VDw==","signatures":[{"sig":"MEUCIQCmRVFvgf8a1ftLA7XSmAXt7PWNeQVrbPsktHXJ9Ygo8QIgGohNU5jDT8R/OZYU/e/ho2VCzUT+Aa+CQOZHRqN9z9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBjpDCRA9TVsSAnZWagAAVr0P/1RF4MUFsneu9uSd40/F\nbaPjeCCqai7i2q99p6QDOr2070b6x+L5D/WAOARA1rJ/2Riy1HFEs9bpW5l7\no8UZTkgZZ4E+HsFeDD0INkAjITGGIya7f3Hrq7/UWEiUs3HCwQiIFTjqLNbt\nFo3gtQNsSCg6zr5nVjRtlT3Jz89XAdEyUMybpHhAcjNim1GAxEAKrAtcFepl\n4Du8hAhRBYzdqZXQlifYtLUtGzifXo1/+b2h53VE0NMTznoaUNgwUPUtfoTA\nOmoO3gLZxtduUcHsYw3qEQPhGJoD1HvFO8CU2qLVdDmXSd3g3zoijKJozMRp\nz5zNf3Qd4XhxEaNrIc1oermXXPoELJWQP0I2qv9j+XNpvJF3QnUkOG0v4PcC\n7hKBPRZFFgkuyYOtQsY4FJ+IFVx/Dq+/vIk6sh1ET5BkcZak8pHwwD1Wr7ux\ndmVdT4p12xAJNRZREvEIymhMYnAwvxKTbpc3BeNoNxohmYsNX9QI3Nb67u7p\n/QaYDqm65i0Mx73BuzDaivDuBJkLqbJ9vaYVhSIgHOl1RwCTV/sg/sM2wy1s\n7n6CDmrmxd+PJuQBhay7iMsYHN4nbYEVX9BSr1FhnsNXGGygWzwif2mREzb2\nUvJFYvIEjY6nxQn/Nyd3m9EkbyjtC78L7BjNcDAUv66fzbQsxZ/Ln+PUA4uD\n6N9t\r\n=g0JG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"d61adfdd8fcaf6fb29e8d5ea806648a20754a842","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0_1644575299124_0.8676391164107686","host":"s3://npm-registry-packages"}},"0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0":{"name":"@starport/vuex","version":"0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"163c2dcd964c1c4c9b125d624daba5d533e99305","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0.tgz","fileCount":18,"integrity":"sha512-c42e1+8VrrFz3OZOuuWVeTJMLJ+hDb5O/1OGzReQmxh+92MHleBbYxuAbSmYSvC4J3x163tyHlLVaVurvx7f0w==","signatures":[{"sig":"MEYCIQCYu4NKyZ2M/9y4OHyHewxTwHQo45GjqrAlCCeYd4+PXQIhAPDYLxdgebGWH9XCmsxHc/5WlkU5tzSeQ4ZUa5HLpvww","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBlKdCRA9TVsSAnZWagAAKVcP/iCi1/R8pzlnD8n71N+r\ni4BEwDqau/lcbaIJ+eVchcWdIo63FX085g/DP6q0UkBVmfBYdDeJ/NYnkP66\n+FU2WAcW4hQxowiICpDrsDyBgkq0lPOH0A9K2Cca1a0XRGyLVq2Y37Uq1irg\naacNQ8ftPmjr1UvZt9XK6bukvoK2Y4Y1lg81yG66IPHysbN0dH6Geeiu41rj\n2R9MbA/NTCpHaS/3s+DnLcheoVi+G7q1vURkjcK1K8dsgtWPrJXpwDTQUkCM\nH5fkatAQwPpzA0xz1eGIPSQk7Gp77Rz7MR8l3v8Ask4iFLEUQ9iojmVFQ3Ll\nDsXI/psmjIt5VtejdNUWIgeQvEIOoLpdiiPkQIJ9G1K3Jj+5GNAr9giwqCcn\nF6aHqbL3mjOm9edouOJyW/uUXUpCqqXWfmvKEwqxFKkIGn+OjkauUf22QaMI\nngnF59hYU2pNXPaPOjL6DKYPsxVxrQRa3zM52er7SYk5tlE+TU3SuxQfZIIE\nXhBGO21aSv4pC7gRpAbXMGOZG8qN5cfYuPVSPpLquIPqB2bNx/fTEhekFplQ\nEhXQTNkz3HMtxRpCc2rEZIK6uNua0N5fkEvsEUuHZaYcDRMcb1Syh7vmddef\n8Mhe6oVvtwMpYEeSp3RPcKptIllbjTXuafqFcnJJKS7OFEhnX5iooeKVg+Oq\nj5IR\r\n=lUYV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"02bdca543f9943d17bed6f25ebf21eada78e39bf","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0_1644581533141_0.5788473985448785","host":"s3://npm-registry-packages"}},"0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0":{"name":"@starport/vuex","version":"0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3a18563e93cdeabcd3e410377e45e5aeab22e6fc","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0.tgz","fileCount":18,"integrity":"sha512-S3Gzyp2izn/iv4LA4PY0UG72jbLpojvJ2R6K5ksTtQmy2EmvacMStVs1aEbd9/SEBwtQmCeXYEnt8I9887bhGA==","signatures":[{"sig":"MEYCIQCsr74eLHoycwSEap/XgtsUi0IrOhP7dUpE3ejZIPc7PgIhAIdT7OVPtsCDcScjnVHzUV5wt1nLpKrD6yC12lRhsu0/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCaZ5CRA9TVsSAnZWagAANBoP/R7yiLQIsXDxdWksmpDH\neqWnC1ktnAxH4YkP3n/6/T1aNNUUadsnXsLr2Q+9bzktpaRq5loS3LaRpR2f\nUuWYyISRFLNusqbdMR5X/9xZVJG7Hz1lli4cOJo/mgEdUkiYMnpliH0/L9S+\ntYVlrlXYrtIHQ36i5+Y/ofXg8xIq7VH+qDqvljPztYxXSmE53PImcX8EDiwa\n5kYVs8LuebW9dPHlzIDuOLzs1J73tj+v6S0mIlnxhTClkYUBjZvq3kBH0Wsh\n23BJ4g9rjK0CZEI+B0FtTtzj5d31r/W9RQ4lXgj4S/IxYNtTiR017hG3r96c\ni8qatvBFoI0VbmOQ1bIuroygaUExjy2FwDcAdLWP0+JCrgHOxsqRUjX+iixF\n7J75pwTyDE2XJti5lUPXErmM07G76fM+yht/EouTIqmhXtCrKmAyDtsd+Et8\nPY/DTwOsQOXIxDhYWJxz4iSn1vJte0FVmCy5lbWUwUWyE2Z+FhJK1ZZZzhAN\nczZ/DlsB4SkCZg3QKK4lwBsQ+AapaS2O/TnT74oJq6lp/JtB01xDyCtRDwnq\n9FNTHuNeeoyfTtIDtCjM07Z6tk+tsxGmDuVfJxYuQN3FsJzNhwQu71wtZB1c\nxo31f8E0nOy61/0Mdz7yMyNS8x6eMcaxZbQhN1uJckWo7fvI+BSwvZERKaYQ\njFom\r\n=XDID\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"0decc14a6df7a9b870c97a0d9f2042b109ded56b","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0_1644799609560_0.6721429346161614","host":"s3://npm-registry-packages"}},"0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0":{"name":"@starport/vuex","version":"0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c90748c95d67c5f1b287601f38e689ff02cb0eb3","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0.tgz","fileCount":18,"integrity":"sha512-0R7CsLYTsSLDrBzCsPS8/loS/w255Ta7+LrVQy9KcfKnr+5w+S5vWwL/oBmd7b6zZ9l5vgIswdSIDK/BVa0HEw==","signatures":[{"sig":"MEUCIQCT0n+ojH1yf6e1ybcoRLnZiaomYIoCs6hhTsR+wzhosAIgCj7L+0OybW8voqR1iTZyTS6Wh6zDycFM9YE7dB42NS4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCah9CRA9TVsSAnZWagAAFj4P+wYYEurIOcpIV7454eUz\nfOzDFVW+272aBnufMNVmPu7VjuIlgZUMq8JAVoOgxUoGmkgOOQ1wttWVLoXR\nizI9GOUzSqBL5WIvQVGy46XbS8IRB+QX5LzXKRda7EJrAr5u2PSwWgoUqQjM\npS9ha59MRSenAhJYcS6PUEOZ2i0b8X90e6loHuPro7JXIxZvZi1IrDHsIIw0\ndiSTMLBrLznW/mQEJwUVoLHBX6BsTNvDTrnBJXtkso4B1eTat2rwhovOpasq\nKbEsB8VjOJMuRq4NhJKQrakm3aaAegVEYCtMlDGSeoW8Arkym+0pKKNxCyCg\nv1jXRuT1f3zBZsh6Uj+Enm/Dhvu11mCyEz3qiCDb6lUTuW29fP/eN0ttE0vV\nkdFnv7V0F+JHIwYay2Ev8XzsuVlT90IFGH84qtq0lXhrBeFMjV8sz5giJG0p\ntL1gtY6p2AH8+3PmPWTZXFAex2jPG73pwovKpSfEkVL/Wyd+KZs8GfZm0vBa\nuNIuCc7reAlDfUcsEAP+Y5Eth3eX4U6Lj3KxVGAkF0uDrvaBZB8V9KGxViI9\nW3NRguhLb6s+Im6LvCX+mYNxs4tFAD1yb5kKJ/mXexrcr5JvzD+2OVoLOtY3\nAYL8NbtZxP2fH0CJ+pxtk0fHTe9ceOXjyOh+ltNCoZdBbaPDeRNQ91m+WAdw\nqoaa\r\n=bKwW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"75af2db3c363120fd334bc5c74f6267497886ad3","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0_1644800125560_0.15687551737101146","host":"s3://npm-registry-packages"}},"0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0":{"name":"@starport/vuex","version":"0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"19b251f879363425fd02069a96a85557ddfc0798","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0.tgz","fileCount":18,"integrity":"sha512-VLlFLBj1YcWZCGvYKcDPoxw6m4yUE/lweFXUiRVVkPQanOCPn7lD9xnnDUmGQT9O0kywSzZJBPP7TnrDoGt10Q==","signatures":[{"sig":"MEUCIQDjR1ktmX/H5ygDk/idb66lsWTwiPgOegB5MqRLoN9B/AIgCz6u4cUN+Us5gZ/18BF5XWZBlHON60bI4vbe5Gv6sGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCb+cCRA9TVsSAnZWagAAAvsQAIY4Vi7GxWdtpRo7Z7hS\n545rgXhrLfa1vp96ZvwB0OEL3gFSjROcJgO1Hiqfmqpu4DfqxgSkTD2Kieke\nY4jBFVk+kTW2Ag3lm5jSTmu6nyzYiV52sXmJqmTLQcc3KNCPTbsHDKy0Z/47\nGnJqR09FOerCpR9iA0g0AzNlArBMcrlMHnz7AgZ6fzYAvYyLN1JaVdEiTcvb\noyJdBi6vW3MzTd6ac5tdZ2WhAywleN5QKn/qYDI7QSh+MJGr4lJA9bZMJFFb\n0rXOgBbu848tLdVAzWKpPQIiHYPnaH8VSsf6gErMxsN0NtP5s2PtSX32npF3\n/cEk7aiAZoL/PtzbPffHy8O01WluTvO2XRF2tUqMeKRNZ1okw93afsPZ9bXc\ntm8mshnA9lPW36NfgAXbOxtWkhnNvTUYYWyuKHn0ZkfG+hArqOEVu6B1dmD5\nGUlDyq0CzRZSmlLMZv1G3YHxHea7f36sM58FI2q8IucH9cmCFdVGaow64MgS\nBhT6SzqkviyhBr3+8QFyEGk8UxYzKYPV92nWDJE9Xdr73gEQM/aa3j6Zw/zN\ndCk+pWCOOZcDC3l8m166jwTNAFWCkfoJMJuX/9aN4z8ucEGf6t5ZLKXpztRA\n3kcXJOndYf38wl5dyjxpMGRUpLyz0T5msPqf8YKAcfvJGmhs7xlPAj+Lvs/K\ntFtu\r\n=s6ji\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0_1644806044628_0.5959327036538695","host":"s3://npm-registry-packages"}},"0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0":{"name":"@starport/vuex","version":"0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1b74034d12d4ccae061a0e8fe738ae05df52b8bd","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0.tgz","fileCount":18,"integrity":"sha512-OKHr/ItPpwDxyqVn5VAEoDebuz9TGoE3gmCKgrcxrGLa9i5viTFTQMnVR121erDgnxN6belB55CAeQl5D+3ivw==","signatures":[{"sig":"MEQCIEYnTbMudxfmsyXwQYZxiRUmUWtdSHQNeskt2dgqY8QbAiAyutOFdrwqN+DjDhjYxqicYxyCMj/27XUVj56+unpqLA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCcTwCRA9TVsSAnZWagAASAQP/j+Y6OXZQb1HrG4EuTNU\nzOoYjkR4jDjurOaPSRk/vm/8cSZ0KG46/qzBRUShdz7QxMoolS8SHif9k3vf\nmXVoKaiwcbkdYl+zDFJgZda6dnLSikV6XDFr+OHnu/8sw5lCR41T3WZrc/uo\nrWa2V3oWg076wfAgn90a7HgEBy9t3MMxoff/94P5YJvSSfn4eIl1GuA49krx\nGNl6uWydnIE9Cdvc1GcsYylM7CRSSnZKsG5RZKG10JaZutPuwSRlwtKoTIr+\n7EmR1Xu21sJZGUgNWE5daLrQpbM65d5tJwYoiUzVppF2VafArugqFBqToLn6\nBzKDGtFfPA4iM34YjLoRCltXuqFTX5RU8gDoAFjtgsRW7sAvsFPck/1dO//z\ne88hZj18ZPH88KAsTtrP2Mo10WuathxHtIps27/5ozSyRYF2x1cVkcl0+Z9B\nCwEpbDLOUsBhYba29jEcLVDC3Ulvgk9fcY90RXBsgXpzI1zJ4erBLKfRWcsl\nHka+bdd9rXgi5pdUBEbco5Q48MgpVlyPBmTSP6EiYxArg+nv1Ux+lAjwzJYJ\nwXkml3DQFZh9lIss8Dihgka/7YLNCTkKob8/CTA+5Z31FfxCNT7Qv8fKfvav\ntCFyvl76rTZse6n+1M+qKOBCsJTTkkDfa/IuqJ1+sMTD35T861eQU/LrW+9t\nFvRF\r\n=47UC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"6335429128d48a1ee726953b673c08fdc3bfec8b","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0_1644807408164_0.8057565460353131","host":"s3://npm-registry-packages"}},"0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0":{"name":"@starport/vuex","version":"0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c51876dee18fef884d71dd5bef850d3de76bddee","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0.tgz","fileCount":18,"integrity":"sha512-nkOy8Toc+UIk2U2vSIOWQhwHVuxDicoX6f8KcjmtkBkeBv+HWYwdKjtr0Vf4oL8QpEdbbw98RNwfnKvIbFGM1A==","signatures":[{"sig":"MEQCIE595INHbA10kkHK3hCKbXdd7Cw8B5u3Ufm+HXJYTZz2AiAiryvgyuKIhmINwXcE12f4YbvUwnoWP59/+1LgBw3h2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCdIuCRA9TVsSAnZWagAA4KsP/AiTzK/N3j4oQ2EgC1sH\nCDjkoZVZ36II5NyI3XNLDQqe5Xag0AgcgIJIQrmFkwwyYuJbHJFxOZUkCckw\nLtFlo3Y8S8qZTCRaQxj9ScZ0YcisEmBfeEH10p2PosC7Qpxr2WKV1/81ffUw\niZrXhnHCAmX0TDLxqYFtlUENam1alV6qGHtRv2oYsI6fEgrETfnsdPiYhK1k\n5LS+WbV3lGwHYZPoQ7zAdARfUIrHc1ZUTWXI+pNqPggbuBnv1e8nLUfwVzpO\n1p6mlJCcKxLi+LHQLcgg6ePoTQUxLgbW2cmLqmxEgGnp1ZZf+f5FAp87UARv\nQ8J4p8kSV6fmci8e2fnDDLwbPupHvf8lMGr5+rQMXxcY4YyPRH+bV88OBuRX\ng2CjjwRHVbCsGh26Nyio2d0FK1E2gRFvs9zO43MMutUN07GyrlA8n6f7Gel4\nEfHlAa0NpEVbhA/W2Oys60u160xqCXpQuQZvSg0A/Y+4bjoZBCFRqrQ5jlxY\nz94aixDpnrUptuNOlDBOpzOGOywcQFmRmZu+mUN3h92US8zbwBM5T4f+CBAH\npBhP1tvjOtK4CALGR4BcZEo6ufePucxDYM6drVuREnb3MCM5PVbYFMg+Xymi\n48VeQBTnQfAl+cqUO0FEQKNX+jj1GWlxS2c6us+BpVDEL9EWo52jTBN+tsKt\nBuXV\r\n=6Ark\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"b3d265ebf8b6ba1a464d2bfaa077877aabcc8134","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0_1644810798386_0.02383455930525602","host":"s3://npm-registry-packages"}},"0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0":{"name":"@starport/vuex","version":"0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"91e21caf68a196cff147247506a258123384be34","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0.tgz","fileCount":18,"integrity":"sha512-A0iRks6J9qQbiBSnSrUgvQ+cgc41qU0EG9Uo8tQ//TKaWroXKSOfbPpavuXi7lNvGDJ2DcPT27xxSUAMrGg83g==","signatures":[{"sig":"MEUCIG26tRamTzqcPG7v9BYgBD3e4Z4VYU0tYWEzu+WA4Vu4AiEA+antRZl5IHuVhRWJTTPz+TSWcImqkbJsqdN2j3AAIxU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCeGkCRA9TVsSAnZWagAAVCAQAJlaoeSlHnoGhNAbmFBb\nxPi8C4eko6OHEDBE1mr0wQFM3IGtAnhAG3ngjYLFJggKec+lhqQop2C4p/zP\nn5mbOdfDrSmQSEnRHtuVQy37EQZxoNmANOLp+0/wSqQvkohk9U7jJyjT0hrf\nhLh3Am071ZY3GNAhNtkKFw0DnovSHhh59VZJp8ajve+xpazJy2AV5pkLq8jD\nkl3tq8X88P4zsLUATaj+xrrRYW6IvVlv/hf7+jGqa3X0d8U6kEKN/5W3ArJ6\nuNo5vkrnNydlk9M9z0vCc/Jjh5vLZhZz1pu7M8BC8M6Vjj1ZCkk1rxg9al97\ngUZO3iFFBwzl6VBdnMOEchtFaKfAvma6fpxHIcQ7GmngrLnJ6kqsRviq7JFp\n8cF7epXjpK0hSYDNxIrnJk4ca3BAxq5ynFUyZINXLmERQqgvFMJIC1o31hO8\nbpJkySIbVYAoQkFachPtM2YQ6daj8CaJ1K9N0NwQ+n9OZ3rt3ioKO67evdLO\nbRVTDdCfoBLrg2oNTPK4cSlgNUPqN3ljr7k1wvzP25Kwo0fo1wbIIrZAer04\nnzgKulaliWjR9HH4CUvUzuZgt3iDyAFTDjFSjOS3fcqYbep/ort6dIlHFjp2\nogPTLFAKAgt/C0Ul2ksoBbTJ/m1geenNe2UpII19mvasPqDICA5G3gLmHOzK\n75bO\r\n=R5Rv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0_1644814756187_0.12968415446856585","host":"s3://npm-registry-packages"}},"0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0":{"name":"@starport/vuex","version":"0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"db3788fa67647cf4b8303ef9134467571f4b30e5","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0.tgz","fileCount":18,"integrity":"sha512-9RJhagolqmMrPKTS1cpj5s3CUq7eNcZOjLkIeDzaK4584kuNOXUAnc9D/2NiSNo9vM3yCvGWqvt6QvtzeqGraQ==","signatures":[{"sig":"MEUCIQCYgbXrXg9YzKSZuT0JPF46Dxz4n9VtDH7PryJ2CKcfgAIgOFgARP6MIf/6uuXjHjbSf8ApvJMkqMudTsZG3YKEWUg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCecwCRA9TVsSAnZWagAAcf0P/1qp0PUwJfKHw1dEdgCo\ncs5JR6VBDcF+uqxHIPsuQTGtDQ0JHoNsaAs+DCMbUzE9s7cDgaGpUKs0EStf\nrmcc0KYtxiDkHwo+A6HaJUEc7OwQ8I22yNMOKmA21AZScigV73sbZBLAwOAM\n7pkor4+yvG6u3Pj+BKPq/jb7HQOBd+CY9A5aBE90fr5nWWa1BsXO7P7GWPtt\nrpHmMc06I8MufzmlsnggarhU+iSu2Z5hkMhnuAPpok7QYIWTbAHweELnpyRR\nI9FNUESooVluu1TIDF9ZGFPrqfgowhsDxwoBuFuJXFwpnh96VUQtGgNQn7Y9\njSrDJ8A5hf4otb5aOBaefg/k6cNwd7P2Na9uJ8auEhklboZsU3y93ThJ1sA5\njPSVm7tkWj1buomlHCWx0MwXOgIX6s4zGv9zd1PQvV349Y4qcoacn8f33wPy\nXUA/JPTHn3MFApeQ4SX0wKU1olmak7O/BcWtO6wNfnIIJyRf5h5CHHeGB7Ym\nBCt4prN8OHWhNqWvSKIYrBiotdIn35c49YxaHiAe3R+mVpsP1EROEEpP2NSw\nqU7M4S9dgBIvnuSRm4AnTTS1mp2ghOwFho3MeQ/81tMKnpH8AY186Ui+5nt+\n9wmh9ICUKF7a/6Sfd/4XuVp18rs78csM20OHEl+GowlGnMWaNJ6KkaZAfBoM\nT8kH\r\n=+Y0j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"981c153fc04d45c3a87b5806366a788243fdcbff","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0_1644816176560_0.8124645417831982","host":"s3://npm-registry-packages"}},"0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0":{"name":"@starport/vuex","version":"0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"fdb67c135edd8b5b4525ebca14e7214c6453c94d","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0.tgz","fileCount":18,"integrity":"sha512-OcEIl1T+U24WBA7Z3xQYLykTUm0q/ORSjTjjp6yQbfKwWXSdwBO4lutKk99Xuo32OxzioL09gDw15KS6SMkEsg==","signatures":[{"sig":"MEUCIBwrK/3B2VY4+VYgQLbhVuimzaW+8uhsQVwY1S309VfYAiEAvANU8cMjexrFnBLbygnkO5081hWJIICkjFR5RLtW+MA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCj8jCRA9TVsSAnZWagAAVaUP/14K8B/3JBwMszwH/kRo\n1FuG4Tpwrp1462i/emqbYyw4/LKi6aE3HXA9Rg3o2rulDL+2ofirczi8zEqX\nmyKQbvSJwYts2gJf6zluIAphFjGkpVsejGwSw98EAxZX1i5f6+lMtE7SALk3\nEGRsJif20JCD9y99h1Z4VaGBDq8liKG7AYUzNz9PibpTqkxN2ypwmCniAiG8\nKh4UcWeBn7Mb+OLUrMdFZnrFnQIMH9wrFfgsRFw4RQhWEsGYjMyiZOodr5a7\na5jdCwQABCd3IXnoUECjU5CJl/WERQ7yEbm6G35tCPvcWlm6TwAKtzdUTWY5\ni+3s8MDGbHF92uAJHNhepRXwqDFMb7DZF65G3AHJXwhwgEc0t6Ly+0p9XhTI\njA2+IiuEVlCdPVEPcnJz6orSHPnpd2Sft3s5Ua2lBdHZsGJ0WbFlH0wTogBT\neo7k6Sr40USJMFQluYCbZsJOf55v7eq6atBwgE0kWqszcgXQ+u7XBXc3i4sk\nST5TpbE64TpkYseqFcQai+Ni6b2HkuKPtEoUkLolWPhtdpkL2+XYZul/8I4m\naycl05YZ3RPGYrutlRtUbdLmOU3RemHkqRFKxuQJTQvbz8jVZo4rmg/KTti8\nuljodqMb309oAeI12jgE9zt9jU68w8XLJzuRfa/st/ikjA8RbH6oM4uJZvnk\nZprR\r\n=SEBG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"decff374de8fb5d832bb73f11e8a89847f153c86","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0_1644838691236_0.04469291216310256","host":"s3://npm-registry-packages"}},"0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0":{"name":"@starport/vuex","version":"0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4919959b908c61f100890f7aa50d80ed9fcedc55","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0.tgz","fileCount":18,"integrity":"sha512-0vSZ1763MA/txCbhVKpJaBIe7L7W43AHP7+E31pRh4vA+49BENmuwZpzOah23E0GGgQnOnmWEbFCawIU0kea2Q==","signatures":[{"sig":"MEQCIGdi4C+33tcBmXaBuQ2z2oFOY/n4wOF46lvmbhOrYaBzAiA1Kv5g6CXhX/xxscNkUi8RIbu61ROPAy4ZNTTBtNv5UA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCpl3CRA9TVsSAnZWagAAa8YP/Rqk3zzeslZqkzV5/Ccr\n4Vp+sx52KGvZcY3kx3es7ZXE7ol4o737QsqI5SIqi77b7b73vzM/fqdCxJ+6\nepyiOCGxigMbQC2cxkexp1zMp8GJMnOn+AujCB3X9nfT5a2Hpn+ADIVYVEbH\nfZuHHQfDhJVydV5ZdllZkQiqs5oBQ9qZaK/Q7h0CXcsMsLRca8juuUMjFT62\n6hiUUKFRv447sUN87pwlE9OUY9ndPQh2+xMXLLZ6qts620+Jvf2TmVIk1P54\nIfNGWvCXX+tfL9iWvKo2rgtLfaTkHT8nnnLgDBTv03kbFfS55unGVeI9KC3r\nsDR/Ff91vq/xa7O4wSSWWTQEG7k5PcoJe+r6T/t0tJrqhzq/OSAyNCRYZWpB\nvUcRUs4mAozTuahjagLBcEc6no/2+s36MsP2QicJfCfO9qsM5Sj087q/ROcA\nW5EUHZQNEba1gJtT9DrU64G4vHC3rQaBnoAmuqIMdYs+EVYrQ+vviVzU/DWV\nk5eTNLFhAey/ang1IcjgOy/Hm93QoDXz2NCIm9+Df3jMYNgQBOEVXVWHfqvC\nbvsX/sOCF0vjD82utJSiAXjXhX9iViaKGvyZUencjZJlXZjepK5uMnSoQ+Z2\ngSs2auHDCzErUAl2oOmZzNA5TAmwLz4kWM8Hse+QT2oRjEw/ocLASAkOebfm\ne+jV\r\n=ETJ9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"cdbca43c45dbd05642bd7317f0f398ed115b2e42","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0_1644861815453_0.8521310623145595","host":"s3://npm-registry-packages"}},"0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0":{"name":"@starport/vuex","version":"0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"ed121fdca8a42e750bdbcebcde1bf74aca057878","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0.tgz","fileCount":15,"integrity":"sha512-TKmUZNsrasn+SYuizkoRN1YNo4vmkYLoA+EytuwDvssn56rxBpJt9NS3kOhSNb4kI8t1GLFu/v5xiBP7B+QlLg==","signatures":[{"sig":"MEQCIAkMq1ldIi/IZkLzJ5K6z5YCwIMR8DBs6k5S6bsyblxWAiBELP0MyEGc4I3FOa+mvfedrafYikmWYO+Zl+MdJUwNkQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC5cgCRA9TVsSAnZWagAAem8P/1e8Ow53IlXopH+NAXY9\nlpAa5Pod8cG3J2V3Ss6OFJ7EECkPDPR8eKQ2PV+wLvqy44lpqnLj5vUkOq/J\nu4XQFzLG2+h8GVhbzpcrks+U5agDnO7xM5BsHvnQq8ID5x+pt9EZfcPP0VAr\ngwaxN4BFC7Eq4aDXYPm+C5fJk2DkPtvv+6AaXHv/fZKIB/1JM2oDHiT0eN+7\nPGsib9vTNgdAreo6bDQ9mLa2yhQlIunbKjfjWkcFvq7ld5ZpMLiQE7VwMTxz\nYVlMgSvnkX4CTgUPgS8ATXIHUdwr/O3Ar/XbTn8o06/CwWqRt9qA77mXahWA\nTidczppy6+ytheDu46VHbGQ+tJleXHQZxWHl9BKhJSiTVfuEsvgQGB9u3PHH\n6Km50LfFmPCPC3vG2+yHqIxti3jyh8o4vLTcb/TYOhLnxVkIEiKMxK9XDzhh\nBER6su+GdLZRqw8PBUroj/4nfDfzZ3jeCFILRQUti/FsG7PCKMkL4PWkgS3r\nfUM6ZOOn8BThxCEsWBz+W+8c0xMkdEhHBW7xGsnvsD67w1rXZYi2dcKwOQ9i\nGU6Kxl1lu7gTXVOjsdiIgS+5Dv5oD51zOSnR47R95tlbWF3OJhOVYzMmzyL2\n1aRuuB4t0Jg3XWKYpSYBUWNRmWL06NFqYU0XBTZ+APRYq2Q36rho4znGA1eE\noyqM\r\n=g0Hg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"4264e5d9aa95a9e39ac6e88be9fe50fdf6747372","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0_1644926751896_0.0368007478933583","host":"s3://npm-registry-packages"}},"0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0":{"name":"@starport/vuex","version":"0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"17ed85ce63bb0d3fc00f1a695c3794692fc136cd","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0.tgz","fileCount":15,"integrity":"sha512-47SyMFM1O5S5SZEHJFlLz8hNupf8XHdi07ZLFCXYCimA1dt+imrWAmhXgLgQBw6wMIfNNIiK22CLcjjqp7QTFQ==","signatures":[{"sig":"MEUCIQDjXHlww9y7PXILRCy61uoDED4S7CNPFTv5sQvQ9Rr71QIgbW/UkusDnbnDon9obo4ogoQ/Od2C0+wyvGXl/0fR/nE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC5kkCRA9TVsSAnZWagAAGGcP/3x7CZwtv2o9WT+1kvn/\nWtmMKU5l0/9Py3WZUOZR3oTKpiBOs8XKF6bREtnGQpTWrsgE1fXjtjqzKlZY\n7kNsikxW+o7k5ErgitWIpCKlAS7Z8YXWzdcJI/B8a4BfeiALxU7C4Un0EU8O\n2LUTnx9o9CqbmuAOwtMx1I73sYfxtFaP5XZCPdZdqN5sKedgAR8/ISOU+L03\na4EuMNq9oBuzXuAyB6c0qywAlEhnk9PKS+iUCH+U48KT24Yn0c3OyANGMbwe\nB7W4AcQL0D72dWnUmn0f33B1sgIvHbJBJJKtdNQHxUyDcBJ88/CqZz+qeC+T\nrCGRwpLVahkPuf7dtBLQX5lmyTjf0z5qvqB9n1Q45WTANuN1rUCYwIR0G7CJ\nVHrb2XVws/JjUSfi4hXyP+OEmAKjfPCETuMbX1CQruwahSvDDG5AbZZC1cds\n0FmY5Ql52aE0t2HNAtTlgY/dte4mMCQ3lOjjqS+ErJsZXOTnnNfR5rGGCVvR\nIQ+ADKQr3b9U6WjAzChSw4tFIg4JzTeDwSeriXA+upOg90HRQZyOdwh45AUb\nvE0JG8cVp0XO4nai4AmGHKkm8SnHfXV35MIDzjiV6Bj8MfOw977RjUbpcquh\nvq67XGBDn/hzqsFizOcyv88ayVEhPBY1rtFdgu7YGd1FfPnJfeJVUwNxLyYg\nvsh9\r\n=idOW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"4cacc97737e81d052f690409a23d2698177b5472","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0_1644927268060_0.4882820784666495","host":"s3://npm-registry-packages"}},"0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0":{"name":"@starport/vuex","version":"0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a1f47f53902302e9320127dcb1693f38284e8fd5","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0.tgz","fileCount":15,"integrity":"sha512-U8LSC4WkNA0U0jaf+dAaDkAB+MWKKSZHoh8Mzm8NGSZNp429p+MZIv0yQAg8POUHNsH53NasprN0pHCHEj9StQ==","signatures":[{"sig":"MEYCIQDwNy1rIQMd10xJkNypphr/19i7VEITu0qaZnxFnP52NgIhAJZGZ0c1EIPcW+HVosFWuw9PQTZj36W3lyO0CSCZtsyn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC5syCRA9TVsSAnZWagAAWtgP/2OAg5Vdfb9glcRN4y3m\ncndGH/rlUfSrfF1Nb90YDotnaLn+FrvM8jM7cciYHC+oGgqHaJ5rv3a2TkUU\nVa+Gc3h/fD/XhU7FrSqWYy9bfCs1bMzLCMWYuqDTxsX4lfV+KK/+sImbDh8f\naXpqzCPFwp2kjOusRWUAFh0j1K/XXaWrmbrQ5Lw/CftfJTHJOOUySmAC6tyu\nApWfx5/JTZCQM4oi/L2N/CPiy7PSRgrrDeRrCkXDqS6Ob6Eo2jtejlWBZzDT\n+A0eKCovl0058f2FvZgkmG76uARGtZxfYhcemcwUpeHbzthjHpis98+5Jcb9\ntQKyE/0uuLCymTywFXPgnWjk3H+lWN7EnJmlkD+iQVsSuhLBmsbhseDR7crb\nnPWYjVdKq79Vn5HzbeL2d5s6yixFM3c0Aaxv2vMPaUCjdcc7pFX6exDSKQBy\nXc7I9crn6n8Rb7F0bGcY/oAt019qO4utKLDd6Jin53outudOXaDeMubhdSoC\nYXBm6BqN1NFPFMhBT5qcUQS9ZdQ3gBRZhGo+qLU2Wc+TJFZYubYTJ89dqHAj\nZiRKYTg6C6FmMXwYbgdv4HrUApdeONRY0SDfS3oKKTgyN+7WyKOSbMIxtL94\ne3ZOQHozQNw+VFvZJxfle4CWMMU4fCMbOb9F+A/RDseVEf1Aa6pyV/Z7tboc\nblIJ\r\n=n8ZE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"016d68037a10ccc474a316cb06cd4a9b145cee3c","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0_1644927794811_0.14581129395276604","host":"s3://npm-registry-packages"}},"0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0":{"name":"@starport/vuex","version":"0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"a93ff12c2dfae4c82dfdc623a4e7df62db3d5cda","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0.tgz","fileCount":15,"integrity":"sha512-Kle1W4sMbgzsqEAFlxlrfb1658i7IQvDXpKxfw1WJWmyO1ciI3yFlox9OYbM5RVVpKDMoe6mZSfOpPfMt5hPBQ==","signatures":[{"sig":"MEYCIQCU8qHV5q6JpB1hUBZNk+s+phvliKRgySAVaqjzK3gzuwIhAP/WeDLeSIyBFGXuiozXn4SQ510CHWezXo9nQvZSGjjx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDAq9CRA9TVsSAnZWagAAnSsP/0RBCCj973SuixNxt7CN\n9YCjo1w+rUhXm5eYsipucTdOyjfvw68XUZ9mpUq39H4i9nIgaDxbmT9G2vxG\n2Brnlr4lrntd/c/2WVYEWQuR2KPiT9wutETEQ2bxlN9GS31skroUnPiTafpq\nDmKwDkmO+YcK4WH2mNU4lhrPeG5pWRzFPnJjKvP5u9b137kz1Dn7Xl17GHd4\nJi6lPtIwtxPbWGrWBDWLHiGrFKbifFQWv55my4k6DMmeli3XfVQVCFBusf0m\nzooKMux/mwlsi7offP8A8dFOHW0DiWH/u7fcWBOsaP1FHkE/RHHGS0qW2WLq\nB90whjlNoXYlmfVjph1su0pBtaxmMmORetEokd2PKl7uXQR1jWXKKQdspQ3G\nUVg5mgOrXcpsjj2fkcpC9/LyNGGP5X0trblMGBjWzlyjMGkayNN4TncTpXfM\nxgDPJ814xk4E+9CMynMxr+JV6foHKlBK/EoKWVjBmiPuEVp3ctorXvMdG/Tv\nQzCbnYYJOvp73x+YmW8Ks7SMMmBWAwF/RHmhmPHAsqSb3fQ6hfHEJ1BbgEJ+\naxTWQswqWyiYMOwzb6ZJSHhEgZ704dSEgOlUDPVjiF5whkUtt7LM2B9pxY0Y\ngpydAmmimXu0IqTf9PxczhQ23HPERxDupuKu4CYbbyL7AwtNd9zzzcDuloKM\nkP3N\r\n=aHpy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"19a23123050fd4730f286a9d2ba342e3d908b1ab","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0_1644956349596_0.8446885002593982","host":"s3://npm-registry-packages"}},"0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0":{"name":"@starport/vuex","version":"0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"36731c242122454be155ec528ae849ba49c9b2fb","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0.tgz","fileCount":15,"integrity":"sha512-Gm8mXoBuIgcwWQ3bTh6iM4WQHCo/uUU9rglhvlYkR3b6kQ0tSUDWyQUabRkJH4RehV3lBZw/vVS9JW1URN2FAg==","signatures":[{"sig":"MEQCIHXAo8oTbVnCaQLBzteW9YacPp7gSphmiSIZach5nZTmAiAJ8cgCLGY0a0U1znPhsbur9PDZIIK5Rt1UNoeI/Z306w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDBqbCRA9TVsSAnZWagAAESoP/2m43DOQDYXc8tarC16/\nYLq66cCDW/os361KbLU8c4ZaS0QZWZWZaJk7wRBRCM3HUgUjeDjqL6K/6OlY\nHHMLGuIkJrkirpJanmOvrpXhxllElC2oDuCw+97z5Pzq+CXHdygTrwBtgyeO\nmg7cHIH18DazeAWcaL3PFYv2xg/O5nLg+psm3UHjeBc+m2vG+1dDkPEXsK5W\nVygDiipLMT6cQ78u53G6E9KFHR8KIbX272QyNksWCzcd1yO2EN3vAB+WWthm\noS3Vqkxcd5XTsWqaoQGJj3zxiS+YZj9Ts5p3YClWHwfXnqNouomAmqm/ixVB\nJXnO7wd+/q60F151D+VQBs4ooQ61b6/IelgXSYoBl2hxCCepkp7amM1Skix+\nz5IGqx+jLOJhQwI6zLCn/OuOH7kW8LCW8088z8JpIHy0pqdq+SdeI968Je5G\nBJo1QVjGuomHQy+yuoqH2WvX1e3zuDYGAl/vusG/88CXH0mG/5NaDvnfLsb3\nGZz0JGQZ0N/w5I4y3GuncXeqBnL7eq78Ym1mTgTwWVS3ybx1V/0GYu7r2rK9\nWWWS0F1NszGNJ5EhIE6l3lMhcWVQtynS3LR66bgLNyB+95BekLIxpmBvOV/0\nUGYejfClP2Gv5V5zoUa0Oovwn13lVzZWXVD9mD/tvSXGdl5dgGvSWXCRz2gL\nwhzQ\r\n=x3Up\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"6905ef46e03ef21fb7524014a9d86dc618816ff7","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0_1644960411075_0.010722754458750705","host":"s3://npm-registry-packages"}},"0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0":{"name":"@starport/vuex","version":"0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1731cc711c46134d68f5a1768f082f8cb0db0c2e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0.tgz","fileCount":15,"integrity":"sha512-KE1F4NnwHRVN5480IAVRHJ5DZVoQ6Me389GnHawP4c+QZCPKU9VikZGdggICAiDsRAp2bdL98r9NK4szOvFLfg==","signatures":[{"sig":"MEUCIQCF3DqC/4RL2mdJjAppJG0y2XFTfuJO7z5akySpT7zerQIgV+za4oT9BYChz6YS1ZkY+R9gHkDwp+E9XCWgCQB2RWI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDBx8CRA9TVsSAnZWagAAAF4P/1zoh2VPbnTnm6oDvfIo\nZJOngxeXRlkDuS83CZPR6k9p4AvBMW5uS/T76QpvFPPGCZcSyeIsUoy6UXQ8\ntGsbRcCEd3L3DdjHj/mkRRGbsYdYp3TGKRWslmYg3yMacF6FywIxqTQdmpGf\nW2YSIOhOgUl9BkBRSaU40znc9YvyGG3lr4DpIZMVt0n2B7o4EBs5GfXmgUcN\n7lVArb8MLaRCpUM980VLpqQ+7WyeI8ON5OCkwAlNWkxym7Z2Ac+Cj8kaKg7O\nw0hTsq7Tp5S0hAgKg7sn+wiR+NEkYRkUGxoteVE8Sn7w9M1SxKiOI4GfCZzC\nQKnPgBH5/odozBih0HeVeD9vFD74axkpBkbGR7LY8LtM/dH/nJYIImBzvWxC\nnf1V6wYGMmS3IANMq3clUrvv6KRerX/BQmBYVlb6JmB2/I0zl7D4ArrCPBAf\nrGNE5CutDWJQjZrucbBPx36hNd2TfxMH7qDK4UzJdh6hvhuI6RB2O/r56xz6\n5z22/UMcDSWtx77A0Xu9zCjZXDpC1dLskGFWfN60bnfo+rQcCsqdE2YVlh5t\nH7VXZKr8qRq+GtP7n22IiU4h7YkgsHsBowy2BejBELqYYV7GE7WBLflI5cu6\nGEYrT+H+v4HaTvRQe47K62R7lNJ/yYIQNQLh58C1AHxlLCf+gSj55vi1hmgj\ndPvP\r\n=d2y+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"1df8634c6f47594055942cfc4cd856689376b284","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0_1644960892085_0.719546118970058","host":"s3://npm-registry-packages"}},"0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0":{"name":"@starport/vuex","version":"0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b9a333c622ca953376efa0a374267eb22470782c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0.tgz","fileCount":15,"integrity":"sha512-25YXd/mY45U5qjp4Ar0wjg3P0WeNneQJWtL4om+5wWGarHYpoSL3gKil+qgOID8GKNlVof7RHTCHi095Ur9EAw==","signatures":[{"sig":"MEUCIH4jG9/VKkaBLS73y8O3Dug0+xgAe8NzylaNmtp+rJnJAiEAmsXZ+F6MsknhpYjvCSC203rdgCk0EtqTp3H3nq5AvZk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDD7ECRA9TVsSAnZWagAAg5gP/34jEp07cdh0ZPGycr3T\noo+NUPTC7czHGA157Huw2TMndOt2eyvoR1bA2cKLRk8ze5mewlHgStNt8hfB\nHVQHVx4jxnjAW8PFbALO8tpQXGh1GC7U5Uw1gXfVkvPBRDpCmJgIU6b1sYq1\nLRG3HsqNxDm9Txr0e89zgneVj1yclhx8HHVCvdBZwuAPQyyBQc5Lzm1c4uK6\nIzUtj5fSqm/ENQ27X0iNxA/Uahe9SaAA7ok+za3GgdZEd3qQ0VxJrBhh+7ip\nlcwEgZPpkM2FaA5VNJageBzjCZyIi5Gi96HyxrqHylrFPclJCy/F590NMtyr\nM7bS24Jkyq4kRudcDgizQ5DJarmlLI9hPec87wYmt5C7CNF27PZv54tjTc+4\ncY0/xKyN/s7hjiqMwCRlE2uU8u64riioEbg7ixWNQgRsfEtLEMFaQndUKJH+\n48iUtAdrio2jXEKroUDRtApV1CvGR5jLksIIY3ZsaXhpdw+LxpX3N0rtlo1T\njMhBU6pTUZslsZaLmn38cMDBleyeOuVCsc+3bmqsZ5br/BGy/EtsGTR8z/Pb\nwg0biTXzSIHYXj0B6V9TyqKYvZndJSbM9+/AMNfOB/vJ3sWLoyvXqqp5RQYz\ncapLoUE0gdSteOtfa6HkC2teQYfcaklkrk+YsXwMGLbolhB3AMBz9T2uXkC0\n7hOY\r\n=uo9m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"3872a59cf53abd1ed94bc7e50af72b99d73fa567","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.13.2","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0_1644969668294_0.4311039583697438","host":"s3://npm-registry-packages"}},"0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0":{"name":"@starport/vuex","version":"0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"2b3f5d7495567f23f2740444f95f75fc65208606","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0.tgz","fileCount":15,"integrity":"sha512-/2MpuHrqGjlFMWJ6VxtsnulIdrMfBkedK+GUHQyYur5w/7dlt4fZZKFW98/q98sv1kKNRcelu/8nuAk+QRYTYw==","signatures":[{"sig":"MEYCIQD4x2o1Pj0HlBBKe2jmXiETIyZaGVsj5OO+klXtflksEgIhAIlr4DxP8ROoPIIFA6WeaGJfySIj+PCvE8AizwDmy5Ni","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDPgyCRA9TVsSAnZWagAASRMP/i5pH/LZeUMuOYyTy3eQ\nh690vfEwkRm5KVDY+4zHiu++86Bp0mI5lWndFkvCdtwn7tvyk5IeRGJykUw3\nAbfTxUfrCv4Dw1ux/NDCICwdJ4IvbI8G/8WO8R8/hEb6tC6b8luEwdI4Or/d\nFWmpUjpiX0ltan2X+nDUUgJq/Scrope6nn2LCA6IBcEzHCIMlfk49/Uosy5p\na3PBgKk2gVr9zYsXgw0b5tiYnlQB6MkJh+xlWBPAfvqAXLmw+Z6Lrd4n8hcD\nX3SK6e5sp7A6SxxWClLBeRINrDvbCnRfOX4Q7EEZnso0JccgDIUCM+oKyUj/\nDNQkcNootI7ioe4BOyrNL3QcPsSCan3EcSiuHJiD/LeuFmeAD+OU3GOC3YbJ\n8HOXkVZB/vNCsv2Y9nzGBYb8Mo200Yu//15d29PfB8nGdXMJjMgMP7KsUrh8\nx9dPomPJeuWkUX0hJ2NFDkaEQ1wgC2eFsKLtF3/pWScTfb5FQia8y4KzGCYF\nF1LqxpOtk9hM7JIAHinyGjRkaeIqczVavCr9XboaVhzTW72rNd1BXm1ZzaWf\naTkVsooyt7Vsxn7ycM6876TAzFXHrXS+g7ZNsq3xWVff3SJwESGSzqlHp0Tn\nJzN+6VGTx9TLRuQ02WYNayyOBtqkBPOEoo2ttE9fMLxJu8yCeO+yAEESIonn\nSWH3\r\n=GKbw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"16f430054c983472693ff546631a9d01eaf5fde7","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0_1645017138575_0.24777889807992204","host":"s3://npm-registry-packages"}},"0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0":{"name":"@starport/vuex","version":"0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1309ab796704e29607c7dd37beda647b43484bd7","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0.tgz","fileCount":15,"integrity":"sha512-MwmoG5ktjz7B7n1fqcUPrelWbEIyYhE7v/9X743WLvNC1/dhJJZGd3kwgdsRQBH5V2VblImroxMwezDFlk6WkQ==","signatures":[{"sig":"MEUCID2aItrVrS8wIgthtrUmjuolMhDYZOl/MKeaH83akVIKAiEAyO2V9zaF8nAgsSyVDML/Q8nu1OU2PuSjoF2x1iFBBys=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDPntCRA9TVsSAnZWagAA2eEP/2v/tsiVeqfQhkc1RPYJ\n3DzlHfC6uStdDh8kGY8tsagMycU4nwtOsrb9IX8X3ruZYxnJs6/povMXhLGz\nv+KxOF/zOU5GkZlUUaGQYNYu57MrivyoYXlwVJQZl3Le8KhHioRlXdUJTtrZ\ngfsNrlwxjvRaE0o8DAEEL6t0VFnTkXJMxmTLklRtX/MW+04+35URR0er3LPL\nlldBNEX1t9/m4/WL0sMCh6c17TIok1M9/OG6IWCE5YnmTg8PdjPDkJiOFb99\nWrdqFE2vMT0vR0adfNNvmHRFTAw7jpJGQdmqNnwDxG83HmQgVbfV5BFWMIM+\nfvv5fd8BXztJkrJZsVQS+qKZZX1y2uPQDxWAVi14lKWaCutxQMdtkFrATc6U\n7ot/zu4QdvBjbeAU8ke8P5g8gKnwB3KaBFKT+WpS0ZvGr/cobghA4G4//c3N\nqSLS3I9zf00r+NCN9zuVn1ctTxePY8zHK/1eADQUffGQ6a7ERYLziCIaRRL7\nEfe2T/5/LR8xmBJQ8j/BecpXBqcw53NbMyQMpkma5iWGlgGGe1VmYdMRHHg2\nD7ENPLTjt34FRkBLNXkGXOqpWv2gmUUZTa6pxS3QlF4Bmy5xtGyBsHVp7KM0\n4A5ncFa9+ULWnfw9wkKQ/BNtRAkyP5PR9B23Zp9iH9um/Zr/NWKYgkzz2YG5\nLQjY\r\n=65un\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"98615befeb379e8c352d6d09941c85439d2ded4a","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0_1645017580905_0.1802976675291761","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@starport/vuex","version":"0.3.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c60ca0d90a531c96d538373d1493223a47b06aaf","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.0.tgz","fileCount":42,"integrity":"sha512-H+9XirGo0JZYGtZaLnHb1IPlL+IF3xvwu2XV/S9VMPoMT6CEh6TdzqFRnENwtaZ5bQC34GDjrfaQt6srYpbYZQ==","signatures":[{"sig":"MEUCIQDRVJYKI7zeUzPQUe5buevC1Oil5wtzDauPyLhcMc/7xAIgeIqoJILeLRJ1skge84WPLiHGJQ4Nv/kob7Ow86RhGnc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":269616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDk/xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPsg//TcwyIad1sAO/UgtyI7codUFJBlRtnv923c4LMX5JpHf9HERj\r\n/nQmvRrpH0L+sUlhnFsmT4D0OEr8MhIJhFmiQ1Og0vsisl+ZMBTrcus7zvCL\r\nB6QUMCSWgNnN2iynyGU31cMWxIoywrelV26lIZA1cXBupFvBylwLYpp1zhGD\r\nVg8xEvIftT0VJPb+ibEpEMbUokuhlNy9/P/UuL/cpS0X0WsPB7So5GEwfAc0\r\nT7LTSVnWDf30UXj66QeiqG8w92id30e48ssdHospsiMI8KGC7uObtb+14v6d\r\nx7+8WccErNVplkscJ1xu6XYy/RfHy0M73rdnf7qyQ7kXnQw0OcjfT+zoQmDv\r\ntv10GkgbGJOnb+dQhP0fSaWsEVGb3rrO+1+FH589ZoOclXvoYBoVwOe4Wb1p\r\nA0mpFW0qePnNyoDbS1JomDMMLO54Mhb/HGr2f5IeJlyMMok0mqE4p2MAHGwq\r\nGNzLSr5KsKl5oyLDXQF3ftukKbcc6Y+Ami9AKRyf6jCv0aNklZQIUzZ2xGdO\r\nRsUClD06luE0lTnq/aB1RFWUxni8a+XuztZDpGqyQ9Dg8Hpvjn+ZrGvdqmz6\r\nhQGzS0lGNN8s4ebtMkfT0GGHTnc5WMLjgcozZN8yX/xJWHdoDRK0hv+3SKDf\r\ny7VDkiV7Z5VthxPqLex3nav0Ppgpgx3gz9s=\r\n=LBEf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"f1cfe67cc21fb230b668f29fb41bfedf7145a712","_npmUser":{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"8.3.0","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.10.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.0_1645105137683_0.05290131225906358","host":"s3://npm-registry-packages"}},"0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0":{"name":"@starport/vuex","version":"0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4812029cd057fd778746b7d5397a706324198728","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0.tgz","fileCount":15,"integrity":"sha512-IFKrOQTs2wHmaxsCu2pLBmv9nd1SmgFO77EyNHZKMC60PnlT0I9fbenXQzQRa4vZw0K+37QZI+A4yAbQGef/xQ==","signatures":[{"sig":"MEUCIBf/q82YUWKDQuyXSJW2HR1MqO3dnCNfSE/G4hkIsjQxAiEApO1B6mboSwFfxYu7sd6/NDMKxP2AY+IjOCcpKggJUh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDlJbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrlgg/6AqrE+RMFuEbSIOq7Rq7ljBL0XzJVxymHCkbtM86Qlc0FnS+6\r\nNytiGOQj/2704uBxqdXGoJcSIbCtMBfrbeWcRk68uykgFPqODzn89DWuxjbh\r\nKTGujpxPa593Qa+eahIyQ1FgHileKbmY7w6tQv4UaE8oEY0BeJao6rBH3Tte\r\n27HLauBf0fzTuAsKqR4d/BmBhpFpVpJ6/a8xoar7nC75dYckyqY8Ir3Tb7tX\r\nul7X76ptgdprUu455T0kKeKwQ7FnMN/TSB9reh9JaFfDLnmXIc7uQtCImMSt\r\nj/U65NnmLiSFr3IexPrkp3jrU02adsijQpXFGGAszN5DVs8I0GDSkomfIo2C\r\nwMq4AeyqV0KtfIRoX7y61h9FGFo3raI2hrlPQEtlF/EEKuxFqwTHFhP+uKaJ\r\nxIaOrgMoqcblyC49uML3A41PIgIlU9FewB9EG36tsbpld3eC6E1pGuF17Sd/\r\nrkMafBCegHaewptQ9k8HAR/Z2FVo9B1UPEdeG3ufBkYtKxDa9gDPqEmvaZQL\r\nXEggjjaBKAo+tR/OtfhA3Tfd8JrYimtteDjFb7A4nkyAMrUCb+96QtINAwhP\r\ntWiI7gaDdkHbPrmSaAlKKkEirEFrlAoamsQfBgucvi/sryCvOgn8rJJyE6/S\r\nht9B6kESThSPnTOYn4qfX+wPO+2qHuuIcO4=\r\n=g/fy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"3ed18bbae980fe15d78dbb023d2a74797682ded1","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0_1645105755590_0.4939806861435423","host":"s3://npm-registry-packages"}},"0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0":{"name":"@starport/vuex","version":"0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"352491864dccb6fd56458045917f0b52a2829b53","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0.tgz","fileCount":15,"integrity":"sha512-7phAcJA9jvBt79xo+3wEDng0NUnLXYD2SeyxaZrOqNK6lId4CFxi3FwdFyFejYgbwPAPsqBvi6pvjqfsYyN25g==","signatures":[{"sig":"MEUCIAZSeERGZndEZMTn7zfGbOhsu+Fv36bl7b96ADwaJimIAiEAwEGGu3fE/kRio8A03YJWcHSFMpc0u6WlX589HwlQocI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDoyWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp49g//TxlhQqzLjVDg4+JxqTNnfJBe+Ie2BPHeVNFFYRsz1YRqebNi\r\n456n9cAeQM/Jpx3Wfb6aaV7XdnJGO0FRiRP9ZGaj8dwMv7+SZvFeG+IXA7Mz\r\n167RXZlue5hxdKB6WZdEqJNJnfQpOKzsoL/LtUJQVTWbJbzBcVQkMkNdGYYD\r\nmxmLwDkqeCmClIPZP5yCMRecxzEiqdTNd3RID+Em2PmNQq6MW8WUEiRj8Y3R\r\nNboDnST0GziRDyPu+byfl/8TCA4LILOmuGizBagfKrCC8u/HtxPD+KHK71ho\r\n02HJhO/Xgl64WsYpvrcc9S1y9dgIfs1K/7NYiVK2CNfW+NkGwLiUJ6H5mDf/\r\nPMcZ/DpoMrN4vNOnN7bX3bPr+O4cgz2wfQAB/Eb9pN2uQMC0dFKbkRnHejx2\r\nIpasJSe+Y2h8wGoSn8fK5fQGUyNbcL/TSaDI6XVtEs3a9tY4wGbhT6t7tjhL\r\nDcbMB4zhMjAWG1i6OilTrKI0yWHNuoHk/UaOaNngOZ3z9JQGdYWYeTIodXnq\r\nhjeiNsXAHP4iqSS/mI+GVFF6l/YV1PfBX7dglTn7LhWT4jE32QjkPrwfmkqA\r\nP4VchM490ScrHRMBOrKdqC85AVpVZmYENMXG89YOcKr1aT1AyFZ9OUgy8FL9\r\nFctapXjplLkBdFSpoZKJNgjDq1WZeO+UOeI=\r\n=2nV3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"90af632bc5a7f6d22a60aac43f46c6b7676fd8ab","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0_1645120661987_0.21173166266215793","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"@starport/vuex","version":"0.3.1","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.1","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b2b8852e25bc1223aff3720ef2a1f40671f0768a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.1.tgz","fileCount":15,"integrity":"sha512-XjHL+4lOwBxBgZX7tnC5/b00oYD86/fHLhHzUVzvIFQIaCSpUSeAb23JROr6YQy4oi3fFyhCBsKigvrdxbZPuA==","signatures":[{"sig":"MEUCIQCDov/r0R2ATMzTFXB2h+DoUZwZcSUWgR8dHJUP+E0DxgIgVJ4juW5Wc3U92gZSHXoQTmC7p6qWe3BLGkvUF/+fZME=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFM1sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrExAAmyUa9MCZ4RAwMRHU30Lj8CQZFPc8pVe0BQRuPKKZ1q+5g8MN\r\n/d35oSeOQM2m2ADmAwY/xwvqiy0jkXqmKzh7WIcfWxRbZfr+W6LdM2vVDHCa\r\nbT0ADHNBVkkRwhctz2kvHEswBZyMfHyQHkJLUiiOBZ1vYEKmyOG6G2ezG8w4\r\nO7vkmjHVNdysY41a0vxZ8CG9Ih2vAECO+87m6reJb3DHv+pQrs+gTbI4F83E\r\n1zU0XuAJ63xQLtlD905rb4K+eLt268jPqhAFoLCf+YDP14KKOq2t9FcPimsF\r\nhqTUmWtDHY45eIPHD6DUcuAW8MjXuULBwuMGxuXOsPVhUhmOjMN8REd5egdC\r\nbuTSuW9vbFaSx4vjH8J8S2iWc9b/4zs6LyaIJM8cBy6qcNDl45EmXMiXfxeI\r\nlg3y7S45eof3Zg/EkgsNIcY9vjkZjT3xz/7CaDxKuoQFR9ttri43JRij/lba\r\nfco8EQ2mmTS05TzV45yXLP9JLTaWgZWpRiL0W2NwWWw542QejSxydtbih7ph\r\nXgXWm4B76Tind6goHjZ+cH5vaiI/vukEBpBfeAfAgctbEnOP9Q2fN6c9SmkW\r\naAH7yvvRjaeI1NSMRxUASqqGqFeaJQUPIUS7LITLgmYVtT+jrHvrFR1vvonB\r\n+s0ivQ/jHLGmNwix2Tn/51Lu7Yg91n5hRQo=\r\n=p5RC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"603e92039f64a239bf98341b9edc964a57d3e9c5","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.1_1645530476272_0.143811123687261","host":"s3://npm-registry-packages"}},"0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0":{"name":"@starport/vuex","version":"0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"dfadea58005ca974ad4417aca833932595401052","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0.tgz","fileCount":15,"integrity":"sha512-oF8Nup4T5ChSZfW65fm2XXVgIU94j3OzPYKBA1exmg/MDxGned9TZ5Cl+lK1bDQHGxpghTOQMmx/uIlbuOL7bw==","signatures":[{"sig":"MEYCIQDZiWrflk6GWUIkeBacq0kwcFVnRHlA9I8Rl9T1OdlBowIhAIBd/5ddUnTvHQWXexushVJOiCqakER1Vk0AK+DQdjL7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFPTdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFUxAAjWG2G+NgCTjI65yh+4Dp8AG0wXv077FZ2SZkF+t59WrnAxHf\r\nSxatFeOlWSlSe/A87rz1LYt4YR2Vvw6JLRvvWqUqnf7aXvCKoMX0hJP9nc8f\r\nSoOePNOKap7Gur42JmazQuC/Q1HJs9+PK87jlEgJvdRQ+UtJ0SG3StalVW8h\r\nh4l9GP0Cg0KFy8zQwCELmkrJ3hyO/vbncQJjLh/NvsXJSU9AXOI+M9dPB+LP\r\nHRqIaHiuUGHZr3WHn2z+dUJN5n8w9Tjf4JAY73Pd/7qPl0uKVWD+2ztjl326\r\nfUlAu9CkiuIaq8cZ8r7ZXHTSRyKDm9IzHKbFpoXSnqUIK+PavCzYU7hjzpKb\r\nCMpfMGdzKvgrPIY10GAbzO69DxHbIgp36WTloCme52BimPFffMMx7C1DBfoT\r\nVHQkO3wqaU/uJZJBTzgUI/V2mL1V18jvn+IJh60nq+xfj4C3u9HnzSqwesn2\r\n1SryiPU4wZ7CfYCgSGenoBcC0T7ZQ6nTEOZkaXKChwKvxYwYIPQD/aSEeuP0\r\nPwHYSr4AesZ1TPKqvPPg61p+sqss0G/wrOsNVt/Vd3BzTFtEuWKeA7Cw5Jhc\r\nLva9H81WF6oippG7y8cW/mOxhyRxwWIE+LQlPIzmrBwpW+Zs3vFk0kIIcz9/\r\n9PXuZJiLTuWORccnBYOb62HcWJjw1cN2j4c=\r\n=hQ3j\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"da0baa504a3af4d51967aa7a0e1d0f435219e9b4","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0_1645540573311_0.4889609739326395","host":"s3://npm-registry-packages"}},"0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0":{"name":"@starport/vuex","version":"0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"56a491c8ce69275a4290af39b03aa5700fafb3b2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0.tgz","fileCount":15,"integrity":"sha512-YrPXM6Kdn2yY9+3rlLl/LP5oVTG4JbZI5zBCCklqVquxPneVV6aHmm/sY3AeF+PNUxBEDxrPAcHxu+rs3Avnsw==","signatures":[{"sig":"MEYCIQDpEN3SY+JpWyLyvqD8/nr36vtod6ObBI/VFhdFcqFR+QIhANFRgiummt0tMSAxEBHWkt+M1WSwRAkgleOcYK0gDmjr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFQbwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo40hAAh6YA6cEqMLV7rfEHm5fXcnaQtu6KRaWnpllropLLYRHb2dRy\r\nSGfWa+zDeavb+RHqW3f2GuXULbXFwQYoF1/g20et689h1srn26/JbVGcIXsl\r\n2pR4+9glXwGHXON5hGXoTE8waMKZOnhkPNFU1o4/zJav0P6QJDLVo+DXGntZ\r\nNTjkFE9rsanCWOmA9OgTuCUHASQvwGXEI/CKOxOYPLvWtjRaOPIZgCYYDuuJ\r\n1EYSJNVSOFedHPCyfjh4u41lv9u3gtPQzp2Ul3U3R/BD6iXzW1fFvBA3GJLV\r\nmochD4pB6FjHEsqucU9H7VhmJSTf2YuyT7hEQkcYX/Dboo85ibJq8q2LwxjF\r\nilAd/gjyO2w8oq9g44E2/amGzzkjpG9mRaHhIUQsazJN0dMpGK55e2piWCOf\r\nLj4J22WJhXJYpehfl6qTHUMh1dJg24eEnVtJ9X7mXX2yYDUFW/2GyIL4kRAl\r\nI1FFa6shZFvV346S2epJ/cpKLv18EDo0jyIP9jmUIA2mySHz8r6Qwo3v3oPt\r\ntmALtSxbUpxPtS/Y/pN4iVUdMQEGeBRhH3C4dEQjl611egVkx2TUqCdikVA8\r\ns1SbgScIxHYjzEdXvsVq/LCw9oNXJQyXAA/vSA8AYwf9rqaMFAtWT+dORFF4\r\n0rMkw4Nedgs9DRcgsrljh/B7QE8qNGTnXKY=\r\n=3qTf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"8a7fd8b33ad96de7c860a7e8c0837b054d07bf87","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0_1645545200576_0.5817581975207884","host":"s3://npm-registry-packages"}},"0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0":{"name":"@starport/vuex","version":"0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b5d5109e48024c2cc47e470981ffa353f3783fb0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0.tgz","fileCount":15,"integrity":"sha512-ivydeUmTR9wduuWuALsiqNHRGAUWw568Ny+U7yVxZpGx6+Zc+gtEt1npvYNdSk+ZKbb3JgLK9ULG5mpVRvTrFw==","signatures":[{"sig":"MEYCIQC5i0QFikETyWFfx/zubx9MGm22PTz0Ye+ckiIZmu6uwAIhAJffCfXaOduBB/bTUxFLKeQoTbaswTSLhrs4bR0Ve2hQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFRGiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJPA//Qa1skf71x5W5PVy7iAn+/JNHiznszDcz9eQujC3MjAE+0m67\r\ne0KzgDdE5DEoTNYzifTzl6YRrh4MJsjnBKgufy720fUQ2qRtMW1ZiZOkKtEq\r\nPQpMJdL6YMCMR5Z5+WvCrIhnt+FcRrUFq+2t3tvYoD2tS+CchAaCEkCFaD/U\r\nqf27Ixa9GzJGK9aueUBQbIp9G9i9gV2d5CG9bFDpy3gc3pw8DD0h+irJTvFm\r\nwA/96zlGBJNBBEhD2uoYQ+uHf7W99ixKq/SqBMQ8si5pcf3gzLlbgskEVW6l\r\nfY0OgakYQtbZrZB8Pm0JuUzU0j25O6xkN4aaj3rKe2iKqnqbIeMWELBpl/0Z\r\n8ZLK8Z/y2CUiF0+v0ysJILny1rOuiEU0uxz1Va7DiH5lDlc3mQ9M0EeT21lM\r\nOqyty3XJo0TecgpZa9OaHRQv522YOld9NABp+xmdrQo7JWPNjIqjRhw4njFx\r\n8yYldbxAr7jIAbOW8GkFwpfPIxHKgFCYVAfge6cPMRcQUrpoM01I9KcUgwyP\r\nsSRAfrPitWzqsbFJ8u/gMoTpZioBiY8kN08vY7mkkIkaYYogJaarqZwxKp9R\r\nkIjHaj+TrC3RfDSApuhcVPGCI2LtsY1xmmzScr0Lm6q45Chk3jAx4P1EcqhM\r\nEgTlU5FpdIObrlcisSHCpMw6pJ09XAv57tY=\r\n=y8gG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"f7649e05d0fa9effe576fa96ed6df69b9f014575","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0_1645547938645_0.22847764652622837","host":"s3://npm-registry-packages"}},"0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0":{"name":"@starport/vuex","version":"0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"94c08bcd06aebde206c0168448a0f93ac13fa424","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0.tgz","fileCount":15,"integrity":"sha512-6nwgiKZYOed0MMYZ7s9zGHk1m16QimOzLAQSBJ03UQIps41YODteNe+yQ7DYqMxNwwZAAwuxoiIbwhw45nfUlQ==","signatures":[{"sig":"MEUCIBJDzU3TrLz2/S07pR7HkP/PV77G2r2s8Qj0v8JuQbwcAiEA4vHTJRVgY1Bmdr9gXJrXdD+KseCK14ecBVHFH4cYoOA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFh3+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrO6hAAnPUo/GRvgBZFz3N+Di1LiJ8bHihJHvPK12QUTQMZhmSHAG2m\r\nBVECW1Cp7PaKD4F0A3qcRIKFMnh7zo9s3sxWvWPObT6WkFiybyM4vEKquuZ2\r\nfg4dWY4AtypcCDLMt+AiXRrtqDa44w0kBbBg99s9k31vxyqfrx85cEZ2Zals\r\nR7okuAKD0Vy3IXW6n5QXq0beJBnQTp62oGzAhnb3NPbOrtfslNC5wJElfe0Q\r\nF6rPu/ANcP3lKvXcSXBhilXoSOEqKPNsiy6uzwCwbivsWBBi33Zb1SoH4QW+\r\ncXImNN3Du9Ed+YQVe2lXQlbKY6QxxGNhw9uPEV9OB5zRJWyoaGoQXwBxKn1c\r\nqNMljxH7gi6ZC1lyn7hbBEJON7Gb9a0UFIhso6QrzXwV6GOsyNN9sNVFGy2a\r\nCxvQqUXfa98pxkNpmobBMswDeWx/RU4KNP7NaKDY10j/NtH1vA3fI5KcyiPz\r\nkDipYBsXxZ8NRAuU1ddu7T55oL2Z7RW/hIdiKdgaZ/SYOzJkB9GwJmZfWf3G\r\ntNzhHYBF9/6aY21WqzSQFAZUvbF4jTdTOnee4R2rpV6zlpurMNC9aguFer1+\r\ntK7JN6dtMHTpg4zQ8uYl/suDVqZh5LLrtcamC2kBtSUSL0+Thr8et/V8YhVL\r\n24cCAZSiCJHXLlPRB0FR3RnFHE+oTJqdwZY=\r\n=Ay1A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"1ccaf70b1114a9b316e49cdaa7651348716005a2","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0_1645616638224_0.302084134348253","host":"s3://npm-registry-packages"}},"0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0":{"name":"@starport/vuex","version":"0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"1c682bddaf0c7587224a5796032cf4523c498018","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0.tgz","fileCount":15,"integrity":"sha512-kV/TTuaOVGwwVwh68d1/YXJC0qyhONHrPf0GQAv8Yu0cg5OLQgiAyyskKbNg5I5gk9k3b/dXreRZ3v2ntEkepw==","signatures":[{"sig":"MEYCIQDoKvWvNS/lF1uWyV52O4CoATGV9t9b8IYQ5flgAZt1rQIhAPd6KKn1+8/SEdJ12thHkOVAxezhHuBXXcuzkHm+WSkN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFkMEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDLxAAkSummw7UblZW+4ILoNiYO81hUnVgeHbSATbiQ2y6XEy2udW+\r\nrmE7T+RYVW/unMl/68UZCRaI28nT6ImTw0qk1QaqstJK+b3dlsdg6wmDu9rX\r\nsqO3cHuSP1roYCCfP/ehxQU+zMndPi7WUKb5IioT1trlvZZSa3aIvr0knmY8\r\nuDfEmc6AJms+bbb2uCI+s959jxvYxVTG0buHxE6kSlx1ai45+RX9Rqh8vpJP\r\nY3zd2t1gtB0kT2c8DF5aF3H1zhD+KJTV8cbW1nwfZ4aBCoLGySgZcHv5wjhn\r\nlQy4yzJUkSna+I4grRhTBU0cRlIcfkantRdzcpn2MgzC+2kZbZGTCDculEd7\r\n+qZntcJ0HRks9oGqV+6OAr+j6PgHQpuPHJYl5Qh3k9ZWwgrGRwhAm0t06oqc\r\nGIsyi8dpDOba8Dl6pf6HkLFDSOjhEYYcnyjBx910GT21bKYoGQHGXwRmOZER\r\nVUG2RExxyqavVfsXNQO7yiiyKal4MdHZ21JNYp2QH/Sx/Lr/Ludy5DP2xPww\r\ns22hv+vxbSqEzwB5djJvJY6XuY2FnoTAEXk5fLZgT7cYHp9GK6hV7GckoCLE\r\nD3tHzkOSjBAObg03KcDtlFqIz40iVSPOH88UaL0/nTprrgBG6BPKOWO6S9Uo\r\nPQSjkSWdrkn1YWSqJzIBxFLfGDQkcEzEJyE=\r\n=Me7K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"8fb8e3717ce704a79e6a41df445608c84845758e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0_1645626116198_0.4237139367609297","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"@starport/vuex","version":"0.3.2","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.2","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4728cc00f8da838003337fd66d0fe03a6724252d","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.2.tgz","fileCount":15,"integrity":"sha512-jgmfuWn1EyMGcSP5O6e+xMVVe1nl2K8kx4MGjrY0ONFx1FDxbNrgG1G8gfG7FVrX6pwOufXsRXKXdGLzB4+U9g==","signatures":[{"sig":"MEQCIE7MBx/jNGyrn2wiYKSmEHRpE3SLlb6bv+wBgqOK4pkdAiAobyR4DAjtwA2qPfT4AGGJrQbOVNY/1EWNDzDLYfPWeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47617,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFlbdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNBw//eRuLesTMgbCjn3DJ1A8LMgQJrZDEZRpLl9BBGj6neeOK4GUl\r\nELE8Dgmq5PXHgCgDynbdg9mUsQlTrw8rBF9RUUBdc4MwYZNqVyqMybTIFzRs\r\n1xfPkff/Re2PZ44iV35q2kmR3wlny+PWEeZe47yu8WrJBcDEPY4d7UQFlnuS\r\nwbhaDKFL3rt3fIDQ5s/cIHogCpNXImKJMnt80dTjlY6/Xn2svksS+Gw4frJ2\r\nJ3s3/41GMXVZYqAA/nMPqWwucbpPCiSBBFbvAcXPKwgEU+wLnEl1DZV8g43t\r\nBJdiiykiFeohjsmGbP6G6kxFILN1/B+lcWKnbTGdlZlvNfqRs8rCYUjOceFi\r\nEKuMeUmYcBcNT2w149RGL82JWiedhd9Zm+7mtp8vrnhKmAkLjc3wQv/CZ2oh\r\nSsMvXl9kxhXC1WS/xNTL5OBfe3uZ0gSvoYuRLEY+WU2jQqWeA19MGPLxyu32\r\nf8LNmHMTLpp6T9XS2phVV7LP3aBwkHYJFSn57VlFGOQv1W8n+yRPKaVozsJP\r\n3NW7TnRkNCqscMI6JXUcjKYit7ameOVk3nucOhJsFbyj/bICkKW3xMQAOXC+\r\nKBylVjuOtccEKzfiNxcTh2p8pLMYckTm49hqBQSgsS8Lc9vyef49iBnkFH2+\r\nnoNhqa0nSon5Nspf+XZD3hF9dwTgvqLjNvQ=\r\n=XPsb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"c5a2206e1dc0bb6f4180cf97062e912afddd01bd","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.2_1645631196945_0.9599458789296313","host":"s3://npm-registry-packages"}},"0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0":{"name":"@starport/vuex","version":"0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"b36d20131c948072d71ad162436038e02ae20a4e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0.tgz","fileCount":11,"integrity":"sha512-JB7/iqqqx/MfWpL1vXhB3Uuc6OksUhawwsudtzI9vE1mi46fs6O/UoxjWk9HJ2WBD2z6yWJngTnNijQaN5GXSw==","signatures":[{"sig":"MEUCIQDOI3mfIy2X+MkxKeAxx4HhYn8MWIGJvktigIc7vdyGUQIgHrm2IEXy1GdbhyWJYpH55sqj7EAiwVqOdQDNijLnJqw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIkiSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJKQ//TULjehYSiYUZthTzgKPx7irpv99gS6NLWWzB7vtn5XYS/1sh\r\npdz9ATuumYBaUi5sJ6UnZouLLao0BFjSZLKnjillwZ7KnqTZ3nAZdvJDcZkc\r\nzHIhj89eMQkwPxQ0uXocdSbnxy7VBZ99ibCpMNTU8sJ+C/9ZOf0E5ZPwUq+J\r\nykPlsRZBxyG02KonDY72fz0Dht40V46jn3WjnDgAfzaH1P/eFJ9AAl8eV3oJ\r\ncMCN9oA4nvfZbNPbaF+jW/9htNoMk+JW9AMjc7ROvJhSn9n4UDzPQOHmv+sX\r\nNDYOCy+NFF3nE+xUrtLQbH6rtSDwY6rdEbWB3wgohF1B7MFbI4Ju7tScIQyc\r\npFPgzU2instq+PVN5llh57rKK8vZez2X1dkwxr0fFdELkwHP9V1IHAj9PEbK\r\nACgqEac3OtRoQTLXqGLapXtMt60ZkX8hrDm40dzu4A0yzRgPdBv+QgLK2N6t\r\nX3lqYz0raJA49VoO8RsjbY5u/BJ48iD3qRfsFhU+oZJRLtqSUnqCEIikvkig\r\nXrFy/8A1Yi6WJ/PBugV9KYb3HCBHZ/Vj2dsG+JGlVOS+1f4uNCpHGhv+aLMR\r\n2RPrfAotP9EZjZ8mU1P/JlKoCo531Ex2iJrhIJF/1IJUILgPFde0d6EcYLy+\r\n1xJ+gpqEr968f+ZiPes3rAjbwVNzHZ351+E=\r\n=zTfZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"832a377b244b2f8e361055f6eb00346a7379ad03","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0_1646413970620_0.6958766460079511","host":"s3://npm-registry-packages"}},"0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0":{"name":"@starport/vuex","version":"0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"08144a6c35364f7e106f44f91ee25827aa91ee7f","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0.tgz","fileCount":11,"integrity":"sha512-irvMq4Q6GHFCyFX+oqCDf0Wz7vLG7Y0SEVR3oKDMaD3OzkpYNsREwQ4+b9wHaKsLwvYgCmlrsSjAaYmXslU5GQ==","signatures":[{"sig":"MEUCIQDFvb4ITekcOU/IaV8eRB5leivNF1vytkFsherKL6KdJAIgWfsVbfsWKm+GOISsxqSrF3QWHVQN8XiTd++5EqFfXWU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKP+fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmougg/9G5PzHgmQKgf4jcEBh5SaDli/3ThiYlc3Y3rRPIbO0phbfG1L\r\nlWSO1KlFhHjtMcjFdhlmlhPHYXVJtX/fiuTUKHXl8l45+XaUr+VV/svl1r1n\r\nRoCgCt+C+RLaO0KlFkTkWkBfpAWnHOSEWMpZX4UILzwGtUFNnaqTnH/xY5cQ\r\n1uKdVbf0+Ugz17TQZ6rs4EPwdPXVeQVJ7Ys8qUqGxR7VkPPNdy9wRC/CbEKD\r\nuWVBQVZt+Tnj0pLEF/c0g9uipkhDRsBedqW5BbvYEz2PtKvV2ghjlYTAkGNq\r\nvRfo62Iasm02Z0yLTlW/oVu0nQXrfJaoZXz2oNUGXdSN+iQ6JwYMDEtk842/\r\ndef4rKNA6vj3x7qewScUdPxZFyeABY7q40Z+XirLS7MuPZTdKVtqM45L8npg\r\n7gPXYVA84JbtsefJhyHRuztMm8jgFuh/+qPw5COXIF4LBb+ybYjnCXqcxaII\r\n3KJmUtQC3vvqOyd8lL56twsAk+XqplzvQsExxzESOxI3McxwNt+0yF5pW8Rx\r\n3sZUuB1WZ7+aN66LLZLI6BdyJJkyqqXN6NtCIR0oeOPExK8l5chk2yO9FuoW\r\nDkNz9VGH1eytCsMJvyd4ee1GAWAJDjgmMd3VwR9D3mSczHLFcmhrqtssZH+7\r\nVlEC8N9KhRd05GI/iT/KRBTfWSw3EKSBwV0=\r\n=G3wA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"32e4eae60bd8c60c3d0e127c05f469e735fa2f69","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0_1646854047599_0.3493635590258264","host":"s3://npm-registry-packages"}},"0.3.3":{"name":"@starport/vuex","version":"0.3.3","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.3","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"6e8f76361cac78a57a31e11b952e221133d2013e","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.3.tgz","fileCount":11,"integrity":"sha512-Loerq9bX/sziHlsqa9KrgP+vRSE+IekL15BOxfMWXSnBMYpGM4F9m+sK83YirrW+jXT25PkQTvStQjEQTx/E2g==","signatures":[{"sig":"MEQCIGcrqQ2mXLcPtNHyDIyFjDdvjhCY85VDWTOKGhcNvANdAiA5YcVxLoLKXurgJWW9ck4j06ralHbMqNv47IbIn5lT9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKioWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxKw/5AEnmpbWgQtrldjFeZ4TiYWifZ30xvMO6fIHydLg4NGk8Gi0O\r\nq5bk82NvPPclExjccBVio42gBsoCbblSFGK8+ikS/UcC9EAuH9VRNkbirJIY\r\nAriN8AWlhl82SIt3c2A3lB89/GHpK1PhegW4KnLLaLYRDoBzy7xQheYOMA5U\r\nXlz/Q+uSiHCl3gN/0ni0XtRehOAlnbjk1SA03x1AHC5ljddvlslsTIq0BmAE\r\n/33Y7Tp3nnTEUsA68kiHRKfX2oxugwcAN/X+9YKeWwTXd5GozF3ZihBVbnd8\r\nxEnXgWTgLSF562QZUCMNBIYvneYZqlbvNXf6LWQ3jqmTQmDSTGS1lD6ufP+K\r\ni1ddJ1rvrNXA+gPqZe9oqTp34CFCBU2GTkCL2i9C+i8uVT11bzr+vIIM7IMF\r\nXKJzRRL0mTGg62GvgkzqcDMQJuLvyFosqbEGOv9DMz7tDC03MehFZIsxNrsr\r\ngLXycT3r+58RdykkaqqafUUZt+UgSEZGQBM81+Y+4k4sjk34oYxbxJK+heoz\r\n0uq1skHofTXLbI2ppK1dayWPLqDNR3C2HMwu9JXVJEDrYVhwku8dcV3UXNsd\r\nrScAAKoO/7qRkpppB8QpdrduuzANp/9XpsFfE/jhsEnBNkIYbMkqDHqUGCvA\r\nAr4gMVwYUzbVi54gqCfewN/SPXLerIRhifw=\r\n=NIVp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"a8488181783b72b806c1551011133b4fc59e320e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.3_1646930454239_0.6499739563251725","host":"s3://npm-registry-packages"}},"0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0":{"name":"@starport/vuex","version":"0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"7dd9773975ad3c6483d0b5d877310898d390f3ae","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0.tgz","fileCount":11,"integrity":"sha512-8R51SsD4tW4F3vIV6P6QOqDFhbuiZPdNcCB5gIWWwpvmszlyHXzemII/TENMCTXGnzhFfvx/Sl7EN80WBsctvA==","signatures":[{"sig":"MEYCIQCgVN/BMW9sBoyhujnqJ7/Qi5Bhq7pslkAdauUhRyy/fgIhAN/OtRvmvVOBnD+iZ31ETAhDElaenB47xDXB3TPkHVni","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMxd0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwvxAAhuT4nCo8I5HHxuYV9CU69trYIb3Nht2zHmnM89bfsXowoeKA\r\nvSWEW9bHjrOomMiLJjad6ObSfGhGlIqR8pvuht2Ctpvtz1n/idZdnS4rLtQ4\r\nSfAaxOzLLRZrBkd50CnZ3VI/AIAiwZt3zTq4DJ8pYBRw562ykcABaJDs7+WR\r\nZcIaqYSmbHXEklSNfWWPMCkuA1A6M1B20WGVkOR4dEA3a5N1SJ0s05V6E0Ac\r\nUDH3nVtq3blo1xUV2hVIZDLTa8SQujEMdKPRbIB44tab1cdXF8tK/GkqIuGw\r\n8SzR92aOzqWcAZgC65VUa8U25vOvwd/t0d4JwG4xJy432iZZFW3PUV0n39KS\r\n1LFjjRVl01aHfXcDNNbAwHqnAQyk6FcoOBoJSEKWhIzboUTuaczR/XH+tia4\r\nWtgjp21NFq65jwc9SSXVfTR3QkRTbmWjHs18UOL+eo0zAwShTOIhl9K1XqDX\r\nHlw9kyjaRIO1Z9VmqKJotsqGWXZkp9CuQQNLUelpYOzWzdNRQUsrlDPcw9Y7\r\nSl+jlEs94tf1+j4TzuCEk+5KvToLgBvySbY3ocwI4Y0nUxrYqLuqOTYGNdyC\r\nH6paQlpGpruQ4TbRYIJwyyK3RcBmdyX5oZaA6HUNS46lDBZE77CDrZD/bCR+\r\n/T0rjqO0gkwfHeRV2m50Bkla7uIisu4YiiM=\r\n=J4jW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"12bfe333de5572861cdf18427c9337a5d40a9346","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0_1647515508274_0.026575373638951794","host":"s3://npm-registry-packages"}},"0.3.4":{"name":"@starport/vuex","version":"0.3.4","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.4","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"e9957d4ad5ab28c28eef4480f051cce77a286fb4","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.4.tgz","fileCount":11,"integrity":"sha512-XAu2LyRpjqcb2/FV/68obxOURZXgBs55viY5i7xlg5wBe0hXdt1jdETuCk+ic1oEQii+sfehI6mHL7GY/Uqy/A==","signatures":[{"sig":"MEYCIQCDD7MibDgQz5bLGbO2pteNMgBdsBppcJHIAIGN88FpIwIhAP+/9QHUDMPdVyXMLtgUVkP7Y17Qv0jN1esTOCvCJlei","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMxibACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR6g//bCS/5Ui4a1WY97V546LzDuPuPnQ9k0n65IFZy+8a3Yvlewwr\r\ng3pORSsw+ZzbLSMD6efisSLpRg2QcAxWF8IPKdoUSh+x8hD6D6KmXET7G+Um\r\nqzkTYPq5yW92xNhP3niSZIhU3ZjyXQ1gzFwG7IudrAA2Op/qitfNrBQDWCR1\r\nvezNDDZPcNOB8q1aqQv0WHbO7BJVWrA8b6MCTMFD9Tj3F46IO7r00LoGK8jO\r\nLOoGLjvWdUytcFjLxIZtCoDaW+jaoow7l+BjQ/17rg8HThrnUXlgjsZosaDc\r\nU4AHNmTNdxY1PleUbW2QpJfrJdsoL5oTLs8k0BXjaMSBBJIzv2DAYPc2Mlr4\r\nrwgrXws9RrvK6xODcfUvhK1FXz3mwPszu6n/l9Z+hEa544Bq6l/erDjkyqP2\r\nbDL28wfEgsJs3DHB+48/P2ee7nKKNi5WpzgB+FdDAmY3ZFnyJirwjyXHwxNA\r\ncZhuMLY0rDQMMRReI/L4JbRu0y6UrytNhLgyxoGCW22P3JE7/1TXyZkqWtGa\r\nzTsNs9SFDg3XdfDc0Pn7m8EgQa0TZTpwDLx2ooWXrjDEOz+C8i1G+j597v3q\r\nJskU2/GNA+Wj9m+XHGBcJ7IEoA20rumcJ3OIy+OVEoJWU/+Xts/w/p+1Mykr\r\nyc9F1XWV1BRopNTZaFBD9pfmynjDYj49/IE=\r\n=pyTY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"fa63ff258d6a37dba81c1f2db3d7e95728c0852e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.4_1647515803314_0.5312318848083402","host":"s3://npm-registry-packages"}},"0.3.5":{"name":"@starport/vuex","version":"0.3.5","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.5","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"334933a9feaf1b6bfc340858370d7e1e74378973","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.5.tgz","fileCount":11,"integrity":"sha512-Nd1XzPzwaZbc09TfhvvKNsAvbCC7Rc5LFWgPW538LT5EbNMgGA95fNl3UeE6yVxXKMTLQmuVGfj+u0hqPfBxUA==","signatures":[{"sig":"MEQCIEfo+BlALRW4INO0g9kXaNzq6Mpv9Ew4HBfK0NtNkaC3AiAKnE6QuVGSOCnASQZd04gNYz1zes8+vceEhNt9N94c+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiNafJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs3Q//Q9KWSdNR5ENxsCB1E2aTPqDd6tbaqT/wge6N3TXY2zZbZqkM\r\ne0nT23CXTN328SQInDlWcsqORw8gV86UVMFcAIw5ENQJlXiyQvfME09JhtZR\r\nP9ySP0HzGdXNNVOz48JG07lpxiKAz2OP8FBUSCP7oKxseTicD0adlNXE7fEG\r\n4evHApEvp/pmW1wXCMnDJCZc/4Z+HirviLoy0+ivjNpqs/j8ffaLpSavA2w6\r\nlccxcBwhrcMESNRRcspUoOAP0mIoKB1PWZPGA54JZwFs6yOWz6fY7aPKZvU3\r\nfiZqp8+uXmtJnzXkoInelJJID4xomZKpJQul6VFYOCOoBPswB14YBJGM6I2M\r\nJoTojnQAg7U/xb/mJrPlHf6eL1L0QvLTqaump0VYh0an2YvhidqaiefZ9o1i\r\nX+oYLjktk/OQrmobPm2UClmMBHNV/1xLXpT9LxeoYTLQVUldQMpbrFkZzC7z\r\nya9qrsmUaQh/JRmHpIMMIW9/R25/ffcYkBwkR9IV9IMjeYnFlqyRLNzkSWaq\r\nQDfgOenlNLBYROIcKt5s96qOufnU6Rgxcap475EfSoAQy5isNaTL4newJVil\r\nJW7qEZGnKPwK2HfAN9j7Pa1M1hyhJjNZsV4zJkwOUJV1I30G2Zlt0YjWG1Rb\r\nabXIhnHtYLdrrtrT2MSvE8Wv2Ge13gB+gqQ=\r\n=BAqp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"903531d1ee34e970c56285ce808e799ca1ad7d74","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.5_1647683529406_0.5505787125352997","host":"s3://npm-registry-packages"}},"0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0":{"name":"@starport/vuex","version":"0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"c4a587aba13314beccfe485069a5e2af5c01584c","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0.tgz","fileCount":11,"integrity":"sha512-dPOpQd8uRYA75/dTgOUxxSW9uqyJ/BlR9Dm83GLRQGweaPUNzyzX2YHnzqSJV+N4h5Xyc/UJLrrV+kHNu+bxbw==","signatures":[{"sig":"MEUCIQCvQ607g0qPIrvXNT3CFy2ETwFs/NsHeiia4n8xWGylTQIgNJ/sgPit0yMtrBvleeMN1s57AWjFXYYPXFtSBDXa7W8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42975,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOFvKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqfA/7BgeKVZlxSwM7ZG54ho9LRtJVMdzQWbggpEZgm6nk5glLfI3Y\r\n/K6NIOTdvdtdnxPAFom4IodydJYE29+TyXl6N1fw4yrl+Sf78na3NHfv/ouW\r\njxCP/RNK1TFLetTQa6CPpH9f+J5UECBDz44im7wXFCMeRdIXZGG2metUafDq\r\nDFBmtOW8afDL6Qe6DBvlXWSz4e9CIhfgMJL910NNtNgq1p5ARSqQPYcLiunb\r\nI7TT+rAskiBHhZkkOb0ymlim7nSytrmmUAuDdU2wxuyDVDOIONbg4xHUO3mN\r\nnebz91uN1YAWeC14gI0SvL045G2okFbCI9oZi8n9xXLZwrf9I2fLXCpBRP7N\r\nuviWGsph9+iLRja03Xt69ys7OvH4pDpmTjMcDFudq++Zul+0dl9cKAEFK7Wa\r\nnzokpTRrJK/Y1IKO8cbFSO6skQ0LeaSejtzCedrZlWogyDHBL+r6FyPdNskH\r\ndtMXfw9K8Dz7bgdIjs6QoCb6OtVpThyWruxrluWgPSKY+k1D1H0N8u0hq0b6\r\nlaX3zPDyXOfd7j2lVc49biPF/4sCkEVn7eCf6AVCQ9a9/8J1wl7AOf1CX/8U\r\nooF/W7pADKCrSCuBYC9j13WapfGuvxanmMDC0qCvFfC237IV42pdzhxALK+S\r\nfTeIw7K80wtL/Uwm/lZitOu9Zes/tpYLOY4=\r\n=O9so\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Starport](http://github.com/tendermint/starport) front-end applications in combination with the [Starport Vue components library](https://github.com/tendermint/vue/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a [Starport](http://github.com/tendermint/starport)-launched chain. This module configures the `env` module using the Starport `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module will receive, store and decode the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Starport) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged-in/out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn the example above we are assuming wallet's HD Path is `m/44'/118'/0'/0/`, will add account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet (account with this address must exist in the current wallet):\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"903531d1ee34e970c56285ce808e799ca1ad7d74","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.14.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0_1647860682800_0.9287225805674608","host":"s3://npm-registry-packages"}},"0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0":{"name":"@starport/vuex","version":"0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3b8e4b8cf21723a884682eeba43b00f5bf0ced61","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0.tgz","fileCount":11,"integrity":"sha512-4Fu6pLS1AhJlKVx1VVctVpYduvWWFs3icDQnP4z+MxS+noH0kvOHGFIUizAEpXON9uC89mbklC0Bw7qKW0ETvg==","signatures":[{"sig":"MEUCIQDiu3cMs9+3HtCf0rZKHAlkZRqBU7d3Eo9yHUUrHzPoXQIgbquL/KhaiB+HDsWAkeofy7TcZp4yOnGGrSymJfE8CsI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEGS3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQrw/8CDXZuMYNJz+wF1wQ+LyHCbjqu1ROmVTD7M81+230wyPyB6xz\r\nzb500fGd1YJ9GmUdP90N+OAHD4msia9CXm6Ai/K567LeJd7A3gfB1/bxjkDs\r\nWtjuCQRupt8/YHumQeenKNTVEEtEPtWwQpG2GsUiPQpSg7GGxyHsAtrXZgDb\r\nH/cg7oc/VzAHEaGqXzjBim7YHuCKgfhHVmpA6Hd4Pzi/0HC370az4/sYqCeA\r\noE68pldancdlNozgEEzsOOBXSlsMt8biNvrHofHiYVH5IJKoPkNKo5H59K+O\r\nvXYqch438qJ6W0lqrum+Lkm3FrhcMrjBE1DK1rypv8lSE8RQHUaZE2LUP2BF\r\nUErMK0JaFx5GtszJW3uSXVV00qA5QYcwIKJGBpJknIYrscQFMDt6xuFpHnnU\r\nOUZLA9oAoUUcjv0fLttiklz1krB03AVwZIDstkf4W0qiIEDkUScc+9KKII6i\r\np1wQv7XuAhVxHiXfQtWHdjOhOJucCWV9hcNCV50GRVEr1zPB2zV/916/iUiA\r\nfgl1zxt8b/qDlx1QLvZH6BjDdaTVfM5Mbp6dgJolsuVNz6fANcenJluuc5Do\r\nqhOllP/UXBbXGxPAofEAiaK3v0ML1N8clO7dg/AtmGVeuZysWopx90LgqsB3\r\nSF62Rh6vnB2FHFax7gZMbyqVys0BVp+Hneg=\r\n=S9UC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Ignite CLI](http://github.com/tendermint/starport) front-end applications in combination with the [Vue components library](https://github.com/ignite-hq/web/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a chain scaffolded with [Ignite CLI](https://github.com/ignite-hq/cli). This module configures the `env` module using the Ignite CLI `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module receives, stores, and decodes the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Ignite CLI) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in:\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged in and logged out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn this example, the wallet's HD path is assumed to be `m/44'/118'/0'/0/` and adds the account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet, the account with this address must exist in the current wallet:\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"6f1396f2cea448fba94897f9a8c067535b26bd55","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.4.3/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0_1662018743429_0.9720640276825088","host":"s3://npm-registry-packages"}},"0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0":{"name":"@starport/vuex","version":"0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"28492853479a1675731d5b1aa69f322a2c7fbd6a","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0.tgz","fileCount":11,"integrity":"sha512-nj7Gl22tsHTB09/4YxcXVDbX9uKAUMTLdDh63k/rq5JpdkN7PrVtAqxtnpJOIcRI5GKszkgmhcjL0kEy5G9NGg==","signatures":[{"sig":"MEQCIAtKsGdRK1DH5S+V8yo2yptoEJ8j/J1mqph7Deg8popoAiAcRO0tiCwfN7Ap1x/aFUcRT3HXIs0gH5/CSKf5e2Ft5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEJfhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpmpw/+M3TTdrpy2r5o88J1arVELvbBNBSAnK/uAAXekhWWxae16Erd\r\nnTq55q3h5XDcbzL9b7DJZGxSZOpsGmTIdbOr6TIZFCHqqQhajDw0is2ENi6C\r\nDYeSYZqSfBiL821ndJ0X06U4LzSmjmJn/aS8IkI8WjrYcF+rWa2lUxOjoSzl\r\nt263tx8wYxSz2+VjVsbu2DdrOzwjp6Rl4QY/A5D6tV8EuFdMs+5BPRKplGmc\r\nev5gU+owB8LT5ESZRrWK4j0Y++XkUs8T0+R9v/x/OdgKPWGs8oOLKMhlVW+x\r\nFxAeO14DPBMwifjGdML7SbJq77+TSJN7G48IINO8xszrwopkCLHXGZB9U27u\r\noEhEtkeXS8/4hrdxnszZseIYNQxk1y2dyFDHBiGDbJs813+Jrc0hUTp3LVpB\r\nGSIDalICSAMKzMqHGUexeEpBeVDbRM+GRE315bn+Ttqt9BnOL7eGtxxIPN2P\r\nhx8MVSBjbxd/SeCm8ehadgu+E0IB3tgJIFs31ad3NVXBx5RtDc7FO4wnKHXf\r\nLIwhkIU7AcC4loPGxFehWH8CpVemPnnz22l/gNj2GXj+FQ2f23K+MNoQM/bH\r\nSu4uUqLsuD3EeLqSD0YJ0hONkiW1fEA915He8Akl8iJt9UnOh7VvM4sRI9Jh\r\nN03eb+69lwbwT049u4evXoa3Y15jmREFDvY=\r\n=8b4S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Ignite CLI](http://github.com/tendermint/starport) front-end applications in combination with the [Vue components library](https://github.com/ignite-hq/web/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a chain scaffolded with [Ignite CLI](https://github.com/ignite-hq/cli). This module configures the `env` module using the Ignite CLI `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module receives, stores, and decodes the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Ignite CLI) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in:\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged in and logged out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn this example, the wallet's HD path is assumed to be `m/44'/118'/0'/0/` and adds the account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet, the account with this address must exist in the current wallet:\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"a1e999ed2131d51aaa4edd05dc34f895f8fea8b3","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.4.3/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0_1662031841574_0.5832409228341506","host":"s3://npm-registry-packages"}},"0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0":{"name":"@starport/vuex","version":"0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"d987645a5bdd48e19c0c927958bbca634ef67c01","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0.tgz","fileCount":11,"integrity":"sha512-u/RN5SoIB/KYtnrDPYnkF8z1awMX1lGwKi1SGFe4G3uNP5R5vhys1J8QnikHeFHxqA+Y7JOJK9XjLLSJ9n+N+Q==","signatures":[{"sig":"MEUCIQDDtQJTWV9/WxfuJsGObaGsPhSmdNBy22zPRrbIVVM4nwIgWHrUmuUvznF4A2JkstFT3yNPwQq5P9mKU/6+SyOdqqc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEKeRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocYhAAmeKEoecu0qWOXHe8mvb0dWevjQZuSK7HELs9DActzxwBL/zO\r\nDGdKktNpQ2GfilF/hEM88MmNQErWsrQeGChsBSNpQIVV1gumxwi9GeSO8gG0\r\nVLdiH2dIfXcu/Pwa6fuPzTpwn4byij4Bj/SMLFgNgqCSHCOdGjMBroXKhkmk\r\n3E6XGQVSIM49TYRNqV/7YnC1iSHwlZ/IcbHW1ZjIMglsVPdx0JfteWq6/pSc\r\naIaJekSXsYF6zUyhTkfALTVCWyARXraE3jXztbi0yTvJja7he17/qMKN3Bvd\r\ntySWw1T8OWJGNXGRiSzMAdn7xMbpjPbZbItO4Q+OvTYRYZEopo4sMJs1sVe2\r\nzxhcDeZwzFYnDQiWsS378VVuq58U99t/Tu/53xC/5Ww1rjimJnDNJ80K+vf7\r\nK/EYKsBv3QvmKAAsfY8pBdSCs0Z5e6dQDpm1SJ//ePiunpOssuoEXWpxd7Lv\r\nvRzQCAjBu8kq7Ogwob7bqrNKkUHo+GXQdIM1Z//as+3wwhbp4z/+qnZorTTY\r\nnpdFPPhzw7inWYOLY5vH0Yjjx6tW3k5N3DnNl6RAkKbZ5YyBQ1BTAKParGp2\r\nocdikytcp3mq75lV9eqvwARcxO9pCloL3zG9D+gGzFlv3d38F66vlB2Mk8vb\r\neq97Aoqnsxva75bTcQZWwyxPiEsLOiQR0Ew=\r\n=6Psh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Ignite CLI](http://github.com/tendermint/starport) front-end applications in combination with the [Vue components library](https://github.com/ignite-hq/web/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a chain scaffolded with [Ignite CLI](https://github.com/ignite-hq/cli). This module configures the `env` module using the Ignite CLI `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module receives, stores, and decodes the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Ignite CLI) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in:\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged in and logged out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn this example, the wallet's HD path is assumed to be `m/44'/118'/0'/0/` and adds the account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet, the account with this address must exist in the current wallet:\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"fa9fa02da6a75614b5c9c1a2619d08c44859b69b","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.4.3/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0_1662035856922_0.3632303696690833","host":"s3://npm-registry-packages"}},"0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0":{"name":"@starport/vuex","version":"0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"febaddfacb95bb4b7002bde51d6785def8202ff9","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0.tgz","fileCount":11,"integrity":"sha512-79Cr4y2af31wtxzxtwh9f7rAQXBueprkgE4TxPyVEI8HwS+vWuxoDmCFLMP28XQg3eP2h9xvwKnltHmo+iAWMw==","signatures":[{"sig":"MEQCIBRYg+0rIrQy9R1l+4v+W2u+JiNgrfWJtNtokwt6XAJFAiBdmUpZc8idSu5vl/mre5wYVjrHjKLJAko3mrF05y39ww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEK5sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHGw//YBscNDgKBGssPn2uhflFbQL43AbGigjAXZIJVKx9CuvmpKl1\r\nrQNWfpvQav505lm3e0MoripbOmzOaKT6xc1MCR5t0uF8GPBpwTYSr+aJpACT\r\nszORpR2G/XSEl7TSozxYuj9el8CilwLSdn4fcSVbsH1IkScAd9VR5GMmY/Q9\r\nmx2cNpryjd+mmo2fAQqTP6PajK5y+WTBr5OfeUoX6jZsyL1TdQm78o0OaYfM\r\nXXYhjPmQ+B7ZpGTfzca9Rq7niMejpSLMOLvrxA8Xf3ZCTaAkYN6/387KLwLS\r\nuZCR5oDpV/x9j3Zv5xmxX8y7TAJdDq77NxRN7rIHngXwCI11u3hkB5GSwKj9\r\nyyo46PGhRMwkiuf/euPF7mUiMONfb5izZ41v4qCnGBXMZm16iMcDqOcmtBQZ\r\nenfOeQaL+PaG+HEeq9KLiAaqG7VpR+dd+cyVZx2seXW1KMUHZ1bWwUz+NU6X\r\ndR1IOzAbHye/Wb96K7ZuiAgf6IbXj2afNXWMfjb8rZ0Spl0rFuRKWdZiEmYN\r\nyJysZ7JCvrA9yoq8bSeBwj/9o6o92+jt5qnR6U6J4qP19+iSXTtUSXUrCk87\r\nMkzrvswTGIpyfcmiu7tc9jMC6EXeQLf1T6bnv4jWlFndxksu3rkNjhQf30Kd\r\n79X7Rh8XOtVZDecMIKfuu+7pObagTCCp2Ls=\r\n=j5Vo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Ignite CLI](http://github.com/tendermint/starport) front-end applications in combination with the [Vue components library](https://github.com/ignite-hq/web/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a chain scaffolded with [Ignite CLI](https://github.com/ignite-hq/cli). This module configures the `env` module using the Ignite CLI `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module receives, stores, and decodes the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Ignite CLI) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in:\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged in and logged out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn this example, the wallet's HD path is assumed to be `m/44'/118'/0'/0/` and adds the account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet, the account with this address must exist in the current wallet:\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","gitHead":"f2938370abe2a3085f473d65a47743fb46615755","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.4.3/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0_1662037611764_0.24863933633227764","host":"s3://npm-registry-packages"}},"0.3.6":{"name":"@starport/vuex","version":"0.3.6","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.6","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"25d0b2765f86c6748f9c3cb271def145679405fb","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.6.tgz","fileCount":11,"integrity":"sha512-XayutRbAlJ4dm5EPwuF1Hxdji89bMBve1Vi4U0Yzy+C3dZ+oRx3ZmXYajXKt2kdfUKbH+lefqfIhIq2wUpKNjw==","signatures":[{"sig":"MEUCIQDpo6YFxOLBjETo7EvNMPgCVU0Z56BK9fUvxuJ43m3aqAIgVrFkEFwaqbJtK6w5Wph0ca2Vbt1y21wwPljQGdAoZuo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEa7TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+6RAAmKzYDJFMmjlVjusn1mYxdHL/bJDMhZXagZVtrQCLo3/keqSW\r\ntN2e71TPe92rR5avD30SeRcf+4gFFjeT8WTwrfu1GrO8z16feyTcCWBQdWaV\r\n0TJY4J4Pkzy+E8G1F8Tdn1CuhDV2XavQrbJ4oIN/xSNn1ltXbwjGinvxouNH\r\nkJGODHr+zniAoXvoe3MgSAfZZD0D1yitHx7FmFGYAyHWxBVjyNPJSAQ1Iv2+\r\nRE6WwFhFVzMfWf8um+ahWlhyXt9OksrRf3klQ2czuKWF2u0iAw7H8Z/R4SSX\r\nRY14+vIsOOQAXwzVuPRRDdU+4ukGHHwWWvQqZLbvERYLA/7VprjGdrLejtXs\r\nzv7gS4s56uAtKucuKVQN7VeDO3bbJ3ZC2ERODK/KHrxBUK6pIL7Zn8oAYmz7\r\nUPOvrwkW+HCp7XsVGJzPF0A1zSLBGp5EQTPAJPIuC6af9RcSE8/Pb4xJOIis\r\nFYIfgow8g2hvYoSNUdAunRNnWDgafs67WupCDckTYQ8zDAi4pyExmIWPK48p\r\nWrnar9upL7RtZ4La0Qc8rFII/0KgX8jG+Tcrpy7t042Th/EB4t/dUJ8lQfh/\r\nkGIqj7iHwnqSZN62yLRXScNxsq58p/oPOduZPcAFF4ASPFCs1bxNSAe+2oi9\r\nPZ6FeGRCvoZ3+6q9rgfI/9OPama6hryRGo8=\r\n=okJM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"81f07ad8cb46252548c8017f4b98c4bca26e9d7e","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.4.3/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.6_1662103251290_0.7653464309202844","host":"s3://npm-registry-packages"}},"0.3.7":{"name":"@starport/vuex","version":"0.3.7","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.7","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"4698e0cac23d2725664af86b3feaed64ab5e43c0","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.7.tgz","fileCount":11,"integrity":"sha512-WrMI9kFcGfCsWfBsEGuhuyxWyqEtIjeyU3nxdX2YHYB/SqtKlofmCRhkfUY54dvy9xOCUrJYHnqPyy8YLAgm2w==","signatures":[{"sig":"MEUCIHayYrFU0noc89ios2h9QJf4Z7aaIM3OmNrGFUgwCOShAiEAhewkvALmXHQKgUBRiU3oIz9zIKE4QQmZLu5UJMWStPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGYIHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoV1g//YPzz539ouOx9Qj7rv0zPTwtvPGzzwjqxNKYCieyJ6kQvqCWS\r\nimAq5eWrysl3n2ZRKB9zoGFpKi7Sfh1DqNOftodGMGMgvZYQaxPQp5IF2ZTO\r\nbDv7PdJZ1V0UvKDBZfnCL2jHWo/LxNwmKnzTF6vqRfHXaO3WH37oRbJ6l1xB\r\n4/8JyfgvPng1o3V1xdle6p3SXUR/rRhgMHxQxX86sfNj7MGaK7Ts3DMXgbJa\r\n0PvVAgBvxMPtjMHSNj7C/1yFbkyhnzohLJu457JVMzw37VUFG4jxvDelNs4r\r\njg1F8fHqMP6s6mpcGH8RRc9V3eYlGdEDYB7TBXabFUfn2bjOhkuLW5piEV8Y\r\nFPDHuUuD6a+b9rtKSDuVLGIeoxJr1mdWKU2Wqsn+XjNYLPvtCsT3s9WRnfem\r\nxGLQKZ/6tnbv6aYx1XxSZgGYWMRuiWeGafKYYeOBFMyGT6+2fjXZxF92faHC\r\naERb+uVkXfBGBMZBWj+dYkF+rh/j4cmPwFT6u7Wy6tg/JoRXTWTUObrsQomz\r\nTrYe7+jLb3xVrmH9g9sHUS5vwBtlu2Xs30H+gLprFyEO5PCi/Kz43WtBRC7X\r\n/qMtv3xHssx9SzURv939lozxhNtJICo5u/Jt0F5zWP1KqWpWY89IAO8ycIe+\r\nrglGRJi+bxKH+NA5qL/NXBJRVuYNCJPTHJE=\r\n=2idi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"8134862ffc6f1d9a811878ad6c56eec76264e7f4","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.7_1662616071755_0.12497919719934325","host":"s3://npm-registry-packages"}},"0.3.8":{"name":"@starport/vuex","version":"0.3.8","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.8","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"3027d688edcbf752445d9847573f0c91d8c46fe2","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.8.tgz","fileCount":11,"integrity":"sha512-LLRx9eOOO4fmFaO+MB5KJ7TLgBXCzwlAN4crP96H2IqRbaXRkvHbtYWNlufoE1h/8GDK08OZ3KCmydRSwrimug==","signatures":[{"sig":"MEQCIECdjRC2p0Zzz/9YHf5S92frz8BMjVidAnqrBVWWQZaaAiBQbBzGeS3pH08kP4qPbjZwzsOtynQHaxst8lSuRjrtIA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGYObACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLzA/7BFN3pazLqhvd4SlUF7eETfYQ8vpIlRfQvnZNh+FVH4FyqtXr\r\nG/F9xSAw5mH502hpZHMBEn92UhaWIFimsLwLAMyoMEqDMbH6oCAxEDMja8v3\r\ncEPfWxf/ZQ+36BOs5UhAG2Ii2fIelrc0v8OrJ9KHqQTBjjp4nNI+pXly/H4Q\r\n3+66a/ck7y5aRzX6fXY0O619vWLqufHLKH+U7VNCiv+d3ziCN/N05bsH+zuL\r\noLcLgfWkgiO51bR6P/Mf3FGrxzQd5mk+7qPDG4TrrdCKLWLlkecGwaO33zM0\r\nzKzkSB4qy1GEEQG3tNmMK6+HUaRJa6TvHuaWlOQiZuoEvwcnRDqA/9C62O27\r\n66WKcgcQAuwpcvgie0xh7k+kiRptwFUKJgwkZkWHPxhH6ZUG/D8j+idSSmIP\r\nOQ/C8YhyQwME8lmMCqgFY7xWG9Vu2qYyvEj/Xq1U3gBi0/L9NneQH52u3PtD\r\nLURt8Wcd8DUZO4CQWkqZTuYAb/iGqsqw/U+Ls9UgE2yJH2EZ9OjRfPfYokNk\r\nzUfI9TEETTF1G4IyUmqDMumXXR7yRCSyqtrCx5gZCPcooH8GMgHC/pBj6Nc1\r\nqoqsPZkhRg5p8+d8vm8q2GIHe96cXUqSQ2QBy7jl+a8WOPt1oxvo21UCh63D\r\nY+eLJQOFSmlzHf6jAbCB1YWJyiymK2YrJWk=\r\n=ttWD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"7f32a45a1627f6f3867c9779af245503ea569364","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.8_1662616475721_0.8026954106384743","host":"s3://npm-registry-packages"}},"0.3.9":{"name":"@starport/vuex","version":"0.3.9","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.9","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"649f2c8e8e12abb3a86c8ccc8fc2ca2bd2c8a488","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.9.tgz","fileCount":11,"integrity":"sha512-7TVfbKn7XQTfO71Hg6AdddvlkZnNn2TLJc9B1gSMcd6BL3yIhZNxcuivG6APb8umEfoR7X0eyCAXS6XTmMmb4Q==","signatures":[{"sig":"MEUCICvOZDxe5QvSIgXR/u1sqO3XQn88Sqy+WI6rw7SNA45nAiEA9wIPRCMDW3pVnoU7UURwPXfKgP5qzvP/ixXav325Ahk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGYmjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjHg/9HETIZvVaNK/udpTcy7G3LHxXYROoakYoGm4n8br2Szagrosa\r\n6shm9H0949XR2eHRGOEgAxlcW9u7hqdTpzX0HqJpBgjk/byRdi6fdAf75/Wu\r\n3zkwXNDk3oyV0PXCFwJvkOWapeiGGUheWFgvjUvSqW1s2uZHgKGpcr/CLSa2\r\nukcbf5nSK1gQj6pXv2h6ikn/3JUVIv8b9jNePuHD9Pjj1O7ArT2a0VwoPnfH\r\n1SeXQI+Bi1rjOPo5y1DnUL8CuTvExLQcNwWR9QIexv2R6aLrGA+4IOys27cS\r\nJTH/FjbSjhHaJmMv+0vf2iewQRi4WRv8ONcKbAbKSf4jqUXeSc9jkFUsj5Pi\r\nGgQ069Vr/tGSQ4CrEcmlF40KKcpadvJXjp+8RqIQR78wDB7FBEKXUaoAURF5\r\ncpJTPVvQPEgfXX4u3YP/lj/JbvVYPaKlm24tAKuChcuQ4KfoG80ZXlPWc4vm\r\nQqIZIh0mTuvVg9Q9VSeNruaZr/nEi2qzEgFM7EqT1/1/ocmW6FHzKEPprGd9\r\nUhMnxfJ9pBbUHLxkJFGz8U8SAmQ73IctGj5Emv6/u1IINH7cXlSGznmjtlbn\r\nMRgQ93CVHRvEIy36hPfZX2m0dRBTNTlUJRe7hxA4Q2R6NGYZYGxen2SRaoqV\r\nIoXIVc6PxyMs3shGFcRUP4ufRGrRR82ZtAo=\r\n=Ytg0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"87f260271bafc08c041c42b5386f1721c75655eb","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.9_1662618019471_0.40716304241850865","host":"s3://npm-registry-packages"}},"0.3.10":{"name":"@starport/vuex","version":"0.3.10","author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","_id":"@starport/vuex@0.3.10","maintainers":[{"name":"arthurmarinho","email":"arthurtutuca@gmail.com"},{"name":"fadeev","email":"denis@fadeev.org"},{"name":"clockworkgr","email":"alex@clockwork.gr"}],"homepage":"https://github.com/tendermint/vue","dist":{"shasum":"020fe4df0bc5a9f47ad10d0d5b715be6cab86143","tarball":"https://registry.npmjs.org/@starport/vuex/-/vuex-0.3.10.tgz","fileCount":11,"integrity":"sha512-GtR8LUyyI4LyPRsY38G2MFUQhgKnWWgHZyTFkJd6ctEwn35zBqVWfOqJP/YhrerbtparkSoONpN3M7vYCts+ew==","signatures":[{"sig":"MEQCIG97VmL+DztrhTdeJ1JvECQQEPZmjV2qKUdywmufY2xJAiBTK8OvNFTnLZcMhHlsaQr2MBpyP5ieEHZPQTkP/PFArg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGbrtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoluBAAiJzD1xiHATGQ2vV3ip4ynZcOyNEZ3sHcoXOPnnx11SUUjk+8\r\nyYZiGYhGnfpYpqVpJuCtHYbToAi7h6FTByD3iTulPKCmnFu0iJbcpcxtVui0\r\nXKwnyVDPb98eT3Xzbz/eAJsA610RYtOVYARrWmJ4+xl3y64Ex9mVOgXlUrkj\r\n5/A8FC7mbn0LFE98anmyGVGifFEFLDJLN+mcZ1vyF4mInYerMgHxXbDR65O8\r\nIrxtpimLXMq7v3Xe8pUWp5AjaNDwlDU51m2tVYjfin7ePUP0OFnin96byBzj\r\nqqxLiKy8b+x9VfFKNopFKh5pDjM03xzOuwOFjQepXzcIfglFt1NEhzsMAKEO\r\nCQqvTZyr2xqktWlLqCWqWAVpJJ3wUzkWGPzB0CN6IV9/DjNNeuE7sNbWtjTC\r\nyxQs2NO6JsaEk+pxAfutbGO92Ry/JRUSBfr3RppVCpAjMZFPK0+WLZydQtI4\r\nvIbweriQzfv/FVHwOZfzu/DiCvM0IYvH5O29IEm0ZsJ5qEjE8IwEJU8r6T9Y\r\nBUx4NsCft18iXYSimfBr+OSJvpLhs5AgemaCu1P6zIdqXYcJ+3oM/2Sc3Ekw\r\nyZwXg485Gels8ITUvlbe/N2nDBqnujFwsn8PadsTq+N97hX0cQ3fbpmL/FH7\r\nBy9IKTeS8s4GcchoocDdoHDM/hTwvQG1xMk=\r\n=16Pn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","gitHead":"fe8b2e1fde516cb152ab2fbc0e7b5e5b842122bc","_npmUser":{"name":"clockworkgr","email":"alex@clockwork.gr"},"licenses":[{"url":"http://www.apache.org/licenses/LICENSE-2.0","type":"Apache-2.0"}],"_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","directories":{},"_nodeVersion":"16.17.0","dependencies":{"bs58":"^4.0.1","axios":"^0.22.0","buffer":"^6.0.3","events":"^3.3.0","crypto-js":"^4.1.1","@cosmjs/utils":"0.27.0","@cosmjs/crypto":"0.27.0","@confio/relayer":"^0.3.0","@cosmjs/encoding":"0.27.0","@cosmjs/stargate":"0.27.0","@cosmjs/launchpad":"0.27.0","@cosmjs/proto-signing":"0.27.0","@cosmjs/tendermint-rpc":"0.27.0","reconnecting-websocket":"^4.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vuex_0.3.10_1662630636833_0.2773198273918269","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-02-23T13:32:00.584Z","modified":"2025-08-25T16:01:05.113Z","0.1.12":"2021-02-23T13:32:01.010Z","0.1.13":"2021-02-23T13:43:07.081Z","0.1.14":"2021-02-23T13:57:24.310Z","0.1.15":"2021-02-23T14:07:21.672Z","0.1.16":"2021-02-23T14:14:10.942Z","0.1.17":"2021-02-23T15:22:42.291Z","0.1.18":"2021-02-23T16:06:16.528Z","0.1.19":"2021-03-02T08:24:42.260Z","0.1.20":"2021-03-02T09:01:55.794Z","0.1.21":"2021-03-03T13:43:53.429Z","0.1.22":"2021-03-03T14:25:54.732Z","0.1.25":"2021-03-08T10:55:10.506Z","0.1.26":"2021-03-08T11:00:47.512Z","0.1.27":"2021-03-08T11:04:49.118Z","0.1.28":"2021-03-12T13:57:04.132Z","0.1.29":"2021-03-15T19:23:08.079Z","0.1.30":"2021-03-20T19:20:30.193Z","0.1.31":"2021-03-29T14:40:38.744Z","0.1.32":"2021-03-29T15:27:01.731Z","0.1.33":"2021-03-29T15:39:01.899Z","0.1.34":"2021-03-30T08:12:56.309Z","0.1.36":"2021-03-30T08:19:31.905Z","0.1.37":"2021-03-30T10:22:36.629Z","0.1.38":"2021-03-31T14:29:13.061Z","0.1.39":"2021-03-31T14:47:58.518Z","0.1.40":"2021-03-31T15:15:51.267Z","0.1.41":"2021-03-31T15:28:07.177Z","0.1.42-beta.130":"2021-04-09T10:30:51.388Z","0.1.42-beta.0":"2021-04-09T11:09:54.221Z","0.1.42":"2021-04-13T10:28:50.101Z","0.1.43-beta.0":"2021-04-13T10:40:00.707Z","0.1.43":"2021-04-13T10:47:07.675Z","0.1.44-beta.0":"2021-04-13T11:00:11.575Z","0.1.44":"2021-04-13T11:01:14.770Z","0.1.45-beta.0":"2021-04-14T10:52:03.159Z","0.1.45":"2021-04-22T15:42:16.297Z","0.1.46":"2021-04-22T16:38:58.826Z","0.1.47-beta.0":"2021-04-23T10:40:13.981Z","0.1.47":"2021-04-25T06:56:07.900Z","0.1.48-beta.0":"2021-05-04T13:32:22.722Z","0.1.48":"2021-05-04T14:05:38.574Z","0.1.49-beta.0":"2021-05-10T12:34:12.203Z","0.1.49":"2021-05-24T09:07:09.239Z","0.1.50-beta.0":"2021-05-25T09:16:09.259Z","0.1.50":"2021-05-25T09:23:15.877Z","0.1.51-beta.0":"2021-06-10T08:32:24.874Z","0.1.51":"2021-06-15T14:44:19.196Z","0.1.52-beta.0":"2021-07-01T09:57:35.510Z","0.1.52":"2021-07-01T10:03:42.738Z","0.1.53-beta.0":"2021-08-16T03:34:54.344Z","0.1.53":"2021-09-27T11:28:18.305Z","0.1.54-beta.0":"2021-10-01T10:01:24.014Z","0.1.54":"2021-11-11T16:58:30.541Z","0.1.55-beta.0":"2021-11-23T18:03:39.613Z","0.1.55":"2021-11-24T11:11:07.818Z","0.1.56-beta.0":"2021-11-30T11:51:45.431Z","0.1.56":"2021-12-02T18:24:41.002Z","0.1.57-beta.0":"2021-12-03T12:27:58.552Z","0.2.1-beta.0":"2022-01-10T20:33:21.036Z","0.2.0":"2022-01-10T20:57:36.232Z","0.2.1-alpha-c20ca865562bfe682645ad7181badf77a68db8d3.0":"2022-01-10T21:11:28.580Z","0.2.1-alpha-af50128d22b15d316240c8c5a93bb3769524eee7.0":"2022-01-10T21:20:22.227Z","0.2.1-alpha-8b9ff0407ca5ae27c46d7bb0e49d2122c54b21e8.0":"2022-01-11T01:17:30.103Z","0.2.1-alpha-cc905e2f8e99e0633bb4bd917c9176bcbdded1f1.0":"2022-01-11T01:23:51.301Z","0.2.1-alpha-041732a553ab8c8cb98c15a41f1b39411c298534.0":"2022-01-11T11:08:23.928Z","0.2.1-alpha-2de44e5c0154a3ed9e670967bf534dd3fb2a22e4.0":"2022-01-11T11:15:12.740Z","0.2.1-alpha-8dfc8d218c6ce8191e270cd2bad70b396506718b.0":"2022-01-11T16:14:04.071Z","0.2.1-alpha-e52e9f2fd98e7eaf92765d9d71405f6993f55625.0":"2022-01-12T01:16:07.753Z","0.2.1-alpha-741ed2a1b915ee9ed432b58c98d688834c7c9825.0":"2022-01-12T13:54:16.511Z","0.2.1-alpha-66323eb238eed5286e72cbb0fafaa9da8148c00d.0":"2022-01-12T13:55:11.149Z","0.2.1-alpha-382ee034810eb1919b83c1ebb6896fddbc384da3.0":"2022-01-12T14:00:25.280Z","0.2.1-alpha-7d9defcfd41190addbf306745f1d185925b8b9d8.0":"2022-01-12T15:36:59.455Z","0.2.1-alpha-b44c9e4a30bc1375e8935d47f588e2ab29717963.0":"2022-01-12T15:52:13.769Z","0.2.1-alpha-8e8f4cf4f2d64f06fe63cdeebcd4539ba0b94805.0":"2022-01-12T17:01:32.213Z","0.2.1-alpha-61c3cdbd511e5e95883c9b7048083aac028e2561.0":"2022-01-12T17:11:37.643Z","0.2.1-alpha-bd87f315f263094c393b530228c7b9ddfcfe7ccb.0":"2022-01-12T17:21:48.398Z","0.2.1-alpha-7fcb01ca2be7e8645d4045d9b39f386c89b60b01.0":"2022-01-12T17:30:15.010Z","0.2.1-alpha-703151d3f7e695ed6fcb7f20d358dbe781d5f50d.0":"2022-01-12T17:36:45.390Z","0.2.1-alpha-e9e090b5c973be58a526b0e0ef7ffe87bed83b77.0":"2022-01-12T17:42:36.387Z","0.2.1-alpha-ac0bf16c06efc8e0355d1b0f7f62b0f5531665a6.0":"2022-01-12T17:47:08.955Z","0.2.1-alpha-b3ce64c25b7a64fa144437f77a19936afa114e52.0":"2022-01-12T18:23:43.551Z","0.2.1-alpha-95d8b00260f8e0439de99460220496dabe00d6cd.0":"2022-01-13T18:59:24.537Z","0.2.1-alpha-7c3765332ee7d76c7f80a8aaf6ee702bc4e7a411.0":"2022-01-13T19:32:30.611Z","0.2.1-alpha-23fd308f3ea91bbb1732ca8982bca99c6c823818.0":"2022-01-13T19:34:41.191Z","0.2.1-alpha-d8e1978a185c3f2dd13cdc2ef30540119382bd4f.0":"2022-01-14T10:45:48.678Z","0.1.57":"2022-01-14T12:52:43.840Z","0.2.1-alpha-cf35a1438cf3f7764e2880f9debbe135d7ae9c83.0":"2022-01-14T18:04:00.234Z","0.2.1-alpha-dfc76f8c006e319aa4e3b4ad0a3a36d9d6d58a26.0":"2022-01-14T18:19:03.156Z","0.2.1-alpha-231da3a79b673c48d3eb5ae1c8dc69b9a4d365e9.0":"2022-01-14T18:36:45.873Z","0.2.1-alpha-c39c1c2febe92205ca86c9eb01c5704c5012c7df.0":"2022-01-14T18:46:19.898Z","0.2.1-alpha-45714691e2d1d99ce2fea2e39e062bfa1a51bce7.0":"2022-01-14T18:52:57.351Z","0.2.1-alpha-f8753213951794dc6802d13b23fba214d05bc546.0":"2022-01-18T10:21:39.515Z","0.2.1-alpha-d51d4e06d1346d330fd80fafa696821c4e47e045.0":"2022-01-18T11:23:02.986Z","0.2.1-alpha-fcea5aad9e13e94bac027d43d1b09ca224dee6fc.0":"2022-01-18T11:24:37.371Z","0.1.58":"2022-01-19T11:01:53.834Z","0.2.1-alpha-def9b8da9f37a2aeee71809aa138f09acfd51e81.0":"2022-01-24T13:01:18.609Z","0.2.1-alpha-594304f0ee459f1b1458584ba2a9a8fbe3cef3be.0":"2022-01-24T17:27:46.553Z","0.2.1-alpha-6fe7c90c499a197d533c0df708c64423872ec7c9.0":"2022-01-25T12:53:35.115Z","0.2.1-alpha-e5bf4b3b7a241835253a13fa26aafbd8ba9451cc.0":"2022-01-25T12:53:39.906Z","0.2.1-alpha-9cede7433d520c8bacb140e7c9b704b1807b93b4.0":"2022-01-25T18:27:21.128Z","0.2.1-alpha-7ff441f9e0deeabbad279ec5a6393f7d814053fb.0":"2022-01-31T12:54:09.645Z","0.2.1-alpha-844af885772c844269073d7fa2a7031424fcc327.0":"2022-01-31T17:44:13.706Z","0.2.1-alpha-270f910e763524f25f339289b2d0f6de7ddd821e.0":"2022-02-01T20:36:56.187Z","0.2.1-alpha-0087759a4b3532534b0383734746689cc9aa92ad.0":"2022-02-02T11:41:14.283Z","0.2.1-alpha-a38dcf50da8a428b5f2ea574fbd206306e2beebe.0":"2022-02-02T14:05:20.924Z","0.2.1-alpha-f08e36e48e3bce8a7e33accac22456939c582e95.0":"2022-02-04T11:44:59.553Z","0.2.1-alpha-389cb75ee282c5a82b7c92ed9833ebdaa549a856.0":"2022-02-04T18:03:53.683Z","0.2.1-alpha-cc46d0808b0071ba565e6647c2480d260037d574.0":"2022-02-05T02:50:38.691Z","0.2.1-alpha-e04728860543f0d2c09c72955035c3ee66b5a795.0":"2022-02-05T02:58:08.992Z","0.2.1-alpha-82592bb65404c9c42d24533dde6cd729e945a9b2.0":"2022-02-07T12:02:27.653Z","0.2.1-alpha-3f6f21e2f0a39e16226a292f94ded16a06855fa1.0":"2022-02-07T17:21:58.483Z","0.2.1-alpha-468794dcd7ad7daff91a7073938718ab62b26cf7.0":"2022-02-07T17:31:05.655Z","0.2.1-alpha-d7ada74ff723cbe1c527d9e64f4c19c5eb0bc418.0":"2022-02-08T17:26:15.750Z","0.2.1-alpha-631dddeec92833f31e9590bf87e974e8642bd759.0":"2022-02-08T17:43:57.250Z","0.2.1-alpha-318368944e0a8d2c493c20473ea33615f173568e.0":"2022-02-08T17:48:18.638Z","0.2.1-alpha-46bced47f87733f2dd1e835cd15b172023d4b79d.0":"2022-02-09T18:56:27.705Z","0.2.1-alpha-e74c00c1fb3deb11d84faa51a7e00b313ebc0ea5.0":"2022-02-10T05:28:37.230Z","0.2.1-alpha-d61adfdd8fcaf6fb29e8d5ea806648a20754a842.0":"2022-02-11T10:28:19.251Z","0.2.1-alpha-02bdca543f9943d17bed6f25ebf21eada78e39bf.0":"2022-02-11T12:12:13.246Z","0.2.1-alpha-0decc14a6df7a9b870c97a0d9f2042b109ded56b.0":"2022-02-14T00:46:49.720Z","0.2.1-alpha-75af2db3c363120fd334bc5c74f6267497886ad3.0":"2022-02-14T00:55:25.683Z","0.2.1-alpha-2fa70894ea0df859d3fe4f5314b31b4dcb00aa9e.0":"2022-02-14T02:34:04.789Z","0.2.1-alpha-6335429128d48a1ee726953b673c08fdc3bfec8b.0":"2022-02-14T02:56:48.319Z","0.2.1-alpha-b3d265ebf8b6ba1a464d2bfaa077877aabcc8134.0":"2022-02-14T03:53:18.577Z","0.2.1-alpha-5d3e5d8faaf6c864e0346fa9c93d715fb4a346dd.0":"2022-02-14T04:59:16.404Z","0.2.1-alpha-981c153fc04d45c3a87b5806366a788243fdcbff.0":"2022-02-14T05:22:56.736Z","0.2.1-alpha-decff374de8fb5d832bb73f11e8a89847f153c86.0":"2022-02-14T11:38:11.401Z","0.2.1-alpha-cdbca43c45dbd05642bd7317f0f398ed115b2e42.0":"2022-02-14T18:03:35.606Z","0.2.1-alpha-4264e5d9aa95a9e39ac6e88be9fe50fdf6747372.0":"2022-02-15T12:05:52.114Z","0.2.1-alpha-4cacc97737e81d052f690409a23d2698177b5472.0":"2022-02-15T12:14:28.222Z","0.2.1-alpha-016d68037a10ccc474a316cb06cd4a9b145cee3c.0":"2022-02-15T12:23:14.932Z","0.2.1-alpha-19a23123050fd4730f286a9d2ba342e3d908b1ab.0":"2022-02-15T20:19:09.763Z","0.2.1-alpha-6905ef46e03ef21fb7524014a9d86dc618816ff7.0":"2022-02-15T21:26:51.260Z","0.2.1-alpha-1df8634c6f47594055942cfc4cd856689376b284.0":"2022-02-15T21:34:52.243Z","0.2.1-alpha-3872a59cf53abd1ed94bc7e50af72b99d73fa567.0":"2022-02-16T00:01:08.455Z","0.2.1-alpha-16f430054c983472693ff546631a9d01eaf5fde7.0":"2022-02-16T13:12:18.743Z","0.2.1-alpha-98615befeb379e8c352d6d09941c85439d2ded4a.0":"2022-02-16T13:19:41.169Z","0.3.0":"2022-02-17T13:38:57.893Z","0.3.1-alpha-3ed18bbae980fe15d78dbb023d2a74797682ded1.0":"2022-02-17T13:49:15.748Z","0.3.1-alpha-90af632bc5a7f6d22a60aac43f46c6b7676fd8ab.0":"2022-02-17T17:57:42.439Z","0.3.1":"2022-02-22T11:47:56.428Z","0.3.2-alpha-da0baa504a3af4d51967aa7a0e1d0f435219e9b4.0":"2022-02-22T14:36:13.445Z","0.3.2-alpha-8a7fd8b33ad96de7c860a7e8c0837b054d07bf87.0":"2022-02-22T15:53:20.766Z","0.3.2-alpha-f7649e05d0fa9effe576fa96ed6df69b9f014575.0":"2022-02-22T16:38:58.792Z","0.3.2-alpha-1ccaf70b1114a9b316e49cdaa7651348716005a2.0":"2022-02-23T11:43:58.345Z","0.3.2-alpha-8fb8e3717ce704a79e6a41df445608c84845758e.0":"2022-02-23T14:21:56.365Z","0.3.2":"2022-02-23T15:46:37.093Z","0.3.3-alpha-832a377b244b2f8e361055f6eb00346a7379ad03.0":"2022-03-04T17:12:50.775Z","0.3.3-alpha-32e4eae60bd8c60c3d0e127c05f469e735fa2f69.0":"2022-03-09T19:27:27.740Z","0.3.3":"2022-03-10T16:40:54.520Z","0.3.4-alpha-12bfe333de5572861cdf18427c9337a5d40a9346.0":"2022-03-17T11:11:48.410Z","0.3.4":"2022-03-17T11:16:43.480Z","0.3.5":"2022-03-19T09:52:09.611Z","0.3.6-alpha-903531d1ee34e970c56285ce808e799ca1ad7d74.0":"2022-03-21T11:04:42.960Z","0.3.6-alpha-6f1396f2cea448fba94897f9a8c067535b26bd55.0":"2022-09-01T07:52:23.654Z","0.3.6-alpha-a1e999ed2131d51aaa4edd05dc34f895f8fea8b3.0":"2022-09-01T11:30:41.793Z","0.3.6-alpha-fa9fa02da6a75614b5c9c1a2619d08c44859b69b.0":"2022-09-01T12:37:37.116Z","0.3.6-alpha-f2938370abe2a3085f473d65a47743fb46615755.0":"2022-09-01T13:06:51.972Z","0.3.6":"2022-09-02T07:20:51.574Z","0.3.7":"2022-09-08T05:47:51.919Z","0.3.8":"2022-09-08T05:54:35.902Z","0.3.9":"2022-09-08T06:20:19.614Z","0.3.10":"2022-09-08T09:50:37.011Z"},"author":{"name":"Tendermint, Inc","email":"hello@tendermint.com"},"license":"Apache-2.0","homepage":"https://github.com/tendermint/vue","description":"A library of Vuex 4 (for Vue 3) standard store modules for state management of cosmos-sdk chains' frontends","maintainers":[{"email":"alex@clockwork.gr","name":"clockworkgr"},{"email":"lali.brown@tendermint.com","name":"lali.brown"}],"readme":"# `@starport/vuex`\n\nA collection of Vuex store modules to help build [Ignite CLI](http://github.com/tendermint/starport) front-end applications in combination with the [Vue components library](https://github.com/ignite-hq/web/tree/develop/packages/vue) `@starport/vue`.\n\n## Install\n\nAssuming you have a Vue 3 project, just run:\n\n```\nnpm install --save vuex/next\nnpm install --save @starport/vuex\n```\n\n## Usage\n\nFirst you need to create a config file in your store root `./src/store/config.js`:\n\n```js\n// import modules\nimport { env, starport, blocks, wallet, transfers } from '@starport/vuex'\n\n// init modules you need\nexport default function init(store) {\n  transfers(store)\n  starport(store)\n  blocks(store)\n  env(store)\n  wallet(store)\n}\n```\n\nThen, in your app's `./src/store/index.js` file:\n\n```js\nimport { createStore } from 'vuex'\nimport init from './config'\n\nconst store = createStore({\n  state() {\n    return {}\n  },\n  mutations: {},\n  actions: {}\n})\n\n// init @starport/vuex\ninit(store)\n\nexport default store\n```\n\nFinally, initialize the `env` store by dispatching the init action in the appropriate part of your app:\n\n```js\nawait this.$store.dispatch('common/env/init')\n```\n\nor with a specific configuration:\n\n```js\nawait this.$store.dispatch('common/env/init', {\n  apiNode: 'http://localhost:1317',\n  rpcNode: 'http://localhost:26657',\n  wsNode: 'ws://localhost:26657/websocket',\n  chainId: 'my-chain',\n  addrPrefix: 'cosmos',\n  sdkVersion: 'Stargate',\n  getTXApi: 'http://localhost:26657/tx?hash=0x'\n})\n```\n\n## Modules\n\nThe registered modules for this package are:\n\n### env\n\nRegistered as `common/env`, this module provides basic environment setup, connection to API, RPC, and WS nodes, connection statuses, and access to the underlying `@starport/client-js` [client](https://github.com/tendermint/vue/tree/develop/packages/client-js).\n\n```js\n// Getter signatures\n  getters: {\n    client: (state) => state.client,\n    signingClient: (state) => state.client.signingClient,\n    apiTendermint: (state) => state.rpcNode,\n    apiCosmos: (state) => state.apiNode,\n    apiWS: (state) => state.wsNode,\n    sdkVersion: (state) => state.sdkVersion,\n    apiConnected: (state) => state.apiConnected,\n    rpcConnected: (state) => state.rpcConnected,\n    wsConnected: (state) => state.wsConnected,\n  },\n```\n\n### Starport\n\nRegistered as `common/starport`, use this module if you are doing local development on a chain scaffolded with [Ignite CLI](https://github.com/ignite-hq/cli). This module configures the `env` module using the Ignite CLI `:12345/status` endpoint.\n\n### Blocks\n\nRegistered as `common/blocks`, this module receives, stores, and decodes the latest 20 blocks (configurable) as they appear in the websocket API.\n\nGet the latest 10 blocks:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](10)\n```\n\nGet the block at height 15:\n\n```js\nawait this.$store.getters['common/blocks/getBlocks'](15)\n```\n\n### Transfers\n\nRegistered as `common/transfers`, this module is a temporary handcoded version until an auto-generated (by Ignite CLI) vuex store is available for the Cosmos SDK TX module (https://github.com/cosmos/cosmos-sdk/tree/master/proto/cosmos/tx/v1beta1).\n\nThe querying action is:\n\n```js\nServiceGetTxsEvent({ commit, rootGetters }, { subscribe = false, all=true,  ...key })\n```\n\nThe getter is:\n\n```js\ngetGetTxsEvent(params)\n```\n\nSo if you wanted to query for all token transfers received by `cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5`, you would first dispatch the querying action like so:\n\n```js\nawait this.$store.dispatch('common/transfers/ServiceGetTxsEvent', {\n  subscribe: true,\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nAnd access the resulting state anywhere in your app like so:\n\n```js\nthis.$store.getters['common/transfers/getGetTxsEvent']({\n  event:\n    'transfer.recipient%3D%27cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5%27'\n})\n```\n\nTo learn more about the WebSocket events you can query, see the [Tendermint RPC WebSocket](https://docs.tendermint.com/master/rpc/#/Websocket/subscribe) docs.\n\nThe `subscribe` flag in the action dispatch configures auto-updates for the store as new transactions occur.\n\n### Wallet\n\nRegistered as `common/wallet`, this module provides wallet-handling, sign in and sign out fuctionalities, and encrypted persistence in the browser's local storage.\n\nCreating a new wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/createWalletWithMnemonic', {\n  name: \"My Wallet\",\n  mnemonic: \"web fat decorate draw waste shiver toddler entire knee until board rent robust acid spatial hockey tobacco buddy buffalo flavor mass bridge report pioneer\",\n  HDpath: \"m/44'/118'/0'/0/\", // BIP32/44 derivation path\n  prefix: \"cosmos\", // Address prfix for this chain\n  password: \"password\"\n}\n```\n\nListing wallets in local storage\n\n```js\nconst walletList = this.$store.common.wallet.wallets\n```\n\nUnlocking a specific wallet from the wallet list and logging in:\n\n```js\nawait this.$store.dispatch('common/wallet/unlockWallet', {\n  name: 'My Wallet',\n  password: 'password'\n})\n```\n\nAccessing logged in and logged out status:\n\n```js\nconst loggedInStatus = this.$store.getters['common/wallet/loggedIn']\n```\n\nSigning out:\n\n```js\nawait this.$store.dispatch('common/wallet/signOut')\n```\n\nAdding next available account to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount')\n```\n\nAdding an account with a specific HD Path increment to the current wallet:\n\n```js\nawait this.$store.dispatch('common/wallet/addAccount', 3)\n```\n\nIn this example, the wallet's HD path is assumed to be `m/44'/118'/0'/0/` and adds the account corresponding to `m/44'/118'/0'/0/3`.\n\nSwitch to using a different account in the current wallet, the account with this address must exist in the current wallet:\n\n```js\nawait this.$store.dispatch(\n  'common/wallet/switchAccount',\n  'cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5'\n)\n```\n\nAccessing current wallet name:\n\n```js\nconst walletName = this.$store.getters['common/wallet/walletName']\n```\n\nAccessing name of last wallet used:\n\n```js\nconst lastWallet = this.$store.getters['common/wallet/lastWallet']\n```\n\nAccessing currently active unlocked wallet:\n\n```js\nconst wallet = this.$store.getters['common/wallet/wallet']\n```\n\nAccessing currently active address in wallet:\n\n```js\nconst address = this.$store.getters['common/wallet/address']\n```\n\nInquiring if a wallet name is already in use:\n\n```js\nconst isAvailable =\n  this.$store.getters['common/wallet/nameAvailable'](walletNameToCheck)\n```\n","readmeFilename":"README.md"}