package io.novafoundation.nova.runtime.multiNetwork.runtime.types

import retrofit2.http.GET
import retrofit2.http.Url

private const val DEFAULT_TYPES_URL = "https://raw.githubusercontent.com/pezkuwichain/pezkuwi-wallet-utils/master/chains/types/default.json"

interface TypesFetcher {

    @GET
    suspend fun getTypes(@Url url: String): String
}

suspend fun TypesFetcher.getBaseTypes() = getTypes(DEFAULT_TYPES_URL)
