fixed linting config

This commit is contained in:
Stephan D
2026-02-12 13:00:37 +01:00
parent 97395acd8f
commit 7cbcbb4b3c
42 changed files with 1813 additions and 237 deletions

View File

@@ -203,16 +203,22 @@ func (s *Service) startDiscoveryAnnouncers() {
}
version := appversion.Create().Short()
for _, network := range s.networks {
currencies := []string{shared.NativeCurrency(network)}
currencies := []discovery.CurrencyAnnouncement{{
Currency: shared.NativeCurrency(network),
Network: network.Name.String(),
}}
for _, token := range network.TokenConfigs {
if token.Symbol != "" {
currencies = append(currencies, token.Symbol)
currencies = append(currencies, discovery.CurrencyAnnouncement{
Currency: token.Symbol,
Network: network.Name.String(),
ContractAddress: token.ContractAddress,
})
}
}
announce := discovery.Announcement{
Service: "CRYPTO_RAIL_GATEWAY",
Rail: "CRYPTO",
Network: network.Name.String(),
Operations: []string{"balance.read", "payin.crypto", "payout.crypto", "fee.send", "observe.confirm"},
Currencies: currencies,
InvokeURI: s.invokeURI,