Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): revert prescribedObserver type #323

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/types/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions tests/e2e/esm/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading