import { Router } from "@keplr-wallet/router" ; import { LedgerGetWebHIDFlagMsg , LedgerSetWebHIDFlagMsg } from "./messages" ; import { ROUTE } from "./constants" ; import { getHandler } from "./handler" ; import { LedgerService } from "./service" ; export function init ( router , service ) { router . registerMessage ( LedgerGetWebHIDFlagMsg ) ; router . registerMessage ( LedgerSetWebHIDFlagMsg ) ; router . addHandler ( ROUTE , getHandler ( service ) ) ; }