-
dsc_
In the past I remember mooo suggesting for GUI to adopt `src/wallet/api/*`
-
dsc_
It's a shame we can't, due to possible software we don't know about that are using wallet/api
-
selsta
cake wallet uses it, monerujo, others too I think
-
dsc_
Most likely, yes.
-
selsta
wooders libs
-
dsc_
Suppose wooder goes straight into wallet2, but I have not checked.
-
dsc_
Perhaps we should deprecate it.
-
dsc_
over on Monero
-
selsta
but is it better if every project has their own version?
-
dsc_
and clients responsible for integrating it
-
dsc_
and make*
-
selsta
we need an alternative first before deprecating it
-
moneromooo
Or move it to a separate repo. Thing is, it can't be tested without the GUI (or other software that uses it).
-
selsta
-
selsta
> Modify CMakeLists.txt: option(BUILD_GUI_DEPS "Build GUI dependencies." ON)
-
moneromooo
Then again, my primary annoyance with it was that it added a lot of time to every build changing wallet2.h for stuff I did not care about :P
-
selsta
seems like libwalelt
-
moneromooo
Now that it doesn't build by default, it's kinda out of sight out of mind, so I don't mind now.
-
moneromooo
But it means it breaks from time to time.
-
dsc_
My biggest annoyonce with wallet/api is that it's not a very good API.
-
selsta
it runs in CI for every build
-
selsta
so it did not break in a while
-
moneromooo
That's good.
-
» selsta does not know how a good wallet api would look like
-
moneromooo
receive_money(uint46_t amount_you_want)
-
dsc_
Ill rephrase, since it might be offensive to the person that initially wrote it ... It's a good initial API that made it possible for Monero GUI, and other programs to be made. But now that we're doing some exotic stuff in my project, we've run into missing functionality, questionable architecture in some cases .. and some bugs.
-
dsc_
We'll upstream stuff, but at the same time we can't break backward compat.
-
dsc_
Hence I was thinking about deprecation.
-
dsc_
(or a seperate repo)
-
dsc_
selsta: The fact woodser uses `BUILD_GUI_DEPS` doesn't mean he's using wallet/api
-
dsc_
I'd have to check, or ask woodser.
-
dsc_
libwallet is basically "wallet2 + other monero core stuff in a lib"
-
selsta
possible
-
dsc_
Here's a diagram we've made btw
i.imgur.com/hGSlKAL.png
-
dsc_
It's wallet2 -> api/wallet -> libwalletqt -> libwalletqt -> feather
-
dsc_
this api/wallet step is awkward / limiting
-
selsta
can feather use wallet2 directly?
-
selsta
or can libwalletqt use wallet2 directly
-
dsc_
Yes.
-
dsc_
Honestly I don't know why that api/wallet step is in there.
-
dsc_
It fixes stuff that ought to be fixed by clients
-
dsc_
And it limits *what* you can use from wallet2, I suppose.
-
moneromooo
IIRC it was to offer some API that was not going to break.
-
dsc_
You can work around that by changing wallet/api .. but then you have a patch, which you need to upstream .. and not break backward compat.
-
moneromooo
(I might be wrong, that's my dim recollection)
-
dsc_
interesting mooo
-
dsc_
Maybe we should code against wallet2 ....
-
dsc_
Ill keep upstreaming patches, as per my promise to add functionality that the GUI can also make use of.
-
selsta
contact editing looks useful :D
-
selsta
did not look at the other yet
-
dsc_
Coins (txo manipulation) will be next
-
selsta
w0w
-
dsc_
It touches wallet2 too, introduced a mutex somewhere to prevent race condition / segfault with other part of the wallet2 code
-
dsc_
Just have to look mooo with puppy eyes and it will surely go in ^^
-
moneromooo
Ship it.
-
dsc_
See.
-
kinghat[m]
👀