import { CryptoClient, IAirGapTransaction } from '..'; import { IAirGapAddressResult, IProtocolAddressCursor } from '../interfaces/IAirGapAddress'; import { SignedTransaction } from '../types/signed-transaction'; import { UnsignedTransaction } from '../types/unsigned-transaction'; import { ProtocolOptions } from '../utils/ProtocolOptions'; import { ProtocolSymbols } from '../utils/ProtocolSymbols'; export interface FeeDefaults { low: string; medium: string; high: string; } export interface ICoinBaseProtocol { /** * @deprecated Use `getSymbol()` instead. */ symbol: string; /** * @deprecated Use `getName()` instead. */ name: string; /** * @deprecated Use `getMarketSymbol()` instead. */ marketSymbol: string; /** * @deprecated Use `getFeeSymbol()` instead. */ feeSymbol: string; /** * @deprecated Use `getFeeDefaults()` instead. */ feeDefaults: FeeDefaults; /** * @deprecated Use `getDecimals()` instead. */ decimals: number; /** * @deprecated Use `getFeeDecimals()` instead. */ feeDecimals: number; /** * @deprecated Use `getIdentifier()` instead. */ identifier: ProtocolSymbols; /** * @deprecated Use `getUnits()` instead. */ units: { unitSymbol: string; factor: string; }[]; /** * @deprecated Use `getSupportsHD()` instead. */ supportsHD: boolean; /** * @deprecated Use `getStandardDerivationPath()` instead. */ standardDerivationPath: string; /** * @deprecated Use `getAddressIsCaseSensitive()` instead. */ addressIsCaseSensitive: boolean; /** * @deprecated Use `getAddressValidationPattern()` instead. */ addressValidationPattern: string; /** * @deprecated Use `getAddressPlaceholder()` instead. */ addressPlaceholder: string; /** * @deprecated Use `getOptions()` instead. */ options: ProtocolOptions; cryptoClient: CryptoClient; getSymbol(): Promise; getName(): Promise; getMarketSymbol(): Promise; getAssetSymbol(): Promise; getFeeSymbol(): Promise; getFeeDefaults(): Promise; getDecimals(): Promise; getFeeDecimals(): Promise; getIdentifier(): Promise; getUnits(): Promise<{ unitSymbol: string; factor: string; }[]>; getSupportsHD(): Promise; getStandardDerivationPath(): Promise; getAddressIsCaseSensitive(): Promise; getAddressValidationPattern(): Promise; getAddressPlaceholder(): Promise; getOptions(): Promise; getAddressFromPublicKey(publicKey: string, cursor?: IProtocolAddressCursor): Promise; getAddressesFromPublicKey(publicKey: string, cursor?: IProtocolAddressCursor): Promise; getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise; getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise; getTransactionDetails(transaction: UnsignedTransaction, data?: { [key: string]: unknown; }): Promise; getTransactionDetailsFromSigned(transaction: SignedTransaction, data?: { [key: string]: unknown; }): Promise; verifyMessage(message: string, signature: string, publicKey: string): Promise; encryptAsymmetric(payload: string, publicKey: string): Promise; }