Skip to content

Conversation

neocybereth
Copy link
Contributor

@neocybereth neocybereth commented Aug 22, 2025

Adding in MASP funcs from namada-net/namada-interface#2280

@neocybereth neocybereth changed the title chore: add masp funcs from https://github.com/namada-net/namada-interface/pull/2280/ chore: add masp funcs from outstanding PR Aug 22, 2025
pub fn to_viewing_key(&self) -> Result<ExtendedViewingKey, String> {
let xfvk = self.0.to_viewing_key();
Ok(ExtendedViewingKey(NamadaExtendedViewingKey::from(xfvk)))
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! Quick note: Since we don't have an automated process to bump versions yet (there's an issue to add this!) there are a few things we need to do before we can publish:

  • Bump all package.json versions from 0.20.7 to 0.20.8
  • Bump packages/lib version as well - you can manually change lib/src/version.ts, but it is also automatically updated when you build any of the SDKs
  • Since this will produce changes in the API for PseudoExtendedKey, after rebuilding the wasm locally, we should regenerate the type docs (https://github.com/namada-net/namada-sdkjs/blob/main/docs/classes/PseudoExtendedKey.md) so these functions get picked up (yarn build:docs). Then it's just a matter of building and publishing all 3 SDK variants (also should be automated).

Most (if not all) of this should be automated soon! :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the instructions!

I did all of the above and commited here.

Looks like it changed 58 files just FYI, dk if that's expected so just want to raise awareness.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's entirely expected :D Really generating type docs is a pre-release task, we just need to set that all up still. It's annoying to have to remember all of this!

@neocybereth neocybereth requested a review from jurevans August 25, 2025 07:40
Copy link
Collaborator

@jurevans jurevans left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@neocybereth neocybereth merged commit b8d1477 into main Aug 25, 2025
@neocybereth neocybereth deleted the chore/add-masp-funcs branch August 25, 2025 19:21
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.

2 participants