Replies: 2 comments 10 replies
-
Hey @hrajchert I'm glad that you are looking at decoupling I would highly recommend looking at integrating with https://github.com/input-output-hk/cardano-js-sdk for all wallet related codebase, and sync with the Lace team on a common code base. |
Beta Was this translation helpful? Give feedback.
-
hi @hrajchert i have being using Lucid and Marlowe SDK with Nextjs & Deno. The Lucid pachage works just fine using Deno, Nextjs(page router) and in the browser. Nevertheless, when Lucid is initialized on the server with Nextjs(app-router) some initializations errors pop up. Error message below: <node_modules/lucid-cardano/esm/src/lucid/lucid.js (60:38) @ TransactionBuilderConfigBuilder I am bringing this issue in this discussion since the wallet package is using Lucid. Nextjs is a webframework used by a vast number of developers and they recommned using the latest App routing feature. |
Beta Was this translation helpful? Give feedback.
-
The wallet package was the first to be implemented and initially, it was designed around the CIP-30 standard. However the scope of the package wasn't/isn't clear, and some limitations of CIP-30 popped up (for example the inability to distinguish test networks).
Being close to CIP-30, it can be tempting to solely rely on this package for any wallet information that is needed to build a DApp. However, noticing that is not currently clear how the CIP-30 will evolve, and that we also should be compatible with other standards like CIP-45 and that other libraries like Lucid provides better/different underlying support, I would like to propose that the scope of the
@marlowe.io/wallet
package be restricted to only be an adapter layer so that higher level packages like@marlowe.io/runtime-lifecycle
can operate.In an upcoming PR to add support for Node.js/Deno, I'll introduce a
lucid
module inside thewallet
package that can be used both in the browser and the backend. Users will still have access to the underlying and well-establishedlucid
library to manage their wallet needs, so for example they will be able to ask for the protocol parameters instead of just knowing whether they are on mainnet or not (our current API).Beta Was this translation helpful? Give feedback.
All reactions