import { Node } from "@counterfactual/types" ; import { jsonRpcMethod } from "rpc-server" ; import { RequestHandler } from "../../../request-handler" ; import { NodeController } from "../../controller" ; export default class GetProposedAppInstancesController extends NodeController { @ jsonRpcMethod ( Node . RpcMethodName . GET_PROPOSED_APP_INSTANCES ) protected async executeMethodImplementation ( requestHandler ) { return { appInstances : await requestHandler . store . getProposedAppInstances ( ) } ; } }