Archived
1
0
Fork 0
Commit graph

7 commits

Author SHA1 Message Date
d2d1503779
feat: ETC support and notifications tests
- Add ETC to the list of supported coins. A new `coin` setting can be
  configured to avoid conflict with `eth`. Mind the lowercase. By default,
  flexassitant will try to deduce the coin from the miner's address (with eth by
  default, not etc). (#5)

- Add `test` (true/false) to `notifications` section to test notifications with
  random values fetched from the Flexpool API

- Fix typo in the configuration example (#6)

BREAKING CHANGE: `notification-templates` configuration settings have been
renamed to `notifications`, with sections to configure balance, payment, block
and offline workers notifications, with `template` and `test` settings.

Signed-off-by: Julien Riou <julien@riou.xyz>
2022-02-27 20:26:36 +01:00
38d1dfb2d4
fix: Use template files on disk (#4)
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-11-05 08:16:36 +01:00
fed6459f9d
refacto: Remove overengineered convertAction func
Because it can be simply replaced by a condition.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-11-05 07:57:51 +01:00
632da28954
feat: Add notification templates (#2)
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-13 15:09:59 +02:00
ebbd4ac2cd
refactor: Use struct to parse API responses
- Return bytes for each request to the Flexpool API
- Delegate JSON marshalling the higher functions
- Use int64 when possible

BREAKING CHANGE: database structure has to be updated to use integer
instead of real. Please follow instructions to upgrade from 1.0 to 1.1.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-11 08:54:37 +02:00
c4f3854861
feat: Add offline/online workers notifications (#1)
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-10 20:56:50 +02:00
f51679193a
feat: Initial release (1.0)
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-06 19:07:41 +02:00