{"_id":"@blaqkube/get-starknet","_rev":"2-ab64fb1650d97b7ea88d29d616151e12","name":"@blaqkube/get-starknet","dist-tags":{"latest":"1.4.4-4"},"versions":{"1.4.4-2":{"name":"@blaqkube/get-starknet","description":"StarkNet wallet <-> dApp bridge","version":"1.4.4-2","repository":{"type":"git","url":"https://github.com/starknet-community-libs/get-starknet"},"private":false,"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build && husky install","build":"rollup -c","dev":"rollup -c -w"},"keywords":["starknet","starkware","l2","zk","rollup","wallet","dapp"],"license":"MIT","bugs":{"url":"https://github.com/starknet-community-libs/get-starknet/issues"},"peerDependencies":{"starknet":"^3.12.3"},"devDependencies":{"@rollup/plugin-commonjs":"^22.0.0","@commitlint/config-conventional":"^17.0.0","@commitlint/cli":"^17.0.2","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.1","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.1","@semantic-release/release-notes-generator":"^10.0.3","@tsconfig/svelte":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","postcss":"^8.4.12","prettier":"^2.6.1","prettier-plugin-svelte":"^2.6.0","rollup":"^2.70.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","sass":"^1.50.0","starknet":"^3.12.3","svelte":"^3.46.6","svelte-materialify":"^0.3.11","svelte-preprocess":"^4.10.5","tslib":"^2.3.1","typescript":"^4.6.3"},"dependencies":{"bowser":"^2.11.0"},"licenseText":"MIT License\n\nCopyright (c) 2022 avimak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@blaqkube/get-starknet@1.4.4-2","dist":{"shasum":"ba90226f06f05744a63adceeb04c9d64dc95409c","integrity":"sha512-6xeb0nzffdSzZVEn/ZR097tckbusbYZ35sqjmDFHxed0r1c/XIBHjy//JNWhLM8oqqnnjHHsX3kEewWKMEF+cw==","tarball":"https://registry.npmjs.org/@blaqkube/get-starknet/-/get-starknet-1.4.4-2.tgz","fileCount":36,"unpackedSize":156972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALpZUnkwn9a8Hpz6Cc1LjcLXs6Zp8414CMEukvqsyvIAiAX1i7IMJ/WPnsw76MQba5sYKt3e0l/ogoLIXwyqETdbQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ZQOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzQxAAkw2GbHzhD7HWd/C9tPRUpfCZimkZ0YXttjD4iboxu/3+EeRz\r\nc8mc1IZe2uSORxuA1tiL+oDMYIHoETAWkcjmNdLtboaMTffci/6d8nePhfFK\r\nOf28XUMyfHb/0Cy2wWThyufY1qi89GwZzRyh41bMYLr9yCMGaNU5l+72LRXv\r\nLRFXUaaA/Kj387uhlykm/O6EMC/f0hrBc5BFEqnSFBS+/DzwSD4j6T4hdeY8\r\nbDj3cDN0XjrGXdfxpSA+1jMY3w+a+tn8n/M89fN98Qr8O111emacwzNGS2dA\r\nRFxZgdLy7uwhjhS+D/9B7RPJUVcB/zD7EVSJK13mZIS9g5URasju1+hJw1qZ\r\nvsX8XWjhpoApYWepf3isvQTxElRFbtuEQLulexVfuS9kXDMtvLfYkqCLNGSu\r\nrg6QsQWxKNqDlDsKBCWySxENtNSwnTqQn+WKL2K/Zbah1wEVac0Teu0EzN9J\r\nCW1AcH7pk6Yc6Ezy4+RAP1UNKHc4mi0YpcbN9etUZHu1J+XfD0DnvrrL++Ap\r\nrm2WUiY9XJTG4tHT0ZizpWezFAkbvEC2pq6bZ/30pskJwzbB7IkGy3MVG5dc\r\n3jXYPPzvriIyygd3opxo/DqFzys246E5SGaZQNkqYBOzxSMs9933Sksi9Eri\r\n2nfct2ny0W8SP0lyQ140NUxZ/LNv7rmDyxE=\r\n=+tiG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gregoryguillou","email":"gregory@blaqkube.io"},"directories":{},"maintainers":[{"name":"0xjilan","email":"0xjilan@protonmail.com"},{"name":"gregoryguillou","email":"gregory@blaqkube.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-starknet_1.4.4-2_1659999245787_0.3412238761418065"},"_hasShrinkwrap":false},"1.4.4-3":{"name":"@blaqkube/get-starknet","description":"StarkNet wallet <-> dApp bridge","version":"1.4.4-3","repository":{"type":"git","url":"https://github.com/starknet-community-libs/get-starknet"},"private":false,"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build && husky install","build":"rollup -c","dev":"rollup -c -w"},"keywords":["starknet","starkware","l2","zk","rollup","wallet","dapp"],"license":"MIT","bugs":{"url":"https://github.com/starknet-community-libs/get-starknet/issues"},"peerDependencies":{"starknet":"^4.1.0"},"devDependencies":{"@commitlint/cli":"^17.0.2","@commitlint/config-conventional":"^17.0.0","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.1","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.1","@semantic-release/release-notes-generator":"^10.0.3","@tsconfig/svelte":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","postcss":"^8.4.12","prettier":"^2.6.1","prettier-plugin-svelte":"^2.6.0","rollup":"^2.70.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","sass":"^1.50.0","starknet":"^3.12.3","svelte":"^3.46.6","svelte-materialify":"^0.3.11","svelte-preprocess":"^4.10.5","tslib":"^2.3.1","typescript":"^4.6.3"},"dependencies":{"bowser":"^2.11.0"},"licenseText":"MIT License\n\nCopyright (c) 2022 avimak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@blaqkube/get-starknet@1.4.4-3","dist":{"shasum":"b8ae6d250f4c7adbaee2f9df01c2d52e0a25bc8e","integrity":"sha512-6RWFYpzd2qAfj7DHpacIfTOd0FyCgrLRMQUB26QyB9DCtm9QCClYRiBwpRlCYwsOankJ53p76EzjwJ4bNLW+dA==","tarball":"https://registry.npmjs.org/@blaqkube/get-starknet/-/get-starknet-1.4.4-3.tgz","fileCount":36,"unpackedSize":156971,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGWDqdxMHG3XnM4LT7rLUua64b06MGJMhmhNRge5Nj7AIgdlzLkfqM7KrKP1Oyuz8rn69Xdj1P9Vgb8LS2L6EGX1w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ZWSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPow//ZwpyV5/uE9PaU98GJ7f0sCyOEfQjTrWDkCcjE1xSYY43ppYk\r\nXBKTzf2HrDjmhrIbl2bIMbJbKiaBoaZLvmsUjWu9UDrY4Y5vABgNS0OY94au\r\n15n19QgKpaWQkOWhEk4jYURGr8rR1v2upPymYWV9X6xGh9KJflacsi/9YLY1\r\nRKrBlldHxC9pb0UhxHVlYiJrCPdvQUApQ6RqsgfGJDH61ICJFrPNMbY2kiYR\r\ngcwkyBoaC3hgmYRhM5BP/rYy7o1h47+y0OPqG+lGRNQRuPdoUfl4RHkvQv94\r\nO5Lyv4oXT6CUt3D65WXJYP7IIzsev9ALof3MukaTahpgX1ptWyHUy9tBsk/c\r\n17085CzLyKNFD81bNQPEC/aL3fKhU97MoTYO41JfeyAoQyaLGlmSaI/Wk2Xg\r\nqEtk7fUbFCSRgJVMjuYcGEJgptXbOD0/KLNCQtexaIhfAR0gT9t5GSrEGjmX\r\n/J/IsndpxoWfjhAqVasJ9710FaGFAcATWwP5bBDKDduPtfQEJmvv3Gj7LnUg\r\nCoODwzAVTc955C78QP+mJWlB+YLe7YkwXY5RBKkntLwBD9i16DO/hRTh3p3+\r\nijafn7sifi4/Yk9B4oFGOJyngjUYVB2SGGmfvdn49yk3/j7cTrv1pftlo9lz\r\nG50/bw8FujlUJ2sAs5J1i2Pguin5rUAKQv0=\r\n=8T7O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gregoryguillou","email":"gregory@blaqkube.io"},"directories":{},"maintainers":[{"name":"0xjilan","email":"0xjilan@protonmail.com"},{"name":"gregoryguillou","email":"gregory@blaqkube.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-starknet_1.4.4-3_1659999634760_0.7315072365361577"},"_hasShrinkwrap":false},"1.4.4-4":{"name":"@blaqkube/get-starknet","description":"StarkNet wallet <-> dApp bridge","version":"1.4.4-4","repository":{"type":"git","url":"https://github.com/starknet-community-libs/get-starknet"},"private":false,"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"npm run build && husky install","build":"rollup -c","dev":"rollup -c -w"},"keywords":["starknet","starkware","l2","zk","rollup","wallet","dapp"],"license":"MIT","bugs":{"url":"https://github.com/starknet-community-libs/get-starknet/issues"},"peerDependencies":{"starknet":"^4.1.0"},"devDependencies":{"@commitlint/cli":"^17.0.2","@commitlint/config-conventional":"^17.0.0","@rollup/plugin-commonjs":"^22.0.0","@rollup/plugin-node-resolve":"^13.1.3","@rollup/plugin-typescript":"^8.3.1","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^9.0.1","@semantic-release/release-notes-generator":"^10.0.3","@tsconfig/svelte":"^3.0.0","@typescript-eslint/eslint-plugin":"^5.17.0","@typescript-eslint/parser":"^5.17.0","eslint":"^8.12.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.1","postcss":"^8.4.12","prettier":"^2.6.1","prettier-plugin-svelte":"^2.6.0","rollup":"^2.70.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","sass":"^1.50.0","starknet":"^3.12.3","svelte":"^3.46.6","svelte-materialify":"^0.3.11","svelte-preprocess":"^4.10.5","tslib":"^2.3.1","typescript":"^4.6.3"},"dependencies":{"bowser":"^2.11.0"},"licenseText":"MIT License\n\nCopyright (c) 2022 avimak\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@blaqkube/get-starknet@1.4.4-4","dist":{"shasum":"18886a1e74c621e3a25867f9b0c6872eeba84ea5","integrity":"sha512-g+g5QKys4zAvJM7mVC2qJNGlFlhthjfJeVXwyF1M1+nu8xsSM5/kpqCh4jojksqVeI1SqXSVtBeHFSK6EpGVxw==","tarball":"https://registry.npmjs.org/@blaqkube/get-starknet/-/get-starknet-1.4.4-4.tgz","fileCount":36,"unpackedSize":156971,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGrhqCjAl+LyblNmZcKKJB00Z0XPPqdC7K6ZCoc5HUs4AiArnmZynSU2TOopvUGltwo4k+yjhLGWkw5EYavbVi0x0A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8ZePACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmremg/9F9FAb65dkdtJckSF9/9pS/azCyTBv6GOqqPxRArCuL+PV8N7\r\nImDU3mis1kHS5BO4O9i23bJzlOdMDgFrq6lrCfquKDuhxojNBJI6woRQt1i9\r\nPvWeC1dVGaeHaQK25xK5f3zyvkF3tbMelR9I5EcoBDAURFoJ780KJEv8si9h\r\nX820QikvdNYiT6uyhTs/E8Zv7tXPOk3jb1QUnjSaHM4nkAKbzxD2pnPGwnjg\r\nE6sfoDKMXV3VbH/tmr3rNnzj7IE2V/yTtJC4/zD1YMm3cr0tm61AROEt8/DF\r\nLfIf30LGU7rIXPQRBGulKB2yzKtijZ5WMI+XOD7spScWmINL81FZ2t+LIG43\r\nAU3t9pgNo6BK9GTNasdbwnWM9tMn1b6tNalhZc0trPRBHEybuKmHB8wP22ja\r\nE8mvrcYFPEuK6cmUlmiBFqtm/E71mMeJBj6//wkeSG/7LjemQ18EeR8lIaWf\r\njmRjz97NRTWMLJNpBKzD8vDxrSPTHs7GDEmURUdxf+N3cY+wONrthCeumwCU\r\n66XceT5vJ6rGxhEqAU90ospakZhbS6XYpJ5jbDRyX8Fmi7yUXU+1mStsMA4C\r\nLHWa/Bf1qHJ2ix4Jj44TFRBWBEOkqr5vQrUfqgg9gHPUzwyN1jICIYDq4bNj\r\noDN4f+OugCeQKQoH8WK8ldb5MqAknMrM8sI=\r\n=Dp3r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gregoryguillou","email":"gregory@blaqkube.io"},"directories":{},"maintainers":[{"name":"0xjilan","email":"0xjilan@protonmail.com"},{"name":"gregoryguillou","email":"gregory@blaqkube.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-starknet_1.4.4-4_1660000143049_0.928079836097669"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-08T22:54:05.726Z","1.4.4-2":"2022-08-08T22:54:06.042Z","modified":"2022-08-08T23:09:03.428Z","1.4.4-3":"2022-08-08T23:00:34.942Z","1.4.4-4":"2022-08-08T23:09:03.323Z"},"maintainers":[{"name":"0xjilan","email":"0xjilan@protonmail.com"},{"name":"gregoryguillou","email":"gregory@blaqkube.io"}],"description":"StarkNet wallet <-> dApp bridge","keywords":["starknet","starkware","l2","zk","rollup","wallet","dapp"],"repository":{"type":"git","url":"https://github.com/starknet-community-libs/get-starknet"},"bugs":{"url":"https://github.com/starknet-community-libs/get-starknet/issues"},"license":"MIT","readme":"# get-starknet<br/>StarkNet wallet <-> dApp bridge\n\n[![npm](https://img.shields.io/npm/v/get-starknet.svg)](https://www.npmjs.com/package/get-starknet)\n\n## Alpha version\n\n## Goals\n\n- Allow dApps to seamlessly connect to any wallet on StarkNet\n- Allow wallets to seamlessly connect to any dApp, and get discovered by users which need a new wallet\n- An open source wallet/dApp API controlled by the community\n- An open source StarkNet wallet discovery list moderated by the community\n\n## Installation\n```\n# using npm\nnpm install get-starknet\n\n# using yarn\nyarn add get-starknet\n```\n\n## Usage for dApp developers\n\nIf you were using getStarknet() before, simply replace the import line as below.\n\n```diff\n-import { getStarknet } from \"@argent/get-starknet\"\n+import { getStarknet } from \"get-starknet\"\n```\n\n- Optional - customize the CSS of get-starknet to match your look&amp;feel\n- Optional - integrate with new API functions (e.g.: modify wallet list using custom sort/include/exclude, etc.)\n\n## Details\n\n### Flow\n\n- Once a dApp wants to connect to a wallet, it calls `getStarknet()` (or optionally use the new `connect` API to control the order, included/excluded, etc.)\n\n- In the first call to `getStarknet()` the package will look for all injected extensions in the window which were added using a key starting with `starknet-*`, i.e. `starknet-walletname`\n\n\n- There are three cases\n\n  - No objects found: meaning there is no installed wallet extension. In this case, a popup is shown (possibly customizable by the dApp) with a few ordering options of the known wallets with install links -\n     - dApp controlled order\n     - Community controlled order\n     - Random\n     - Also allowed including/excluding wallets from the list\n  - A single object is found: this object is returned as the Starknet window object. dApp will use the returned (installed) wallet for this session\n  - Multiple objects are found: In this case a popup is shown to the user (again, possibly customizable) with a random order of the available wallet objects. Users can select the wallet they want to use, possibly selecting the default wallet for this dApp.\n    - If there is one or more pre-authorized wallets, show them first in the list ordered by last selected (from connect-to-wallet popup, saved in localStorage by the lib)\n    - Multiple objects are found AND a default wallet was selected for this dApp (based on localstorage): the default wallet is selected\n\n### Wallet Developers\n\n- Create a wallet complying to the required APIs (based on the starknet.js APIs + 3 new fields: `name`, `icon` and `id`, for the &quot;choose a wallet&quot; popup (e.g. installed wallets list))\n- The wallet's page-script object should be added to `window` using a key starting with `starknet`, i.e. `starknet-walletname`\n- Optional - for the wallet to be included in the discovery list - the wallet developer will issue a pull request to `get-starknet`, comprising of the following:\n  - Name and icon\n  - Formalized links object with links to to download page over chrome, firefox and other extension stores\n\n\n### Package maintainers\n\n- Implement the code\n- Provide CSS classes for easy customization of popups (wallet discovery and wallet selection)\n- Accept pull requests for new wallets into the discovery popup, after some validation of the wallet functionality (in the future we can enable wallet list management on-chain with a governance mechanism for adding new wallets using the StarkNet token / governance mechanism).\n","readmeFilename":"README.md"}