Closed hrajchert closed 9 months ago
The updates revolve around the integration and testing of the @marlowe.io/wallet/peer-connect
module for CIP45 flow in a web environment. A new example with a README, HTML interface, and JavaScript logic has been introduced to facilitate wallet connections and Marlowe contract interactions. Adjustments to the wallet package improve code visibility and maintainability, while a new peer connection module enhances wallet API management.
Files | Change Summary |
---|---|
examples/cip45-flow/Readme.md examples/cip45-flow/index.html examples/cip45-flow/index.js |
Introduced a work-in-progress readme, a web page, and script to test CIP45 flow, including wallet connections and contract interactions. |
jsdelivr-npm-importmap.js |
Added a CDN entry for @marlowe.io/wallet/peer-connect module. |
packages/wallet/src/browser/index.ts packages/wallet/src/peer-connect/index.ts |
Refactored named exports and added a new module for peer wallet connection management. |
ππ To code anew, under the moon, Wallets connect, contracts bloom. Peer through the web, a handshake tight, Marlowe flows, in bytes take flight. ππ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary
This PR adds initial Mobile support to the Marlowe TS-SDK by providing an adaptor module to the cardano-peer-connect library. You can follow the library instructions to configure a Dapp and use the new
@marlowe.io/wallet/peer-connect
adaptor to provide theonApiInject
andonApiEject
methods.How to test
An example is provided in the
examples/cip45-flow
folderCurrent limitations found:
DAppPeerConnect
class. So the wallet can disconnect from the dapp but the dapp can't easily disconnect from the wallet. See Issue 57Summary by CodeRabbit
Summary by CodeRabbit
New Features
Documentation
Refactor
Style