Commit Graph

9 Commits

Author SHA1 Message Date
Alfredo Garcia 3f94303bb2
feat(rpc): Add more fields to `getmininginfo` call (#8860)
* add additional fields to getmininginfo

* update openapi spec

* fix zebra-state standalone build

* make sure fields are not present when tip is 0
2024-09-18 11:05:25 +00:00
Alfredo Garcia 082cdad1c1
feat(rpc): Add a `generate` rpc method (#8849)
* implement `generate` rpc method

* update openapi

---------

Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
2024-09-09 21:51:37 +00:00
Alfredo Garcia 554a37d20a
feat(rpc): Add a `stop` rpc method (#8839)
* add a `stop` rpc method

* add todo comment

* add a ticket number to the TODO

Co-authored-by: Marek <mail@marek.onl>

---------

Co-authored-by: Marek <mail@marek.onl>
Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
2024-09-09 13:02:35 +00:00
Marek 9a616f46a5
fix(deps): Replace `serde_yaml` by `serde_yml` (#8825)
* Use `serde_yml` instead of `serde_yaml`

* Regenerate `openapi.yaml`
2024-09-02 19:00:26 +00:00
Alfredo Garcia 79f565cd34
fix openapi tool output order (#8785) 2024-08-20 22:13:34 +00:00
Alfredo Garcia aa62b57f7e
iupdate openapi spec (#8774) 2024-08-20 17:43:37 +00:00
Alfredo Garcia bf6ec7628b
fix(openapi): Add defaults to rpc methods where needed (#8616)
* add defaults for `getpeerinfo` and `getblocksubsidy`

* add default for `getmininginfo`

* add default to `getblockcount`

* add defaults to `getaddressbalance`, `getaddressutxos` and `getaddresstxids`

* add defaults to `validateaddress` and `z_validateaddress`

* add defaults to `getrawmempool` and `getdifficulty`

* add defaults to `sendrawtransaction` and `getrawtransaction`

* add defaults for `getnetworksolps` and `getnetworkhashps`

* add defaults for `submitblock` and `z_listunifiedreceivers`

* refactor and cleanup

* update spec

* add random request id

* add min transaction size to `GetRawTransaction` default

* improve `GetSubtrees` default

* change type to request id

* get new spec

* add a TODO

* add changelog entry
2024-06-20 14:25:31 +00:00
Alfredo Garcia 791e863029
fix(openapi): Remove trailing characters in descriptions (#8597)
* remove trailing characters in descriptions

* add changelog entry
2024-06-15 12:38:32 +00:00
Alfredo Garcia f2be73eebb
feat(rpc): OpenAPI spec (#8342)
* add an openapi generator

* fix run command

Co-authored-by: Marek <mail@marek.onl>

---------

Co-authored-by: Marek <mail@marek.onl>
2024-03-14 15:04:19 +00:00