dotbit
Version:
A complete .bit SDK and utilities in TypeScript
35 lines (34 loc) • 983 B
TypeScript
export declare enum BitIndexerErrorCode {
Error500 = 500,
ParamsInvalid = 10000,
MethodNotExist = 10001,
DbError = 10002,
AccountFormatInvalid = 20006,
AccountNotExist = 20007
}
export declare enum BitSubAccountErrorCode {
AccountIsRegistered = 1001,
TooManySubAccountsCount = 10000,
PermissionDenied = 30011,
TaskInProgress = 40008
}
export declare enum BitRegisterApiError {
OperationTooFrequent = 11013,
EditManagerPermissionDenied = 30011,
SameAddress = 30023
}
export declare enum BitErrorCode {
UnsupportedEVMChainId = 1000,
SubAccountStatusInvalid = 1001,
SubAccountDoNotSupportSubAccount = 1002,
SignerRequired = 1003,
BitBuilderRequired = 1004,
PluginRequired = 1005,
InvalidAccountId = 1006,
InvalidSubAccount = 1007
}
export declare class DotbitError extends Error {
code: number;
constructor(message: string, code: number);
}
export declare const CodedError: typeof DotbitError;