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

Channel #3

Merged
merged 10 commits into from
Sep 11, 2023
Merged

Channel #3

merged 10 commits into from
Sep 11, 2023

Conversation

janbormet
Copy link
Collaborator

No description provided.

…dd MakeAccountAddress and ToAccountAddress functions. wire: Move MakeAccountAddress and ToAccountAddress to channel/types to avoid cyclic imports.
* Adapt tests to change of type

wire: Include initialization of backend and randomizer for go-perun tests

* Add tests for ToState, MakeState, ToParams, MakeParams.

* Modify error handling

wallet: Include NewRandomAddress for go-perun tests

go.mod, go.sum: Update stellar/go library commit hash
Copy link
Collaborator Author

@janbormet janbormet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor stuff, rest looks good

channel/types/asset.go Outdated Show resolved Hide resolved
channel/types/asset_test.go Show resolved Hide resolved
channel/test/randomizer.go Show resolved Hide resolved
wallet/test/randomizer.go Show resolved Hide resolved
@janbormet
Copy link
Collaborator Author

Please adjust the directory structure and place test files next to the code they test. Also use the convention package name e.g. wire_test to test code from e.g. the `wire package.

* Adjust the remaining subpackages to this change

* Change error handling t.Fatal -> require

wire: Move test files to wire, rename package

wallet: Move Randomizer initialization to wallet/test

go.mod, go.sum: Adjust packages to fixes
@janbormet janbormet marked this pull request as ready for review September 11, 2023 08:01
channel/test/randomizer.go Outdated Show resolved Hide resolved
channel/types/asset.go Outdated Show resolved Hide resolved
channel/types/asset.go Outdated Show resolved Hide resolved
wire/state.go Outdated Show resolved Hide resolved
wire/balances.go Outdated Show resolved Hide resolved
wire/balances.go Outdated Show resolved Hide resolved
return errors instead of panic in StellarAsset methods

wire: Use methods from go-perun to make allocation for go-perun state
Copy link
Collaborator Author

@janbormet janbormet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@janbormet janbormet merged commit 6835a0c into dev Sep 11, 2023
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