import { Message } from "@keplr-wallet/router" ; import { ROUTE } from "./constants" ; export class TryUpdateChainMsg extends Message < void > { public static type ( ) { return "try-update-chain" ; } constructor ( public readonly chainId ) { super ( ) ; } validateBasic ( ) { if ( ! this . chainId ) { throw new Error ( "Empty chain id" ) ; } } route ( ) { return ROUTE ; } type ( ) { return TryUpdateChainMsg . type ( ) ; } }