This adds constants for the possible status strings in the agenda info that is a part of the getblockchaininfo result. This is being done with the intent of decoupling the internal blockchain implementation of the threshold states from the RPC results. |
||
|---|---|---|
| .. | ||
| chainsvrcmds_test.go | ||
| chainsvrcmds.go | ||
| chainsvrresults_test.go | ||
| chainsvrresults.go | ||
| chainsvrwscmds_test.go | ||
| chainsvrwscmds.go | ||
| chainsvrwsntfns_test.go | ||
| chainsvrwsntfns.go | ||
| chainsvrwsresults.go | ||
| doc.go | ||
| go.mod | ||
| go.sum | ||
| helpers.go | ||
| method.go | ||
| README.md | ||
jsonrpc/types
Package types implements concrete types for marshalling to and from the dcrd JSON-RPC commands, return values, and notifications. A comprehensive suite of tests is provided to ensure proper functionality.
The provided types are automatically registered with dcrjson when the package is imported. Although this package was primarily written for dcrd, it has intentionally been designed so it can be used as a standalone package for any projects needing to marshal to and from dcrd JSON-RPC requests and responses.
Installation and Updating
This package is part of the github.com/decred/dcrd/rpc/jsonrpc/types/v2
module. Use the standard go tooling for working with modules to incorporate it.
License
Package types is licensed under the copyfree ISC License.