Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/aao-endpoint-engineering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@audius/sdk': patch
---

Point the production anti-abuse oracle endpoint at `https://anti-abuse-oracle.audius.engineering`, replacing the old `https://discoveryprovider.audius.co` host in the SDK services config and supporting clients/services.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export async function getUserNormalizedScore(userId: number, wallet: string) {
}

export async function getAAOAttestation(handle: string) {
const url = `https://antiabuseoracle.audius.co/abuse/${handle}`
const url = `https://anti-abuse-oracle.audius.engineering/abuse/${handle}`
try {
const response = await fetch(url)
if (!response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion packages/identity-service/src/utils/antiAbuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { logger } = require('../logging')
const models = require('../models')

const aaoEndpoint =
config.get('aaoEndpoint') || 'https://antiabuseoracle.audius.co'
config.get('aaoEndpoint') || 'https://anti-abuse-oracle.audius.engineering'

const allowRules = new Set([-17, -18])
const blockRelayAbuseErrorCodes = new Set([0, 8, 10, 13, 15, 18])
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/services/env/env.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Env } from '@audius/common/services'
import Config from 'react-native-config'

export const env: Env = {
AAO_ENDPOINT: 'https://discoveryprovider.audius.co',
AAO_ENDPOINT: 'https://anti-abuse-oracle.audius.engineering',
AMPLITUDE_API_KEY: '86760558b8bb1b3aae61656efd4ddacb',
AMPLITUDE_PROXY: 'https://gain2.audius.co/2/httpapi',
API_KEY: '8acf5eb7436ea403ee536a7334faa5e9ada4b50f',
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/sdk/config/production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const productionConfig: SdkServicesConfig = {
],
"antiAbuseOracleNodes": {
"endpoints": [
"https://discoveryprovider.audius.co",
"https://anti-abuse-oracle.audius.engineering",
"https://audius-oracle.creatorseed.com",
"https://oracle.audius.endl.net"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/sdk/scripts/generateServicesConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const productionConfig: SdkServicesConfig = {
storageNodes: [],
antiAbuseOracleNodes: {
endpoints: [
'https://discoveryprovider.audius.co',
'https://anti-abuse-oracle.audius.engineering',
'https://audius-oracle.creatorseed.com',
'https://oracle.audius.endl.net'
],
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/services/env/env.prod.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Env } from '@audius/common/services'

export const env: Env = {
AAO_ENDPOINT: 'https://discoveryprovider.audius.co',
AAO_ENDPOINT: 'https://anti-abuse-oracle.audius.engineering',
AMPLITUDE_API_KEY: '86760558b8bb1b3aae61656efd4ddacb',
AMPLITUDE_PROXY: 'https://gain2.audius.co/2/httpapi',
API_KEY: '8acf5eb7436ea403ee536a7334faa5e9ada4b50f',
Expand Down
Loading