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

Persistence Integration #6

Open
wants to merge 40 commits into
base: dev
Choose a base branch
from
Open

Persistence Integration #6

wants to merge 40 commits into from

Conversation

NhoxxKienn
Copy link
Collaborator

This PR introduces new features into channel-services.

Breaking changes:

  • Remove "central-hub" behavior of channel-service. Now every client should have its own channel-service and one channel-service serves only a single client.

  • Remove main.go, developers should deploy the channel service instance on a server.

Adds:

  • New mock wallet service server to be used for testing.
  • New functions for channel-service adhere to new APIs from wallet-spec ("NewPerunClient", "ClosePerunClient", and "RestoreChannels")
  • Employ perun-libp2p-wire for wire discovery.
  • PersistRestorer in Channel-Service client for channel-service's persistence.
  • Integration test for testing channel-service functionalities.

Minor:

  • Add documentation for repo
  • Remove unnecessary logging

ndzik and others added 30 commits November 29, 2023 14:50
Added feature and wire discovery
added readme.md
…olver, Libp2p Wire

Signed-off-by: Minh Huy Tran <huy@perun.network>
…es and scripts *WIP(setup.go, test_utilities.go): first test case *chore: update go-perun dependency
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
…rom user & WIP: updateChannel

feat addRestoreChannels
- add RestoreChannels, ClosePerunClient and NewPerunClient to perun-wallet.proto and channel-service
- add proto message types for RestoreChannels, ClosePerunClient and NewPerunClient
- add setup methods in test_utils.go for message types
- test restoring channels in channel_service_test.go

fix: rever wrapper
- remove util/wrapper.go
-  revert changes in wallet/signer.go

fix: remove mutex from user
- remove mutex completely from user.go

WIP: updateChannel
- commented out code in channel_service_test.go
- setup methods of messages of UpdateChannel  in test_utils.go
NhoxxKienn and others added 10 commits June 21, 2024 09:59
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
feat: add updateChannel
- add factory methods for update protobuf messages
- update test case to include updateChannel

fix (user.go): restoreChannel
- call handler for new perunClient in user.go

chore: cleanup
- remove channel codee
- remove main.go
- beautify and remove unnecessary comments
- add request and response message types for ClosePerunClient
- add byte array field to all message types for RestoreChannels, ClosePerunClient and NewPerunClient
- generated code from .proto file
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
@NhoxxKienn NhoxxKienn requested a review from janbormet June 27, 2024 11:09
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.

4 participants