@xaidenlabs/uso 1.1.78 → 1.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,3 +13,7 @@ wallet = "~/.config/solana/id.json"
13
13
 
14
14
  [scripts]
15
15
  test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
16
+
17
+ [test]
18
+ # Wait (seconds) for the test validator to become available before running tests
19
+ startup_wait = 120
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaidenlabs/uso",
3
- "version": "1.1.78",
3
+ "version": "1.1.80",
4
4
  "description": "Universal Solana Development Toolchain. Native or Stealth WSL Mode. Build, test, and deploy without the friction.",
5
5
  "bin": {
6
6
  "uso": "bin/index.js"
@@ -277,6 +277,32 @@ else
277
277
  fi
278
278
  source $HOME/.cargo/env 2>/dev/null || true
279
279
 
280
+ # --- Solana SBPF Toolchain (required for anchor build) ---
281
+ if ! rustup target list 2>/dev/null | grep -q "sbpf-solana-solana"; then
282
+ echo "🎯 Installing Solana SBPF toolchain..."
283
+ if run_with_progress "🎯 Installing Solana SBPF target..." 35 55 rustup target add sbpf-solana-solana; then
284
+ echo "✅ SBPF target installed."
285
+ else
286
+ FAILURES="$FAILURES sbpf-target"
287
+ echo "❌ SBPF target installation failed."
288
+ fi
289
+ else
290
+ echo "✅ SBPF target already installed."
291
+ fi
292
+
293
+ # Install cargo-build-sbf
294
+ if ! command -v cargo-build-sbf &> /dev/null; then
295
+ echo "🔨 Installing cargo-build-sbf..."
296
+ if run_with_progress "🔨 Installing cargo-build-sbf..." 55 60 cargo install cargo-build-sbf; then
297
+ echo "✅ cargo-build-sbf installed."
298
+ else
299
+ FAILURES="$FAILURES cargo-build-sbf"
300
+ echo "⚠️ cargo-build-sbf install failed (run 'uso init' to retry)."
301
+ fi
302
+ else
303
+ echo "✅ cargo-build-sbf already installed."
304
+ fi
305
+
280
306
  # --- Solana ---
281
307
  export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
282
308
  if ! command -v solana &> /dev/null; then
@@ -339,7 +365,7 @@ if ! command -v anchor &> /dev/null; then
339
365
  # Install AVM if not present
340
366
  if ! command -v avm &> /dev/null; then
341
367
  echo "⚓ Installing AVM (compiling from source, ~5 min)..."
342
- if run_with_progress "⚓ Installing AVM (compiling from source)..." 60 85 cargo install --git https://github.com/coral-xyz/anchor avm --locked --force; then
368
+ if run_with_progress "⚓ Installing AVM (compiling from source)..." 65 85 cargo install --git https://github.com/coral-xyz/anchor avm --locked --force; then
343
369
  echo "✅ AVM compiled."
344
370
  else
345
371
  FAILURES="$FAILURES avm"