From a3fe5b41725d1648f19d8e72d71e59d41bed91fe Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Mon, 14 Oct 2024 09:56:41 -0500 Subject: [PATCH] fix(types): update gateways to include services These services represent additional services operators provide for bundling and eventually payment --- src/io.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/io.ts b/src/io.ts index c01be761..568ce397 100644 --- a/src/io.ts +++ b/src/io.ts @@ -165,6 +165,19 @@ export type AoEpochData = { distributions: AoEpochDistributionData; }; +export type AoGatewayService = { + fqdn: string; + path: string; + protocol: 'https'; + port: number; +}; + +export type AoGatewayServices = + | { + bundlers: AoGatewayService[]; + } + | undefined; // not required, for now + export type AoGateway = { settings: AoGatewaySettings; stats: AoGatewayStats; @@ -177,6 +190,7 @@ export type AoGateway = { operatorStake: number; status: 'joined' | 'leaving'; weights: AoGatewayWeights; + services: AoGatewayServices; }; export type AoGatewayStats = {