@xaidenlabs/uso 1.0.3 → 1.1.0

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.
package/README.md CHANGED
@@ -75,6 +75,23 @@ uso install anchor
75
75
 
76
76
  ---
77
77
 
78
+ ---
79
+
80
+ ### Project Scaffolding
81
+
82
+ Start a new project with a robust, pre-configured Anchor template.
83
+
84
+ ```bash
85
+ uso create <project-name>
86
+ ```
87
+
88
+ This generates a "batteries-included" workspace with:
89
+ - **Localnet Configuration**: `Anchor.toml` pre-wired for local development.
90
+ - **Test Suite**: A running example test file using the latest Anchor syntax.
91
+ - **Scripts**: NPM scripts for linting and testing.
92
+
93
+ ---
94
+
78
95
  ### Verification
79
96
 
80
97
  After installation, verify that all components are correctly configured and accessible in your system PATH.
package/bin/index.js CHANGED
@@ -1,8 +1,9 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  const { program } = require('commander');
3
3
  const { init } = require('../src/commands/init');
4
4
  const { doctor } = require('../src/commands/doctor');
5
5
  const { verify } = require('../src/commands/verify');
6
+ const { create } = require('../src/commands/create');
6
7
  const { build, test, deploy, clean } = require('../src/commands/workflow');
7
8
  const { uninstall } = require('../src/commands/uninstall');
8
9
 
@@ -27,6 +28,11 @@ program
27
28
  .description('Verify installation by building a test Anchor project')
28
29
  .action(verify);
29
30
 
31
+ program
32
+ .command('create <project_name>')
33
+ .description('Scaffold a new Anchor project')
34
+ .action(create);
35
+
30
36
  program
31
37
  .command('build')
32
38
  .description('Build the Anchor project (wraps "anchor build")')
@@ -0,0 +1,18 @@
1
+ [toolchain]
2
+
3
+ [features]
4
+ seeds = false
5
+ skip-lint = false
6
+
7
+ [programs.localnet]
8
+ my_test_project = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"
9
+
10
+ [registry]
11
+ url = "https://api.apr.dev"
12
+
13
+ [provider]
14
+ cluster = "Localnet"
15
+ wallet = "~/.config/solana/id.json"
16
+
17
+ [scripts]
18
+ test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
@@ -0,0 +1,36 @@
1
+ # Welcome to Your USO Project 🚀
2
+
3
+ Congratulations! You've just scaffolded a professional Solana workspace using the **Universal Solana Orchestrator (USO)**.
4
+
5
+ This isn't just a folder with files. It's a battle-tested setup ready for serious development.
6
+
7
+ ## 📂 Structure
8
+ - `programs/`: Your Rust smart contracts live here.
9
+ - `tests/`: Robust TypeScript tests using Anchor.
10
+ - `Anchor.toml`: Your project configuration.
11
+
12
+ ## ⚡ Quick Start
13
+
14
+ ### 1. Build
15
+ Compile your smart contract:
16
+ ```bash
17
+ anchor build
18
+ ```
19
+
20
+ ### 2. Test
21
+ Run your test suite against a local validator:
22
+ ```bash
23
+ anchor test
24
+ ```
25
+ *Note: This automatically spins up a local validator, deploys your program, runs tests, and shuts down.*
26
+
27
+ ### 3. Deploy (Devnet)
28
+ When you're ready to go public:
29
+ 1. Switch to devnet: `solana config set --url devnet`
30
+ 2. Airdrop SOL: `solana airdrop 2`
31
+ 3. Deploy: `anchor deploy`
32
+
33
+ ## 🧠 Need Help?
34
+ Run `uso doctor` if your environment feels weird. Usage instructions are also available via `uso help`.
35
+
36
+ Happy coding!