So we have some new functionality to try out in hived. Specifically, some new methods and operations:
- Methods
condenser_api.get_collateralized_conversion_requestsdatabase_api.find_collateralized_conversion_requestsdatabase_api.list_collateralized_conversion_requests
- Operations
collateralized_convert_operationfill_collateralized_convert_request_operation(virtual)
Compare commits: be85510...616699a
I have refreshed the tintoy docker images, so you can try these out yourself:
docker run -d -p 8090:8090 inertia/tintoy:develop
Once deployed, you can try querying with one of the new methods:
curl -s --data '{
"jsonrpc":"2.0",
"method":"database_api.list_collateralized_conversion_requests",
"params":{"start":[],"limit":10,"order":"by_account"},
"id":1
}' http://127.0.0.1:8090
But it returns empty for me since I haven't started a conversion request. I still have to investigate how to broadcast one of these requests. As it says in hive_operations.hpp:
* Similar to convert_operation, this operation instructs the blockchain to convert HIVE to HBD.
* The operation is performed after HIVE_COLLATERALIZED_CONVERSION_DELAY, but owner gets HBD
* immediately. The price risk is cussioned by extra HIVE (see HIVE_COLLATERAL_RATIO). After actual
* conversion takes place the excess HIVE is returned to the owner.
So presumably, it'd be similar to Convert HBD To HIVE, only in reverse right? Well, I'd have to do it raw, though, since no client understands this operation.
Maybe later.
See previous tintoy posts: search?q=tintoy/hive-139531