Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

refactor: add reward actor params and code gen #36

Closed
wants to merge 3 commits into from

Conversation

frrist
Copy link
Member

@frrist frrist commented Jan 22, 2020

No description provided.

@frrist frrist requested a review from anorth January 22, 2020 22:06
@frrist frrist self-assigned this Jan 22, 2020

type RewardActorState struct {
RewardMap RewardBalanceAMT
// TODO AMT
RewardBalanceAMT cid.Cid
Copy link
Member Author

Choose a reason for hiding this comment

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

Eventually the actor state will look something like this with methods to modify its AMT. Until then we need to work around polydawn/refmt#35. cc @anorth is this strategy okay with you or should we do the work to convert this to an AMT now?

Copy link
Member

Choose a reason for hiding this comment

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

Given the amount of code that needed to be commented out, and hence outside the scope of refactoring tools, I think we should wait until we can put an AMT here.

I don't think numbers as keys are a problem here, but maybe addresses? In the interim, we could use Address.Bytes() as the key.

@frrist
Copy link
Member Author

frrist commented Jan 23, 2020

Will revisit after the H/AMT TODO's addressed, ideally #39 will help with this.

@frrist frrist closed this Jan 23, 2020
@anorth anorth deleted the frrist/reward-params branch October 10, 2020 04:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants