From ca60f6f493f34976753a33a8917e68ac1951a3f9 Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 18 Dec 2024 15:24:57 -0600 Subject: [PATCH] fix(types): revert prescribedObserver type --- src/types/io.ts | 4 ++-- tests/e2e/esm/index.test.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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) {