Skip to content
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

Implement JSON-rpc structs for LSPS2 #260

Merged
merged 10 commits into from
Nov 10, 2023

Conversation

ErikDeSmedt
Copy link
Collaborator

@ErikDeSmedt ErikDeSmedt commented Sep 13, 2023

I have implemented the data-types that are required for LSPS2.

@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch from 6ec8e2b to a82bca9 Compare September 14, 2023 11:52
@ErikDeSmedt ErikDeSmedt marked this pull request as draft September 14, 2023 14:28
@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch from ce2d9fa to eaa1737 Compare September 15, 2023 09:23
@ErikDeSmedt ErikDeSmedt mentioned this pull request Sep 15, 2023
10 tasks
@ErikDeSmedt ErikDeSmedt marked this pull request as ready for review September 18, 2023 10:48
@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch from 43218ef to 62f0aa6 Compare September 20, 2023 12:37
@ErikDeSmedt
Copy link
Collaborator Author

When working further on this PR I've noticed some files became too bulky.
I am currently moving some code around which should make it easier to review

@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch 6 times, most recently from c1faee4 to 633ec51 Compare September 20, 2023 13:42
@ErikDeSmedt ErikDeSmedt requested a review from cdecker September 20, 2023 15:48
@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch 5 times, most recently from bda0e9a to 9a50d66 Compare September 25, 2023 12:55
@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch from f1a2bef to 9aabaff Compare October 19, 2023 13:26
@ErikDeSmedt ErikDeSmedt force-pushed the erik/lsps-2-server-rpc-methods branch from 9aabaff to 6f3d6b8 Compare October 27, 2023 07:05
@cdecker cdecker self-assigned this Nov 6, 2023
@cdecker cdecker self-requested a review November 6, 2023 16:42
Allow the mapping of error_codes defined in JsonRpc
The `crate::lsps::message`-module was becoming too big.
I've decided to separate all files related to LSPS0.

The code should better reflect how the LSP-specification is structured.

I made the following changes
- renamed DateTime to IsoDatetime to prevent some compiler bugs
- clippy fixes

Follow-up commits for LSPS1 and LSPS2 will follow
Move out all lsps1-schema's to another file
Separate the lsps2-schema's from the message file
Implement a `ShortChannelId`-type and
break the flow when an invalid scid is encountered
The cln-rpc crate has a ShortChannelId.
We've decided to use that version here. If we ever separate
out the primitives from cln_rpc we might be able to use them
without breaking changes.
@cdecker cdecker force-pushed the erik/lsps-2-server-rpc-methods branch from 95b30a8 to 2577a17 Compare November 10, 2023 13:12
@cdecker cdecker merged commit e250309 into Blockstream:main Nov 10, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants