Skip to content

Commit

Permalink
Move LocalStateQuery module to cardano-cli
Browse files Browse the repository at this point in the history
First step of porting it to use the new API
  • Loading branch information
Jimbo4350 authored and dcoutts committed Jul 8, 2020
1 parent 5fb2df9 commit 61ac325
Show file tree
Hide file tree
Showing 7 changed files with 422 additions and 469 deletions.
2 changes: 0 additions & 2 deletions cardano-api/cardano-api.cabal
Expand Up @@ -27,7 +27,6 @@ library
other-modules: Cardano.Api.Convert
Cardano.Api.Error
Cardano.Api.LocalChainSync
Cardano.Api.LocalStateQuery
Cardano.Api.TxSubmit
Cardano.Api.TxSubmit.ErrorRender
Cardano.Api.TxSubmit.Types
Expand Down Expand Up @@ -145,4 +144,3 @@ test-suite cardano-api-test
-Wpartial-fields
-Wcompat
-threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T

14 changes: 2 additions & 12 deletions cardano-api/src/Cardano/Api.hs
Expand Up @@ -66,20 +66,11 @@ module Cardano.Api
-- * Slot related
, EpochNo

-- * Node local state queries
, LocalStateQueryError (..)
, QueryFilter (..)
, DelegationsAndRewards (..)
, renderLocalStateQueryError
, queryUTxOFromLocalState
, queryLocalLedgerState
, queryPParamsFromLocalState
, queryStakeDistributionFromLocalState
, queryDelegationsAndRewardsFromLocalState

-- * Node local chain sync related
, getLocalTip

, ByronAddress
, ShelleyAddress
, ShelleyCoin
, ShelleyCredentialStaking
, ShelleyGenesisVerificationHash
Expand Down Expand Up @@ -155,7 +146,6 @@ import Cardano.Api.Convert as X
import Cardano.Api.Error as X
import Cardano.Api.TxSubmit as X
import Cardano.Api.LocalChainSync
import Cardano.Api.LocalStateQuery

import qualified Cardano.Chain.Common as Byron
import qualified Cardano.Chain.UTxO as Byron
Expand Down

0 comments on commit 61ac325

Please sign in to comment.