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

Operator attestation policy #10721

Merged
merged 7 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
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
15 changes: 15 additions & 0 deletions packages/fast-usdc/test/exos/transaction-feed.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ test('happy aggregation', async t => {
});
});

test('disabled operator', async t => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good; the "unknown transaction" test mixed in testing this, and I wondered about reducing coverage.

const feedKit = makeFeedKit();
const { op1 } = await makeOperators(feedKit);
const evidence = MockCctpTxEvidences.AGORIC_PLUS_OSMO();

// works before disabling
await op1.operator.submitEvidence(evidence);

op1.admin.disable();

await t.throwsAsync(() => op1.operator.submitEvidence(evidence), {
message: 'submitEvidence for disabled operator',
});
});

// TODO: find a way to get this working
test.skip('forged source', async t => {
const feedKit = makeFeedKit();
Expand Down