event icon indicating copy to clipboard operation
event copied to clipboard

feat: add ability to lock a token to a pubkey + set duration

Open ajaysehwal opened this issue 7 months ago • 5 comments

Description

Relates to issue: **ZEUS-#2984

  • Added CashuPubkey Field in Contacts
  • Able to lock and unlock mint ECASH token with pubkey + able to lock token with duration

https://github.com/user-attachments/assets/037e8d16-38e0-4a4d-9b22-01f7e0d1a649

Screenshot 2025-06-18 at 7 29 52 PM Screenshot 2025-06-18 at 7 30 03 PM Screenshot 2025-06-18 at 7 30 13 PM Screenshot 2025-06-18 at 7 30 29 PM

This pull request is categorized as a:

  • [x] New feature
  • [ ] Bug fix
  • [ ] Code refactor
  • [ ] Configuration change
  • [ ] Locales update
  • [ ] Quality assurance
  • [ ] Other

Checklist

  • [x] I’ve run yarn run tsc and made sure my code compiles correctly
  • [x] I’ve run yarn run lint and made sure my code didn’t contain any problematic patterns
  • [x] I’ve run yarn run prettier and made sure my code is formatted correctly
  • [x] I’ve run yarn run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • [ ] No, I’m a fool
  • [ ] Yes
  • [x] N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • [x] Android
  • [x] iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • [ ] Embedded LND
  • [ ] LND (REST)
  • [ ] LND (Lightning Node Connect)
  • [ ] Core Lightning (CLNRest)
  • [ ] Nostr Wallet Connect
  • [ ] LndHub

Locales

  • [ ] I’ve added new locale text that requires translations
  • [ ] I’m aware that new translations should be made on the ZEUS Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • [ ] Contributors will need to run yarn after this PR is merged in
  • [ ] 3rd party dependencies have been modified:
    • verify that package.json and yarn.lock have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • [ ] Changes were made that require an update to the README
  • [ ] Changes were made that require an update to onboarding

ajaysehwal avatar May 25 '25 10:05 ajaysehwal

contacts

ok

ajaysehwal avatar May 27 '25 12:05 ajaysehwal

@ajaysehwal I guess we still have that navigation issue?

Screen.Recording.2025-05-27.at.4.57.07.PM.mov

Hi @shubhamkmr04, right now I'm just using goBack() for navigation. Should we instead navigate using a specific path?

ajaysehwal avatar May 27 '25 12:05 ajaysehwal

Don't forget the ability to retrieve your own Cashu pubkey. Perhaps on the Node Info or Cashu Tools views.

kaloudis avatar Jun 11 '25 05:06 kaloudis

Don't forget the ability to retrieve your own Cashu pubkey. Perhaps on the Node Info or Cashu Tools views. Actually, I already added my own cashu pubkey views in the Node Info section, please take a look at this screenshot
Screenshot 2025-06-11 at 11 19 15 AM

ajaysehwal avatar Jun 11 '25 05:06 ajaysehwal

I am not able to able to import token which is locked to my own cashu pubkey

shubhamkmr04 avatar Jun 18 '25 10:06 shubhamkmr04