Skip to content

Commit

Permalink
feat(cip2): initial implementation of RoundRobinMultiAsset (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkazlauskas committed Sep 23, 2021
1 parent 7160bbc commit d36dd5c
Show file tree
Hide file tree
Showing 15 changed files with 1,181 additions and 920 deletions.
6 changes: 3 additions & 3 deletions packages/cip2/README.md
@@ -1,8 +1,8 @@
# Cardano JS SDK | 2
# Cardano JS SDK | CIP2 | Input Selection

This package implements concepts from the draft specification being developed in [CIP-0002].

Contains TypeScript types and interfaces, as well as implementation [referenced] from nami-wallet.
Currently there is only 1 input selection algorithm: RoundRobinRandomImprove, which is a [Random-Improve] adaptation that handles asset selection.

[cip-0002]: https://cips.cardano.org/cips/cip2/
[referenced]: https://github.com/Berry-Pool/nami-wallet/blob/8d3d2bdfd81b4a16b19df3da978ba578164b663c/src/lib/coinSelection.js
[random-improve]: https://cips.cardano.org/cips/cip2/#randomimprove
10 changes: 7 additions & 3 deletions packages/cip2/package.json
Expand Up @@ -11,18 +11,22 @@
"license": "MPL-2.0",
"scripts": {
"build": "tsc --build ./src",
"tsc": "shx echo typescript --noEmit command not implemented yet",
"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 ./test/jest.config.js",
"test:debug": "DEBUG=true yarn test"
},
"devDependencies": {
"@emurgo/cardano-serialization-lib-nodejs": "^8.0.0",
"@cardano-ogmios/schema": "^4.0.0-beta.6",
"@emurgo/cardano-serialization-lib-nodejs": "^8.0.0",
"@types/lodash-es": "^4.17.5",
"fast-check": "^2.17.0",
"lodash": "^4.17.21",
"shx": "^0.3.3"
},
"dependencies": {
"@cardano-sdk/cardano-serialization-lib": "0.1.0"
"@cardano-sdk/cardano-serialization-lib": "0.1.0",
"lodash-es": "^4.17.21"
}
}
289 changes: 0 additions & 289 deletions packages/cip2/src/RandomImprove.ts

This file was deleted.

0 comments on commit d36dd5c

Please sign in to comment.