File tree Expand file tree Collapse file tree 15 files changed +100
-100
lines changed
ironfish-cli/src/commands/wallet Expand file tree Collapse file tree 15 files changed +100
-100
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ export class AddressCommand extends IronfishCommand {
10
10
11
11
The address for an account is the accounts public key, see more here: https://ironfish.network/docs/whitepaper/5_account`
12
12
13
- static flags = {
14
- ...RemoteFlags ,
15
- }
16
-
17
13
static args = {
18
14
account : Args . string ( {
19
15
required : false ,
20
16
description : 'Name of the account to get the address for' ,
21
17
} ) ,
22
18
}
23
19
20
+ static flags = {
21
+ ...RemoteFlags ,
22
+ }
23
+
24
24
async start ( ) : Promise < void > {
25
25
const { args } = await this . parse ( AddressCommand )
26
26
const { account } = args
Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ const MIN_ASSET_NAME_COLUMN_WIDTH = ASSET_NAME_LENGTH / 2 + 1
25
25
export class AssetsCommand extends IronfishCommand {
26
26
static description = `Display the wallet's assets`
27
27
28
+ static args = {
29
+ account : Args . string ( {
30
+ required : false ,
31
+ description : 'Name of the account. DEPRECATED: use --account flag' ,
32
+ } ) ,
33
+ }
34
+
28
35
static flags = {
29
36
...RemoteFlags ,
30
37
...TableFlags ,
@@ -34,13 +41,6 @@ export class AssetsCommand extends IronfishCommand {
34
41
} ) ,
35
42
}
36
43
37
- static args = {
38
- account : Args . string ( {
39
- required : false ,
40
- description : 'Name of the account. DEPRECATED: use --account flag' ,
41
- } ) ,
42
- }
43
-
44
44
async start ( ) : Promise < void > {
45
45
const { flags, args } = await this . parse ( AssetsCommand )
46
46
// TODO: remove account arg
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ export class BalanceCommand extends IronfishCommand {
15
15
Available to spend balance is your coins from transactions that have been mined on blocks on your main chain.\n\
16
16
Balance is your coins from all of your transactions, even if they are on forks or not yet included as part of a mined block.'
17
17
18
+ static args = {
19
+ account : Args . string ( {
20
+ required : false ,
21
+ description : 'Name of the account to get balance for. DEPRECATED: use --account flag' ,
22
+ } ) ,
23
+ }
24
+
18
25
static flags = {
19
26
...RemoteFlags ,
20
27
account : Flags . string ( {
@@ -39,13 +46,6 @@ export class BalanceCommand extends IronfishCommand {
39
46
} ) ,
40
47
}
41
48
42
- static args = {
43
- account : Args . string ( {
44
- required : false ,
45
- description : 'Name of the account to get balance for. DEPRECATED: use --account flag' ,
46
- } ) ,
47
- }
48
-
49
49
async start ( ) : Promise < void > {
50
50
const { flags, args } = await this . parse ( BalanceCommand )
51
51
// TODO: remove account arg
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ type AssetBalancePairs = { asset: RpcAsset; balance: GetBalancesResponse['balanc
13
13
export class BalancesCommand extends IronfishCommand {
14
14
static description = `Display the account's balances for all assets`
15
15
16
+ static args = {
17
+ account : Args . string ( {
18
+ required : false ,
19
+ description : 'Name of the account to get balances for. DEPRECATED: use --account flag' ,
20
+ } ) ,
21
+ }
22
+
16
23
static flags = {
17
24
...RemoteFlags ,
18
25
...TableFlags ,
@@ -30,13 +37,6 @@ export class BalancesCommand extends IronfishCommand {
30
37
} ) ,
31
38
}
32
39
33
- static args = {
34
- account : Args . string ( {
35
- required : false ,
36
- description : 'Name of the account to get balances for. DEPRECATED: use --account flag' ,
37
- } ) ,
38
- }
39
-
40
40
async start ( ) : Promise < void > {
41
41
const { flags, args } = await this . parse ( BalancesCommand )
42
42
const client = await this . connectRpc ( )
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ export class ExportCommand extends IronfishCommand {
13
13
static description = `Export an account`
14
14
static enableJsonFlag = true
15
15
16
+ static args = {
17
+ account : Args . string ( {
18
+ required : false ,
19
+ description : 'Name of the account to export' ,
20
+ } ) ,
21
+ }
22
+
16
23
static flags = {
17
24
...RemoteFlags ,
18
25
...JsonFlags ,
@@ -39,13 +46,6 @@ export class ExportCommand extends IronfishCommand {
39
46
} ) ,
40
47
}
41
48
42
- static args = {
43
- account : Args . string ( {
44
- required : false ,
45
- description : 'Name of the account to export' ,
46
- } ) ,
47
- }
48
-
49
49
async start ( ) : Promise < unknown > {
50
50
const { flags, args } = await this . parse ( ExportCommand )
51
51
const { local, path : exportPath , viewonly : viewOnly } = flags
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ import { Ledger } from '../../utils/ledger'
17
17
export class ImportCommand extends IronfishCommand {
18
18
static description = `Import an account`
19
19
20
+ static args = {
21
+ blob : Args . string ( {
22
+ required : false ,
23
+ description : 'The copy-pasted output of wallet:export; or, a raw spending key' ,
24
+ } ) ,
25
+ }
26
+
20
27
static flags = {
21
28
...RemoteFlags ,
22
29
rescan : Flags . boolean ( {
@@ -40,13 +47,6 @@ export class ImportCommand extends IronfishCommand {
40
47
} ) ,
41
48
}
42
49
43
- static args = {
44
- blob : Args . string ( {
45
- required : false ,
46
- description : 'The copy-pasted output of wallet:export; or, a raw spending key' ,
47
- } ) ,
48
- }
49
-
50
50
async start ( ) : Promise < void > {
51
51
const { flags, args } = await this . parse ( ImportCommand )
52
52
const { blob } = args
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ const { sort: _, ...tableFlags } = TableFlags
12
12
export class NotesCommand extends IronfishCommand {
13
13
static description = `Display the account notes`
14
14
15
+ static args = {
16
+ account : Args . string ( {
17
+ required : false ,
18
+ description : 'Name of the account to get notes for. DEPRECATED: use --account flag' ,
19
+ } ) ,
20
+ }
21
+
15
22
static flags = {
16
23
...RemoteFlags ,
17
24
...tableFlags ,
@@ -21,13 +28,6 @@ export class NotesCommand extends IronfishCommand {
21
28
} ) ,
22
29
}
23
30
24
- static args = {
25
- account : Args . string ( {
26
- required : false ,
27
- description : 'Name of the account to get notes for. DEPRECATED: use --account flag' ,
28
- } ) ,
29
- }
30
-
31
31
async start ( ) : Promise < void > {
32
32
const { flags, args } = await this . parse ( NotesCommand )
33
33
// TODO: remove account arg
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ import { confirmOrQuit } from '../../ui'
10
10
export class ResetCommand extends IronfishCommand {
11
11
static description = `Resets the transaction of an account but keeps all keys.`
12
12
13
+ static args = {
14
+ account : Args . string ( {
15
+ required : true ,
16
+ description : 'Name of the account to reset' ,
17
+ } ) ,
18
+ }
19
+
13
20
static flags = {
14
21
...RemoteFlags ,
15
22
resetCreated : Flags . boolean ( {
@@ -26,13 +33,6 @@ export class ResetCommand extends IronfishCommand {
26
33
} ) ,
27
34
}
28
35
29
- static args = {
30
- account : Args . string ( {
31
- required : true ,
32
- description : 'Name of the account to reset' ,
33
- } ) ,
34
- }
35
-
36
36
async start ( ) : Promise < void > {
37
37
const { args, flags } = await this . parse ( ResetCommand )
38
38
const { account } = args
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ import { RemoteFlags } from '../../../flags'
8
8
export class ScanningOffCommand extends IronfishCommand {
9
9
static description = `Turn off scanning for an account. The wallet will no longer scan the blockchain for new account transactions.`
10
10
11
- static flags = {
12
- ...RemoteFlags ,
13
- }
14
-
15
11
static args = {
16
12
account : Args . string ( {
17
13
required : true ,
18
14
description : 'Name of the account to update' ,
19
15
} ) ,
20
16
}
21
17
18
+ static flags = {
19
+ ...RemoteFlags ,
20
+ }
21
+
22
22
async start ( ) : Promise < void > {
23
23
const { args } = await this . parse ( ScanningOffCommand )
24
24
const { account } = args
Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ import { RemoteFlags } from '../../../flags'
8
8
export class ScanningOnCommand extends IronfishCommand {
9
9
static description = `Turn on scanning for an account. Scanning is on by default. The wallet will scan the blockchain for new account transactions.`
10
10
11
- static flags = {
12
- ...RemoteFlags ,
13
- }
14
-
15
11
static args = {
16
12
account : Args . string ( {
17
13
required : true ,
18
14
description : 'Name of the account to update' ,
19
15
} ) ,
20
16
}
21
17
18
+ static flags = {
19
+ ...RemoteFlags ,
20
+ }
21
+
22
22
async start ( ) : Promise < void > {
23
23
const { args } = await this . parse ( ScanningOnCommand )
24
24
const { account } = args
You can’t perform that action at this time.
0 commit comments