-
Notifications
You must be signed in to change notification settings - Fork 63
ADP-1858-upgrade-from-csl-to-cml #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rhyslbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed here: c5cf29f |
c5cf29f to
2c41895
Compare
rhyslbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The complete diff looks good, but there's a few distinct changes that have been lumped into a single commit, that need to be separated. I've commented on the ones that stick out to me, but it also appears that we missed including some CSL objects in the managed scope the first time around, so they would be best committed first as fix, then the lib replacement can be clean. If the new lib introduces new objects, then that's naturally part of the refactor commit.
6494cee to
b01944c
Compare
I split the extra manage here: b01944c There are several new .manage calls, but is because now some of the functions that used to return just a number or a byte array now return an object, so those must be manage |
rhyslbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, that's good to see there was only a small number missed in the original implementation |
…m 5.0.0 to ^5.0.0)
We replaced the CSL with the CML library from our SDK, however, the CSL library is still being loaded by a sub-dependnecy (blockfrost-js), both libraries are heavy and together are increasing the load time of the web-extension.
mkazlauskas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
b01944c to
5c0c5f4
Compare
rhyslbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @AngelCastilloB 👷


Context
The CSL was compiled to WASM using an old version of rustwasm which had a bug that would leak stack space when errors were thrown by the underlying rust library, This was making the CSL WASM module to crash after a several errors were thrown, this was fixed in later versions. The CML library uses the updated rustwasm and as such doesnt have this bug.
Proposed Solution
Reemplace the CSL library with the CML library