Skip to content

Commit

Permalink
Merge pull request #228 from ar-io/PE-6667-gateway-services-types
Browse files Browse the repository at this point in the history
fix(types): update gateways to include services
  • Loading branch information
dtfiedler authored Oct 14, 2024
2 parents d41ceef + a3fe5b4 commit d41c8cd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -177,6 +190,7 @@ export type AoGateway = {
operatorStake: number;
status: 'joined' | 'leaving';
weights: AoGatewayWeights;
services: AoGatewayServices;
};

export type AoGatewayStats = {
Expand Down

0 comments on commit d41c8cd

Please sign in to comment.