jholdstock
0a38bd8152
multi: Replace interface{} with 'any' alias
2023-08-18 14:32:17 +01:00
jholdstock
43a1b9fbdc
build: Update transitive deps.
2023-06-13 09:32:14 +01:00
jholdstock
85ebeefafa
build: Use tagged dcrwallet v3
2023-06-13 09:32:14 +01:00
Dave Collins
74579a2931
client: Use latest dcrwallet dep.
...
This updates the client module to use the latest release version of the
dcrwallet dep.
2023-06-11 10:26:56 +01:00
Dave Collins
6adbfcff20
client: Use latest dcrd deps.
...
This updates the client module to remove all replace directives and
use the latest release versions of the dcrd deps.
2023-06-09 10:06:51 -05:00
Jamie Holdstock
a5003c046b
client: Automatic fee payment from dcrwallet ( #382 )
2023-05-30 11:50:23 +01:00
jholdstock
0c06145d67
client: Use types 2.0.0
2023-03-16 16:14:59 +00:00
jholdstock
8303aa8536
client: Add tests for server signature validation.
...
New tests to ensure that the correct error is returned when the server signature is invalid.
2023-03-15 10:46:13 +00:00
jholdstock
79fd2f7bbe
client: Add additional test case for errors.
...
Tests now check that the correct vspd error code is returned by the
client.
2023-03-15 10:46:13 +00:00
jholdstock
be79a8e279
client: Hard-code validate func.
...
The client supported overriding the default server signature validation func. This was originally added to facilitate testing, but at the moment only serves to make using the client more clunky and error prone.
2023-03-15 10:46:13 +00:00
jholdstock
31a2726578
client: Add tests for error handling.
...
The tests are to ensure that vspd errors are correctly wrapped as types.ErrorResponse, and non-vspd errors contain adequate information for debugging.
A small change in the client code itself was required to satisfy these conditions.
2023-02-17 20:51:48 +00:00
jholdstock
36505b529c
client: Remove constructor.
...
The constructor contained no important logic and removing it makes the upcoming test code slightly more clean/convenient.
2023-02-17 20:51:48 +00:00
Jamie Holdstock
4acd57efbc
Add client module ( #359 )
...
* Add vspd client from dcrwallet.
* client: Extract and export ValidateServerSignature
* client: Add helper funcs.
* client: Add trace logging.
* client: Use existing error types.
* Add comments to explain error handling logic.
2022-11-28 11:16:00 -05:00