services/wallet/api.go
API
has 83 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type API struct {
s *Service
reader *Reader
router *router.Router
}
Method API.GetSuggestedRoutes
has 10 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
ctx context.Context,
sendType router.SendType,
addrFrom common.Address,
addrTo common.Address,
amountIn *hexutil.Big,
Method API.GetOwnedCollectiblesAsync
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func (api *API) GetOwnedCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, filter collectibles.Filter, offset int, limit int, dataType collectibles.CollectibleDataType, fetchCriteria collectibles.FetchCriteria) error {
Method API.GetBalanceHistoryRange
has 7 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func (api *API) GetBalanceHistoryRange(ctx context.Context, chainIDs []uint64, addresses []common.Address, tokenSymbol string, currencySymbol string, fromTimestamp uint64, _ uint64) ([]*history.ValuePoint, error) {