Add siac command to get data from /host/contracts endpoint
Created by: nielscastien
This PR introduces a new siac
command to display contract information on the host.
The command uses 2 formats to display the data:
-
value
: shows information about the financial values of the obligation -
status
: shows information about the status of the obligation
A filter is used to specify what data should should be shown based on the obligation status.
Examples:
siac host contracts value rejected
shows financial information about all rejected obligations
siac host contracts status all
shows status information about all obligations
Data is always sorted by expiration height.
Closes issues #2416 (closed) and #2465 (closed)