Skip to content

chore: point anti-abuse oracle endpoint at anti-abuse-oracle.audius.engineering#14380

Closed
dylanjeffers wants to merge 3 commits into
mainfrom
claude/elated-euler-e2e92c
Closed

chore: point anti-abuse oracle endpoint at anti-abuse-oracle.audius.engineering#14380
dylanjeffers wants to merge 3 commits into
mainfrom
claude/elated-euler-e2e92c

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

  • Switch the production anti-abuse oracle endpoint from the legacy https://discoveryprovider.audius.co host (and the older https://antiabuseoracle.audius.co fallback used by identity / the AAO pedalboard plugin) to https://anti-abuse-oracle.audius.engineering.
  • Updates touch: packages/web and packages/mobile env.prod, packages/identity-service AAO util default, the AAO pedalboard plugin's getAAOAttestation URL, the SDK services config (generateServicesConfig.ts source + autogenerated production.ts).
  • Discovery / validator node URLs were intentionally left untouched. Local dev defaults (docker-compose / env.dev) also untouched.

Test plan

  • Verify npm run verify passes
  • Spot-check that web/mobile production builds pick up the new AAO_ENDPOINT
  • Confirm identity service still resolves aaoEndpoint from env override in production (default change only affects unconfigured environments)
  • Confirm SDK consumers resolve the new endpoint via antiAbuseOracleSelector against the registered AAO eth address 0x9811BA3eAB1F2Cd9A2dFeDB19e8c2a69729DC8b6

🤖 Generated with Claude Code

dylanjeffers and others added 3 commits May 21, 2026 12:12
The host-contest page passed full absolute URLs (fullContestPage,
fullTrackPage) to react-router's navigate(), which treats them as
relative path segments — producing blank pages at URLs like
/host-contest/https:/audius.co/<handle>/contest/<slug>.

Switch to the relative-path helpers so submit, cancel, and delete
navigate to a real route.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
useCreateEvent's onMutate awaits sdk.events.generateEventId() before
priming the optimistic cache. The previous fire-and-forget mutate() meant
handleSubmit kept going and navigated to the contest page while the
optimistic write was still pending, so the contest query found nothing in
cache and the page stuck on its skeleton until the indexer caught up.

Switch to mutateAsync and await it so the optimistic event is in the
cache (and the SDK call has landed on the server) before we redirect.
On error we now bail out of navigation so the user can retry from the
form instead of landing on a half-created contest page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ngineering

Update the AAO endpoint config across web, mobile, identity service, SDK
services config, and the AAO pedalboard plugin to use the new
audius.engineering host. Discovery / validator node URLs are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 21, 2026

🦋 Changeset detected

Latest commit: a068342

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@audius/sdk Patch
@audius/sdk-legacy Patch
@audius/protocol-dashboard Patch
@audius/sp-actions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14380.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

@dylanjeffers
Copy link
Copy Markdown
Contributor Author

Superseded — the AAO-only changes have been split out to #14382 (clean branch off main, no contest changes), and the contest navigation fixes (, ) are already up in #14377. Closing this branch to avoid duplicate review.

@dylanjeffers
Copy link
Copy Markdown
Contributor Author

Superseded — the AAO-only changes have been split out to #14382 (clean branch off main, no contest changes), and the contest navigation fixes (0b3a05e7e5, 98102f2120) are already up in #14377. Closing this branch to avoid duplicate review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant