Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db-sync: Refactor Shelley+ related types
- Loading branch information
Showing
7 changed files
with
63 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
module Cardano.DbSync.Era.Shelley.Types | ||
( CardanoBlock | ||
, CardanoProtocol | ||
, ShelleyAddress | ||
, ShelleyBlock | ||
, ShelleyDCert | ||
, ShelleyDelegCert | ||
, ShelleyHash | ||
, ShelleyMIRCert | ||
, ShelleyPoolCert | ||
, ShelleyPoolParams | ||
, ShelleyRewardAccount | ||
, ShelleyStakeCreds | ||
, ShelleyStakePoolKeyHash | ||
, ShelleyStakingCred | ||
, ShelleyStakingKeyHash | ||
, ShelleyTx | ||
, ShelleyTxBody | ||
, ShelleyTxId | ||
, ShelleyTxIn | ||
, ShelleyTxOut | ||
, ShelleyTxSeq | ||
) where | ||
|
||
import Cardano.DbSync.Config.Types (CardanoBlock, CardanoProtocol) | ||
|
||
import qualified Ouroboros.Consensus.Shelley.Ledger.Block as Shelley | ||
import Ouroboros.Consensus.Shelley.Protocol (StandardShelley) | ||
|
||
import qualified Shelley.Spec.Ledger.Address as Shelley | ||
import qualified Shelley.Spec.Ledger.BlockChain as Shelley | ||
import qualified Shelley.Spec.Ledger.Credential as Shelley | ||
import qualified Shelley.Spec.Ledger.Keys as Shelley | ||
import qualified Shelley.Spec.Ledger.Tx as Shelley | ||
import qualified Shelley.Spec.Ledger.TxBody as Shelley | ||
|
||
|
||
type ShelleyAddress = Shelley.Addr StandardShelley | ||
type ShelleyBlock = Shelley.ShelleyBlock StandardShelley | ||
type ShelleyDCert = Shelley.DCert StandardShelley | ||
type ShelleyDelegCert = Shelley.DelegCert StandardShelley | ||
type ShelleyHash = Shelley.ShelleyHash StandardShelley | ||
type ShelleyMIRCert = Shelley.MIRCert StandardShelley | ||
type ShelleyPoolCert = Shelley.PoolCert StandardShelley | ||
type ShelleyPoolParams = Shelley.PoolParams StandardShelley | ||
type ShelleyRewardAccount = Shelley.RewardAcnt StandardShelley | ||
type ShelleyStakeCreds = Shelley.StakeCreds StandardShelley | ||
type ShelleyStakingCred = Shelley.StakeCredential StandardShelley | ||
type ShelleyStakingKeyHash = Shelley.KeyHash 'Shelley.Staking StandardShelley | ||
type ShelleyStakePoolKeyHash = Shelley.KeyHash 'Shelley.StakePool StandardShelley | ||
type ShelleyTx = Shelley.Tx StandardShelley | ||
type ShelleyTxBody = Shelley.TxBody StandardShelley | ||
type ShelleyTxId = Shelley.TxId StandardShelley | ||
type ShelleyTxIn = Shelley.TxIn StandardShelley | ||
type ShelleyTxOut = Shelley.TxOut StandardShelley | ||
type ShelleyTxSeq = Shelley.TxSeq StandardShelley | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters