Skip to content

Conversation

@jose-velasco-ieu
Copy link
Contributor

@jose-velasco-ieu jose-velasco-ieu commented Nov 5, 2025

📝 PR Summary

This draft PR proposes Daml changes related to CIP-0082Establish a 5% Development Fund.

⚠️ Disclaimer

  • No tests have been implemented yet.
  • This PR is not production-ready.
  • Pre-commit checks were skipped.

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

Copy link
Contributor

@meiersi-da meiersi-da left a 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?

@jose-velasco-ieu
Copy link
Contributor Author

and then implementing the Daml tests

Are you referring to implementing the full Daml test suite to cover all the new scenarios?
@meiersi-da

@meiersi-da
Copy link
Contributor

and then implementing the Daml tests

Are you referring to implementing the full Daml test suite to cover all the new scenarios? @meiersi-da

yes

jose-velasco-ieu and others added 12 commits November 6, 2025 15:09
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>
jose-velasco-ieu and others added 10 commits November 6, 2025 15:09
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>
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>
@jose-velasco-ieu
Copy link
Contributor Author

and then implementing the Daml tests

Are you referring to implementing the full Daml test suite to cover all the new scenarios? @meiersi-da

yes

Done
I think it's ready for a second review

Copy link
Contributor

@meiersi-da meiersi-da left a 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`,
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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>
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.

5 participants