finlayer-cli 1.2.0 → 1.2.1
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/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -44,7 +44,7 @@ const showHelp = () => {
|
|
|
44
44
|
cmd('transfer', '-s <id> -r <id> -a <kubo> -k <key> [-m <memo>] [--rpc <url>]',
|
|
45
45
|
'Broadcast a signed transfer and stream Solana Devnet confirmation');
|
|
46
46
|
cmd('create-account', '[-o <file>]',
|
|
47
|
-
'Generate a new Ed25519 keypair and save it to keypair.json');
|
|
47
|
+
'Generate a new Ed25519 keypair and save it to ~/keypair.json');
|
|
48
48
|
console.log(divider);
|
|
49
49
|
console.log(chalk.white.bold(' OPTIONS'));
|
|
50
50
|
console.log(divider);
|
|
@@ -69,6 +69,8 @@ const showHelp = () => {
|
|
|
69
69
|
console.log(chalk.cyan(' 0ngn tx e27ff5a046f317a1c62e4f9a6d7c55620b7fd0602891cc7c45554b112c394b9f\n'));
|
|
70
70
|
console.log(chalk.gray(' # Send 1000 0NGN with a memo'));
|
|
71
71
|
console.log(chalk.cyan(' 0ngn transfer -s <from_id> -r <to_id> -a 100000 -k <priv_key> -m "Invoice #001"'));
|
|
72
|
+
console.log(chalk.gray('\n # Create a new account keypair'));
|
|
73
|
+
console.log(chalk.cyan(' finlayer create-account'));
|
|
72
74
|
console.log(divider);
|
|
73
75
|
console.log();
|
|
74
76
|
};
|
|
@@ -118,6 +120,12 @@ program.command('info')
|
|
|
118
120
|
console.log(label('L1 Anchor') + chalk.magenta('Solana Devnet via SPL Memo Program'));
|
|
119
121
|
console.log(label('Checkpoint') + chalk.magenta('Arweave / Irys (daily state root)'));
|
|
120
122
|
console.log(divider);
|
|
123
|
+
console.log(chalk.green(' GET STARTED'));
|
|
124
|
+
console.log(divider);
|
|
125
|
+
console.log(label('New Account') + chalk.cyan('finlayer create-account'));
|
|
126
|
+
console.log(label('Check Balance') + chalk.cyan('finlayer balance <account_id>'));
|
|
127
|
+
console.log(label('Send 0NGN') + chalk.cyan('finlayer transfer -s <id> -r <id> -a <kubo> -k <key>'));
|
|
128
|
+
console.log(divider);
|
|
121
129
|
console.log();
|
|
122
130
|
} catch (e) {
|
|
123
131
|
console.log(chalk.red(`\n [ERROR] Network unreachable — ${e.message}\n`));
|