Skip to content

🚸 Allocation helpers #240

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

Merged
merged 3 commits into from
Nov 1, 2021

Conversation

matthiasgeihs
Copy link
Contributor

Goal: Make Allocation easier to setup and modify.

Closes #63

@matthiasgeihs matthiasgeihs marked this pull request as draft October 14, 2021 13:58
@matthiasgeihs
Copy link
Contributor Author

@manoranjith @ggwpez What do you think?

@matthiasgeihs matthiasgeihs changed the title 🎨 Allocation redesign 🚸 Allocation redesign Oct 22, 2021
@matthiasgeihs matthiasgeihs force-pushed the 63-allocation-redesign branch from fb3b86b to ea81d85 Compare October 22, 2021 14:04
@matthiasgeihs
Copy link
Contributor Author

Rebase

@matthiasgeihs matthiasgeihs marked this pull request as ready for review October 22, 2021 14:04
@matthiasgeihs matthiasgeihs changed the title 🚸 Allocation redesign 🚸 Allocation helpers Oct 22, 2021
Copy link
Contributor

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

@manoranjith
Copy link

manoranjith commented Oct 28, 2021

@matthiasgeihs Overall the changes LGTM. I like the helper functions to create and modify allocations.

I have a couple of questions:

  1. What is the advantage of defining an AssetIdx type over directly using uint16 ?
  2. Are changes that change the type Alias to type Def related to this addition of helper functions ? If not, could we move it to a different PR ?

@matthiasgeihs
Copy link
Contributor Author

@matthiasgeihs Overall the changes LGTM. I like the helper functions to create and modify allocations.

I have a couple of questions:

  1. What is the advantage of defining an AssetIdx type over directly using uint16 ?
  2. Are changes that change the type Alias to type Def related to this addition of helper functions ? If not, could we move it to a different PR ?

Thanks for your comments.

  1. There are some historical reasons why I introduced a separate type for an asset index. However, these apply no more and I removed the type again. See 🚸 Allocation helpers #240 (comment) for more details.
  2. Yes, changing the alias to a def is not inherently related with this PR. However, it is loosely related and it would generate additional effort to pull that apart now, so I prefer to keep it here. I appreciate your comment nevertheless and we should all take into account that we rather create clean separate PRs for separate issues whenever possible.

@matthiasgeihs
Copy link
Contributor Author

@ggwpez Please have another look. All comments addressed. Need to still squash and probably rebase.

@manoranjith
Copy link

LGTM.

manoranjith
manoranjith previously approved these changes Oct 28, 2021
@matthiasgeihs
Copy link
Contributor Author

Rebase

@ggwpez
Copy link
Contributor

ggwpez commented Nov 1, 2021

Rebase

Could you also squash? An approval now will be discarded anyway.
@matthiasgeihs

Signed-off-by: Matthias Geihs <matthias@perun.network>
Signed-off-by: Matthias Geihs <matthias@perun.network>
Signed-off-by: Matthias Geihs <matthias@perun.network>
@matthiasgeihs matthiasgeihs force-pushed the 63-allocation-redesign branch from 90f26a2 to bb6e1f2 Compare November 1, 2021 15:40
@ggwpez ggwpez merged commit 5e2213c into hyperledger-labs:dev Nov 1, 2021
@ggwpez ggwpez deleted the 63-allocation-redesign branch November 1, 2021 15:55
matthiasgeihs added a commit to perun-network/go-perun that referenced this pull request Nov 8, 2021
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.

Easier method for creating and handling an allocation
3 participants