sensible-sdk
Version:
Sensible-SDK
25 lines (24 loc) • 596 B
TypeScript
export declare class CodeError extends Error {
code: number;
message: any;
constructor(code: number, msg?: any);
}
export declare enum ErrCode {
EC_OK = 0,
EC_INNER_ERROR = -1,
EC_INVALID_ARGUMENT = -2,
EC_SENSIBLE_API_ERROR = -3,
EC_INVALID_SIGNERS = -4,
EC_UTXOS_MORE_THAN_3 = -100,
EC_TOO_MANY_FT_UTXOS = -101,
EC_FIXED_TOKEN_SUPPLY = -102,
EC_INSUFFICIENT_BSV = -200,
EC_INSUFFICIENT_FT = -201,
EC_NFT_NOT_ON_SELL = -300
}
export declare const ErrInfo: {
InvalidArgument: {
code: ErrCode;
message: string;
};
};