Skip to content

Commit

Permalink
Merge pull request #224 from ar-io/fix-type-for-epoch-observations
Browse files Browse the repository at this point in the history
fix: use AoEpochObservationData type to match what is coming back from contract
  • Loading branch information
dtfiedler authored Oct 9, 2024
2 parents 46548fa + 684abf3 commit 299dc0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export type AoRegistrationFees = Record<
permabuy: number;
}
>;
export type AoObservations = Record<number, AoEpochObservationData>;
export type AoEpochIndex = number;

export interface AoIOState {
Expand Down Expand Up @@ -158,7 +157,7 @@ export type AoEpochSettings = {
export type AoEpochData = {
epochIndex: AoEpochIndex;
startHeight: BlockHeight;
observations: AoObservations;
observations: AoEpochObservationData;
prescribedObservers: AoWeightedObserver[];
startTimestamp: Timestamp;
endTimestamp: Timestamp;
Expand Down

0 comments on commit 299dc0d

Please sign in to comment.