{"_id":"@cardano-sdk/cip2","_rev":"32-b8b6d33d143f8cad4d24e260cd015888","time":{"0.1.0":"2021-09-24T12:10:08.428Z","created":"2021-09-30T15:04:12.965Z","0.1.1":"2021-09-30T15:04:13.196Z","modified":"2023-02-10T16:29:45.754Z","0.1.2":"2021-09-30T15:39:00.474Z","0.1.3":"2021-10-05T11:43:28.040Z","0.1.4":"2021-10-14T14:21:12.514Z","0.1.5":"2021-10-27T13:03:58.759Z","0.1.6":"2021-11-12T12:41:44.322Z","0.1.7":"2021-11-16T15:22:43.302Z","0.1.8":"2021-11-22T15:47:52.521Z","0.2.0":"2021-12-09T15:01:44.643Z","0.3.0":"2022-06-24T05:45:09.341Z","0.4.0":"2022-07-16T05:49:54.253Z","0.5.0-nightly.0":"2022-07-27T13:36:25.474Z","0.5.0-nightly.1":"2022-08-02T00:12:35.406Z","0.5.0-nightly.2":"2022-08-06T00:12:07.115Z","0.5.0-nightly.3":"2022-08-08T14:51:13.290Z","0.5.0-nightly.4":"2022-08-10T17:59:56.843Z","0.5.0-nightly.5":"2022-08-22T14:11:50.177Z","0.5.0-nightly.6":"2022-08-23T00:13:17.826Z","0.5.0-nightly.7":"2022-08-25T10:47:14.876Z","0.5.0":"2022-08-30T10:03:11.869Z","0.5.1-nightly.0":"2022-08-31T00:13:19.714Z","0.5.1-nightly.1":"2022-09-01T00:13:18.327Z","0.5.1-nightly.2":"2022-09-02T00:12:40.892Z","0.5.1-nightly.3":"2022-09-06T00:13:34.837Z","0.5.1-nightly.7":"2022-09-14T13:18:30.598Z","0.5.1-nightly.8":"2022-09-16T00:18:25.550Z","0.5.1-nightly.9":"2022-09-20T00:18:15.134Z","0.5.1-nightly.10":"2022-09-21T00:19:41.487Z","0.6.0-nightly.0":"2022-09-23T00:15:36.627Z"},"name":"@cardano-sdk/cip2","dist-tags":{"latest":"0.5.0","nightly":"0.6.0-nightly.0"},"versions":{"0.1.1":{"name":"@cardano-sdk/cip2","version":"0.1.1","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-ogmios/schema":"4.0.0","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.1.1","lodash-es":"^4.17.21"},"_id":"@cardano-sdk/cip2@0.1.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-4h+SNmAD6KiCmOKmi7AfcsDDlmxaKZUY8mJmpJtqW+F6JWi4a04uv4Lr9ZF1AnkWMyssLrjcJpAPwY2i0UHNaQ==","shasum":"f8c01b112ce1ea9987bfdc106054cbf388b28ad4","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.1.tgz","fileCount":63,"unpackedSize":214397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOLgZrtCcfCukYoHtJZx0y3DlVDzyR4YMJERElVD0HtwIhAJ9rwkw5mppkL/aeHH94ra4tvg9Np0q0+GfnlHmvsnEs"}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.1_1633014253007_0.6846867060169195"},"_hasShrinkwrap":false},"0.1.2":{"name":"@cardano-sdk/cip2","version":"0.1.2","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-ogmios/schema":"4.0.0","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.1.2","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.2","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-bISe+ieOcGFLglncXbSohTXDu79GcPtnMWpKoszmy+uWObiVxgA5v2HzaFweOpOcR2YVu9gy3WCHduM+zu3zdA==","shasum":"a6657747995c046cdd027bccd1adf88f9c44a3a2","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.2.tgz","fileCount":63,"unpackedSize":214430,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwxuhog3glnnOVdgP52cfb44X2C6zi29OjaizLsLYMxwIgYKDE5twmN1L8WGPR3tQUDRMMF6BAnH1L+/ftRE369vM="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.2_1633016340244_0.7929162890604673"},"_hasShrinkwrap":false},"0.1.3":{"name":"@cardano-sdk/cip2","version":"0.1.3","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-ogmios/schema":"4.1.0","@cardano-sdk/util-dev":"0.1.3","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.1.3","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.3","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-odBIYaXvfeweIlCbhOEB9FDCc7GYTgJcE3qE18QttYmuztlRNDS60/UDEEAQo2OeY6itiXK3LtnjFOsHCb+RQA==","shasum":"bf6e7218df95585ef3938737c40f61e4b7ca5bdb","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.3.tgz","fileCount":54,"unpackedSize":205127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuoBJKSSOxiuV1K0XhBZ+SKzQi7Se9KuOY9yiIOBgrlgIgNpwcNbBE0vvVkMLsYALrijo6GXs7u3EevesIGPD4vD0="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.3_1633434207911_0.5964837074993738"},"_hasShrinkwrap":false},"0.1.4":{"name":"@cardano-sdk/cip2","version":"0.1.4","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-ogmios/schema":"4.1.0","@cardano-sdk/util-dev":"0.1.3","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.1.4","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.4","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-PH607Uj+GqZ7E3H6Rovc9gKv4G0ZAoIf3XJhAc9lyt4vG+pWPi7aZI2huxqoYqzh8Uew/+NcubwdbF7rxthKvQ==","shasum":"212c46f69054ed124e2dd7d0f0f336cb792433ce","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.4.tgz","fileCount":21,"unpackedSize":61087,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3y0NWeVdWMhq1qvFRTOrlrcUGHqSvcm7kv/voa0cXcQIgW+1iLvk010ghsi1tPpv5cmlWveUjNnFBaBvSaaw7vGk="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.4_1634221272286_0.7030618527697394"},"_hasShrinkwrap":false},"0.1.5":{"name":"@cardano-sdk/cip2","version":"0.1.5","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"0.1.5","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.1.5","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.5","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-nsF7PGg1x5El25Pq800hm6JJRxj5swmQQ+Gb9sSGtMY/yIReLbflfs9FJmuhEjr/emY9XPewiBeJ3+2t1cFR/g==","shasum":"2b0e9243d6bc47c26521d5cc055210c07f39716b","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.5.tgz","fileCount":36,"unpackedSize":69047,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzVKxrq2NKKh3bcPELddDv2eSV1tFELrDgspPp1TTu4AiEAz3HY0Kb+Z5lJsKenza2raPUGgAXdj8kbXAtoWe3vXG8="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.5_1635339838640_0.9267650708571717"},"_hasShrinkwrap":false},"0.1.6":{"name":"@cardano-sdk/cip2","version":"0.1.6","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","lint:fix":"eslint --fix --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":" 0.1.6","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":" 0.1.6","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.6","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-K2tO49iuwHxUoUBuV+2++q6ZL6kyma9VXNtF2Vz7TAcFWy16cj4diAVeZdDOZwul5E2XLpsjebWaOz890TxoXg==","shasum":"f0d386c15e6b713b093149594920f22c210a3233","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.6.tgz","fileCount":36,"unpackedSize":69127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCikC9YwU/Vc7gdRXA0uvdrI37Uc++mhJcIzD6E8EefIQIgVGR/Pr+6MS5JOFbpaWv9mfbXV0KSbNba8xBCTm+Ljdo="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.6_1636720904163_0.5458181263187216"},"_hasShrinkwrap":false},"0.1.7":{"name":"@cardano-sdk/cip2","version":"0.1.7","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","lint:fix":"eslint --fix --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":" 0.1.7","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":" 0.1.7","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.7","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-J9PAIUWMG47fK1xwzo2Ojr+mgzHZ51v3PQu2XNCchJlhcXsezXbQ/APfS3Il1PpjRDiHBXE+lFUNFMnUWwYSEA==","shasum":"0524b01086c6751f3ba4a0941ef693547f7c71ca","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.7.tgz","fileCount":36,"unpackedSize":69680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhk8zDCRA9TVsSAnZWagAA4QQP/1WayeWAKzthEZj58Td6\nknynw3D/xaBrcTmnxAWTvh5NvYBHIe3icMJccimSIniTu04+zWbFROG86O7w\n+BrcVD/szMWd3QmCsBOyj2v9S5Am8Vdj8JfkPIkgdl0vYho/424eZTRDRiEP\ngep4pZY0ARnbCv0yd5tqsYKvg6w0LMXyiDVMN3jHFo9W/qGKYjLQVTC6tUdU\nwCVeT93hg5Y5clcBjnn6V/kolUPbkEtYZyZx8J3bv+j56khmmO801YLFH0y9\nA82YYLDxhbxYYE3em/rYZMRPimXFjD2vryokhsmQKXkROBzul+LxshfMGzt+\nUONZr+N5PvZGB591eLXutyfA0gP4GiaOuDIFw0lRKivo5ErVcReMVm4vkgFl\nIcfKCasKSRHS6xcJjiHgoS/ooQ/JG/RHXCixHRJc8u/B/dl4BNUyxZBLMn2x\nFdpX1Iatz0LT81Er4N+NSbgD35eqUcyw7mg8BrOPOioSqp6xMPjn18QFzUrk\nZxlM8+3qU9l8P5cehOGLey3x59pMjxixoy0c+glSO3B8yhVCTGjE1QGW593X\nVyBnS2eLiG/7PbVMaNH7MCbYBS2GxpCxHdA9jDBf5Pd9KXZOhfgGflu2XWUF\n/+yYWkFI1ve+ZhzOQYHr9gDLf/2VZEOQLa4V1lBO8ILbQeR5NqXafFk3RcaI\nyBlg\r\n=Z4zU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH/UCBi8Ldk6TGCxBXCRs0848sEiS8ZxKWYWuXc1p2Y0AiB3paFktKL0XegR8gGVMqGmG0Tyi9ug4qItoHqhB7hnCA=="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.7_1637076163113_0.7778933160739208"},"_hasShrinkwrap":false},"0.1.8":{"name":"@cardano-sdk/cip2","version":"0.1.8","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","lint:fix":"eslint --fix --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":" 0.1.8","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":" 0.1.8","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.1.8","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mlkVDTimUsAKMZL+/G54N4XNJd1wjRURrxZimuxxDA6+VDngJR9Ffq99lLI9T+RKfGvbl90rdpctmVv6DMj7pA==","shasum":"4d86f69bc957e532cdc6a6224c28dc125a82c689","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.1.8.tgz","fileCount":36,"unpackedSize":69747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm7uoCRA9TVsSAnZWagAAb/QP/3bvemAT1qm9XtIjNtId\nBkx353oJUSohHWFwn+L6qXq1I4wUi1tnwliSTA9hDLErcv2Lv8z51IPk5g9k\nHuo82K4a2Gys9/F/GCz1BB9MPxwlaa4KYxLUKnYGE8l4ixZVlJHsffesnxck\nskaeutzlZgQtFpOTWQTs3RnuxTy7yIhU/4L/lJRRcffHnwXqdTa3aZmLShGt\nZwtwkI39lEuPRVQW7mVejfM8Ud2pXk+n8r0CWy26um5zowy4P4kKk8DAIFBV\ny/d6BahOqe3YOwO5iVw/lEZ403U6eNBS31Xa7zcrHMbcjfiL5dtHfwjxa0dh\nZI19GTiWlNxHXJ2BXTBq4ZgrjJy35QMDR+++lYKzR/iQyCehpk3ACTvTWs+Y\n6NuNL4yxwjUYPwrim8uMP2JCtH70leTwc2PlmR6JOb3xtPATE301E8gTJfkG\ngm+4HDAaBnMz3Gx8E+S8GeBtMq+SSrrgGqSI6rqMq1iMviXSmmsDy1I8vpDi\n5bftZ+3Ia3o3hiwSoXAcq0rk8/ImqL/F2Ci6HJtTUpWeDUka5uLp7BwwSU8g\nFEME8Z+zAu15mqfX66KOH/GKlmRXx7CyFIv5tNDpBakgtb9UF/4rg1sPKflr\nOrt6fPIUsHxAeQVEqBOnOb6VAd8iFfFAyU2KRvNmGlw2DYyXyghJetE+gGE9\nx9WG\r\n=3V5q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5974WKcBc8UY2jDBcqF1umxq18QrcImi8yYvJmku+WAiBvnlmSJTmJ2v/cdXbm0Wb9ck4JhrPxhmRUg+ScpQBSOg=="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.1.8_1637596072314_0.4194326010777054"},"_hasShrinkwrap":false},"0.2.0":{"name":"@cardano-sdk/cip2","version":"0.2.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/index.js","repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build":"tsc --build ./src","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup":"shx rm -rf dist node_modules","lint":"eslint --ignore-path ../../.eslintignore \"**/*.ts\"","lint:fix":"eslint --fix --ignore-path ../../.eslintignore \"**/*.ts\"","test":"jest -c ./jest.config.js","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":" 0.2.0","@types/lodash-es":"^4.17.5","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":" 0.2.0","lodash-es":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.2.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-c0czNd0DPJmAOjigGDEl/5XAqT0+Qp67jR738LQ0B84Llw2lK1AYmfxDYqbJK/+OXKi1FlQZzfkiF+AOWzApDg==","shasum":"e5e3977a1b0fa335ab3a084b3d2fdfdd645626db","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.2.0.tgz","fileCount":36,"unpackedSize":68637,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhshpYCRA9TVsSAnZWagAAbV0P/1tXrS98rICIDgf/1Dgd\nA+YcusHS3BC4qKJeR82/rdszkS9ZunCcarXynXgvk2bUvlavmSuyON3pFmsT\nJcPbUzqN8uQ5fIIg6EGnO3Kbtk2IoARyrGQ4ak6d9wjbryb4ZG232n6m4JU+\nWBBDWlaZ2++PEomp21A9JH5fUGa96d4aJFW7K+rbpQIHfP2RIMJtF6CuJrh9\nVFAR6rqN60h7Y8OSXWhmTl13OU68TUD1LVwINXAYPo+rwJA+qQCOuTiVvoEM\nTS+5uonjjHhbo4AFpcYOCIKJeiewR3dqjgYHc6kG2E15HuAkH0M5DwIdrtIn\nHtt/RdWrKBCg819eKWkl6UrbSWTAy1tBqHA2L22KzNYe33x9DlW7ZjoUDnvk\nxtQt3gb0i/qlhpmZVyyzG2gqoE2aP6nC3+X2CiAKd80bXU5R49+76w8HHxSz\nENhvkp3FEstJ3eqc/wT9EZ5VTCf9q3vKNIBTIYI9iR2M+OJg1jyBEj70BSNm\nEnm/bGeaVfh9mjcuEMmNSm8JoQuPV7IW83Yp44Mq0X4bqOAbbTz7bcUzyW4X\nQGPT/I+gDeKeS6Nt3d/r32HJQUtVyznCZSN2AGqy7+6bCBSKrC3UkL3Nq8GH\nTKhuJZcJELTH9ST9Md5VGYM+HqkYGxDC1KXRwRUUOSnRmMEZZbh+dMppuBhC\nZmn0\r\n=q1z7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8iGcwW/vIGoniv+WYssLbQ7S7xiH1eALzJwieDjq3YAiAdXk8WfoHYvFFZblTJhym/1ISWw8gVzxSH5NW1UJgX3g=="}]},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.2.0_1639062104458_0.7232113076184499"},"_hasShrinkwrap":false},"0.3.0":{"name":"@cardano-sdk/cip2","version":"0.3.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"author":{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io"},"license":"MPL-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"0.3.0","@types/lodash":"^4.14.182","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.3.0","@cardano-sdk/util":"0.3.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.3.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-sEJzzMXALhEPE6eUZ+cnk5UDNW6ykBPYyukj1TrXqcv8dwAFedZdNG4Olh/RZIa0HNBwSMQDQcuFvbO5IYf3vg==","shasum":"d5a50c70da59a7229008363e41e2504b5d3c5d91","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.3.0.tgz","fileCount":72,"unpackedSize":334649,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEU5TPvp49UWVr4o+RgtmpM22GPW3y4qAVlG/LLB5gngAiEAnz5YjtyWfIQZn2iu+/2uF3GYzG2wNGPhWh0+9qlum0Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitU9lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYYg/+JqAuCeRBVNfzWms5zJq/xll7DFrnTZfBoc+3OfVijCNcwDq1\r\nnaHZH87WpPHRw5C4MziWHKTRom/M2qf1+AaGt02Y5C0071Ba+4o9EmrQocWF\r\nj8kV+yD+dDCZiQ+2IsMV39dSZpQ1nOm7cbaaOkPknMDPhF3KsWYHca7j9x6D\r\np46GKk3VjOcppju1sEwQJCAatpyZ281CHi3urKoKfPGsEGS9nJVGeWuEiFvZ\r\nqYfZvJs8Y/gk3oakL5UL6V1tU7KJkqU9WFmtHBCWCrHR15SV0b1MI2utMGAU\r\ncNLJ1irPlAadVLnO3HHf1M5ohHE5FsHSolT8iFi+2V5ikUftmOIVY7Ul4CTC\r\n+m0C5nA0qQ5m4zwnHLVfYCxaKpBLouDFkzPIyHHN+bph1UUgpK32voD2lZGV\r\n6iwHkp6ohsVJYA+a+aCr3maImNojaKItjubcXr6SHNoF2DqZnGi0C1djqR22\r\nWVmrXFkX2XWyR3aLvuKfzIEK7mVC0YUPM0j0ec1dFwJ/JbZjVIhqPJCHFJlA\r\njlMaVzTHyiUZdY6246b+xkUETy0Ls/4kOPmYiTDma6A4rFFx/wenuNS3wA1S\r\niP7Nz53auiBg2A5PBPPf7OWvEvEgciDk92lk2fXRxhk7fTQotE0YhasyoI+G\r\nqhn1LaI+tU9SI1JRZxbVkqu4KSM/EHfsTZI=\r\n=MpxQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.3.0_1656049509188_0.5913445711395473"},"_hasShrinkwrap":false},"0.4.0":{"name":"@cardano-sdk/cip2","version":"0.4.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"https://github.com/input-output-hk/cardano-js-sdk/packages/cip2"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"0.4.0","@types/lodash":"^4.14.182","fast-check":"^2.17.0","lodash":"^4.17.21","shx":"^0.3.3"},"dependencies":{"@cardano-sdk/core":"0.4.0","@cardano-sdk/util":"0.4.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"_id":"@cardano-sdk/cip2@0.4.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-hfo8SnzhLBHB/bBcBseJ3zBJHZu2JD9IWNJj0DqQ04yVO0GfJ32OXkPlNLmEdLwr6ltCmKrMZ1F+wTjTNnZozw==","shasum":"82aa0e04c11f78977b7565f85a5e392b0deb0bfc","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.4.0.tgz","fileCount":72,"unpackedSize":359149,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8GEfq+bEg0MxwA27/OMWFzxBU9f4rVFBlOeSD/DlHAAiA0SnHhPKHdhd6LgQ1HfNLR0PMjFEJU6xfqGl02ItMf7Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0lGCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrokQ/+Mdh06noxqgTGIbgKAJxEyxTuU1gvkvWljklUwWoLbRXebnQE\r\nb7LxgFASFKHVwHPiRzVKstqlj1VGGz9TkGiq1JtAet7cZDxvqJWsTNFAoDnF\r\nCZFaBEl8rx4fjxZL0Tzf2qGSvDfPTSzPMsgtuoyxJfucwJveiwSMTBggNAFI\r\n/qUnyU5A0XZraUUpLZVZS8tqG6nDpRtSZ/P0P/iYRKyjHG5kOTrHH/8pwGrU\r\nXfPwpoXiwTCxYZF8ve9/quthXRfp62Q1PLdXfSJpTONGUkR8BI3qdXL9RhSl\r\n2c3i2iOH8fMRK279XoD0RJGfFxcY4dEnlsZFf/UU0Y8FDwaQu7PUiqdoB+ud\r\nbJeykLbKjNZvaqLErwX38rugPE99YauVLauON/nhQ6HfORnuW7GG+mo/gtF2\r\nYvdmm8eI4QIicfXDrcpp2VLagTuR/ir+nZq24T6e+Ny/FMIFDBODLCQS471g\r\nkZhG/I5YVO3skuRln6qcLDyTVG69aPbQNlKGqIx6lYtpKe+1pmRYLI97Tls2\r\nV73gxEZXS9Emjz620ZCYx2uQ9rLyUero4Jy2carA80zips0toc55oGequWax\r\nbZUjAmRx9v+qVq+dbBIF2eQADIzAZPFOxPUn6CJ6ara7eykjh531uzIgLw/z\r\ndb1mAkobETLddJs9pMT3HNz4wPYYFHaBLts=\r\n=e3nI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.4.0_1657950594031_0.9997510986309917"},"_hasShrinkwrap":false},"0.5.0-nightly.0":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.0","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.0","@cardano-sdk/util":"^0.4.1-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"2f53295275e03bec4b62ba4f9a0f2ec079bf691f","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.0","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-SVzbNPNyd72zKp918mpBKdfTsDlPtjZ+4fPBs3eWH2C2H9mTy9/Z1dZNUyCJjKtcQPJoz4zregvADMgw1LwhhQ==","shasum":"58a835b7e68f627bc1309a3ce30c2f90e62753ea","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.0.tgz","fileCount":72,"unpackedSize":374326,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjoDzZOQofvfRQrUUbl8Z20GaY55RcElEXuUmjMZwCKQIgBg66Zph7XeCE17NgScmmSl11zdVMEFMKYcp8Il7TjlE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4T9ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBbw//QKlCL8zTBaPlA/gowjVkjETQizPj1N0XYsbeL9LwIn1XFfbx\r\nxxFVTOeObVSJx6aavSV1u7wjZmkV9WAt91s+9b1dS8X5bXy/4VkkPFGK+02K\r\n9xChtiMduQJFWdf5YpzJ96Z5vyu76EF4NHWHGUJVbOc8qeZeUDeaY+rgFpEW\r\nZ/aLlCMGw5A9hzHn6X0Byd3RRsXChXB5xOElsnflDBadUGKe4I+6l3kKJ282\r\nRcjCSZtoBzby1QswtWk3LYLleGtddxBg6wyDsPsC6sLXGkv4Tom8sHPt0GKu\r\nKcDFzTrZRHux/baGc7ecGc/zLg9lDUUmj5Oh0pPbfXwp+97YpKdg0aNYKnXS\r\nKVnrqBTR4d0dG+oblEcIMNZvxTMEAoz40EOr7hd4jP4UsJwfZknTD4d7peX0\r\nLmZUBf5dNySe0WYTj6GxZ7Nb4AdIgAZvYVtwgbd4QT1a2v4t6TcJC/xwmb2a\r\njw9eq8tMy2/NjtJC5F5/M1GBJOf8WuQe7dv1HT3+lCi1oTHPhx7nLipC+duv\r\n9thDRpZtv0KgEOkF+iMu2ed6ffdPQL91Dam70tI7l8mslfM7qXOTLadBXP3g\r\n+KzF3otyT7Kx871KVrshsBTIembDJPLVPV4R7ryGO7bYxy5Xbnu6zXJPsHFA\r\ngXx0OXt4XU79YcxxPRMZD19n8hc8Vfs6FSM=\r\n=QI0c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.0_1658928985342_0.5643033355346758"},"_hasShrinkwrap":false},"0.5.0-nightly.1":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.1","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.1","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.1","@cardano-sdk/util":"^0.4.1-nightly.1","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"8125a7c49cc627eda060fd45a7915bc7397e1b40","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.1","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-ECPP+TIB3udsWGH53UZYQwiUIs1Xl0D5HWix+1BFF1ZKa8JxVRw4lL5Yil/jeRb6BydPlSjM87lacCaw02s1/A==","shasum":"59e169b74cfe910e82c29cedad09949e1c293cb3","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.1.tgz","fileCount":72,"unpackedSize":374626,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEhxHWWGenYJFRp30688QC5hTo2oD0XpFR56q4c+PeOgIgGJzwq/W3M+LaIsVXuHiWyRmDRTmVER1IfYX6TEEbsWg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6GvzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrb8w/+PCuQ9+LcnIgb5sVKRtpOUkm2BgdWONGY/9xyE+yNZOJ9zVgQ\r\npsQvtDpJvaXgE1hmNS6WvkGblWBAVKnCNfni0ppVdKfhJPgUxmho+x+bPnBD\r\nARgqXY1ot180Q+z9F/iafLV8iv4gX0IfWpB2PpP4z++IhrBM/tMYrunE2Puu\r\nLVIoYhYp8CdA3SvGKpW1cfiyJyYB84JpjNyF6542k8tHgNUOsmQTGQTzUZ1Y\r\nYRjMNQe5n1nRnhGjUO1toZNm8mJELvdCdaEDIIYIG/hLMCYDPPmirDEXgdax\r\nir3lMXA5mG4OG9kHTGZ9KSTPaN8STYHdGVpvmpvIeZ0Wt4TTkraPgdpUb/yx\r\n4aXRktQjn2jinYYkXq0+wuelSv67sENrWnn8vmqB6AGutCg35pVldTX9z5VH\r\n66Sqht2TvyNTTNYPv0xhfGF4Nvp5EOBBYQwdrG0UbDILlI1hmY/CAux9okDB\r\nh8icD/2s84F9+yAE4Fvwu0TYDNXMYK4Q7rwHN+BXf/TO/LVOJUH1XmeR2m11\r\nf8v2PirJXyjkfFRv6xDy0Ek6KqSWkooKJ8CxJe5Ea/w+vZSXYKgG/Yf//Djf\r\nEJnewbVJMQICOpQ5XVu9vG7e89PP9/lpa9C50zVV+bUchE+gx1gOOxhZuBRd\r\nDhqNqqWH2AcbGkCAO3cBzsyvDMWQ0if3oY0=\r\n=+AV5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.1_1659399155300_0.45328766004889975"},"_hasShrinkwrap":false},"0.5.0-nightly.2":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.2","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.2","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.2","@cardano-sdk/util":"^0.5.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"5d30139e57b567d6a537777c8ecebcffc78fce9d","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.2","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-BmR65kpCv8buvW5SYthVDimMRL8jOpWwCQVa6rMK36ogfD/Tyuz7IitOqPbrbloMIIkTvcHEywE1QPxwtqI/AA==","shasum":"c84e9fb60243a2b3cf3430b6a4488b08482a2e57","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.2.tgz","fileCount":72,"unpackedSize":375262,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB6I4v2yLCAHVbL3iPKcslhLOrLEb79jkG1BrOgJzEg0AiAbajEVtXtGuNZqyX3WaNdNqCwD259cZXI5D74C4E+IEw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7bHXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQPw//T5R32QsEmqbtLPtIabO5hRM/m4y1WHPC6+SwzM1jFyqcEsyR\r\nF6LsbPeuIMyKi2oFJg14AYH2jYOPpdAVSoh/HuVkFq5bCXZx400zMSYc7CMv\r\nF0BMyS/9V0hAj45gKbLba8dfGHF3U/QbxePx6OCabhX+jNcJrhL692yj//UU\r\nXGqd1Z+a7/Jf8WbIHcXClY+B3gVhXH2dFw9Zt+ZKMb/6KbH4U7hN/6HdBY1w\r\npJnArqvP+d4Mvjihfp5nzROo9q+FsC7G/FcAJrQVZ8+GkizHvDFj7PhoPzvj\r\nYMqIuXyuXpPeC/EPPYlmzUUZ5qxPwPO9DRXpZ0KMbLMQSFMMpvLiRQZ35jCh\r\nKB6h932byYKy/s5C5vLMMByIufKKVvwvj7+vHWXqIyAWYIX21k6vKKm7awDx\r\nGDYGPl4KiBn9KRBaHiq5Mb9ZYykZ0+F9BE//O1tsUug68Jj38zM9XR2UinSe\r\nkGuhqa2SswlHwG3G8KUUSozsVwwWZ710SEic+U38i6X2fkhNbGgg5ganHheh\r\noAN4IPFKnqSngBTtL46lWbrqOhEf5OWatc1YqkNAFlp6xB6wFyWYg0ZBFh5p\r\n5erK0RKr0m92iElYvrI3/YVeYdwefK21PoS0vWfckO9gVi3DOCXhe66zLAjM\r\nU3/bu1Jx3BGUU79R9MRLrqieHuZJvPcDu2g=\r\n=HpFR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.2_1659744726901_0.7846721277521598"},"_hasShrinkwrap":false},"0.5.0-nightly.3":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.3","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.3","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.3","@cardano-sdk/util":"^0.5.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"60e4bfaf6a113a2b63e3bebbfd515fa60a127567","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.3","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-b6OzN8GDARlMM2fz9DbV2CoRNKSdfcoyi27XrJhgXweMH7lqlQ6AZ+yx/BsUPWGYjrFF/+1YLCKPPtcrOqDO3Q==","shasum":"abc36b7a812ffc64cf290a481d92c102c3e39d8e","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.3.tgz","fileCount":72,"unpackedSize":375262,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv8bfTK4InW6vMXvxFFyc59CwRBhOM7inJwp7RqKNUIwIgVp16aeaGE9WEGePDWtF55/b9eW8P/dGkQf/4uuQXGbE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8SLhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrdig/9F+2LplZ6MVqo3dmPHEi+8hmX/0djCaj6TcgcQ1b7rT21PFOu\r\nNsXwGPr4f5vnU29qezXnAOA+VaMhFCZ7VNaP4a5e78PEe6OMX2wOQkt2pLtg\r\nhm/AB3KZ0Rs1K2/jRpuiZuVUH36MgJXWdPm+8TOecNE7FqzWjwE7ujdqXvIa\r\nHLUDsfqfcwGBm3tO8bckAa98R6w4BosJzHDtxCnUGE0R2PSWCGZx9h2H6gQQ\r\nUaCMmKNzaTMq12Ypy04QUtm+LVGBeLQKHVzxm1NFis+5+gcIc+rEJzHNYXA3\r\nMjytElUJ29+Ze/HVBCFQJPZ5lu5hvfKKxguGpjA/JZ+4bEQp2IUuIEZ5vjw4\r\nQUGbYcCPBQQj3/LmhpCEokBTbjR9X6jzjrVnwnM2GGgxJFza7VeyZUtSqZNs\r\nfrlI8xofkRmhvTUxOS567O0JZb4K2oGspbXqX7NSp0n5pShk0grfkpmuj/Fr\r\nkASScDba1I+g6Lm+i65GXtHHewKIlyT2jpeOt3fVOPbG1e+j05wVvCMGEkgz\r\nVoOPOItuV1praF/xgc/5lHnqLU2+06XH58tkzej/ZyeZM2k8qYP2I9eco50l\r\n2EZTKyXh2/pdTS5z+Kf24wWL6HiIObwlbIaTRI5zlZsA+jWcDZnqc+k9mg6D\r\nRZnwoBgdN9VLj9TBWFtNDnVuOTBnRf8rQIY=\r\n=pCSI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.3_1659970273113_0.532823940780661"},"_hasShrinkwrap":false},"0.5.0-nightly.4":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.4","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.4","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.4","@cardano-sdk/util":"^0.5.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"462941dc783c2dfecba92d03027eaeb8ce051712","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.4","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-AvvaJmJCY++ybxJNOOxsQARxKThaybTcmhbk45+LERX1rsk0U6RSvhXGhRNOPN7NT5eCWy2dDBvOEyJezMlIwg==","shasum":"c16a6fdeb1e524b63ab72ff9932c49c4719f5d84","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.4.tgz","fileCount":72,"unpackedSize":375270,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+NNV4ogFpfSHvskSwqSr6k0QmKAqzKuzWnQWcimucmAiBJ9cX6rT485JFYoG9hBhuy+J4sCdc6qAAcVXDbz0uYlg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8/IcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDgw//aG/t8JUpSiJ+a9HD81PBzn49N4M91VflB6+7ne09BQ5aiST7\r\ntM1qeKFQ2QAW8kt3j9N+MYyiUb0vkA7dLmPYdq4hXjjUs8RZ4ks4jrMGFIUj\r\nOeJYkf4MSYMABASJCQ9FxlNIHgar4eFHoOTmFiUneYIDzVVs6N4PsNzE3Mpf\r\nZvSoBlknT79amINuWrL0U5W8hO5wFw1B5aKETLOfAhpZmNmeY/cO3KUHhcpr\r\nEV6s6/vE/yIWXvHKqZeujbNxRI6GEVV3NAv5cGSo8+gJHmHmHww7Ohyv8Thv\r\nmkK3048q7SnG3o4p18aU7N+WTWbpsXp6cO50ivh5bqx5rt2R00w+Gu1xCGO+\r\nWFfDBKhYlkF7diyf1PtTWnSjok1+93WJ4UX0seDbQLENCcgRLgnLmt7kSCWz\r\nh8ojg7qdHnJyyiMIpFVWpiTqQufJzafqSqzqjfUCJXjsx0x8fUMm1cVeIBjB\r\n13lI97h1dLQ8Bs1SeuhrodSMoB7jWwNqH3J010Bpy2z3KUkJsAl4WKL+I70E\r\nj3oHAOZydWYUf/Bw97/0X+AJQ8g8W7fsG4jm2iUIjfzqTntlsO4dh1Bhe7Tu\r\ncTJrv9A0r0Dp3E95md5e9n7VrBaFsDLJ2hjedAyPFPLlpkawWYBrmWUhSpB2\r\nE/gTKLHTRxDEsImCDyX4jrpCjjyzUnG38Ug=\r\n=t4+i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.4_1660154396544_0.7587817066223741"},"_hasShrinkwrap":false},"0.5.0-nightly.5":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.5","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.5","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.5","@cardano-sdk/util":"^0.5.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"05070495c93ba8d667e9bf076c8c25f58d29ebca","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.5","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-XZ8G+CFpK1LLXWmDcHHvs4InbtYCa4XPWXoADoX/7fqygGUxkXoNuNsXZ35gn9XgR3wUemkqn6iN1AgLOuOdmg==","shasum":"353cc9aa0a7b3b05cc2790bd2b648780cdb7c044","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.5.tgz","fileCount":72,"unpackedSize":375320,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD99qwsC/NiOvFNDPrLa56flZ80RiNRYTiAJWIgTvo2dgIhAIbqsWnOfPgKG77U0LUcHhgOxvPbtqxTmjZEUwNXynyu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA46mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPzA//c3KCsMiS74rx7+dprxpHo58fUmZW/sc2NGLFiuk5v/TPSXKo\r\nEBsoC564NT3iowxkDvpCdTjnumWbNYYGGBFP5vD1vzFpLOKnOl9eWWLGZzKS\r\nPUGo86ylgP66aBjS0MJawp4M/ydn0ud19yQ76eEbhZaBjPFLldlLSQn8VJCS\r\nBKbpO+L6J43LLSQLge/TxbgwSw42iFlVvTPPuhrI+EN31HCNYOgQDdoRxod/\r\na/LfdQw9xY9/ov6t/OdesASktqUSMSBXm3InLUMsU91nPOLwkfZnTGb/+aEP\r\nIJJYRHL7tfn6MTsvfox+0lrLhtbhKhneHidgkKxGrAjQKefRNhXemKg+SppN\r\nlEUn91Jt6J3bS/nJRyP8PsQt+jRxGv+tGnVo5KQEmeglhDEvmpw7AXRys29D\r\niw4/26ZIRC3kD/yheh7GEQ7V+jTdpqzsq8KwEf23MWMJCAqB0S1cn8sbzNfs\r\nsnOQ14kOPg5ay/f84Q08tjgzzddWPK913ez6gpxo0HgxxZ7NAn4episEOKtx\r\nUVkLS8o1WLcDTsd2YXj6lqwlDCPaT1N/ybTeFcFUeWnoOSJTzAcv/i4igAXk\r\nVFc6J4FLEHXo07wkj9rfe/hYqkqxFQhcDcU0WAWR2sG7MZJ7pL3Xdt7o4stN\r\nx+u/zk9H7JN5kFEaKzBIPGpKVWssdxJLXlE=\r\n=WL7S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.5_1661177510011_0.5961522498317364"},"_hasShrinkwrap":false},"0.5.0-nightly.6":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.6","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.6","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.6","@cardano-sdk/util":"^0.5.0-nightly.1","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"0ecdc45457b5d956c3d60eadc5bd16ce220db6eb","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.6","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-DN8bnsKXfULDUp+GP7VUTXbukCM3HqPMjnGqbT8ET0lnkVEnYsmvjUFR2mszDK+ECQxNFKNeTBPxEnCZ4sXTOQ==","shasum":"ce8f8fd94d11dc679751e53bb3b04d3a7b3a5587","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.6.tgz","fileCount":72,"unpackedSize":375366,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9Ql+UI2EzJ95qQzSJQ7wRfuUNd1zpMUE5zTZzYoIUeAiAUrUOvUFb31DdyDG7eJTuCaoGUeh3ZsyaBjD+tSj4CKA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBBudACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1vw//dJxB5iznrEvYAbcnm1qzOyMZc3OfUEjTTl7MWImvZWHQedC0\r\n4Az3x9HQyax8LFHVwNfwdiX2RVj/RNzC3UXLE3OYL8+Axw05RXrrQW+sAgAb\r\nbY3rzLYa95smQ9fWxPYcT9Cb99iaeUXTbFKmKOQzQcU3exH61zoHHScZvxfu\r\nAnQHIYnYw1mACYXadvPzo/SiJi97VD1tbweeRH6AZpmrTD5+IyzjBxCcoWkE\r\n4jktQN0SAyUFVxhonZRtoWH2DT3mUZJ8v1bHB1e1yQTIfw5o2QtHlH3+uDF1\r\n+BVZCGnYv9CYcMHWuA2iX9/19IuU54c8puYQQTt9K/BoHYM8aZrdSlA6jqx7\r\nlOUZnsY3tdi1kfUvoIuQ7OPC2RXSzpC38l/uruf4uT6YrDe3mAwzH/1oew3u\r\nhlil7F9Pc6FQ5j7AF1UIsX5+Fc/ncg8jD+aJ8FdmWgOH8w7sioAiqQwu6kdL\r\nGwiR6+wrx33k/SZWZWXV6PS1UkxphrO2LQkJJJQkEuGW7XiQKydjlOIGpOzF\r\nrKxeU0nyACub2xiwwFL1JPyOXL43F9TsNYq8S2rUNxdWmPRx2y7BWh4WTQh7\r\nzq/PNF44xSEDq1MghgB+bgvPGNw+5msV9LMxzaiDlxUb1yU5bto5yWMUQKPn\r\ngtt6rWmizEYmYYK7mofGIe+bPhnvHI4I+IM=\r\n=ytEu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.6_1661213597645_0.19451672994539781"},"_hasShrinkwrap":false},"0.5.0-nightly.7":{"name":"@cardano-sdk/cip2","version":"0.5.0-nightly.7","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1-nightly.7","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0-nightly.7","@cardano-sdk/util":"^0.5.0-nightly.1","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"8f6707522c1f49121301322e6a64935af9cf8d5a","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0-nightly.7","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-8akQQ2Kf42Uw8H99NTUjgOh6BduvUhzw1NYS8B83tSYyD24apoqI9SRvqjF8dZWNhzfdnckRy6vqGo+K4ySwHQ==","shasum":"2e8b8d8e9547afcfd6274baba922cbbe2ea07553","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0-nightly.7.tgz","fileCount":72,"unpackedSize":385389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZpsH9R+WkVL9HHhGuJ29k6xZS/Wj+FVNPcS5A9z6E4AiEAsEmuRc47UTfNPXpfJ4WNMXeSW8WyEseCVjmUZxgDeuM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB1MyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgkQ/9HVJXm447w4Tvq3MS9OrFEbcGZaCnp7IKKWoAosv+iKfp3RE6\r\nJvjiiS8BS8JPkedjH273D01yQm8de7EYSHWamZWUhISmtT7Rox0U/uTNCua/\r\njqOJ1OM8k/h6YJ8Vk0MZJpUfNRF0rgMVMA5rvr89MCE5ECruUJaOAYzlqjBN\r\n1ORoGuaa9/9BuUbvrtadLXAlaz/z6JLD21SRzK+myftQyjhEOEtO+86BGfoc\r\nuItW7b06m3XhK37+9vmmoN4vu1d28zCYpEvQbXJuAkYk15EejsKvzZf5Dw8X\r\ndoCYE1K/rlOwRAKIl4USWufRMV04XezYHYAasUgoQHSuDJV0EcxdUuCuVcBM\r\nwuwXtgdBFi690+dxUeq9wo5IxShH8V/ND1Fmll2hxejUPYenQLALXjnCHx6u\r\nh+f5DLPCQ6VBEIOzRfUGvUww1aDIRiPz5HMv3EZhqrtoDzSXDUh+ki0/p9Id\r\n0hhI/KeifUyKwRLQbnRTnbq9xyeeHNQP//oiiF7K80Ol07xdCo4uHBHTNc7+\r\nVO/iZx/gEzgnc75gj7rbzeJrNa0r3jed2WOyfaA+uTayQrYhtVukW4un3POr\r\nE7dXcAXu9vCHeMzO3Tqr44ADoZSEJrUr2Ggn5dmLgxu5o84Le1Vy+sWI/5ZE\r\n+q1mIPeeDXyv4+XRgvpNywAiCaA06pS4pSc=\r\n=gYvo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0-nightly.7_1661424434728_0.0347227374078698"},"_hasShrinkwrap":false},"0.5.0":{"name":"@cardano-sdk/cip2","version":"0.5.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.1","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.0","@cardano-sdk/util":"^0.5.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"d8254386f12dd3de6b8934b2f8a708c27ad7009d","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.0","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-+WPiOKl77AyBKOckwCuZRCVsyQbUevRwZUR+jXPlqAoF4F0y+cs7LjFRmdl81V4doZX+F3d7Jglt3rL8zFClgg==","shasum":"74886ecb5107dafcd28ebe763503281350557a72","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.0.tgz","fileCount":72,"unpackedSize":385349,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBaZzzZml9O6/87rxxar1faq88gV47e5HDJMUHNGl6TgIgLcm5BBn7d6ym2VrBuH9KnbMEenwkgGZhCfusiAG6v10="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDeBfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEqA//eGvjpm19LUBE49adRI/gQP0XovSufGzfb3fGAxmjNtynybZW\r\neCQNoJBznz3LIxcdf89Hc4h9pjNd7DCwtbkMvXbnunL3W1uDGTNVpYtt1cj7\r\nnhhXUfv9YQXx9NHkjt8Uytt8UOjLAKg5b5ayGW8PXWitLjdQZLJZ0LcJCXFY\r\nrVNhYDxHThc8FLEBUq7He9ijt92JUxyTx4Z6yqbV9fHc7QWaL7EwhvqGifxx\r\nH0HCXfGs8ugHWayDkFYBSge5pR0drzcI7GgXz6Vtq0VJ++aSwrJJPG0RplD+\r\nijdGNRvvn/JBZDJL+vouHe3LIfPZCsyrR3JV3HBmRorJknZLZ9y7XFcCyQDI\r\nWttasnoWsWqmHhhgpyU4KWITV2ytbyi2cXvIfzkgthHT6TTOGly7+dvaui8y\r\nEsax2jj7SJY/v3SXfj3v2l2DYzM7FaU+yIS98vVbJ+FXS2x5NXkI0ItZ8PQ+\r\nA3UnpH5K2XDDtPme+W7xtUELo9cpntDHNqLrAN1FpPcTTLESPzWxvnext4q2\r\nFDJRH9kWidI2yHzgT9Nbacur96saLGqsRVQhQYqfCZ30LNwd/BwzbIk8vc8u\r\nQ1D1o94RUt0HoV+dGoSODPi0bAT1NMKCV3PMV8MYfDts35UKoPyby2vl5TyY\r\nONzVqe24JSk5LemWkmHpv7v+lXFesO/Yie8=\r\n=kqiB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.0_1661853791724_0.5483944621651307"},"_hasShrinkwrap":false},"0.5.1-nightly.0":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.2-nightly.0","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.1-nightly.0","@cardano-sdk/util":"^0.5.1-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"8530e1747dcd81122e73bc9d4f246370750af8c6","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.0","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-ifBD342H237EX0qpxCAkzp/paYhzzL1jt+8uQmuIRn6+QJkqLOwY+aHuxahu+jmhYFSywPmo3FRO3k6R0qP1HQ==","shasum":"f2f5c97f9be1e7c7348166062e8c9ac63ad5e026","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.0.tgz","fileCount":72,"unpackedSize":385389,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDS7nOgl4GdwuXWiVJhP4IWlRh5AwBKe9cNEJlq/v/UnAiEA3KynVdyH+A9tKtt+q55U67qAwrb0Jqv8fBZy5gmTZiY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDqefACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5uQ/8DyDXI26nLBUb8MRKhItGQURCYM1506DuMhw8Q4XeyHVYIl2a\r\nYTMbQCAiz1EfTdVnqODrCLlGEnJ1fSm52yROzyCwdr7PoclHOw9AYc0ELcbg\r\nkr7UoxSpM3Y+aikFX5gG6ZKH46al0KU7pV/oodKDZWyrTLfUmpLDOtXKrZkj\r\n+tEGgVPTKdmokJISdxcaHGAnjhXaYrGB4d3oq5BDtkqxO6bTHTRtjGiaPiPk\r\nrTYlhTGHrjrB4YPYb7ZQr7+XLSNybnRU0qUiS+6HTAoU8rHs1hY31wOnsD08\r\nWOG5M4UuBj5meUEeooX2e1tfKuATMz7/gNb5KV63z/NS7Ipv7MQnbaIZuSkw\r\nI6Nqq0UI4LBKzr1tE0rO5mU1HwE/+NYUfBbmr04CR/VD7J1Mkxzbpj1pxzTw\r\nGEdtJFK+jqBCiVVwr/VolycYIMj6xRl8bx0Dj9M0PkF5ViGbl1XCaXhiXVK8\r\nISQQGenL6r7HAVQY94/Km28OWXQLCcwfVNGL0NQXxLlk2qMaQEUJjh+LhwUs\r\nq8xRkHmWYleRpGV2jhCLsZuhG2F005preSSTnyWceYyYjfwUcv+jG1pWqEYP\r\nIjylZV4aHdRga+HkKtcrouT2ksoR0x5rKZ9SbalIXVyx5fw9U+1+X86W2KHV\r\nIuSiyyoo97X/te/741J/Wqu8+T++q1Mr7MY=\r\n=pDto\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.0_1661904799556_0.6401486391411282"},"_hasShrinkwrap":false},"0.5.1-nightly.1":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.1","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.2-nightly.1","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.1-nightly.1","@cardano-sdk/util":"^0.5.1-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"cd2429c0ba5d236e3edda3fd9d78e7fbe67bf183","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.1","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-wDvPfHRoooIv00qScGcb1tBV7X7Up99XiBzcKu/Ay2zfbNZKh+fjeas+S0wsZldRWPkZw9sr/2aXu+hsMZRwgA==","shasum":"57d77fc88cd5c8a1d97604a018c93af56776f6f7","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.1.tgz","fileCount":72,"unpackedSize":385693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOw0ZFQMU8Dbel3EmSvf8rPZb1aAMXWmUeps/KbmcrkAIgT5q/FCdcz5bJjzXyOWNhCH93oC7KTu00Aklqh+tNLD0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD/keACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAHA/+N30y3EeRc1VS7mc4Ae4IYKxviiizSG/BWTFcN5NCtPQGpSBf\r\nonRT/eT3crmxWlRz8T8z5OZ0XsYs7uY0ACl2jVv4+nGS3qsUIIvTywrlMcE2\r\nPOOkf9xvrjv188RBtqpk8i5Gl1ph/wc8b4GsuN8c8MGn+9gE7VuJXlsvwaIs\r\nHDxfP6EkXNt/QVFC2kV+NOEbi1AfDqriJKMW+Qt29w8gyejpNOS0OxXhx2T7\r\nYLirYPmL9kKnOZv88t5TruCymlRaNs4IpYcNz4TXmWzycirTL6fRMfVSbML9\r\nu+EZXHNUn5KHcfomV654gxilXbo8fl/t6DcyfuGwmbeF6PT7Ht6f9BAFCPNC\r\n247Cs92BHf8w1nJ9nK9vcGEBurt7VT5zYnjTL1tPex+1mPpFzykOA4DeUI1F\r\nCVQ4Yz5qcr2QCEIOBGZGR0vFDyMnAuROJdez1pa08kF2cuIbWOrdgGcabu9i\r\nPp1qCBy5OhtACHGouQADNBXXhMcs07iBAd9nqnvkjB+mvN8M9BRs2L7zVYtU\r\nQgA8GWxmD5SctBbiAUN4hiLjiTsOXqvBrQQ/sr00vIO0/pQMOJlAeHnOLkNs\r\nzeo7X9hum/OB8hhdwTq3ys1YFmrGpS1Gr9/Kb03QJuGDDGdCEd19fa1vBXN5\r\ntIuIsI6Z7xKLSGzP4oztENHVVQo6LLFb/rk=\r\n=Wb7l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.1_1661991198151_0.14036684462741666"},"_hasShrinkwrap":false},"0.5.1-nightly.2":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.2","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.4.2-nightly.2","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.5.1-nightly.2","@cardano-sdk/util":"^0.6.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"4e0f9298a05b232c7374974ce0874e77ee7a0558","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.2","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-PMyrMk0Cy8xjOJvlOO+Wh9itXgNAzyiaM9t7cBtBj5yb7mf0ub3yMbpLWGDmtCDbsttp28GWLG8ofl6tx5yJxw==","shasum":"49b8adb320ba2d20c4b573cb769e81a55ad05f63","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.2.tgz","fileCount":72,"unpackedSize":385955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdRktwF2vhLD+JmRWsLstixAtijlWNE0kPUZFDvgqjUAIhANPh+PmBaxXP5YLRsPuc2ba0SeOLORsXGgdEQOdUygFY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEUp4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKRw/6AjjmWAHu1+HFNbdxbeVZs2EMGE/GUhH8fmtJKSEa4E0AdvA/\r\nthTeCqJnnRpN7EibtJWb/Y/AsMtxc1Yp+D0t4xEwfo0zl/fRFXaZEsR+blaW\r\n2ta6kMI77r9oRs9iOuWK72XmuTPHqpIR38r6v3KiebFyxn/QHhBAwtq7rPC1\r\ngioAvk/yFa47H6v6VCQfaA3Z9IzT9jHL+TjaR3ZtNI+eovUbMnua+mdj0qOW\r\nT7rvzcOum5pk/F+G9YGyLxIf6tqVSrGtWmrViIIy53qkI+91JPV/gWNGapgr\r\nzMJS8Td78l7vdMKh77Sk/CwEDcqNKfvIzm+CqhvOFt1eSmj1tFaSqGyJSZy9\r\nLnrn9Gi+jAD7I6euAS30Mnk0ndR+v428NlsCrjePLR8XqSrUDJbKxBMKZgkV\r\nBf/XpWPUt5BjzDHNRsf/PYo9hOQ5u4BeooWxpR3VL+1arqIo64muIFA9o8Wx\r\naDdlNdBbkFE/Z4WxbJtw6B4KDEG11GCNCC8+dROiawr/cshyYuwL5tarkHYt\r\nNKKIPhHvh+6Rrn7jQt65JtbGuVe24e3E9TOOBBolfjW3vSY2VdrOUjFTd6kx\r\nQ14cLWOu24w58F0lqEfyKWHi5yr3Gvba6bvz3aYp3Z6ZKtNcByhzWeRamYBH\r\nOFIn+vLhSWOM8ayfYemVkvYB2PD5Irlx+uw=\r\n=XW3m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.2_1662077560670_0.7524338985396974"},"_hasShrinkwrap":false},"0.5.1-nightly.3":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.3","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.0","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.0","@cardano-sdk/util":"^0.6.0-nightly.0","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"0686b239003868ee7ff019f1c480e4c13f7a63b9","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.3","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-PAXQE7BTsQJk7afzKdMX21+DmeBZu78kFwUwiEAIc76cCwSvpfTjBNWJLvxqa+NJesMw/iaUbXOz5KnK0GZeLw==","shasum":"a9544ab55b53f2e679c3a6857b355122cf3ba746","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.3.tgz","fileCount":72,"unpackedSize":385955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDzZkQcBcjQ0zJEYETcz8JX+mY0+5C7wKJO5eX983hrwIhAOGcK/rBZnyLo5cfC1Q7bVynlqyw22LLpe963d+KFcss"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFpCuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmow6A//XywTMal/PPWHwjNTe6m/WnL8gN0qa4GYOAq9wsbheuHVYg1+\r\nnx1ZWdkyoMgQjHWJ4wZPICfxO2fg3xxZY9nM7p0As0Rqkal9oQJ0FtFNdASR\r\nGFUp7BB3W4ol7pZIM5RBhjuObEymE+zq95k33K0yiaeoEzxl4WwhW37QgCZy\r\nyz1rP0j9ImMbns8XeDq1AIvQnt0RKUbHWqoiT/GulTarymbFqIRJwvqbTphH\r\nBGZoN6NVSxgB7HZMdfwooHiY0kwDUy8tNabK1UPGi8h3Ebqt+tyXSpU1Tk0o\r\nZ6rk+nAc4db2mK4KWhA4hZ7eEnw26GYKpd1k6RlIRHHLExqsLF2bDaf8Gaqu\r\nSE44lhGBZWhQ6wYlDo4fTm2W03n82hA2aEK7ohTH9EAsS6Lz23KB88GRqVRG\r\nl/tI3nfLGi4U6LAiW2VX5WXjF81nhXMM83zsepA7lhjXVdvO2YHk4wiBGwkT\r\ntyYUzD74JgLGNnJODZdOnd8z3PJaWIRSuxmZhacuXfIPM1SNhXl44RuhSYGU\r\nX/PbodGEIRkTekB8i1r3z9CTqazpBnuewWwOTNwppH64GUh7qvAiK6qkRBhn\r\nsaXiy9QuAb3nuaeUcYlJh5eM4PIHGjOa6VklLjcq9/RfVuJiNxaHd55izXlG\r\nSQS6W6/MrB0mGvugOTZuEfRFEYIm2agc6e4=\r\n=DkeT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.3_1662423214656_0.6253851307514797"},"_hasShrinkwrap":false},"0.5.1-nightly.7":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.7","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.4","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.4","@cardano-sdk/util":"^0.6.0-nightly.2","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"911e6241c18810015ad795b056bba87c06f722d9","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.7","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-yW9aHoPgtcUn6+/ZgWDSLvb6WUrVLAa3VFGGx8oUlMnw7hbZbd6BjlnJcaOT1MBF9O6Tcf0NT4EX7KWoqw5mbw==","shasum":"30254f5b3175d88947429298569c647d02f61761","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.7.tgz","fileCount":72,"unpackedSize":410787,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr3LiU3Em0DPSa0uw21Oz8u+6U3u6tLwJGPv7plihVjAiBrsRNs5jtlYAyBkQIkitdD8sBlceALa7yXGXguPQ9Gyw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIdSmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9qA//ay2PZSVbdkxhIs1MTPk9NVFvyK+1FzqB84ddjQwyX8+7/b+9\r\n2cERWfBx3pYkdXhKXilBe3P41RtQwJLLg8+aIiLlfCv5T8nyguFxdbj45Cfq\r\nwsaVI1kl2CUGiJ5xnlo2oirutlSTmGU8TYko2P6u83oWhDEUjihwx4nCGTmD\r\nvv5ugc3ddzdzqjQeWQXbvoVqtqIefYY3c4n3z841leI1x/OXA8WuCcGSpbJM\r\n5UCSyGhHBAB+MYHxzCvPHaGUlZIPp5hs0eptef0oWB2MPrptBn/jocpBo2ZW\r\nn35+OxsXUnkuUgslYuI9bj/CA6b632xUAEgdrVeYoCOOhTYHCY2ZyVBoSKuF\r\nAyVhlMEZCSUsci7LX6HuQ1cfqxHKav55hWrbb9eGnMwSFPOflsohL1v93PU4\r\nx50VfmqTyWbUkK8yqRw6rO8CkgqyCC5h4/4lM/h9ODEKhTE6pGQBIn3JKln4\r\n1P91jA8y+ys6u6IufwkZrJCYtTnGRQOx/38ShH5h+WcnEpUPo5HSVCI4/3wj\r\n2PbkzvB5pPlfogXCyC2QZ5StoOnAMhdfbPTxl+v3PR5Ff1pl8ahRIWJM7uPQ\r\nQRl4unppX1g5WhEQeer405MQZ/Isw63YrTwNyj9tUcXsqaB2NQzuohL86hXN\r\nP8X1tLsdoVoCUTjQv79Bn2D/FMvbSMzqLQM=\r\n=2ThB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.7_1663161510368_0.7319329991521577"},"_hasShrinkwrap":false},"0.5.1-nightly.8":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.8","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.5","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.5","@cardano-sdk/util":"^0.6.0-nightly.2","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"854649356682345e8cb049a477756f6a714f2435","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.8","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-LXTDIR9DPNR7FQZF18toKG7Fz1BzoivZ5wm1jET7Hm71Buno+Pa8hBuNw1823ZO/27wUZMcOhoUsPUuXwCNzTw==","shasum":"28bb19174c860e67940e19729534a2dec494445a","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.8.tgz","fileCount":72,"unpackedSize":411087,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXS2Ra6nDv7XnUlgnRbmhYe5bX2ilzB1HcxKWBcq1EdAiAH5gk4I01Emg1TFzrKHLVJX6U5wfbR3vSpQBUcc13hWw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjI8DRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqRw//bXL/MVkiEH1IkJXw8DdaCN75buxmG96nSpKxzHEgOS0KSi0u\r\nqZt09Dm1Tb98Fg7Kchz8cmBhHFIz5b0iXsRC+LIKBaoPlcqGOCTSPU3gqbyW\r\nGGnLOYfllxvZA8QjoUj2nsqWFRRL4/Q88yHj8dWgR505jbp1R4QZxn/mOz0l\r\nYPKBxpIbJKKjm65NMVFNuEnc9qVUHw9kVX7PibYH+YGfgVtcXKnVoRg3aZB6\r\naDbimZMxXQoHxH/S02chKji6gdcO8yZpBAkjzPx0uEdGVvrS7XLM9ATS1FiW\r\nxR/WzuU1FXRQPDlZjA+D2jSswQUuygyLedmdTDFPVSobppmc2WFvXvpir6wz\r\nuxLfiT85zRVuPNF48qIeap4Phz6F1gaheH1MbfnLK3vGLKPSkgY8+xry2EnG\r\nXSG75UI7N3tqRLiBKVeaenryszGlhjBxaJWyRRAQf35Wmpfe/Pbyya1xPHEI\r\nbVlwBGiTtW44gTDgyBr4XdWNoL5453YiQAcESzMRvDZnR+wL0uSgpviHgend\r\n+RUD40x8fTa3kTW5EQwtlb76i6/KufdC3n9DzxRWUtPBge1FCnJ5ArX7QyMl\r\nTZ55u9QxwahsD+zcvG74Cs9zDdRrAGnwBZt9qEHX2zGNgLIUrG5n4bnuwYRX\r\nH5p7ftYiBYa3tqqKd6z78TtPpY2k3qXI0+g=\r\n=dhkw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.8_1663287505253_0.9027036234009198"},"_hasShrinkwrap":false},"0.5.1-nightly.9":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.9","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.6","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.6","@cardano-sdk/util":"^0.6.0-nightly.2","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"a9f6b4ee3180572d0d01c6f7c4c19dbd61232af4","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.9","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-nAtX9T9kIZjBLa8B6pbSi3iPBTQgwWwpJEyiUedL5FPbCrAtHkNTfGsuzu6dNvLgn2aaRl0ZRF5C1gAPxSXovA==","shasum":"14c5120699587685f077240cbe85aead5d614a7d","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.9.tgz","fileCount":72,"unpackedSize":411087,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEEgobeRwBs7H7tAeFpahEjRXwEmslg/jBLVpOcshRiwIhAKNqGa9QQdpWA8/Te1BeDoyEYLmYZnEm3oCE77GD30Dr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKQbHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEjw//Q35hOC6o87JFDTGgsf/ffirizr+xbxmXebElesXW3dktCxjh\r\nkyuy4955TxS/iIS+AwmuIgGtqhiUYUB0eno2POpdCLKrWCgtBSIkS/JZuU8Z\r\nGGIBVIBmr0zux7zWxq+PjwBf0T02e2AcSFIiv4Xjpi2lMF6DEKPDtwcYYvcC\r\nPROIEHXtrNHMt8b4i5ljA/DiyA12jDUCs3pjbgEZAKsUyUqVW6/0rhsamKw+\r\n77kmHm1Cee6ZO/A5IexpnR1ziaK+iUtHgW1ySFYWEKidNgcHnwlyC5S2DHju\r\nCBbfKfVvnY2fvGxbHapvztrX0Tp5OqNLROi3m18Rbg7mxkFVVR9QPzLwh4dQ\r\nuGV+GEUvMXIrfyL+vhoQc2uOcZXGz/EUwZ2zImsKCV3vP101BBJ+Ask9TkBQ\r\n1AsNALbSWfos4sgeGC9gzbNifULSl+DV7CXEUUi17mWlGRSh36CcEkuzklfY\r\nW7gDlXe9/Qb/rlXGR+E2gGsi16a8j1HEQMm5IRVV4sqWsKZ2S1Zc53R3KusN\r\nLOR8Lin5b4hG11X7gCPTMeXxtBZGrWfijreqvWb8o2seBRBHfKAlPCqZTIHL\r\neyjnB80xkzckkmcgxFnxJG/JrVVdZueprZfwVekwQc0ORaZApQtye2ZIEUuW\r\nK6FL3/aYdn6YeW+0V4oxA1qFU2JFTD6JMmA=\r\n=Aakv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.9_1663633094911_0.5791159498572578"},"_hasShrinkwrap":false},"0.5.1-nightly.10":{"name":"@cardano-sdk/cip2","version":"0.5.1-nightly.10","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.7","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.7","@cardano-sdk/util":"^0.6.0-nightly.2","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"97bd09d0bc5f507c903da5c2abc3a170578b47d2","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.5.1-nightly.10","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-F1FLKHhlQuG+KI58wujSsX+EClEZEJ1mBLAGbuWVphhVMJILJxm4bilQmxLFp32XQ+WV4grU2sL1QsK+VNk88w==","shasum":"b9c7888dde0778eaf4ac4115537a8491efb6dd10","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.5.1-nightly.10.tgz","fileCount":72,"unpackedSize":411088,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC56ZOt7zTzkQ3SUnjZo4XKOfXRgK9HG6xDTb48wnkLtwIhAKc/VwoIjM6NeO3lXGX+zgf4jUQ2kV8xm4MkYXIBiRNC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKlidACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp30xAAlOlYBFEpZ7C+YAkEg/jjWhqwbE8E+tETagFsVLjveuJDpslE\r\neuclESGxGE0RRSNgChHXnuH7lgH97p0E4/04l8kAFrNhsOsV66dCg+siKswS\r\nCw2hVQT1H44C8FRWhf0FcRvJQPYeTw9KZZ0J0vfMGn5+ZUgDLi/sRvuRbe/z\r\naW6k5DSgWx4hgYllIdmIXGz9Yep8OOUWKiENvlCtI3a7FqpK+JbLzfbkJCR/\r\nyt9tfPQy7FRis8E+Mq8wGzKDuUOezhKHN5I/7rOk0oTNjyDE6JD68VvxIxbz\r\n+zIAjaw+DEz6tz0qlIT/LhR/EfncPfToTBqy3mCVGaI8atMJ+LYI6r7c+RoG\r\nRzw+h3Na2alzcF9doWYiTwAa6WvaZRi5QMrVvo46k8HM8A4LlkQI8MD3cEMY\r\nJ7RNX+wFdvgklMlyVoQbwyMNa0lCZ64Yq0eODce/xBuY7SBmrOADat/upM5S\r\nAYwYMku1y7YETNlUmFqRGnxxbYag3inonXXtbtNpM7apouMIdsY89Un2qmPT\r\nYqN4ClsFRmafXxRBXTNukhVLJU2bOyynyz+fb2/F5vOE48WrOtXOi7MHlHOF\r\n7d0uo8OXqwSgAoM8wutGnIOEypiugQODS1G3O6IQC5PsnCelKCt6+LESF55W\r\nBT+kNCxxh51y3TMXvJjDz65nlc8Xzliz49M=\r\n=2buL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.5.1-nightly.10_1663719581337_0.25960965691044535"},"_hasShrinkwrap":false},"0.6.0-nightly.0":{"name":"@cardano-sdk/cip2","version":"0.6.0-nightly.0","description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","engines":{"node":"^14"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"publishConfig":{"access":"public"},"contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"license":"Apache-2.0","scripts":{"build:esm":"tsc -p src/tsconfig.json --outDir ./dist/esm --module es2020","build:cjs":"tsc --build src","build":"run-s build:cjs build:esm module-fixup","module-fixup":"shx cp ../../build/cjs-package.json ./dist/cjs/package.json && cp ../../build/esm-package.json ./dist/esm/package.json","tscNoEmit":"shx echo typescript --noEmit command not implemented yet","cleanup:dist":"shx rm -rf dist","cleanup:nm":"shx rm -rf node_modules","cleanup":"run-s cleanup:dist cleanup:nm","lint":"eslint -c ../../complete.eslintrc.js \"src/**/*.ts\" \"test/**/*.ts\"","lint:fix":"yarn lint --fix","test":"jest -c ./jest.config.js","test:build:verify":"tsc --build ./test","test:e2e":"shx echo 'test:e2e' command not implemented yet","coverage":"yarn test --coverage","prepack":"yarn build","test:debug":"DEBUG=true yarn test"},"devDependencies":{"@cardano-sdk/util-dev":"^0.5.0-nightly.8","@types/lodash":"^4.14.182","eslint":"^7.32.0","fast-check":"^2.17.0","jest":"^28.1.3","lodash":"^4.17.21","npm-run-all":"^4.1.5","shx":"^0.3.3","ts-jest":"^28.0.7","typescript":"^4.7.4"},"dependencies":{"@cardano-sdk/core":"^0.6.0-nightly.8","@cardano-sdk/util":"^0.6.0-nightly.2","lodash":"^4.17.21","ts-custom-error":"^3.2.0"},"gitHead":"74a9c8cfd34ed424eddf28b68af9ebd3115a2c4f","readme":"# Cardano JS SDK | CIP2 | Input Selection\n\nThis package implements concepts from the draft specification being developed in [CIP-0002].\n\nCurrently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.\n\n## Usage Example\n\n```typescript\nimport { roundRobinRandomImprove, defaultSelectionConstraints, InputSelector, SelectionResult, SelectionSkeleton } from '@cardano-sdk/cip2';\nimport { loadCardanoSerializationLib, CSL, CardanoSerializationLib, ProtocolParametersRequiredByWallet } from '@cardano-sdk/core';\n\nconst demo = async (protocolParameters: ProtocolParametersRequiredByWallet): Promise<SelectionResult> => {\n  const csl: CardanoSerializationLib = await loadCardanoSerializationLib();\n  const selector: InputSelector = roundRobinRandomImprove(coinsPerUtxoWord);\n  // It is important that you use the same instance of cardano-serialization-lib across your application.\n  // Bad: TransactionUnspentOutput.new(...)\n  // Good: CSL.TransactionUnspentOutput.new(...)\n  const utxo: CSL.TransactionUnspentOutput[] = [CSL.TransactionUnspentOutput.new(...), ...];\n  const outputs: CSL.TransactionOutput[] = [CSL.TransactionOutput.new(...), ...];\n  // Used to estimate min fee and validate transaction size\n  const buildTx = (inputSelection: SelectionSkeleton): Promise<CSL.Transaction> => {...};\n  const constraints = defaultSelectionConstraints({\n    protocolParameters, buildTx,\n  });\n\n  return selector.select({\n    utxo,\n    outputs,\n    constraints,\n  });\n};\n```\n\n## Tests\n\nInput selection is tested with property-based tests using [fast-check], as well as a few regular example-based tests.\n\nDue to nature of property-based tests, code coverage report is slightly different on each build.\n\nRoundRobinRandomImprove has 100% code coverage when using high `numRuns` option (e.g. 100_000).\n\nNote that to run it with high `numRuns` you need to increase _Jest_ and _fast-check_ timeout.\n\nSee [code coverage report].\n\n[cip-0002]: https://cips.cardano.org/cips/cip2/\n[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove\n[fast-check]: https://github.com/dubzzz/fast-check\n[code coverage report]: https://input-output-hk.github.io/cardano-js-sdk/coverage/cip2\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"},"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","_id":"@cardano-sdk/cip2@0.6.0-nightly.0","_nodeVersion":"14.17.6","_npmVersion":"lerna/5.2.0/node@v14.17.6+x64 (linux)","dist":{"integrity":"sha512-uZrGk3CoF2Kp/K9v52xB0bBIg124klNSTzQs0D9+a57rUfCSb8JdEKBNGuYyRUhUbgNHWzh9r6X9K0CSDsqN2Q==","shasum":"2a1dc82981d5b6d733cbf3045a96986f78ac6c81","tarball":"https://registry.npmjs.org/@cardano-sdk/cip2/-/cip2-0.6.0-nightly.0.tgz","fileCount":72,"unpackedSize":411014,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3Zkiz3tQFJMBgmFkPTRYBG5KYNhboRJbb21YlZ0rowAiB+UBJnvoLvavU6PEwh6yN7drPd5r9L7vMsEcQQFAbtaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLPqoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoeA//QcSJVXVmrquo2+iUAZDt2tWYnsp3nHDRvukCGcgXLowrPj52\r\n0Q4/pk6SFQYHHFd25yfqmMlxv9sYU6iaNuA4sxg3fxI9B/hMF36YuPltQKDO\r\niHlhAzx0T2NRH1iYf4TCR7Z+8gM03di7Z0F9jZ8F40W0/uuubJYr2rPAY5fN\r\nj/zbUtD4IgiQJvcJeHwuz+alqAl1q5WvBfj3OnAzdtATlNQTjmD+lmX+Tbjc\r\nQVjILf0ipa/A5Gs91zcqqiHGVAdDOGpYAkQiEvh9C/Jx7m1hjYa3eLvcawDL\r\nPGH/1gQ9/TqNG57b+TBAcrFqkzGtvHgLbbUcP5EZ1ZDxtddbvGFiQgrHBfcr\r\nBnyw2vysRo9UH5Nhp2c6U/Lg8lo9TtprbsY9ELKm58W27Z5sYulX0OZiW+p+\r\nQYEs5gGoYjQvq7bZ2O3m+yO7lX3oacGM3MvYNTqcrWPC5SPOuMLRpG5tg87F\r\nemZMRXOQwbGGWEqoYwEIpOut1D7tYYYM+/BnpEVNxbQGZFK3kYhaHZegSwQl\r\nZlnt/3PDE00Yp5x7qGKHczjanE3VRZKVa2Sn7XDXkMUyXQu/Y3ygnDKgpal4\r\nL8zIxDmF/AIrFuKUmbA84X/Oq7FwZswN5xroTIR8GMoixXqcZ7/cQRA0PF8c\r\nTRgI5qMz7aqEHc9i3TeTgnX3xTpG4Bph7yY=\r\n=SeWD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rhyslbw","email":"rhyslbw@gmail.com"},"directories":{},"maintainers":[{"name":"rhyslbw","email":"rhyslbw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cip2_0.6.0-nightly.0_1663892136436_0.8365255922867358"},"_hasShrinkwrap":false}},"maintainers":[{"email":"martynas@firmfirm.co","name":"mkazlauskas"},{"email":"rhyslbw@gmail.com","name":"rhyslbw"}],"description":"TypeScript definitions for CIP2 (Coin Selection Algorithms for Cardano)","repository":{"type":"git","url":"git+https://github.com/input-output-hk/cardano-js-sdk.git"},"license":"Apache-2.0","readme":"","readmeFilename":"","contributors":[{"name":"Rhys Bartels-Waller","email":"rhys.bartelswaller@iohk.io","url":"https://iohk.io"},{"name":"Martynas Kazlauskas","email":"martynas.kazlauskas@iohk.io","url":"https://iohk.io"},{"name":"Daniele Ricci","email":"daniele.ricci@iohk.io","url":"https://iohk.io"},{"name":"Ivaylo Andonov","email":"ivaylo.andonov@iohk.io","url":"https://iohk.io"},{"name":"Mircea Hasegan","email":"mircea.hasegan@iohk.io","url":"https://iohk.io"},{"name":"Angel Castillo Bacigalupi","email":"angel.castillo@iohk.io","url":"https://iohk.io"},{"name":"Seung Eun Song","email":"seungeun.song@iohk.io","url":"https://iohk.io"},{"name":"Dmytro Iakymenko","email":"dmytro.iakymenko@iohk.io","url":"https://iohk.io"},{"name":"Tomislav Horaček","email":"tomislav.horacek@iohk.io","url":"https://iohk.io"},{"name":"Michael Chappell","email":"michael.chappell@iohk.io","url":"https://iohk.io"},{"name":"Leonel Gobbi","email":"leonel.gobbi@globant.com","url":"https://www.globant.com"},{"name":"Juan Cruz Vieiro","email":"juan.vieiro@globant.com","url":"https://www.globant.com"}],"homepage":"https://github.com/input-output-hk/cardano-js-sdk#readme","bugs":{"url":"https://github.com/input-output-hk/cardano-js-sdk/issues"}}