import { MainProtocolSymbols } from '@airgap/coinlib-core' ; export class StorageMock { private readonly data : any = { wallets : [ { protocolIdentifier : MainProtocolSymbols . BTC , publicKey : 'xpub6EWbRuGLw9bTVVU9HE2MqT5QQ7zm9G64QgeZ5SY7qPWbciM7FyyG9BP2id1ewqZipXVWx2racXMMRvF1jB8S4syc1RzYRjnBhuq425KKYx5' , isExtendedPublicKey : true , derivationPath : "m/44'/0'/0'" , addresses : [ ] , marketSample : [ ] , minuteMarketSample : [ ] , dailyMarketSample : [ ] , hourlyMarketSample : [ ] } ] } ; public create ( ) { return Promise . resolve ( ) ; } public defineDriver ( ) { return Promise . resolve ( ) ; } public get ( key ) { return new Promise ( ( resolve , _reject ) => { resolve ( this . data [ key ] ) ; } ) ; } public set ( key , value ) { return new Promise ( ( resolve , _reject ) => { this . data [ key ] = value ; resolve ( ) ; } ) ; } public remove ( key ) { return new Promise ( ( resolve , _reject ) => { delete this . data [ key ] ; resolve ( ) ; } ) ; } public ready ( ) { return Promise . resolve ( ) ; } }