@airgap/coinlib-core
Version:
The @airgap/coinlib-core is a protocol agnostic library to prepare, sign and broadcast cryptocurrency transactions.
23 lines (22 loc) • 650 B
TypeScript
import { ICoinProtocol } from './ICoinProtocol';
export declare enum SubProtocolType {
ACCOUNT = "account",
TOKEN = "token"
}
export interface ICoinSubProtocol extends ICoinProtocol {
/**
* @deprecated Use `getIsSubProtocol()` instead.
*/
isSubProtocol: boolean;
/**
* @deprecated Use `getSubProtocolType()` instead.
*/
subProtocolType: SubProtocolType;
/**
* @deprecated Use `getContractAddress()` instead.
*/
contractAddress?: string;
getIsSubProtocol(): Promise<boolean>;
getSubProtocolType(): Promise<SubProtocolType>;
getContractAddress(): Promise<string | undefined>;
}