A fast C++ SDK to interact with Solana and Mango Markets. The SDK also includes a collection of examples to send transactions to Solana and trade on Mango Markets.
The project uses conan.io to manage dependencies. Install Conan here.
$ cd solcpp && mkdir build && cd build
$ conan install .. --build=missing -s build_type=Release
$ cmake .. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
$ cmake --build .
$ ./bin/tests # Run tests
- C++17
- cmake
- conan io
-
If you have issues building libcurl on gcc-9, try clang. See issue.
-
In addition, some dependencies were directly included and slightly modified to work well with the rest of the code base.
- bitcoin/libbase58 [MIT]
- base64 [CC BY-SA 4.0]
- cpp-utilities/fixed [MIT]
Mango Markets documentation can be found here.
to make id.json
use f.py
from examples