Skip to content

Commit

Permalink
fix(types): update gateways to include services
Browse files Browse the repository at this point in the history
These services represent additional services operators provide for bundling and eventually payment
  • Loading branch information
dtfiedler committed Oct 14, 2024
1 parent d41ceef commit a3fe5b4
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 a3fe5b4

Please sign in to comment.