@nervosnetwork/ckb-sdk-utils
Version:
Utils module of @nervosnetwork/ckb-sdk-core
37 lines (36 loc) • 1.39 kB
TypeScript
import ErrorCode from './ErrorCode.js';
export declare class AddressPayloadException extends Error {
code: ErrorCode;
type: 'short' | 'full' | undefined;
constructor(payload: Uint8Array, type?: 'short' | 'full');
}
export declare class AddressException extends Error {
code: ErrorCode;
type: 'short' | 'full' | undefined;
constructor(addr: string, stack: string, type?: 'short' | 'full');
}
export declare class CodeHashException extends Error {
code: ErrorCode;
constructor(codeHash: string);
}
export declare class HashTypeException extends Error {
code: ErrorCode;
constructor(hashType: string);
}
export declare class AddressFormatTypeException extends Error {
code: ErrorCode;
constructor(type: number);
}
export declare class AddressFormatTypeAndEncodeMethodNotMatchException extends Error {
code: ErrorCode;
constructor(type: number, bech32Type?: 'bech32' | 'bech32m' | 'unknown');
}
declare const _default: {
AddressPayloadException: typeof AddressPayloadException;
AddressException: typeof AddressException;
CodeHashException: typeof CodeHashException;
HashTypeException: typeof HashTypeException;
AddressFormatTypeException: typeof AddressFormatTypeException;
AddressFormatTypeAndEncodeMethodNotMatchException: typeof AddressFormatTypeAndEncodeMethodNotMatchException;
};
export default _default;