diff --git a/src/types/io.ts b/src/types/io.ts index 82fabc0f..57f0d590 100644 --- a/src/types/io.ts +++ b/src/types/io.ts @@ -152,14 +152,14 @@ export type AoEpochData = { epochIndex: AoEpochIndex; startHeight: BlockHeight; observations: AoEpochObservationData; - prescribedObservers: AoEpochPrescribedObservers; + prescribedObservers: AoWeightedObserver[]; prescribedNames: string[]; startTimestamp: Timestamp; endTimestamp: Timestamp; distributionTimestamp: Timestamp; + // @deprecated - use `getDistributions` to get distribution data for a given epoch distributions: AoEpochDistributionData; }; - export type AoTokenSupplyData = { total: number; circulating: number; diff --git a/tests/e2e/esm/index.test.ts b/tests/e2e/esm/index.test.ts index d63d71c8..a3169b32 100644 --- a/tests/e2e/esm/index.test.ts +++ b/tests/e2e/esm/index.test.ts @@ -402,8 +402,7 @@ describe('e2e esm tests', async () => { assert.ok(prescribedNames); }); - // TODO: come back to this once the observer contract is updated - it.skip('should return the prescribed observers for a given epoch', async () => { + it('should return the prescribed observers for a given epoch', async () => { const observers = await ario.getPrescribedObservers(); assert.ok(observers); for (const observer of observers) {