import { Provider , Platform } from './provider' ; import { Address , AddressType } from '..' ; export class DummyProvider extends Provider { sign ( message ) { console . log ( 'message' , message ) ; throw new Error ( 'Method not implemented.' ) ; } constructor ( platform = Platform . eth ) { super ( platform ) ; } async init ( ) { if ( this . platform === Platform . eth ) { this . address = new Address ( '0x26C5F390FF2033CbB44377361c63A3Dd2DE3121d' , AddressType . eth ) ; } else { this . address = new Address ( 'ckt1qyqxpayn272n8km2k08hzldynj992egs0waqnr8zjs' , AddressType . ckb ) ; } return this ; } async close ( ) { console . log ( 'do nothing' ) ; } }