Skip to content

Conversation

@kneerose
Copy link
Contributor

List of changes

  • Refactor the convertDRepTo129 helper function to convert convertDRep, supporting both CIP-129 and CIP-105 using dRepView.
  • Add a mock dRep response of script-based dRep and use it to verify the conversion of script dRep for CIP-129 and CIP-105 in dRep details.

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

@kneerose kneerose requested a review from mesudip March 18, 2025 08:10
@github-actions
Copy link
Contributor

✅ All checks succeeded

2 similar comments
@github-actions
Copy link
Contributor

✅ All checks succeeded

@github-actions
Copy link
Contributor

✅ All checks succeeded

"elements": [
{
"isScriptBased": true,
"drepId": "429b12461640cefd3a4a192f7c531d8f6c6d33610b727f481eb22d39",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have similar test for keyDrep? If not let's add it too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can review this update -https://github.com/IntersectMBO/govtool/pull/3224/files#:~:text=.isScriptBased)-,const%20cip129DRepListApi%20%3D%20dRepList.map(,)%3B,-for%20(let. This is the only test where the conversion of a dRep takes place, whether it's script-based or a normal dRep.

@kneerose kneerose requested a review from mesudip March 18, 2025 09:17
@github-actions
Copy link
Contributor

✅ All checks succeeded

2 similar comments
@github-actions
Copy link
Contributor

✅ All checks succeeded

@github-actions
Copy link
Contributor

✅ All checks succeeded

@github-actions
Copy link
Contributor

✅ All checks succeeded

2 similar comments
@github-actions
Copy link
Contributor

✅ All checks succeeded

@github-actions
Copy link
Contributor

✅ All checks succeeded

Copy link
Contributor

@mesudip mesudip left a comment

Choose a reason for hiding this comment

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

Nice

@kneerose kneerose merged commit 30d2e5c into develop Mar 19, 2025
3 checks passed
@kneerose kneerose deleted the tests/script-drep-conversion branch March 19, 2025 05:46
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.

3 participants