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