import { Message } from "@keplr-wallet/router" ; import { ROUTE } from "./constants" ; export class LedgerGetWebHIDFlagMsg extends Message < boolean > { public static type ( ) { return "ledger-get-webhid-flag" ; } constructor ( ) { super ( ) ; } validateBasic ( ) { } route ( ) { return ROUTE ; } type ( ) { return LedgerGetWebHIDFlagMsg . type ( ) ; } } export class LedgerSetWebHIDFlagMsg extends Message < void > { public static type ( ) { return "ledger-set-webhid-flag" ; } constructor ( public readonly flag ) { super ( ) ; } validateBasic ( ) { if ( this . flag == null ) { throw new Error ( "Flag is null" ) ; } } route ( ) { return ROUTE ; } type ( ) { return LedgerSetWebHIDFlagMsg . type ( ) ; } }