{"_id":"@crypto-test1/chain-nodelib","_rev":"1-8349bdb3fe6ac333b8f5edd7c9d6431c","name":"@crypto-test1/chain-nodelib","dist-tags":{"latest":"0.3.1"},"versions":{"0.3.1":{"name":"@crypto-test1/chain-nodelib","version":"0.3.1","description":"Crypto.com Chain library for Node.js","main":"lib/dist/index.js","repository":{"type":"git","url":"git+https://github.com/crypto-com/chain-nodelib.git"},"author":{"name":"Crypto.com","email":"chain@crypto.com"},"license":"Apache-2.0","binary":{"module_name":"index","host":"https://github.com/crypto-com/chain-nodelib/releases/download/","remote_path":"{version}","package_name":"{node_abi}-{platform}-{arch}.tar.gz","module_path":"./native","pkg_path":"."},"dependencies":{"@amilajack/node-pre-gyp":"github:amilajack/node-pre-gyp#neon-compat","axios":"0.19.2","bignumber.js":"9.0.0","bip32":"2.0.5","bip39":"3.0.2","lodash":"4.17.20","lossless-json":"1.0.4","node-pre-gyp-github":"1.4.3","ow":"0.15.0"},"devDependencies":{"@types/axios":"0.14.0","@types/bignumber.js":"5.0.0","@types/chai":"4.2.12","@types/deep-equal":"1.0.1","@types/lodash":"4.14.159","@types/lossless-json":"1.0.0","@types/mocha":"8.0.2","@types/node":"14.0.27","@types/sinon":"9.0.4","@typescript-eslint/eslint-plugin":"2.34.0","@typescript-eslint/parser":"2.34.0","axios":"0.19.2","chai":"4.2.0","chai-as-promised":"7.1.1","deep-equal":"2.0.3","eslint":"6.8.0","eslint-config-airbnb-base":"14.2.0","eslint-config-prettier":"6.11.0","eslint-plugin-import":"2.22.0","eslint-plugin-prettier":"3.1.4","mocha":"8.1.1","neon-cli":"0.4.0","nodemon":"2.0.4","prettier":"2.0.5","sinon":"9.0.3","ts-node":"8.10.2","typescript":"3.9.7"},"scripts":{"install":"node-pre-gyp install --fallback-to-build=false || npm run build","build":"npm run build:neon && npm run build:tsc","build:neon":"neon build --release","build:tsc":"tsc","binary:publish":"npm run binary:package && npm run binary:upload","binary:package":"node-pre-gyp package","binary:upload":"node-pre-gyp-github publish","clean":"rm -rf ./native/target && rm ./native/index.node","lint":"npm run lint:typescript && npm run lint:rust","lint:typescript":"eslint 'lib/**'","lint:rust":"cd native && cargo fmt -- --check --color=auto","audit":"npm run audit:npm && npm run audit:rust","audit:npm":"npm audit --audit-level=moderate","audit:rust":"cd native && cargo audit","test":"NODE_ENV=test mocha --require ./node_modules/ts-node/register --exit --color --recursive 'lib/src/**/*.spec.ts'","test:watch":"NODE_ENV=test nodemon","test:integration":"NODE_ENV=integration-test mocha --require ./node_modules/ts-node/register --exit --color --recursive 'integration-tests/**/*.spec.ts'","ci:withdraw-all-stake":"ts-node ./integration-tests/withdraw-all-stake.ts"},"bugs":{"url":"https://github.com/crypto-com/chain-nodelib/issues"},"homepage":"https://github.com/crypto-com/chain-nodelib#readme","directories":{"doc":"docs","lib":"lib"},"_id":"@crypto-test1/chain-nodelib@0.3.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JdOwkoKkxACZ7HVxoz6wJy9wHlYQ+ufQuy0fhzcSFAGFh6i9Nrq2TkhK5ClXJRdv+wMttGR8yGWhF+Cp43YQ5w==","shasum":"119b0393c455de0e5f4b40899d8d09c819bbce96","tarball":"https://registry.npmjs.org/@crypto-test1/chain-nodelib/-/chain-nodelib-0.3.1.tgz","fileCount":158,"unpackedSize":180992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOldNCRA9TVsSAnZWagAAMhoQAKQhaDL+FvYvH+9qU/M9\n7tpaG7nc8d/gvMOSP6X9GduM53iFiG3OHPT3AjFxVKPeFK6hqWhzMPfzbQSJ\n8dHp9aGbBeNa7gslnH41NO0nDnfmYexkXg9YJWbJijx+aGf1JkHi0xtrMTPf\nsNNxb7xzhZLm4fOW6gwsCZZzMe9DN4ZIS0dwNKt5IVlauMc/gRjs+EExvy3H\nxLx6NEvJDQVKZ1yuQidDHziVdlO1JN2QAAYYVlLWot1ga1RgmC1GX9F1W8x5\nP7fN1KoRKmLvKBz3dzP61JCu6TLOW1b6y69vpYhol2QVaqzzvag0QrFiWE6a\ndSarTZ3FaubDqT3p6g1DR98rpomSGcyjHScIghsw995uHSWM3eX00lNSfwjb\nk230zt1XAOA1TgW9PKcamD014wo4kpqHxO1E9CDXCDp4x3QQy8fzou68TfxB\nxKOLzOOaUZf36BPPZaEVg2joUR7hVNfhpRZNc+qQ0F4jkgAsBFqqdR+WCr7s\nOQlFv0l2jQneWpKkVQoBbFYed8BZ/sGv/WNOc0NtLSJ18SLwixsQQby2jbf8\nqWXFu1x78goVbm0MzvxhIDOzMMjbQa9nURjppKKidRYfy+YbjPeGqgh+1naD\nOOF6kK9+ywZjCe+fwLsX0fW7L8zBX15WBo7VO3zKxIMvCpBcLEaU5u3BDheY\n60Xl\r\n=GYGm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5OFC+qsXVgWgRBfVw/osebyaE+U0U50kArp/3GuNFQAIhANd/7kbOaJpWoF4Lq5d2wt0FUWhhF5FoEtjqsq1Q/Viu"}]},"maintainers":[{"name":"saisankar10","email":"sai.techit@gmail.com"}],"_npmUser":{"name":"saisankar10","email":"sai.techit@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chain-nodelib_0.3.1_1597658957198_0.5487864670422493"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-17T10:09:16.709Z","0.3.1":"2020-08-17T10:09:17.327Z","modified":"2022-04-05T01:58:38.218Z"},"maintainers":[{"name":"saisankar10","email":"sai.techit@gmail.com"}],"description":"Crypto.com Chain library for Node.js","homepage":"https://github.com/crypto-com/chain-nodelib#readme","repository":{"type":"git","url":"git+https://github.com/crypto-com/chain-nodelib.git"},"author":{"name":"Crypto.com","email":"chain@crypto.com"},"bugs":{"url":"https://github.com/crypto-com/chain-nodelib/issues"},"license":"Apache-2.0","readme":"# Crypto.com Chain library for Node.js\n\nThis repository contains the Node.js library for interacting with Crypto.com Chain.\n\n## Warning\n\nCrypto.com Chain and this library is currently in the alpha development phase and subjects to changes. Before proceeding, please be aware of the following:\n\n-   This library is not production-ready, do not use in production systems.\n\n-   Do not transfer any ERC20 tokens to addresses generated by this sample code as it can cause loss of funds.\n\n-   Crypto.com is not liable for any potential damage, loss of data/files arising from the use of the library.\n\n## Installation\n\n### Install via NPM\n\n```bash\nnpm install @crypto-com/chain-nodelib\n```\n\nDepending on your Node.js languages:\n\n1. TypeScript\n    ```typescript\n    import * as cro from \"@crypto-com/chain-nodelib\";\n    ```\n\n2. JavaScript:\n    ```javascript\n    const cro = require(\"@crypto-com/chain-nodelib\");\n    ```\n\n### Build manually\n\n1. Clone this repository to your project\n    ```bash\n    git clone https://github.com/crypto-com/chain-nodelib \n    ```\n\n1. Install and build `chain-nodelib`\n    ```bash\n    cd chain-node-lib\n    npm install\n    npm build\n    ```\n\n1. Add chain-nodelib to your `package.json`\n    ```json\n    {\n        ...\n        \"dependencies\": {\n            \"@cryptocom/chain-nodelib\": \"file:./chain-nodelib\",\n        }\n    }\n    ```\n\n## Examples\n\nAn example is worth a thousand words, we provide code examples of different use cases below.\n\nIf you couldn't find an example for your use case, please [open an issue](https://github.com/crypto-com/chain-nodelib/issues/new) and tell us.\n\n#### Address\n- [Generate random transfer address](integration-tests/address.spec.ts#L6)\n- [Create transfer address from private/public key](integration-tests/address.spec.ts#L17)\n- [Generate random staking address](integration-tests/address.spec.ts#L55)\n- [Create staking address from private/public key](integration-tests/address.spec.ts#L65)\n\n#### View Key\n- [Generate random view key](integration-tests/viewKey.spec.ts#L8)\n\n#### Transaction\n- [Create transfer transaction](integration-tests/transaction/transfer.spec.ts#L29)\n\n#### Staking and Council Node\n- [Create deposit transaction](integration-tests/transaction/staking.spec.ts#L60)\n- [Create unbond transaction](integration-tests/transaction/staking.spec.ts#L101)\n- [Create withdraw staked transaction](integration-tests/transaction/staking.spec.ts#L130)\n- [Create node-join transaction](integration-tests/transaction/council_node.spec.ts#L100)\n- [Create unjail transaction](lib/src/transaction/council_node/unjail_transaction.spec.ts#148)\n\n#### HD Wallet\n\n- [Generate mnemonic words](integration-tests/hdwallet.spec.ts#L8)\n- [Restore from mnemonic words and create addresses and view key at bip39 path](integration-tests/hdwallet.spec.ts#L14)\n- [Create addresses and view key at Crypto.com chain default bip44 path](integration-tests/hdwallet.spec.ts#L59)\n- [create at particular path with format argument](integration-tests/hdwallet.spec.ts#L119)\n- [Spend UTXO of transfer address generated with HD wallet](integration-tests/transaction/transfer.spec.ts#L173)\n\n## Browser support\n\nRight now the library does not support Browser.\n\n## License\n\n[Apache 2.0](./LICENSE)\n","readmeFilename":"README.md"}