Add getVersion, getStatus and getLastAnchor functions
setNetwork now allows a custom URL with the old testnet and mainnet options. This is useful for local development.
Make use of node modern features like fetch and modules. With that we could remove node-fetch package.
Add lint scripts
Update JSDocs and documentation to dcrtime v2 results codes.
Cleanup and improve tests
If https://github.com/decred/dcrtime/pull/84 gets merged, last-digests route should be added to this PR as well.
Obs: Add /last-digests endpoint now that testnet is updated with the PR.
getVersion
,getStatus
andgetLastAnchor
functionssetNetwork
now allows a custom URL with the oldtestnet
andmainnet
options. This is useful for local development.fetch
andmodules
. With that we could removenode-fetch
package.dcrtime v2
results codes.If https://github.com/decred/dcrtime/pull/84 gets merged,
last-digests
route should be added to this PR as well. Obs: Add/last-digests
endpoint now that testnet is updated with the PR.