@@ -58,9 +58,11 @@ var showCmd = &cobra.Command{
5858 conn , err := connection .Connect (ctx , npa .Network )
5959 cobra .CheckErr (err )
6060
61- consensusConn := conn .Consensus ()
62- registryConn := consensusConn .Registry ()
63- roothashConn := consensusConn .RootHash ()
61+ consensusConn := conn .Consensus ().Core ()
62+ registryConn := conn .Consensus ().Registry ()
63+ roothashConn := conn .Consensus ().RootHash ()
64+ schedulerConn := conn .Consensus ().Scheduler ()
65+ stakingConn := conn .Consensus ().Staking ()
6466
6567 // Figure out the height to use if "latest".
6668 height , err := common .GetActualHeight (
@@ -170,7 +172,6 @@ var showCmd = &cobra.Command{
170172 }
171173 return
172174 case selValidators :
173- schedulerConn := consensusConn .Scheduler ()
174175 validators , err := schedulerConn .GetValidators (ctx , height )
175176 cobra .CheckErr (err )
176177 for _ , validator := range validators {
@@ -179,11 +180,9 @@ var showCmd = &cobra.Command{
179180 }
180181 return
181182 case selNativeToken :
182- stakingConn := consensusConn .Staking ()
183183 showNativeToken (ctx , height , npa , stakingConn )
184184 return
185185 case selGasCosts :
186- stakingConn := consensusConn .Staking ()
187186 consensusParams , err := stakingConn .ConsensusParameters (ctx , height )
188187 cobra .CheckErr (err )
189188
@@ -236,7 +235,7 @@ var showCmd = &cobra.Command{
236235 ID : member .PublicKey ,
237236 }
238237
239- node , err := consensusConn . Registry () .GetNode (ctx , nodeQuery )
238+ node , err := registryConn .GetNode (ctx , nodeQuery )
240239 cobra .CheckErr (err )
241240
242241 output = append (output , []string {
@@ -252,7 +251,7 @@ var showCmd = &cobra.Command{
252251 }
253252 return
254253 case selParameters :
255- showParameters (ctx , npa , height , consensusConn )
254+ showParameters (ctx , npa , height , conn . Consensus () )
256255 return
257256
258257 default :
@@ -389,7 +388,7 @@ func showNativeToken(ctx context.Context, height int64, npa *common.NPASelection
389388 }
390389}
391390
392- func showParameters (ctx context.Context , npa * common.NPASelection , height int64 , cons consensus.ClientBackend ) {
391+ func showParameters (ctx context.Context , npa * common.NPASelection , height int64 , cons consensus.Services ) {
393392 checkErr := func (what string , err error ) {
394393 if err != nil {
395394 cobra .CheckErr (fmt .Errorf ("%s: %w" , what , err ))
@@ -400,7 +399,7 @@ func showParameters(ctx context.Context, npa *common.NPASelection, height int64,
400399 // not allowed on the public grpc node and the keymanager would require a
401400 // ServicesBackend instead of the ClientBackend that the Oasis Client SDK
402401 // provides.
403- genesisDoc , err := cons .GetGenesisDocument (ctx )
402+ genesisDoc , err := cons .Core (). GetGenesisDocument (ctx )
404403 checkErr ("GetGenesisDocument" , err )
405404 consensusParams := genesisDoc .Consensus
406405 keymanagerParams := genesisDoc .KeyManager
0 commit comments