File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
packages/use-agently/src/commands Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,17 @@ export const balanceCommand = new Command("balance")
2323
2424 const format = getOutputFormat ( command ) ;
2525
26+ const website = `https://use-agently.com/account/${ wallet . address } ` ;
27+
2628 if ( format === "json" ) {
2729 outputJson ( {
28- ...result ,
30+ website : website ,
31+ address : result . address ,
32+ balance : {
33+ value : result . balance ,
34+ currency : result . currency ,
35+ network : result . network ,
36+ } ,
2937 provider : activeProvider ,
3038 otherProviders : otherProviders . map ( ( p ) => ( {
3139 type : p . type ,
@@ -35,7 +43,12 @@ export const balanceCommand = new Command("balance")
3543 } ) ) ,
3644 } ) ;
3745 } else {
38- outputTuiKeyValue ( { ...result , provider : activeProvider } ) ;
46+ outputTuiKeyValue ( {
47+ website : website ,
48+ balance : `${ result . balance } USD (${ result . currency } on ${ result . network } )` ,
49+ address : result . address ,
50+ provider : activeProvider ,
51+ } ) ;
3952
4053 if ( otherProviders . length > 0 ) {
4154 console . log ( "" ) ;
You can’t perform that action at this time.
0 commit comments