Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 41x 41x 41x | import { APExtMetadataResponse, Cip6ExtMetadataResponse } from './HttpStakePoolMetadata'; import { Cardano } from '@cardano-sdk/core'; import { CustomError } from 'ts-custom-error'; import { Hash32ByteBase16 } from '@cardano-sdk/crypto'; export interface StakePoolMetadataService { getStakePoolMetadata(hash: Hash32ByteBase16, url: string): Promise<Cardano.StakePoolMetadata | CustomError>; getStakePoolExtendedMetadata(poolMetadata: Cardano.StakePoolMetadata): Promise<Cardano.ExtendedStakePoolMetadata>; getValidateStakePoolExtendedMetadata( metadata: Cardano.StakePoolMetadata ): Promise<Cardano.ExtendedStakePoolMetadata | CustomError | undefined>; } export interface SmashStakePoolDelistedService { getDelistedStakePoolIds(): Promise<Array<string> | CustomError>; } export enum ExtMetadataFormat { CIP6 = 'cip-6', AdaPools = 'ada-pools' } export type StakePoolExtMetadataResponse = APExtMetadataResponse | Cip6ExtMetadataResponse; |