-
Notifications
You must be signed in to change notification settings - Fork 47
CIP-0082 (Daml draft) - 5% development fund impl #3086
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
base: main
Are you sure you want to change the base?
CIP-0082 (Daml draft) - 5% development fund impl #3086
Conversation
meiersi-da
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Nice work!
wdyt about doing the change wrt where the configs are stored, and then implementing the Daml tests before pinging for another review?
Are you referring to implementing the full Daml test suite to cover all the new scenarios? |
yes |
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
…ate a DevelopmentFundCoupon contract in AmuletRules_MiningRound_StartIssuing Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
…n from collection and fund management setup Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
…ntFundPercentage and TransferConfig.optDevelopmentFundBeneficiary Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
6569272 to
d3561be
Compare
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
…igChange test Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
…figChange test Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Done |
meiersi-da
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you @jose-velasco-ieu 🙏
Seems like we have everything ready for you to create the short design doc tying these Daml changes toghether with the app changes required.
| -- The definition of `defaultAmuletConfig` will change from | ||
| -- `defaultAmuletConfig : AmuletConfig USD` | ||
| -- to | ||
| -- `defaultAmuletConfig : Party -> AmuletConfig USD`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely going to require quite a bit of adjustment across many tests. I'd suggest you only use the adjusted config for the tests where you test that the dev fund mechanics work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I would introduce is a defaultAmuletConfigWithDevelopmentFund : Optional Party -> AmuletConfig function (fixed 5% percentage) to share the nested record update across all use sites.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a leftover. I handled it by replacing the defaultAmuletConfig on demand in the specific tests.
I will remove the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Co-authored-by: Simon Meier <simon@digitalasset.com> Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
Signed-off-by: Jose Velasco - IEU <jose.velasco@intellecteu.com>
📝 PR Summary
This draft PR proposes Daml changes related to CIP-0082 — Establish a 5% Development Fund.
Pull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
Fixes #n, and mention issues worked on using#nMerge Guidelines