mirror of
https://github.com/status-im/status-go.git
synced 2025-01-11 23:25:29 +00:00
c1d94e214a
This commit - moves the base currency list from status-desktop to status-go - introduces a new RPC GetCurrencies to fetch the list which can be shared across platforms Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
19 lines
277 B
Go
19 lines
277 B
Go
package appgeneral
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type API struct {
|
|
s *Service
|
|
}
|
|
|
|
func NewAPI(s *Service) *API {
|
|
return &API{s: s}
|
|
}
|
|
|
|
// Returns a list of currencies for user's selection
|
|
func (api *API) GetCurrencies(context context.Context) []*Currency {
|
|
return GetCurrencies()
|
|
}
|