UNPKG

@ckb-ccc/core

Version:

Core of CCC - CKBer's Codebase

32 lines (26 loc) 711 B
import { Address } from "../../address/index.js"; import { Client } from "../../client/index.js"; import { Signer, SignerSignType, SignerType } from "../signer/index.js"; /** * @public */ export abstract class SignerDummy extends Signer { get signType(): SignerSignType { return SignerSignType.Unknown; } constructor( client: Client, public readonly type: SignerType, ) { super(client); } async isConnected(): Promise<boolean> { return false; } async getInternalAddress(): Promise<string> { throw new Error("Can't get address from SignerDummy"); } async getAddressObjs(): Promise<Address[]> { throw new Error("Can't get addresses from SignerDummy"); } }