@xaidenlabs/uso 1.1.59 → 1.1.61
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/bin/index.js +11 -1
- package/package.json +1 -1
- package/src/commands/workflow.js +7 -0
package/bin/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const { init } = require('../src/commands/init');
|
|
|
4
4
|
const { doctor } = require('../src/commands/doctor');
|
|
5
5
|
const { verify } = require('../src/commands/verify');
|
|
6
6
|
const { create } = require('../src/commands/create');
|
|
7
|
-
const { build, test, deploy, clean, unblock, airdrop, validator, dev } = require('../src/commands/workflow');
|
|
7
|
+
const { build, test, deploy, clean, unblock, airdrop, address, balance, validator, dev } = require('../src/commands/workflow');
|
|
8
8
|
const { uninstall } = require('../src/commands/uninstall');
|
|
9
9
|
|
|
10
10
|
program
|
|
@@ -57,6 +57,16 @@ program
|
|
|
57
57
|
.description('Airdrop SOL to a wallet (wraps "solana airdrop")')
|
|
58
58
|
.action(airdrop);
|
|
59
59
|
|
|
60
|
+
program
|
|
61
|
+
.command('address')
|
|
62
|
+
.description('Show your wallet address (wraps "solana address")')
|
|
63
|
+
.action(address);
|
|
64
|
+
|
|
65
|
+
program
|
|
66
|
+
.command('balance [address]')
|
|
67
|
+
.description('Show SOL balance (wraps "solana balance")')
|
|
68
|
+
.action(balance);
|
|
69
|
+
|
|
60
70
|
program
|
|
61
71
|
.command('validator [args...]')
|
|
62
72
|
.alias('val')
|
package/package.json
CHANGED
package/src/commands/workflow.js
CHANGED
|
@@ -212,6 +212,11 @@ const test = async (args = []) => {
|
|
|
212
212
|
|
|
213
213
|
return runProxyCommand('test', userArgs, 'anchor');
|
|
214
214
|
};
|
|
215
|
+
const address = () => runProxyCommand('address', [], 'solana');
|
|
216
|
+
const balance = (addrArg) => {
|
|
217
|
+
const args = addrArg ? [addrArg] : [];
|
|
218
|
+
return runProxyCommand('balance', args, 'solana');
|
|
219
|
+
};
|
|
215
220
|
const airdrop = (amount, recipient) => {
|
|
216
221
|
const args = [amount];
|
|
217
222
|
if (recipient) args.push(recipient);
|
|
@@ -502,6 +507,8 @@ module.exports = {
|
|
|
502
507
|
clean,
|
|
503
508
|
unblock,
|
|
504
509
|
airdrop,
|
|
510
|
+
address,
|
|
511
|
+
balance,
|
|
505
512
|
validator,
|
|
506
513
|
dev
|
|
507
514
|
};
|