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

@@ -199,16 +199,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: string(network.Name),
}}
for _, token := range network.TokenConfigs {
if token.Symbol != "" {
currencies = append(currencies, token.Symbol)
currencies = append(currencies, discovery.CurrencyAnnouncement{
Currency: token.Symbol,
Network: string(network.Name),
ContractAddress: token.ContractAddress,
})
}
}
announce := discovery.Announcement{
Service: "CRYPTO_RAIL_GATEWAY",
Rail: "CRYPTO",
Network: string(network.Name),
Operations: []string{"balance.read", "payin.crypto", "payout.crypto", "fee.send", "observe.confirm"},
Currencies: currencies,
InvokeURI: s.invokeURI,