import { Message } from "@keplr-wallet/router" ; import { ROUTE } from "./constants" ; import { InteractionWaitingData } from "../types" ; export class PushInteractionDataMsg extends Message < void > { public static type ( ) { return "push-interaction-data" ; } constructor ( public readonly data ) { super ( ) ; } validateBasic ( ) { if ( ! this . data . type ) { throw new Error ( "Type should not be empty" ) ; } } route ( ) { return ROUTE ; } type ( ) { return PushInteractionDataMsg . type ( ) ; } } export class PushEventDataMsg extends Message < void > { public static type ( ) { return "push-event-data" ; } constructor ( public readonly data ) { super ( ) ; } validateBasic ( ) { if ( ! this . data . type ) { throw new Error ( "Type should not be empty" ) ; } } route ( ) { return ROUTE ; } type ( ) { return PushEventDataMsg . type ( ) ; } }