cashubtc / cashu-ts

A TypeScript library for building Cashu wallets
MIT License
57 stars 33 forks source link

NUTs - Implement changes to NUT-04/NUT-05 method settings struct #114

Closed callebtc closed 5 months ago

callebtc commented 7 months ago

Implement changes in https://github.com/cashubtc/nuts/pull/82 to v1_api branch

Dayvvo commented 5 months ago

So far I can see that the /info endpoint v1_api branch is already defined to return a response that matches MintMethodSetting namely:

{
  "method": "bolt11",
  "unit": "sat",
  "min_amount": 0,
  "max_amount": 10000        
}

only thing left is that the type should be renamed to MintMethodSetting instead of SwapMethod. Anyone working on it or can I make a PR to correct that and push?

callebtc commented 5 months ago

Anyone working on it or can I make a PR to correct that and push?

I've done it here: https://github.com/cashubtc/cashu-ts/pull/131

Dayvvo commented 5 months ago

Alright. I guess all that's left is to close it out, yeah?