Documentation ¶
Overview ¶
Package validate handles the validation of Rosetta API implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Directory for storing validate-rosetta data. Directory string `json:"directory"` Log struct { Blocks bool `json:"blocks"` } `json:"log"` // Network specifies the specific network to test against. Network api.NetworkIdentifier `json:"network"` // OfflineURL specifies the base URL for an "offline" Rosetta API server. OfflineURL string `json:"offline_url"` // OnlineURL specifies the base URL for an "online" Rosetta API server. OnlineURL string `json:"online_url"` // StatusPort specifies the port for the Status HTTP Server. If unspecified, // the Status HTTP Server will not be run. StatusPort uint16 `json:"status_port"` }
Config defines the configuration for validate-rosetta.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler compares the inferred account balances from transaction operations against the balance reported by the Rosetta server.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter reports on activity/progress by the various validation processes.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner encapsulates the validation processes for Rosetta APIs.
func New ¶
New instantiates a new Runner to do validation. If a status port is specified, this will also start up the Status HTTP server in the background.
func (*Runner) ValidateConstructionAPI ¶
ValidateConstructionAPI validates the Rosetta Construction API of an implementation.
Click to show internal directories.
Click to hide internal directories.