{"_id":"@defichain/jellyfish-core","_rev":"5-0c9d6811eddd85b575980a6375b9749f","name":"@defichain/jellyfish-core","dist-tags":{"next":"0.0.10","latest":"0.0.4"},"versions":{"0.0.4":{"private":false,"name":"@defichain/jellyfish-core","version":"0.0.4","description":"A collection of JavaScript tools and library for DeFiChain to enable decentralized finance on Bitcoin","keywords":["DeFiChain","JavaScript","API"],"repository":{"type":"git","url":"git+https://github.com/DeFiCh/jellyfish.git"},"bugs":{"url":"https://github.com/DeFiCh/jellyfish/issues"},"license":"MIT","publishConfig":{"access":"public"},"contributors":[{"name":"DeFiChain Foundation","email":"engineering@defichain.com","url":"https://defichain.com/"}],"main":"src/core.ts","scripts":{"build":"tsc","pack":"npm pack"},"devDependencies":{"typescript":"^4.2.2"},"gitHead":"7f554b14aa821c21cb39bd74742e406fdd96fa3f","homepage":"https://github.com/DeFiCh/jellyfish#readme","_id":"@defichain/jellyfish-core@0.0.4","_nodeVersion":"14.15.0","_npmVersion":"lerna/4.0.0/node@v14.15.0+x64 (darwin)","dist":{"integrity":"sha512-avIAXU3MwPOo++TAHMq1kEnWl5+LR/OCaNvUG3yrn+9IYoxWBSGhjyCXKbgxjei8nxVrOyb+Os1q3e0gXMLToA==","shasum":"42ff735d1157d7b9f75c2b8ddffdad7f3e58da00","tarball":"https://registry.npmjs.org/@defichain/jellyfish-core/-/jellyfish-core-0.0.4.tgz","fileCount":6,"unpackedSize":2842,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN1MKCRA9TVsSAnZWagAA7GAP/i6PYsCbH9VyKtGaL/0o\nN+I8/T6Pe54HA2S3wxw/iQpxTeKrN/1jpng4ZPg93DW/Mu/oc+uhAKHhnQoz\ngQg/Cqd2VW6IkigON14LkSohdwaVzYBDW7Jmpj0NrquJ8D9wrpTLo1bfqCDQ\nkNeYXlEI5RdqwTRgh+Vtr6Tv3yPwOzq1vN4yXZdQ4uv2hnd/at5uXpZM6bSD\noVj7qsFqN01v9mYnMw+AE1yMLeBpV5TWEApGrrrduV/QS8JoqTbywwkg6QHq\nya0I+NK1+75B1KNyJu27XvbYWd9FMrN7/SOWS2ofK2ESZC6C1N8Q0AlLyy6T\n15HQ6x3zWNj+WKMeGFDlGUlNNYgJ4CP5rNOc1qcAvHKJjSjWXyMePqevWpqn\n34iUoQFHDsFlEEb3thTrwAlHkzqlrvT63QJoqrFRQ+NOj5z9fk3Ou1szuro6\nSELwUqbZyr4xHdLWwxjtEq6uHmBMwvoEk2CjxQy2KMRBuOfoiRE//NoVcKfX\naKLyv8QFrngpqDk+9MSp9DybrvdqyQwJAvocaeWmMfRV0XF7Ljp5ON3u26Ts\n0Og50vXK5Qa1gHnVOzZbs4xO+JfFr6RPfuOSTsIObwZucFlx2cK/S72CXEiN\nPwDcLzD8rxg1ra1Zor7HW3oUxlB0LuhY11fZ4bCg7lrYRGLJYKtfpyDnCoPR\nFSS1\r\n=PmwC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElVZehafwEI9WXS4X0fKogH1ViLbfJMbLl2E984159WAiEAmhlBUCqG9sI++14rfmiPskClTeoBJRQTzmv9i102bk8="}]},"_npmUser":{"name":"fuxingloh","email":"npm@fuxing.dev"},"directories":{},"maintainers":[{"name":"defichain-npm","email":"npm@defichain.com"},{"name":"fuxingloh","email":"npm@fuxing.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jellyfish-core_0.0.4_1614238473586_0.28998490680749844"},"_hasShrinkwrap":false,"deprecated":"replaced with jellyfish-api-core"},"0.0.8":{"private":false,"name":"@defichain/jellyfish-core","version":"0.0.8","description":"A collection of JavaScript tools and library for DeFiChain to enable decentralized finance on Bitcoin","keywords":["DeFiChain","JavaScript","API"],"repository":{"type":"git","url":"git+https://github.com/DeFiCh/jellyfish.git"},"bugs":{"url":"https://github.com/DeFiCh/jellyfish/issues"},"license":"MIT","publishConfig":{"access":"public"},"contributors":[{"name":"DeFiChain Foundation","email":"engineering@defichain.com","url":"https://defichain.com/"}],"main":"src/core.ts","scripts":{"build":"tsc","pack":"npm pack","publish:next":"npm publish --tag next","publish:latest":"npm publish --tag latest"},"devDependencies":{"typescript":"^4.2.2"},"readme":"# @defichain/jellyfish-core\n","readmeFilename":"README.md","homepage":"https://github.com/DeFiCh/jellyfish#readme","_id":"@defichain/jellyfish-core@0.0.8","_nodeVersion":"14.15.0","_npmVersion":"7.5.6","dist":{"integrity":"sha512-JdBhNGO9XyRinbEAzT6ZKBlxckcHoa6BaXg9Lu96S89rncp6ciGQbBX1VwCazGLgVqKp/Noh76DjklYwZsbIHw==","shasum":"3ba083169d269f0fd8e9bb66d6ad4a33571fb7d7","tarball":"https://registry.npmjs.org/@defichain/jellyfish-core/-/jellyfish-core-0.0.8.tgz","fileCount":5,"unpackedSize":1764,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN3DSCRA9TVsSAnZWagAAfQIP/3hJJojlIVilZYhV2fWA\n+YS1SXzKxMlU9uLBBqQVWudowcVFw3fRkif7FAfEkFCac+M7eW0xBZKanyJR\n1bXG5sr5FkwZieG98UepcJ2p2R+oaeRerd4TbxbhuZQS1xOUXFUfqLMaKxiP\nYUui5fHqgxAnFhKAVkJ0rNHJYnhGWWZXuAKWzvDd3MgJJQUrqJ3MSyCB/ukX\nish+LsRkvhMNvDOzyNZDF1iydrHVN01hHcc72AXCtZIlVoPx/sV0ug7wWt5t\nUOxOIj+0tAMzCq2Fyz3dNh/e9j5hBbKjjxvyxOn5yepk5Y9GCzMG/cHeAAz5\n4ivUxLw1OaL7EY0UGc9k8ObsqLVyyea/cchwDT1m839zJDwPmq49G4GKFuNa\nXtFXYuzgYetfgmSAbp64mjKvZpu+DSTJG3syeDIFn6FjmkUsq6KEltVOsVBR\nw5jdgLqVEUhrb907pM27D9rMr55jG4oAs0IyD+f9bYPXWXDg3rnimwYwIOdJ\nWLaOQYYHRseqfCT8Yi/fGhfGYb03kYkTWPw/+1s0iAHt7ooWS3DjQnzcLhx2\nIRX2P0PFeCrZXFnhY4D9N4J4rr7l6hsQT+7XQ1NkurIzDYdqkoJLhK0VGFeA\nz9amKuEikfPeCRk8OdjVoaEJ53wVHIakbrh+GqCQ6/THbetoaRXYe5ohcrTQ\njIwb\r\n=6P9A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEaN0GgBxE616s3zWtHNW5h+aVCAFfM+0npDgPfsiSswIgCbEjWgJbJfnmQXV8u8Av0D224WiW5zfmJ0TWtDDJ2PQ="}]},"_npmUser":{"name":"fuxingloh","email":"npm@fuxing.dev"},"directories":{},"maintainers":[{"name":"defichain-npm","email":"npm@defichain.com"},{"name":"fuxingloh","email":"npm@fuxing.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jellyfish-core_0.0.8_1614246098018_0.3009448774268737"},"_hasShrinkwrap":false,"deprecated":"replaced with jellyfish-api-core"},"0.0.9":{"private":false,"name":"@defichain/jellyfish-core","version":"0.0.9","description":"A collection of JavaScript tools and library for DeFiChain to enable decentralized finance on Bitcoin","keywords":["DeFiChain","JavaScript","API"],"repository":{"type":"git","url":"git+https://github.com/DeFiCh/jellyfish.git"},"bugs":{"url":"https://github.com/DeFiCh/jellyfish/issues"},"license":"MIT","publishConfig":{"access":"public"},"contributors":[{"name":"DeFiChain Foundation","email":"engineering@defichain.com","url":"https://defichain.com/"}],"main":"src/core.ts","scripts":{"build":"tsc","pack":"npm pack","publish:next":"npm publish --tag next","publish:latest":"npm publish --tag latest"},"devDependencies":{"typescript":"^4.2.2"},"readme":"# @defichain/jellyfish-core\n","readmeFilename":"README.md","homepage":"https://github.com/DeFiCh/jellyfish#readme","_id":"@defichain/jellyfish-core@0.0.9","_nodeVersion":"15.10.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-L1x4r1qvSnlifBrvR9y+/vFCbumZKJpkBGHXYSrLufPfnI8tM14wjvgQMNplUhRcQ5BJavmPwhHzpsgzeZ7viw==","shasum":"5bf4eae69feda8ce200a983fd7c0b13695b54a59","tarball":"https://registry.npmjs.org/@defichain/jellyfish-core/-/jellyfish-core-0.0.9.tgz","fileCount":5,"unpackedSize":1764,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgN3RJCRA9TVsSAnZWagAAiLIP/iNOMg7lj+FONYh43AfZ\nvajpaLOVyGvdecMBF8uHhQJMPW752gy0H0aq4QzlGzQWrodECH/mEJKWHjfK\nC1+KNYWC+xMg4cbBjJVnykWllrh0SMrMLvxRSDuIX2UpfC+6n1yaijhWHADg\nmGS3oLFQ9dqspr/+eFih0QOraSwUjhvZbhbNz99fwArA/K3EZOk5z4abGstJ\nu1hKrK+QNLcwkyFc50Cf0wxLOCAoAUvW8dnCGQZ8GENPRUsMSvOCeTtvHYPe\nSSdVAdPQRTWH5k+mlUWg3RggXCxgZIRnJ3FOleV7pLc9pQbEig4WWE3sljPZ\nU8k9HkoHCttunh3ycPk7oKdJK4+Dzkcgnh+6Yl48K4KKycCfs880YtbB3Muc\nQb2gR413sb4wYnPNOsXXfKh7u9+t0QG2j9dsl3fbfh7MVHkdr676sdVow86C\nxjMDxhOZX8PirJ4nCCjliGeHtAgX6NHmqJ4qpOxlkCiF7yYoivO97JWjvlcp\nkPskePX3BxyIJ72sA2LlkBg/gCi8ie4dvtUwb4rtr6G+yFCw5B3QlqHcA5ag\n8jr83II4yzkbNJXwrcJIDJrXXcntTWSpdLwGAsOw/nLZaUWbMxWYeYiTJX8A\nKKpmWbFRijp72ForA7sbDLCmXyUMc/9XdFNYRvrG7wibZQPngXORQHjYIfcD\nmM9T\r\n=uVSy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGwsjwZfVjdBWP+lwcszfxfau6d4vUGYq8NSezkFczdgIhALra+r//q+lidd7hDaJqK5OTUYnAgJBmRFNd3+k7zEt6"}]},"_npmUser":{"name":"defichain-npm","email":"npm@defichain.com"},"directories":{},"maintainers":[{"name":"defichain-npm","email":"npm@defichain.com"},{"name":"fuxingloh","email":"npm@fuxing.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jellyfish-core_0.0.9_1614246985416_0.34609988444400375"},"_hasShrinkwrap":false,"deprecated":"replaced with jellyfish-api-core"},"0.0.10":{"private":false,"name":"@defichain/jellyfish-core","version":"0.0.10","description":"A collection of TypeScript/JavaScript tools and libraries for DeFiChain to build decentralized finance on Bitcoin","keywords":["DeFiChain","JavaScript","API"],"repository":{"type":"git","url":"git+https://github.com/DeFiCh/jellyfish.git"},"bugs":{"url":"https://github.com/DeFiCh/jellyfish/issues"},"license":"MIT","publishConfig":{"access":"public"},"contributors":[{"name":"DeFiChain Foundation","email":"engineering@defichain.com","url":"https://defichain.com/"},{"name":"DeFiChain Jellyfish Contributors"}],"main":"dist/core.js","types":"dist/core.d.ts","scripts":{"build":"tsc","publish:next":"npm publish --tag next","publish:latest":"npm publish --tag latest"},"peerDependencies":{"bignumber.js":"^9.0.1","lossless-json":"^1.0.4"},"devDependencies":{"@defichain/testcontainers":"^0.0.10","@types/lossless-json":"^1.0.0","typescript":">=4.2.0"},"readme":"# @defichain/jellyfish-core\n\n`@defichain/jellyfish-core` is a protocol agnostic DeFiChain client implementation with APIs separated into their\ncategory.\n\n## Features\n\n* `Promise<T>` first implementation to prevent callback hell.\n* Numeric precision aware JSON parsing with options of `lossless`, `bignumber` or `number`.\n* Implementation in TypeScript with strongly typed interfaces and exported as `*.d.ts` too.\n* Raw RPC call is available with `client.call('getbalance', [], 'bignumber')`\n\n### Usage Example\n\n```js\nconst result = await client.mining.getMintingInfo()\n// or\nclient.mining.getMintingInfo().then((result) => {\n  console.log(result)\n}).catch((err) => {\n  console.log('panic!')\n}).finally(() => {\n  console.log('cleanup')\n})\n```\n\n## Development\n\n`JellyfishClient` being an abstract class allows the ability to adapt to any protocol when introduced (e.g. ws, https)\nwhile being simple to use. This implementation structure can be observed in ContainerAdapterClient where it is used to\ntest jellyfish-core implementations.\n\nRPC categories are grouped into `jellyfish-core/src/category/*.ts` (e.g. `category/mining.ts`) this allows a protocol\nagnostic implementation of the RPC. All concerns are grouped within one `ts` file for better developer experience of\nbrowsing and maintaining the code.\n\n`JellyfishError` encapsulate RPC errors from DeFiChain within a structure. This allows for `instanceof` or type of error\nhandling with rich structure.\n\n`JellyfishJSON` allows parsing of JSON with 'lossless', 'bignumber' and 'number' numeric precision.\n\n* **'lossless'** uses LosslessJSON that parses numeric values as LosslessNumber. With LosslessNumber, one can perform\n  regular numeric operations, and it will throw an error when this would result in losing information.\n* **'bignumber'** parse all numeric values as 'BigNumber' using bignumber.js library.\n* **'number'** parse all numeric values as 'Number' and precision will be loss if it exceeds IEEE-754 standard.\n\n## Testing\n\n```shell\njest\n```\n\nAs the RPC is implemented on `jellyfish-core`, all testing of RPC implementation should be done on `jellyfish-core`.\n`ContainerAdapterClient` is created to facilitate testing via an adapter implementation with all RPCs proxied into a\n`@defichain/testcontainers`.\n","readmeFilename":"README.md","homepage":"https://github.com/DeFiCh/jellyfish#readme","_id":"@defichain/jellyfish-core@0.0.10","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-LeIo24oI0lM46zraGs4XK+NoAkCDTAmVIZia95EpKIi4Vdb/xlP4gLQFoTmoKjmUGg47x3Joo0hLMP/ZrnTUGA==","shasum":"ee2a1121e2aef440cb8b9216a0be3bdcb9c8164e","tarball":"https://registry.npmjs.org/@defichain/jellyfish-core/-/jellyfish-core-0.0.10.tgz","fileCount":10,"unpackedSize":15113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTsAdCRA9TVsSAnZWagAAHIIP/0eQ5pMH+ak5cQSrtknq\nfL/BIdWC34JiqYahR2gd+gNTdjlHwEaE7OpAxz+pjW4eNajBqdzysd/y3spl\nGJSN4nEeN2ub6XylzEj0Z9aJgi+nFqIRLAL1YlJWPju1LhK1NptHc+iZ4+YX\nvCkW6ZrdMNE5i/nZjx2Mwzf1U+eL8RgjNEnEO3rsFuwj+smtBVhgTOgqJUGt\nonCeY/lPlCW/J6MKc8yS9V3V0UCgdhv9bMLfI+VfZ+6o7ZvVxFzjkyiHLzO2\nbRM8gLQj6GIM6s4ro9+3aPgDSP4lrsZAzCdywCu7A3Q7IFYBkN0hLBtf0bK0\nb8k+MvP8bq//f5JebALRE0Bjo7DD/ZR4UFx/4rS6MJZZSTcYmOzj/zMlbaAs\nSU3hbFI211Wx67VYI7PaIjBNpgA01ULKqpFsMjMWfdrhuJMEVBmsbea9y2Uq\nHXvW/v97+i/JWf4sx4UkiO2wLAgDW08PW5mLo2AfnDN3hHRT1Sscqnin3MDR\nQHa8vk6qeimRVkbx+AXXjxS/Z4tbDwLR+GeC8Do4lVupDfyusvhsqKr0azEF\nximq9UgKpVsHwBb38/xL7oA9CgpHvWT+FF8dheNQk5P100Uy4YP2LJZouSCw\nlZ3Wp48dZPHFwlSSQ9kqtkd91sWMQkM0+3cR5ENRgpBTYyxi7v4w7ss9z2YI\nfRQy\r\n=Xn6D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNWwi6Qy5qfNU9BXFRW/HL6r63c80VYd8WaWZVg2khpgIhAKI9zaR2cGLE3gWdq1uAEtufpE321gSZC40sEKtaKt+k"}]},"_npmUser":{"name":"defichain-npm","email":"npm@defichain.com"},"directories":{},"maintainers":[{"name":"defichain-npm","email":"npm@defichain.com"},{"name":"fuxingloh","email":"npm@fuxing.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jellyfish-core_0.0.10_1615773724431_0.14764770152942797"},"_hasShrinkwrap":false,"deprecated":"replaced with jellyfish-api-core"}},"time":{"created":"2021-02-25T07:34:33.344Z","0.0.4":"2021-02-25T07:34:33.763Z","modified":"2022-04-05T03:38:04.281Z","0.0.8":"2021-02-25T09:41:38.349Z","0.0.9":"2021-02-25T09:56:25.537Z","0.0.10":"2021-03-15T02:02:04.587Z"},"maintainers":[{"name":"defichain-npm","email":"npm@defichain.com"},{"name":"fuxingloh","email":"npm@fuxing.dev"}],"description":"A collection of JavaScript tools and library for DeFiChain to enable decentralized finance on Bitcoin","homepage":"https://github.com/DeFiCh/jellyfish#readme","keywords":["DeFiChain","JavaScript","API"],"repository":{"type":"git","url":"git+https://github.com/DeFiCh/jellyfish.git"},"contributors":[{"name":"DeFiChain Foundation","email":"engineering@defichain.com","url":"https://defichain.com/"}],"bugs":{"url":"https://github.com/DeFiCh/jellyfish/issues"},"license":"MIT","readme":"","readmeFilename":""}