File tree Expand file tree Collapse file tree 4 files changed +25
-25
lines changed
ironfish-cli/src/commands/chain Expand file tree Collapse file tree 4 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,17 @@ import { RemoteFlags } from '../../flags'
8
8
export class BroadcastCommand extends IronfishCommand {
9
9
static description = 'broadcast a transaction to the network'
10
10
11
- static flags = {
12
- ...RemoteFlags ,
13
- }
14
-
15
11
static args = {
16
12
transaction : Args . string ( {
17
13
required : true ,
18
14
description : 'The transaction in hex encoding' ,
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 ( BroadcastCommand )
24
24
const { transaction } = args
Original file line number Diff line number Diff line change @@ -11,15 +11,6 @@ import { ProgressBar } from '../../ui'
11
11
export default class Export extends IronfishCommand {
12
12
static description = 'export the chain to a file'
13
13
14
- static flags = {
15
- ...RemoteFlags ,
16
- path : Flags . string ( {
17
- char : 'p' ,
18
- required : false ,
19
- description : 'The path to export the chain to' ,
20
- } ) ,
21
- }
22
-
23
14
static args = {
24
15
start : Args . integer ( {
25
16
default : Number ( GENESIS_BLOCK_SEQUENCE ) ,
@@ -32,6 +23,15 @@ export default class Export extends IronfishCommand {
32
23
} ) ,
33
24
}
34
25
26
+ static flags = {
27
+ ...RemoteFlags ,
28
+ path : Flags . string ( {
29
+ char : 'p' ,
30
+ required : false ,
31
+ description : 'The path to export the chain to' ,
32
+ } ) ,
33
+ }
34
+
35
35
async start ( ) : Promise < void > {
36
36
const { flags, args } = await this . parse ( Export )
37
37
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ export default class Power extends IronfishCommand {
10
10
static description = "show the network's mining power"
11
11
static enableJsonFlag = true
12
12
13
+ static args = {
14
+ block : Args . integer ( {
15
+ required : false ,
16
+ description : 'The sequence of the block to estimate network speed for' ,
17
+ } ) ,
18
+ }
19
+
13
20
static flags = {
14
21
...RemoteFlags ,
15
22
...JsonFlags ,
@@ -20,13 +27,6 @@ export default class Power extends IronfishCommand {
20
27
} ) ,
21
28
}
22
29
23
- static args = {
24
- block : Args . integer ( {
25
- required : false ,
26
- description : 'The sequence of the block to estimate network speed for' ,
27
- } ) ,
28
- }
29
-
30
30
async start ( ) : Promise < unknown > {
31
31
const { flags, args } = await this . parse ( Power )
32
32
Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ export class TransactionInfo extends IronfishCommand {
12
12
static description = 'show transaction information'
13
13
static enableJsonFlag = true
14
14
15
- static flags = {
16
- ...RemoteFlags ,
17
- ...JsonFlags ,
18
- }
19
-
20
15
static args = {
21
16
hash : Args . string ( {
22
17
required : true ,
23
18
description : 'Hash of the transaction' ,
24
19
} ) ,
25
20
}
26
21
22
+ static flags = {
23
+ ...RemoteFlags ,
24
+ ...JsonFlags ,
25
+ }
26
+
27
27
async start ( ) : Promise < unknown > {
28
28
const { args } = await this . parse ( TransactionInfo )
29
29
You can’t perform that action at this time.
0 commit comments