@@ -2,7 +2,7 @@ import { SubgraphDeploymentID, formatGRT, commify } from '@graphprotocol/common-
2
2
import yaml from 'yaml'
3
3
import { GluegunPrint } from 'gluegun'
4
4
import { table , getBorderCharacters } from 'table'
5
- import { OutputFormat , parseOutputFormat , pickFields , wrapCell } from './command-helpers'
5
+ import { OutputFormat , parseOutputFormat , pickFields , wrapCell , formatDecimals } from './command-helpers'
6
6
import { IndexerManagementClient } from '@graphprotocol/indexer-common'
7
7
import gql from 'graphql-tag'
8
8
import {
@@ -151,7 +151,7 @@ export const displayIndexerAllocations = (
151
151
: table (
152
152
[
153
153
Object . keys ( allocations [ 0 ] ) ,
154
- ...allocations . map ( allocation => Object . values ( allocation ) . map ( value => wrapCell ( value , wrapWidth ) ) ) ,
154
+ ...allocations . map ( allocation => Object . values ( allocation ) . map ( formatDecimals ) . map ( value => wrapCell ( value , wrapWidth ) ) ) ,
155
155
] ,
156
156
{
157
157
border : getBorderCharacters ( 'norc' ) ,
@@ -167,7 +167,7 @@ export const displayIndexerAllocation = (
167
167
? JSON . stringify ( allocation , null , 2 )
168
168
: outputFormat === OutputFormat . Yaml
169
169
? yaml . stringify ( allocation ) . trim ( )
170
- : table ( [ Object . keys ( allocation ) , Object . values ( allocation ) . map ( value => wrapCell ( value , wrapWidth ) ) ] , {
170
+ : table ( [ Object . keys ( allocation ) , Object . values ( allocation ) . map ( formatDecimals ) . map ( value => wrapCell ( value , wrapWidth ) ) ] , {
171
171
border : getBorderCharacters ( 'norc' ) ,
172
172
} ) . trim ( )
173
173
0 commit comments