@yoroi/types
Version:
The Yoroi Types package of Yoroi SDK
24 lines (18 loc) • 576 B
text/typescript
import {AxiosRequestConfig} from 'axios'
import {ResolverReceiver} from './receiver'
export interface ResolverApi {
getCardanoAddresses(
args: {
resolve: ResolverReceiver['resolve']
strategy?: ResolverStrategy
},
fetcherOptions?: AxiosRequestConfig,
): Promise<ResolverAddressesResponse>
}
export type ResolverStrategy = 'all' | 'first'
export type ResolverAddressResponse = Readonly<{
address: string | null
error: Error | null
nameServer: string | null
}>
export type ResolverAddressesResponse = ReadonlyArray<ResolverAddressResponse>