lightningdevkit / ldk-swift

48 stars 12 forks source link

Guide in Docs folder is not updated #86

Closed kobieaw closed 1 year ago

kobieaw commented 1 year ago

The "Result_NoneChannelMonitorUpdateErrZ" type does not exist for the version of ldk-swift that is currently in use for swift developers

danielnordh commented 1 year ago

Here are more issues showing in Xcode if I use the setup guide verbatim:

FeeEstimator

Logger

BroadcasterInterface

Persist

Filter

Init

KunalDev commented 1 year ago

@danielnordh Did you fix above issues? I created new project and added DirectlyLinkedBindingsApp code and LDK (0.0.114) using SPM. But getting complication issues.

Issues
danielnordh commented 1 year ago

Did you fix above issues?

I have paused my LDK integration and will instead use the upcoming ldk-node package that should have a simplified setup.

KunalDev commented 1 year ago

Thank you for letting me know about the upcoming ldk-node package. May I ask if you have any information on when it will be released and available for use? An estimated timeline would be helpful for me to plan accordingly.

danielnordh commented 1 year ago

Thank you for letting me know about the upcoming ldk-node package. May I ask if you have any information on when it will be released and available for use? An estimated timeline would be helpful for me to plan accordingly.

I'm not personally involved in the building of it, but best place to look is the repo of the rust version https://github.com/lightningdevkit/ldk-node

And the ldk-node channel in the LDK discord https://discord.com/invite/5AcknnMfBw

kobieaw commented 1 year ago

Hey @danielnordh, could you share what you currently have done for your LDK-swift integration? I would be interested to see. Thanks!

danielnordh commented 1 year ago

Hey @danielnordh, could you share what you currently have done for your LDK-swift integration? I would be interested to see. Thanks!

Considering it doesn't work, I'm not sure it's much use to you, but where I got to is in this LDK Manager wrapper class. Unfortunately it is missing most of the meat in the important method overrides. https://github.com/bdgwallet/dailywallet/blob/ldkmanager/dailywallet/LDK/LDKManager.swift

A better place to look might be this example by @jurvis, particularly the node file: https://github.com/jurvis/Surge/blob/main/Lightning/Sources/Lightning/Node.swift