fixed linting config
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user