haven-protocol-org / haven-main

Haven is an untraceable cryptocurrency with a mix of standard market pricing and real world asset-pegged value storage. It achieves this via a “mint and burn” process within a single blockchain.
https://havenprotocol.org
Other
39 stars 25 forks source link

fix wallet_api lib #18

Closed MartyHav closed 2 years ago

MartyHav commented 3 years ago

This PR updates wallet_api to Haven code and logic. In Monero it's a pure GUI dependency, so that's why it was getting abandoned in Haven. As 3rd parties makes now use of it ( e.g. cake wallet ), it's useful to get it work again. All tests are passing of associated test suite libwallet_api_tests.

Quickest way to build it ( as it's not part of haven standard release ):

mkdir -p build/release
cd build/release
//BUILD_TESTS=ON if you want to build associated test suite
cmake -D  BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../..
cd build/release
//build wallet_api lib
make wallet_api -j6
//building associated test suite
make libwallet_api_tests -j6

For preparing test environment have a look at: https://github.com/MartyHav/haven-main/blob/bugfix/wallet-api/tests/libwallet_api_tests/scripts/README.md Test suite does not cover conversion transactions yet.