import { Node } from "@counterfactual/types" ; import { jsonRpcMethod } from "rpc-server" ; import { RequestHandler } from "../../../request-handler" ; import { NodeController } from "../../controller" ; export default class GetAllChannelAddressesController extends NodeController { @ jsonRpcMethod ( Node . RpcMethodName . GET_CHANNEL_ADDRESSES ) public executeMethod = super . executeMethod ; protected async executeMethodImplementation ( requestHandler ) { return { multisigAddresses : [ ... ( await requestHandler . store . getStateChannelsMap ( ) ) . keys ( ) ] } ; } }