{"_id":"filecoin.js","_rev":"10-4be64d1068370d72215f885202f0a6b5","time":{"0.0.1-alpha":"2020-09-11T11:33:27.756Z","created":"2020-09-13T18:12:34.236Z","0.0.2-alpha":"2020-09-13T18:12:34.455Z","modified":"2022-06-14T11:51:39.162Z","0.0.3-alpha":"2020-10-13T21:13:22.592Z","1.0.0-beta.1":"2020-10-22T09:19:59.903Z","0.0.4-alpha":"2020-11-27T12:28:26.310Z","0.0.5-alpha":"2020-11-27T13:42:18.987Z"},"name":"filecoin.js","dist-tags":{"latest":"0.0.5-alpha","beta":"1.0.0-beta.1"},"versions":{"0.0.2-alpha":{"name":"filecoin.js","version":"0.0.2-alpha","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","main":"builds/dist/index.js","types":"builds/dist/index.d.ts","jsnext:main":"builds/dist-esm/index.js","module":"builds/dist-esm/index.js","browser":"builds/bundle/filecoin.js","scripts":{"prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","build":"tsc && tsc -m es6 --outDir builds/dist-esm","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","prebundle":"rimraf builds/bundle","bundle":"webpack","_bundle-tests":"webpack --config webpack.tests.config.js","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src.ts/test-*.js","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","test":"npm run _build_tests && npm run _test-node","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","doc":"node scripts/make-docs.js","serve:local":"npx serve --config serve.json --cors -l 1337","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples"},"author":"","license":"(Apache-2.0 AND MIT)","dependencies":{"@ledgerhq/hw-transport-webusb":"^5.22.0","@zondax/filecoin-signing-tools":"^0.7.1","@nodefactory/filsnap-adapter":"^0.2.1","@nodefactory/filsnap-types":"^0.2.1","bignumber.js":"^9.0.0","btoa-lite":"^1.0.0","events":"^3.2.0","node-fetch":"^2.6.0","rpc-websockets":"^5.3.1","websocket":"^1.0.31"},"devDependencies":{"@microsoft/api-documenter":"^7.8.21","@microsoft/api-extractor":"^7.9.2","@types/assert":"^1.4.1","@types/btoa-lite":"^1.0.0","@types/dotenv":"^8.2.0","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@types/mocha":"^8.0.2","@types/node":"^12.7.4","@types/node-fetch":"^2.5.7","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","@typescript-eslint/eslint-plugin":"3.9.0","@typescript-eslint/parser":"3.9.0","dotenv":"^8.2.0","eslint":"7.7.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-tsdoc":"^0.2.6","fs-extra":"^9.0.1","karma":"5.1.1","karma-chrome-launcher":"3.1.0","karma-mocha":"2.0.1","mkdirp":"^1.0.4","mocha":"^8.1.1","prettier":"^2.0.5","rimraf":"^3.0.2","serve":"^11.3.2","supertest":"^4.0.2","ts-loader":"^8.0.2","ts-node":"^8.10.2","tsconfig-paths":"^3.9.0","typescript":"^3.9.7","webpack":"^4.44.1","webpack-cli":"^3.3.12"},"gitHead":"19359c80f47a9fe0a3aa2ce077df1a8d0d1da4ae","_id":"filecoin.js@0.0.2-alpha","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-B9cpBTN1Cj2/V48SVhjSlfKB5gNHYzwo8wmdzLw+o5R4aEPR7zVh1JFRLav5KyMegDeOKiB5NC8znLx7RjYeDA==","shasum":"c9d3249dc3c63974ad0a727d32ac3b4e9c12c5cc","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-0.0.2-alpha.tgz","fileCount":157,"unpackedSize":9441531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXmESCRA9TVsSAnZWagAAYIwP/jNbXbxB+cEUVzU9b/2k\nC4Xxou29HohXGXS+YRCR5J1DTOZA6VjyIaXVjsXa44ZzI/HG+Znk2JPQqauA\nYU9Keh3TxKWbvM9KjVIi60s+hdvjJcFdizwXzZI9kue7RUScNfJ5D81VWZfM\nnJK5AJ4MK8vsIFOtSmJN4eN81gjF2vkB1jRclLNx9A3aOFaEciSFcrez196K\nsIdIb27SZNkVzhaK8DjbD8CqhXbEEFhSkSkVxfEnYbGN/7a3nexXm2nbmgT/\nfztSdK022BkbMKIqeVkO+cBQ3YSINbHIFAHyBXCJ5Cf0iWMf2KJtp+/tsj5l\nr4exmrX9f8NspyXptLBHPyj5Ey3WiaxFpAjjjQCnSr4AW6KsX2IERrjvVj6I\nYacndAy35/PYu6FsbYKwd681l1fC6P5+MdcObz6RDzyqXsT9DB89Q6pAKR/2\nyz5edobArBJJ9KjfcPZAzh9BfC+RvM2Yll9dh2hLpN29XTAZxh/dWIp82whV\ny9wOlRcGGoO64IKxRSev/uY8FH1D0vmg3500slmcwOnLxhN42So+nbvwTl0G\nyVFFb6meuFvgVQDq8qjXwxV06GyAIDd5bvAjI0Tj7FIkZIc1aGotO/BLLSIA\nsZZVMBEyWlMPzEtkz00UDlZSZPDorj6cRiJubEnyy6zBqRVrUCd9/7cR2equ\nCaSv\r\n=8F4p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFNDmbnJLp35GD8YEPeVSH363cyYQQ/xdUQ7i6Ec6cgAiAEf+dZMjfBuLzvqDKqXxtgGEnPqtUEmxKeCzKf9Fl4/Q=="}]},"maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"}],"_npmUser":{"name":"popra","email":"razvan.pop@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin.js_0.0.2-alpha_1600020754237_0.2593593409256094"},"_hasShrinkwrap":false},"0.0.3-alpha":{"name":"filecoin.js","version":"0.0.3-alpha","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","main":"builds/dist/index.js","types":"builds/dist/index.d.ts","jsnext:main":"builds/dist-esm/index.js","module":"builds/dist-esm/index.js","browser":"builds/bundle/filecoin.js","scripts":{"prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","build":"tsc && tsc -m es6 --outDir builds/dist-esm","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","prebundle":"rimraf builds/bundle","bundle":"webpack","bundle:analyze:report":"webpack --profile --json > stats.json","bundle:analyze":"npm run bundle:analyze:report && webpack-bundle-analyzer stats.json","_bundle-tests":"webpack --config webpack.tests.config.js","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src/test-*.js","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","test":"npm run _build_tests && npm run _test-node","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","doc":"node build-tools/make-docs.js","serve:local":"npx serve --config serve.json --cors -l 1337","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples"},"author":"","license":"(Apache-2.0 AND MIT)","dependencies":{"@ledgerhq/hw-transport-webusb":"^5.22.0","@nodefactory/filsnap-adapter":"^0.2.1","@nodefactory/filsnap-types":"^0.2.1","@zondax/filecoin-signing-tools":"^0.7.1","bignumber.js":"^9.0.0","btoa-lite":"^1.0.0","events":"^3.2.0","isomorphic-ws":"^4.0.1","node-fetch":"^2.6.0","rpc-websockets":"^5.3.1","websocket":"^1.0.31","bitcore-lib":"^8.22.2","bitcore-mnemonic":"^8.22.2","scrypt-async":"^2.0.1","tweetnacl":"^1.0.3","tweetnacl-util":"^0.15.1","ws":"^7.3.1"},"devDependencies":{"@microsoft/api-documenter":"^7.8.21","@microsoft/api-extractor":"^7.9.2","@types/assert":"^1.4.1","@types/btoa-lite":"^1.0.0","@types/dotenv":"^8.2.0","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@types/mocha":"^8.0.2","@types/node":"^12.7.4","@types/node-fetch":"^2.5.7","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","@types/ws":"^7.2.6","@typescript-eslint/eslint-plugin":"3.9.0","@typescript-eslint/parser":"3.9.0","@types/bitcore-lib":"^0.15.2","@types/scrypt-async":"^1.3.1","dotenv":"^8.2.0","eslint":"7.7.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-tsdoc":"^0.2.6","fs-extra":"^9.0.1","karma":"5.1.1","karma-chrome-launcher":"3.1.0","karma-mocha":"2.0.1","mkdirp":"^1.0.4","mocha":"^8.1.1","prettier":"^2.0.5","rimraf":"^3.0.2","serve":"^11.3.2","supertest":"^4.0.2","ts-loader":"^8.0.2","ts-node":"^8.10.2","tsconfig-paths":"^3.9.0","typescript":"^3.9.7","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"gitHead":"ded2cb78cf5baa5e9fefa46e08606067fdbbe8c0","_id":"filecoin.js@0.0.3-alpha","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Detc5TBYnsiKpfGaOaAdnAtKSZLkCvAEVilLm5eyZEwpuu9zSrbe1+HMXNstDYpOFEHWyZSOmDm8CfexfNPIXA==","shasum":"08db5b63c1fba54a20c4638dcb0cbacd0cf7814c","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-0.0.3-alpha.tgz","fileCount":256,"unpackedSize":13313561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhhhyCRA9TVsSAnZWagAAK00P/RbKtUaYjKvOGiXVts+Y\nAfGIqTIRE2zMfv04bjtYNgKWzbCsx8k79SpAAem+1/RnmI7icj/4mnKjzLTH\n49oTzzQdVxSWZ/Y7rSJsaf7A1mzkvPjWIlo8yWnVZD/VdU8/qVHcV7Z7HGuh\nNMJwiB1c30kArjzIOAI/I/Nu2UmqyKus7aeq+XUZevVaNoZxKPO9DhsSErWZ\nqBMWX7gIg3yCEK8DPL/MFJy5Wkbj5Yv3gnGrpReOzPZCpJYXMjoMMlYF9C1x\ntRDOH1A7sgloYWOyQ7C0XaFksW6e8r36ZhUAwb2qNwDllKlhXGDDFqEsrqFl\ne6LmontriRUgSV5XzmxV1Td8N27JVzgO5eJoGnQRjaebEs/F1m7AI5VJp+lV\nWWDh2pEC8X3+pIvMhfMo2a1c08Cq4/5zUx1pa225j/EDob31V0nDbe0A+Yyl\nKRm2pIcWdH0Kr5+xR3FgOvft/k3Npa+/T0sFADQMKHhaVY2J7Z3a/QsycMYd\nzsWQnmlwhCT66U1IK8R//wZ5PBZBqwOZN7rfT7B86GM32eEcLfS7Rh6P3V6/\nHl2+9MG7S4Q+gguSMpNlxbJNDZXjVYzRySXsSy5lI1Sk59PiblN2ZxLUNGVC\naEjbdLuAyfNGSNdFH2kX0i4wXUA8lxzkVdD39XNNdXC4poBq2+szpIuRRVIk\nRKeq\r\n=y4uW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPbqTKpLdi6q4G5B7eyvciBKVRmYyaCje5PjVoIZa2CwIgVyW9c/8/glx83csmjhdjU27gR7B4IAAsWntXZsC/F8k="}]},"maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"},{"name":"smooth-operator","email":"bara.catalin@gmail.com"},{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"}],"_npmUser":{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin.js_0.0.3-alpha_1602623602210_0.7913610468225192"},"_hasShrinkwrap":false},"1.0.0-beta.1":{"name":"filecoin.js","version":"1.0.0-beta.1","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","main":"builds/dist/index.js","types":"builds/dist/index.d.ts","jsnext:main":"builds/dist-esm/index.js","module":"builds/dist-esm/index.js","browser":"builds/bundle/filecoin.js","repository":{"type":"git","url":"git+https://github.com/filecoin-shipyard/filecoin.js.git"},"scripts":{"prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","build":"tsc && tsc -m es6 --outDir builds/dist-esm","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","prebundle":"rimraf builds/bundle","bundle":"webpack","bundle:analyze:report":"webpack --profile --json > stats.json","bundle:analyze":"npm run bundle:analyze:report && webpack-bundle-analyzer stats.json","_bundle-tests":"webpack --config webpack.tests.config.js","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src/test-*.js","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","test":"npm run _build_tests && npm run _test-node","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","doc":"node build-tools/make-docs.js","serve:local":"npx serve --config serve.json --cors -l 1337","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples"},"author":"","license":"(Apache-2.0 AND MIT)","dependencies":{"@ledgerhq/hw-transport-webusb":"^5.22.0","@nodefactory/filsnap-adapter":"^0.2.1","@nodefactory/filsnap-types":"^0.2.1","@zondax/filecoin-signing-tools":"^0.7.1","bignumber.js":"^9.0.0","btoa-lite":"^1.0.0","events":"^3.2.0","isomorphic-ws":"^4.0.1","node-fetch":"^2.6.0","rpc-websockets":"^5.3.1","websocket":"^1.0.31","bitcore-lib":"^8.22.2","bitcore-mnemonic":"^8.22.2","scrypt-async":"^2.0.1","tweetnacl":"^1.0.3","tweetnacl-util":"^0.15.1","ws":"^7.3.1"},"devDependencies":{"@microsoft/api-documenter":"^7.8.21","@microsoft/api-extractor":"^7.9.2","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/git":"^9.0.0","@semantic-release/github":"^7.1.1","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","@types/assert":"^1.4.1","@types/bitcore-lib":"^0.15.2","@types/btoa-lite":"^1.0.0","@types/dotenv":"^8.2.0","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@types/mocha":"^8.0.2","@types/node":"^12.7.4","@types/node-fetch":"^2.5.7","@types/scrypt-async":"^1.3.1","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","@types/ws":"^7.2.6","@typescript-eslint/eslint-plugin":"3.9.0","@typescript-eslint/parser":"3.9.0","dotenv":"^8.2.0","eslint":"7.7.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-tsdoc":"^0.2.6","fs-extra":"^9.0.1","karma":"5.1.1","karma-chrome-launcher":"3.1.0","karma-mocha":"2.0.1","mkdirp":"^1.0.4","mocha":"^8.1.1","prettier":"^2.0.5","rimraf":"^3.0.2","semantic-release":"^17.2.1","serve":"^11.3.2","supertest":"^4.0.2","ts-loader":"^8.0.2","ts-node":"^8.10.2","tsconfig-paths":"^3.9.0","typescript":"^3.9.7","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"readme":"A JavaScript (and TypeScript) library for interacting with the [Filecoin's](https://filecoin.io) [Lotus](https://github.com/filecoin-project/lotus) node, with support for external signers.\n\n:warning: The library is currently in ALPHA: things will not work or work incorectly, will break and the API will change! :warning:\n\n## Installing\n\nNode:\n\n```bash\nnpm install --save filecoin.js\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<!-- window.FilecoinJs object contains the library exports -->\n```\n## Using\n\nNode JavaScript/TypeScript:\n\n```javascript\nimport { HttpJsonRpcConnector, MnemonicWalletProvider } from 'filecoin.js';\n\n(async () => {\n\n  const connector = new HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = '...';\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<script type=\"text/javascript\">\n(async () => {\n\n  const connector = new FilecoinJs.HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = async () => await window.prompt(),;\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new FilecoinJs.MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n</script>\n```\n\n## Examples\n\nSending some FIL to `someAddress`:\n\n```javascript\n    const message = await walletProvider.createMessage({\n      From: myAddress,\n      To: someAddress,\n      Value: new BigNumber(42),\n    });\n\n    const msgCid = await walletProvider.sendSignedMessage(\n      await walletProvider.signMessage(message)\n    );\n```\n\nCheck out the [tests](./tests/) or [examples](./documentation/examples) folders for more usage examples.\n\n## Documentation\n\nAs with the rest of the library, the documentation is WIP. As it evolves the [documentation site](http://docs.filecoinjs.surge.sh/) will be updated.\n\n## Contributing\n\nFeel free to join in. All welcome. [Open an issue!](https://github.com/Digital-MOB-Filecoin/filecoin.js/issues)\n\n## License\n\nDual-licensed under [MIT](./LICENSE-MIT) + [Apache 2.0](./LICENSE-APACHE)\n","readmeFilename":"README.md","gitHead":"3a8311f15e7e042464ab39afb8b3e0b28427c994","bugs":{"url":"https://github.com/filecoin-shipyard/filecoin.js/issues"},"homepage":"https://github.com/filecoin-shipyard/filecoin.js#readme","_id":"filecoin.js@1.0.0-beta.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qN8Ugg8gzSw4TvySDw/Yh/UaCPBJeJ+RG+dXQDy0DDEQToa2iY9iqURhFuptFFV/+Wvl84ikTwzClzvmXDqqhQ==","shasum":"a8f412a0c4e3ca91166c86334910d5f2ee4659e5","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-1.0.0-beta.1.tgz","fileCount":257,"unpackedSize":13317477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkU7ACRA9TVsSAnZWagAAMkgQAKC6ocplvZ3/MtokUlar\nE6PI/p67pHvMOfqLnXCpiCp7ItoVcrDV29bA/AHpLJMPKRhG4+4nl5xR1NLl\nKlLw9nnxH62Bl6sDY9cS+673u8uUmulSTjWbAJlM+q76bvIU9fE3LCKEhL2j\nLwhD6WAY4fTPBuS6+RdDx2FEmWR51Vd4VdkC2fFpk6yIdWswmShuJLJhOAW0\ndyHQNFsZZIfCBeXZHzEjQAwkKe5oBXu2gjtOO8a29+F727Y5RFpVQn6VxQp6\nE/KVCb/RQ1tu23+Qe7FTdhaP1UdPOQRFt7MZ++QZhzSAiO30EVTycVH2jQK0\nx00XhVDlKiByYfKWtbwTiWNKXEYCA+66SVXm8EDNwkQYamLNv5S2UDYE7Czx\n3w3mPa5iMl4B9wMVt/ZEL6C+IX3l4LXqOBZ0IoXiiyn06vQMxGptyN95f/Dn\njKPHft7Ay3CQ0G8ZwqlIO1xj5UXhHMAeBlolWcu0oF8E+Lp1V49U/v7AiJHP\nLUgpYenMEeioyqEltdfWyTSDbXB1i3lYy9EWfkwz1/iVMBIjl/DY5Aw7iC5m\ne5J03tZ71TC4kekB8HkdYwpyUEymGXT9oaM2HiiJgd9+REEi6aLe1Eh5w+dg\np6VH6lE6VtzWZImV0OwKy0QhTevecPuer30tIAf25lf7O89TpCyCT0rInBNo\nOXHr\r\n=eoGZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFA+yes6npqGUDQkYceVtTGRu2mDsFW4/ms9mo72i8wAIgJU9HGgxFqB0AsCrjpXFWV6mHYDVhpP0FwICZNgzTfNk="}]},"maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"},{"name":"smooth-operator","email":"bara.catalin@gmail.com"},{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"}],"_npmUser":{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin.js_1.0.0-beta.1_1603358399675_0.1744868282758314"},"_hasShrinkwrap":false},"0.0.4-alpha":{"name":"filecoin.js","version":"0.0.4-alpha","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","main":"builds/dist/index.js","types":"builds/dist/index.d.ts","jsnext:main":"builds/dist-esm/index.js","module":"builds/dist-esm/index.js","browser":"builds/bundle/filecoin.js","repository":{"type":"git","url":"git+https://github.com/filecoin-shipyard/filecoin.js.git"},"scripts":{"prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","build":"tsc && tsc -m es6 --outDir builds/dist-esm","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","prebundle":"rimraf builds/bundle","bundle":"webpack","bundle:analyze:report":"webpack --profile --json > stats.json","bundle:analyze":"npm run bundle:analyze:report && webpack-bundle-analyzer stats.json","_bundle-tests":"webpack --config webpack.tests.config.js","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src/test-*.js","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","test":"npm run _build_tests && npm run _test-node","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","doc":"node build-tools/make-docs.js","serve:local":"npx serve --config serve.json --cors -l 1337","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples"},"author":"","license":"(Apache-2.0 AND MIT)","dependencies":{"@ledgerhq/hw-transport-webusb":"^5.22.0","@nodefactory/filsnap-adapter":"^0.2.1","@nodefactory/filsnap-types":"^0.2.1","@zondax/filecoin-signing-tools":"github:Digital-MOB-Filecoin/filecoin-signing-tools-js","bignumber.js":"^9.0.0","bitcore-lib":"^8.22.2","bitcore-mnemonic":"^8.22.2","btoa-lite":"^1.0.0","events":"^3.2.0","isomorphic-ws":"^4.0.1","node-fetch":"^2.6.0","rpc-websockets":"^5.3.1","scrypt-async":"^2.0.1","tweetnacl":"^1.0.3","tweetnacl-util":"^0.15.1","websocket":"^1.0.31","ws":"^7.3.1"},"devDependencies":{"@microsoft/api-documenter":"^7.8.21","@microsoft/api-extractor":"^7.9.2","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/git":"^9.0.0","@semantic-release/github":"^7.1.1","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","@types/assert":"^1.4.1","@types/bitcore-lib":"^0.15.2","@types/bn.js":"^4.11.6","@types/btoa-lite":"^1.0.0","@types/dotenv":"^8.2.0","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@types/mocha":"^8.0.2","@types/node":"^12.7.4","@types/node-fetch":"^2.5.7","@types/scrypt-async":"^1.3.1","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","@types/ws":"^7.2.6","@typescript-eslint/eslint-plugin":"3.9.0","@typescript-eslint/parser":"3.9.0","dotenv":"^8.2.0","eslint":"7.7.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-tsdoc":"^0.2.6","fs-extra":"^9.0.1","karma":"5.1.1","karma-chrome-launcher":"3.1.0","karma-mocha":"2.0.1","mkdirp":"^1.0.4","mocha":"^8.1.1","prettier":"^2.0.5","rimraf":"^3.0.2","semantic-release":"^17.3.0","serve":"^11.3.2","supertest":"^4.0.2","ts-loader":"^8.0.2","ts-node":"^8.10.2","tsconfig-paths":"^3.9.0","typescript":"^3.9.7","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"gitHead":"d1dc3db08b51834a0cde07452d034d1b54eb86f3","bugs":{"url":"https://github.com/filecoin-shipyard/filecoin.js/issues"},"homepage":"https://github.com/filecoin-shipyard/filecoin.js#readme","_id":"filecoin.js@0.0.4-alpha","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-cu6pxyKvmghqJj2VgTRa/At247bz9cW7fdBb/sGf4XBnaVL8XhYp3TAzfiOeFcXdFzftii4LazkiKYwNbzjH/g==","shasum":"02f318b95f241ae17bc36029d2896b3db191fa9c","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-0.0.4-alpha.tgz","fileCount":232,"unpackedSize":14344513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwPDqCRA9TVsSAnZWagAAnKkP/1k+4hirGoJ3L+IWMUi1\n6v+lSvyryqPhgQ3UQYJr/kHmmuGhpf8ScieET70J9Cs+WFXtph5epNb/6DGi\n46WISIMmBHaxkT1D4JUxBsvCtPDtkGe8FJCj5j7NQTPpuaRc4vkY3uS0MsSt\n3SlIQ4AthKioyluk7ispkYRCPUTfllp94zDFfwSxBHqez5Ty89OZA5B1Gooc\n/t/LwTbwTokqo+QwmfwHIU1oCfFPAdDrWG1BcAOf9RIa3r3L1vcHJLFZgNMb\nzaoQWvhr3+zf+RSmxf9sEDbLeeQ6Bf+dg0F1Ssw0mNehS/b1XQX3+DlB+RfH\nsB3TCHQ004ivd+GP2QVpe1tJ4+1RPfcS1VT3PKiFLopzXpOVWVFif9UjIPcL\nJgBKUcO8sBYNL6J470ruIawqb9uOqNIK1XMH9yd4bm0ZhNHEaQ0W8Cers5AZ\nw2nLudqxWK5lUpCyD4v0JgdZQYgOmKhLZnnG8N1Un+3rwdWspLBtgR5mZyg3\naFYcGePj/06PVCKruGoLR6oZArpjGqgaO8cRbYL7Gu38u4XtuEEeEHJoh8Dt\nMKm0I8qGA9m3/KUSsVOLpGpYh2uDICPSGqT8rnX2vGpEMUmyrFyCGJsiY2Zz\nhhBjciZa9ATwjb2lOf7KgG9Hn7b1uOhdvC7JnPWSyIa1tbbl6UeP70L6XchP\nJ02F\r\n=icvN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQSsTehsgSrDxTjhEbJ4kqEolxhBERW0+WVZf2Yyrz9AIhAIk3ql98Gyp8O3a5T0Y+cu3vDjAklfjBet0xgcaKgdRo"}]},"_npmUser":{"name":"smooth-operator","email":"bara.catalin@gmail.com"},"directories":{},"maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"},{"name":"smooth-operator","email":"bara.catalin@gmail.com"},{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin.js_0.0.4-alpha_1606480105992_0.3397194316188532"},"_hasShrinkwrap":false},"0.0.5-alpha":{"name":"filecoin.js","version":"0.0.5-alpha","description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","main":"builds/dist/index.js","types":"builds/dist/index.d.ts","jsnext:main":"builds/dist-esm/index.js","module":"builds/dist-esm/index.js","browser":"builds/bundle/filecoin.js","repository":{"type":"git","url":"git+https://github.com/filecoin-shipyard/filecoin.js.git"},"scripts":{"prebuild":"rimraf builds/dist builds/dist-esm builds/dist-tests builds/examples","build":"tsc && tsc -m es6 --outDir builds/dist-esm","_build_tests":"npm run prebuild && tsc --project tsconfig.tests.json","prebundle":"rimraf builds/bundle","bundle":"webpack","bundle:analyze:report":"webpack --profile --json > stats.json","bundle:analyze":"npm run bundle:analyze:report && webpack-bundle-analyzer stats.json","_bundle-tests":"webpack --config webpack.tests.config.js","_test-browser-umd":"karma start --single-run --browsers HeadlessLittleLiar karma-umd.conf.js","_test-node":"mocha --no-colors --reporter ./tests/reporter ./builds/dist-tests/tests/src/test-*.js","test-browser-umd":"npm run _build_tests && npm run _bundle-tests && npm run _test-browser-umd","test":"npm run _build_tests && npm run _test-node","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","doc":"node build-tools/make-docs.js","serve:local":"npx serve --config serve.json --cors -l 1337","build:examples":"rimraf builds/examples && mkdirp builds/examples/ && cp -r examples/* builds/examples && cp -r builds/bundle/* builds/examples"},"author":"","license":"(Apache-2.0 AND MIT)","dependencies":{"@ledgerhq/hw-transport-webusb":"^5.22.0","@nodefactory/filsnap-adapter":"^0.2.1","@nodefactory/filsnap-types":"^0.2.1","@zondax/filecoin-signing-tools":"github:Digital-MOB-Filecoin/filecoin-signing-tools-js","bignumber.js":"^9.0.0","bitcore-lib":"^8.22.2","bitcore-mnemonic":"^8.22.2","btoa-lite":"^1.0.0","events":"^3.2.0","isomorphic-ws":"^4.0.1","node-fetch":"^2.6.0","rpc-websockets":"^5.3.1","scrypt-async":"^2.0.1","tweetnacl":"^1.0.3","tweetnacl-util":"^0.15.1","websocket":"^1.0.31","ws":"^7.3.1"},"devDependencies":{"@microsoft/api-documenter":"^7.8.21","@microsoft/api-extractor":"^7.9.2","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/git":"^9.0.0","@semantic-release/github":"^7.1.1","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","@types/assert":"^1.4.1","@types/bitcore-lib":"^0.15.2","@types/bn.js":"^4.11.6","@types/btoa-lite":"^1.0.0","@types/dotenv":"^8.2.0","@types/ledgerhq__hw-transport-webusb":"^4.70.0","@types/mocha":"^8.0.2","@types/node":"^12.7.4","@types/node-fetch":"^2.5.7","@types/scrypt-async":"^1.3.1","@types/supertest":"^2.0.8","@types/websocket":"^1.0.1","@types/ws":"^7.2.6","@typescript-eslint/eslint-plugin":"3.9.0","@typescript-eslint/parser":"3.9.0","dotenv":"^8.2.0","eslint":"7.7.0","eslint-config-prettier":"^6.10.0","eslint-plugin-import":"^2.20.1","eslint-plugin-tsdoc":"^0.2.6","fs-extra":"^9.0.1","karma":"5.1.1","karma-chrome-launcher":"3.1.0","karma-mocha":"2.0.1","mkdirp":"^1.0.4","mocha":"^8.1.1","prettier":"^2.0.5","rimraf":"^3.0.2","semantic-release":"^17.3.0","serve":"^11.3.2","supertest":"^4.0.2","ts-loader":"^8.0.2","ts-node":"^8.10.2","tsconfig-paths":"^3.9.0","typescript":"^3.9.7","webpack":"^4.44.1","webpack-bundle-analyzer":"^3.8.0","webpack-cli":"^3.3.12"},"gitHead":"d1dc3db08b51834a0cde07452d034d1b54eb86f3","bugs":{"url":"https://github.com/filecoin-shipyard/filecoin.js/issues"},"homepage":"https://github.com/filecoin-shipyard/filecoin.js#readme","_id":"filecoin.js@0.0.5-alpha","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xPrB86vDnTPfmvtN/rJSrhl4M77694ruOgNXd0+5gP67mgmCDhStLCqcr+zHIDRgDpraf7rY+ELbwjXZcQNdpQ==","shasum":"cf6f14ae0715e88c290aeacfe813ff48a69442cd","tarball":"https://registry.npmjs.org/filecoin.js/-/filecoin.js-0.0.5-alpha.tgz","fileCount":288,"unpackedSize":11710807,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwQI7CRA9TVsSAnZWagAAqMoP+wcCL0PYbWpTYYp/tGeP\nWfaUnKieufX6FmlPhUpCNJsAvcDwdETcsz8zFUGlI5XiU48xowj9bNzW3isQ\nrKxSsNC/SgOyn0N1NQPGtAafCAQflUx03lxrhOHHVWvEcR2wwXK+jrbaEYUF\nDH9J46hLn+TFJPR3KN+k0+w80c7WFuUu90ZXJopLwRoWg8rO25R4dcfL6Gf2\nx+i6Xwdwr3Q5WQMJBVfGk/upHX+cL7W+Yi92ITxPVW810YFqIMkhyoeavmu+\nrc3H3+0buvSsfrQ+vHIqh61M1mn0zhgeQkJQk2c2riLM+tRByFkIQRROiAvB\nRxAMchzN4yBFW+ZYrJicPj1SXbnu3/o2/4lmUrT6pQAYT5AdcCHtuLYROwzl\nA2hwynHKHrBES2/5+7J9mxwMOcJRLP1I0yJ1z79eM5mXrR+lBwUY2h7C7+Hi\nGSy5AD6GVVr//CbdnngmwMgJlUBEXrN4mplGYVL82XnE3hOKy7LqjyPKmArV\nIwvDbT6CmWqSs0poPQEn4AqUo+XYliM1iFpwaZj1cMn4pZfrfRH0k26Q0fQR\n045IX2ibhqDtXtyH/3VY2hCj6r0xIihfPgy7x1dyyaRXNRcCjgCs3dDgnBRT\nISqYQDZsyTrOFPQHIW8DWjFC+Djyg3/vS+DxiTWZ+Q38PeZs7u6iIQ/m2KbT\nrNPn\r\n=l3FT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtJu6UhV064+6YkiFKP79vQMMbQVg7G8nw7/rC9t8SCAiAv9qcm6v9U3TH65zR+NQWhD1izWprkKM6fibGal10QFA=="}]},"_npmUser":{"name":"smooth-operator","email":"bara.catalin@gmail.com"},"directories":{},"maintainers":[{"name":"popra","email":"razvan.pop@gmail.com"},{"name":"smooth-operator","email":"bara.catalin@gmail.com"},{"name":"alexandruma","email":"alexandrumatei3693@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin.js_0.0.5-alpha_1606484538701_0.6841341429315393"},"_hasShrinkwrap":false}},"maintainers":[{"email":"r@va.gg","name":"rvagg"},{"email":"razvan.pop@gmail.com","name":"popra"},{"email":"bara.catalin@gmail.com","name":"smooth-operator"},{"email":"alexandrumatei3693@gmail.com","name":"alexandruma"},{"email":"npm-service-account+filecoin-shipyard@protocol.ai","name":"npm-service-account-filecoin-shipyard"}],"description":"A JavaScript/TypeScript client library for Filecoin.io's Lotus","license":"(Apache-2.0 AND MIT)","readme":"A JavaScript (and TypeScript) library for interacting with the [Filecoin's](https://filecoin.io) [Lotus](https://github.com/filecoin-project/lotus) node, with support for external signers.\n\n:warning: The library is currently in ALPHA: things will not work or work incorectly, will break and the API will change! :warning:\n\n## Installing\n\nNode:\n\n```bash\nnpm install --save filecoin.js\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<!-- window.FilecoinJs object contains the library exports -->\n```\n## Using\n\nNode JavaScript/TypeScript:\n\n```javascript\nimport { HttpJsonRpcConnector, MnemonicWalletProvider } from 'filecoin.js';\n\n(async () => {\n\n  const connector = new HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = '...';\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n```\n\nBrowser:\n\n```html\n<script type=\"text/javascript\" src=\"https://unpkg.com/filecoin.js\"></script>\n<script type=\"text/javascript\">\n(async () => {\n\n  const connector = new FilecoinJs.HttpJsonRpcConnector({ url: __LOTUS_RPC_ENDPOINT__, token: __LOTUS_AUTH_TOKEN__ });\n\n  const hdWalletMnemonic = 'equip ... young';\n  const hdWalletPassword = async () => await window.prompt(),;\n  const hdDerivationPath = `m/44'/461'/0'/0/0`;\n\n  const walletProvider = new FilecoinJs.MnemonicWalletProvider(\n    connector,\n    hdWalletMnemonic,\n    hdWalletPassword,\n    hdDerivationPath\n  );\n\n  const myAddress = await walletProvider.getDefaultAccount();\n  console.log(myAddress);\n  // f1zx43cf6qb6rd...\n\n})().then().catch();\n</script>\n```\n\n## Examples\n\nSending some FIL to `someAddress`:\n\n```javascript\n    const message = await walletProvider.createMessage({\n      From: myAddress,\n      To: someAddress,\n      Value: new BigNumber(42),\n    });\n\n    const msgCid = await walletProvider.sendSignedMessage(\n      await walletProvider.signMessage(message)\n    );\n```\n\nCheck out the [tests](./tests/) or [examples](./documentation/examples) folders for more usage examples.\n\n## Documentation\n\nAs with the rest of the library, the documentation is WIP. As it evolves the [documentation site](https://filecoin-shipyard.github.io/filecoin.js/) will be updated.\n\n## Contributing\n\nFeel free to join in. All welcome. [Open an issue!](https://github.com/Digital-MOB-Filecoin/filecoin.js/issues)\n\n## License\n\nDual-licensed under [MIT](./LICENSE-MIT) + [Apache 2.0](./LICENSE-APACHE)\n","readmeFilename":"README.md","homepage":"https://github.com/filecoin-shipyard/filecoin.js#readme","repository":{"type":"git","url":"git+https://github.com/filecoin-shipyard/filecoin.js.git"},"bugs":{"url":"https://github.com/filecoin-shipyard/filecoin.js/issues"}}