Commit 63f6574
Update archiver/relay/solana-relay/staking to @audius/sdk ^15.3.1
Brings the four remaining pedalboard plugins still on the old SDK onto
^15.3.1, matching the version anti-abuse-oracle already runs in prod.
Plugin bumps:
- archiver: 10.0.0 -> ^15.3.1
- relay: 10.0.0 -> ^15.3.1
- solana-relay: 15.1.0 -> ^15.3.1
- staking: 10.0.0 -> ^15.3.1
Source migrations the new SDK requires:
- archiver: bare sdk() now exposes only the *generated* TracksApi,
which doesn't include getTrackDownloadUrl. Switch the archiver's
SDK helper to createSdkWithServices so the extended TracksApi
(with getTrackDownloadUrl) is wired up.
- relay: bump 10.0.0 -> ^15.3.1, migrate sdk() -> createSdkWithServices
so audiusSdk.services.entityManager (decodeManageEntity /
recoverSigner) keeps working; switch the AudiusSdk type alias to
AudiusSdkWithServices; drop the 'staging' environment value (no
longer accepted by the SDK) by routing stage to 'production'.
services.entityManager is now typed as optional on
AudiusSdkWithServices but is always populated in practice by the
SDK's default services, so add ! assertions at the call sites to
keep tsc happy. Update the sandbox script to use apiEndpoint for
the staging discovery node, and switch users.updateProfile (gone
in 15.3.1) to the equivalent users.updateUser({ id, userId,
metadata }) shape.
- solana-relay, staking: package.json bump only; no source changes
(the SDK types they use - FirstBuyQuoteResponse, RelayRequestBody -
are still exported, and staking has no @audius/sdk imports in src).
Intentionally NOT included:
- trending-challenge-rewards: stays at 14.1.0. The bump to 15.3.1
with createSdkWithServices was tried in 044f0e2 and explicitly
reverted in 2d9f65d; the revert reason isn't documented but
predates this PR, so honoring it.
- anti-abuse-oracle: already at ^15.3.1 on main (PR #34); the original
PR #20 AAO changes targeted the pre-migration source that no
longer exists.
Pre-existing main-branch issues not addressed by this PR:
- apps/relay/src/middleware/logging.ts(21,5) has a pino Logger<never>
type incompatibility introduced by the node 24 upgrade / pino pin
commits. Unrelated to the SDK and present without this change.
- viem / abitype .d.ts syntax errors under node_modules are flagged
by relay's TS 5.0.4 - same as on main, not introduced here.
Test plan:
- [x] npm install resolves all four plugins to @audius/sdk 15.3.1
- [x] tsc --noEmit on archiver, solana-relay, staking source is clean
- [x] relay tsc errors are reduced from ~10 to 1 (the pre-existing
pino issue); all 'services does not exist on UsersApi' errors
that existed on main are gone
- [ ] Smoke test the relay against a stage discovery node to confirm
decodeManageEntity / recoverSigner paths still work end-to-end
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 66f6cae commit 63f6574
13 files changed
Lines changed: 511 additions & 686 deletions
File tree
- apps
- archiver
- src
- relay
- src
- middleware
- scripts
- solana-relay
- staking
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 37 | + | |
42 | 38 | | |
43 | 39 | | |
44 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments