@solard/cli 0.2.3 → 0.2.6
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/package.json +2 -2
- package/src/index.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solard/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Command-line interface for the Solard SDK.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"bun": ">=1.1.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@solard/sdk": "
|
|
21
|
+
"@solard/sdk": "0.2.6",
|
|
22
22
|
"bs58": "^6.0.0",
|
|
23
23
|
"@solana/web3.js": "^1.98.4"
|
|
24
24
|
},
|
package/src/index.ts
CHANGED
|
@@ -118,7 +118,8 @@ function help(): string {
|
|
|
118
118
|
return `${OWL} slrd — multi-wallet Solana CLI + SDK for traders and AI agents
|
|
119
119
|
|
|
120
120
|
Wallets and tokens
|
|
121
|
-
slrd
|
|
121
|
+
slrd wallets create [name] Generate and persist an encrypted Solana wallet
|
|
122
|
+
slrd wallet create [name] Alias for wallets create
|
|
122
123
|
slrd import <private_key> [name]
|
|
123
124
|
cat key.json | slrd import --stdin [name]
|
|
124
125
|
slrd wallets [--token <token>] [--addresses-only] Show SOL and registered-token balances
|
|
@@ -180,7 +181,7 @@ Transactions and ALTs
|
|
|
180
181
|
slrd alt extend <address> --wallet <wallet> <account...>
|
|
181
182
|
|
|
182
183
|
Environment
|
|
183
|
-
SLRD_DB_PATH shared SDK/CLI database; default
|
|
184
|
+
SLRD_DB_PATH shared SDK/CLI database; default ~/.solard/solard.sqlite (SOLARD_DB_PATH alias supported)
|
|
184
185
|
SLRD_MASTER_KEY required to create/import/decrypt stored wallets
|
|
185
186
|
RPC_ENDPOINT required only for chain operations
|
|
186
187
|
HELIUS_SENDER_URL regional/global Helius Sender endpoint used by launch scripts
|
|
@@ -329,7 +330,10 @@ async function main() {
|
|
|
329
330
|
]);
|
|
330
331
|
const slrd = createTraderSolard();
|
|
331
332
|
try {
|
|
332
|
-
if (
|
|
333
|
+
if (
|
|
334
|
+
(command === "wallet" || command === "wallets") &&
|
|
335
|
+
values[0] === "create"
|
|
336
|
+
) {
|
|
333
337
|
const wallet = slrd.createWallet(values[1]);
|
|
334
338
|
emit(`${OWL} created @${wallet.name} ${wallet.address}\n`);
|
|
335
339
|
return;
|