Files
hermez-node/api
Eduard S e731b79e96 Fix exit table, set delayed_withdrawn in exits
- In exit table, `instant_withdrawn`, `delayed_withdraw_request`, and
  `delayed_withdrawn` were referencing batch_num.  But these actions happen
  outside a batch, so they should reference a block_num.
- Process delayed withdrawns:
    - In Synchronizer, first match a Rollup delayed withdrawn request, with the
      WDelayer deposit (via TxHash), and store the owner and token associated
      with the delayed withdrawn.
    - In HistoryDB: store the owner and token of a delayed withdrawal request
      in the exit_tree, and set delayed_withdrawn when the withdraw is done in
      the WDelayer.
- Update dependency of sqlx to master
    - Last release of sqlx is from 2018 October, and it doesn't support
      `NamedQuery` with a slice of structs, which is used in this commit.
2020-11-13 16:53:16 +01:00
..
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-06 09:30:32 +01:00
2020-11-09 17:57:23 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-06 12:00:56 +01:00
2020-11-06 12:00:56 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-06 12:00:56 +01:00
2020-10-28 18:11:52 +01:00
2020-11-10 13:47:18 +01:00
2020-11-11 09:33:31 +01:00
2020-10-27 12:27:04 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-10 13:47:18 +01:00
2020-11-10 13:47:18 +01:00
2020-11-11 09:33:31 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-09 12:58:09 +01:00
2020-11-06 09:30:32 +01:00
2020-11-06 12:00:56 +01:00

Hermez API

Easy to deploy and scale API for Hermez operators. You will need to have docker and docker-compose installed on your machine in order to use this repo.

Documentation

As of now the documentation is not hosted anywhere, but you can easily do it yourself by running ./run.sh doc and then opening the documentation in your browser

Mock Up

To use a mock up of the endpoints in the API run ./run.sh doc (UI + mock up server) or ./run.sh mock (only mock up server). You can play with the mocked up endpoints using the web UI, importing swagger.yml into Postman or using your preferred language and using http://localhost:4010 as base URL.

Editor

It is recomended to edit swagger.yml using a dedicated editor as they provide spec validation and real time visualization. Of course you can use your prefered editor. To use the editor run ./run.sh editor and then opening the editor in your browser. Keep in mind that you will need to manually save the file otherwise you will lose the changes you made once you close your browser seshion or stop the server.

Note: Your browser may cache the swagger definition, so in order to see updated changes it may be needed to refresh the page without cache (Ctrl + Shift + R).