import { Env , MessageSender } from "@keplr-wallet/router" ; import { ExtensionEnv } from "@keplr-wallet/router-extension" ; export class MockEnv { constructor ( protected readonly id , protected readonly url ) { } envProducer ( ) { return ( sender ) : Env => { const isInternalMsg = ExtensionEnv . checkIsInternalMessage ( sender , this . id , this . url ) ; return { isInternalMsg , requestInteraction : ( ) => { throw new Error ( "TODO: Implement me" ) ; } , } ; } ; } }