icon-project / icon-bridge

The centralized bridge of ICON
Apache License 2.0
21 stars 15 forks source link

feat(bmr): Add information about relay node stats #767

Open andrii-kl opened 1 year ago

andrii-kl commented 1 year ago

Overview

Implement endpoint with authentication, to provide Relay stats.

Example:

------------------------------------------------
chain 1 -> chain 288
Received 256 transfers
Successfully processed 234 transfers
Success rate: 91.40%
Token name: USDC, transfer volume:25000 USDC, earned fee:25.31 USDC
Token name: DAI, transfer volume:9800 USDC, earned fee:12.58 DAI
Balance relay wallet: 200 ICX
------------------------------------------------
chain 42161 -> chain 1
Received 1678 transfers
Successfully processed 1620 transfers
Success rate: 96.54%
Token name: USDC, transfer volume:96250 USDC, earned fee:150.96 USDC
Balance relay wallet: 20 BNB
------------------------------------------------

Story

As a [Relay owner/manager/admin], I want [to know the relay stats] so that [make relay working process transparent and traceable]

CyrusVorwald commented 1 year ago

This is a great idea. Is this example from another relay implementation?

andrii-kl commented 1 year ago

@CyrusVorwald-ICON Yes, it is from the cbridge project with small changes

andrii-kl commented 1 year ago

In the process of discussion: https://github.com/icon-project/icon-bridge/discussions/806