cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Primitive.Types

Description

This module contains the core primitive of a Wallet. This is roughly a Haskell translation of the Formal Specification for a Cardano Wallet

It doesn't contain any particular business-logic code, but defines a few primitive operations on Wallet core types as well.

Synopsis

Block

data Block Source #

A block on the chain, as the wallet sees it.

Instances

Instances details
Eq Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep Block Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data BlockHeader Source #

Instances

Instances details
Eq BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText ( ChainSyncLog BlockHeader ChainPoint ) Source #
Instance details

Defined in Cardano.Wallet.Network

type Rep BlockHeader Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

isGenesisBlockHeader :: BlockHeader -> Bool Source #

Check whether a block with a given BlockHeader is the genesis block.

data ChainPoint Source #

A point on the blockchain is either the genesis block, or a block with a hash that was created at a particular SlotNo .

TODO:

  • This type is essentially a copy of the ChainPoint type. We want to import it from there when overhauling our types.
  • That said, using WithOrigin would not be bad.
  • BlockHeader is also a good type for rerencing points on the chain, but it's less compatible with the types in ouroboros-network.

Instances

Instances details
Eq ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NoThunks ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText ( ChainSyncLog BlockHeader ChainPoint ) Source #
Instance details

Defined in Cardano.Wallet.Network

type Rep ChainPoint Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

compareSlot :: ChainPoint -> ChainPoint -> Ordering Source #

Compare the slot numbers of two ChainPoint s, but where the ChainPointAtGenesis comes before all other slot numbers.

type Slot = WithOrigin SlotNo Source #

A point in (slot) time, which is either genesis ( Origin ) or has a slot number ( At ).

In contrast to ChainPoint , the type Slot does not refer to a point on an actual chain with valid block hashes, but merely to a timeslot which can hold a single block. This implies:

  • Slot has a linear ordering implemented in the Ord class (where Origin < At slot ).
  • Using Slot in QuickCheck testing requires less context (such as an actual simulated chain.)

data WithOrigin t Source #

Constructors

Origin
At !t

Instances

Instances details
Functor WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Foldable WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Traversable WithOrigin
Instance details

Defined in Cardano.Slotting.Slot

Buildable Slot Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Bounded t => Bounded ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Eq t => Eq ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Ord t => Ord ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Show t => Show ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Generic ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Associated Types

type Rep ( WithOrigin t) :: Type -> Type Source #

NFData a => NFData ( WithOrigin a)
Instance details

Defined in Cardano.Slotting.Slot

( Serialise t, Typeable t) => FromCBOR ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

( Serialise t, Typeable t) => ToCBOR ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

NoThunks t => NoThunks ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

Serialise t => Serialise ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

HasHeader block => Anchorable ( WithOrigin SlotNo ) ( Anchor block) block
Instance details

Defined in Ouroboros.Network.AnchoredFragment

Anchorable ( WithOrigin SlotNo ) ( HeaderState blk) ( HeaderState blk)

Used by HeaderStateHistory but defined here, where it is not an orphan.

Instance details

Defined in Ouroboros.Consensus.HeaderValidation

GetTip l => Anchorable ( WithOrigin SlotNo ) (Checkpoint l) (Checkpoint l)
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.InMemory

Methods

asAnchor :: Checkpoint l -> Checkpoint l Source #

getAnchorMeasure :: Proxy (Checkpoint l) -> Checkpoint l -> WithOrigin SlotNo Source #

type Rep ( WithOrigin t)
Instance details

Defined in Cardano.Slotting.Slot

type Rep ( WithOrigin t) = D1 (' MetaData "WithOrigin" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' False ) ( C1 (' MetaCons "Origin" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "At" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 t)))

Delegation and stake pools

data CertificatePublicationTime Source #

Represents an abstract notion of a certificate publication time.

Certificates published at later times take precedence over certificates published at earlier times.

Constructors

CertificatePublicationTime

Fields

Instances

Instances details
Eq CertificatePublicationTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord CertificatePublicationTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show CertificatePublicationTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic CertificatePublicationTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep CertificatePublicationTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep CertificatePublicationTime = D1 (' MetaData "CertificatePublicationTime" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "CertificatePublicationTime" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "slotNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 SlotNo ) :*: S1 (' MetaSel (' Just "slotInternalIndex") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))

data DelegationCertificate Source #

Represent a delegation certificate.

Instances

Instances details
Eq DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep DelegationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data PoolLifeCycleStatus Source #

Indicates the current life cycle status of a pool.

Constructors

PoolNotRegistered

Indicates that a pool is not registered.

PoolRegistered PoolRegistrationCertificate

Indicates that a pool is registered BUT NOT marked for retirement. Records the latest registration certificate.

PoolRegisteredAndRetired PoolRegistrationCertificate PoolRetirementCertificate

Indicates that a pool is registered AND ALSO marked for retirement. Records the latest registration and retirement certificates.

data PoolRegistrationCertificate Source #

Pool ownership data from the stake pool registration certificate.

Instances

Instances details
Eq PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolRegistrationCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data PoolRetirementCertificate Source #

Constructors

PoolRetirementCertificate

Fields

Instances

Instances details
Eq PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolRetirementCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolRetirementCertificate = D1 (' MetaData "PoolRetirementCertificate" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "PoolRetirementCertificate" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "poolId") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 PoolId ) :*: S1 (' MetaSel (' Just "retirementEpoch") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 EpochNo )))

data PoolCertificate Source #

Sum-type of pool registration- and retirement- certificates. Mirrors the PoolCert type in cardano-ledger-specs.

Instances

Instances details
Eq PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data NonWalletCertificate Source #

Instances

Instances details
Eq NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT NonWalletCertificate ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT NonWalletCertificate ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep NonWalletCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep NonWalletCertificate = D1 (' MetaData "NonWalletCertificate" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "GenesisCertificate" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "MIRCertificate" ' PrefixI ' False ) ( U1 :: Type -> Type ))

data Certificate Source #

Instances

Instances details
Eq Certificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show Certificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic Certificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData Certificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep Certificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Network Parameters

data NetworkParameters Source #

Records the complete set of parameters currently in use by the network that are relevant to the wallet.

Instances

Instances details
Eq NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep NetworkParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data GenesisParameters Source #

Parameters defined by the genesis block .

At present, these values cannot be changed through the update system.

They can only be changed through a soft or hard fork.

Constructors

GenesisParameters

Fields

Instances

Instances details
Eq GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep GenesisParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep GenesisParameters = D1 (' MetaData "GenesisParameters" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "GenesisParameters" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getGenesisBlockHash") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Hash "Genesis")) :*: S1 (' MetaSel (' Just "getGenesisBlockDate") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 StartTime )))

data SlottingParameters Source #

Constructors

SlottingParameters

Fields

Instances

Instances details
Eq SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SlottingParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

data ProtocolParameters Source #

Protocol parameters that can be changed through the update system.

Constructors

ProtocolParameters

Fields

Instances

Instances details
Eq ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ProtocolParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ProtocolParameters = D1 (' MetaData "ProtocolParameters" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "ProtocolParameters" ' PrefixI ' True ) ((( S1 (' MetaSel (' Just "decentralizationLevel") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 DecentralizationLevel ) :*: S1 (' MetaSel (' Just "txParameters") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 TxParameters )) :*: ( S1 (' MetaSel (' Just "desiredNumberOfStakePools") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word16 ) :*: ( S1 (' MetaSel (' Just "minimumUTxO") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 MinimumUTxO ) :*: S1 (' MetaSel (' Just "stakeKeyDeposit") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Coin )))) :*: (( S1 (' MetaSel (' Just "eras") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( EraInfo EpochNo )) :*: S1 (' MetaSel (' Just "maximumCollateralInputCount") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word16 )) :*: ( S1 (' MetaSel (' Just "minimumCollateralPercentage") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: ( S1 (' MetaSel (' Just "executionUnitPrices") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe ExecutionUnitPrices )) :*: S1 (' MetaSel (' Just "currentNodeProtocolParameters") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe ProtocolParameters )))))))

data TxParameters Source #

Parameters that relate to the construction of transactions .

Constructors

TxParameters

Fields

Instances

Instances details
Eq TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep TxParameters Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

newtype TokenBundleMaxSize Source #

The maximum size of a serialized TokenBundle ( _maxValSize in the Alonzo ledger)

Instances

Instances details
Eq TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Arbitrary TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep TokenBundleMaxSize Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep TokenBundleMaxSize = D1 (' MetaData "TokenBundleMaxSize" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "TokenBundleMaxSize" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unTokenBundleMaxSize") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 TxSize )))

data EraInfo info Source #

Represents info about the starting epoch/time of all possible eras.

Field values can be either: - Just pastEpochBoundary - the network forked to this era in the past. - Just futureEpochBoundary - the hard-fork to this era is confirmed, but it hasn't yet occured. - Nothing - the hard-fork to this era is not yet confirmed.

Note: this type is not a practical way to tell what the current era is.

It is expected that there is an order, byron, shelley, allegra, mary , by which the Maybe fields are filled in.

It might be cumbersome to work with this type. But we don't need to. A product of Maybe is both what we can query from the node, and what we need to provide in the wallet API.

Instances

Instances details
Functor EraInfo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Eq info => Eq ( EraInfo info) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show info => Show ( EraInfo info) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ( EraInfo info) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Associated Types

type Rep ( EraInfo info) :: Type -> Type Source #

NFData info => NFData ( EraInfo info) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Methods

rnf :: EraInfo info -> () Source #

Buildable ( EraInfo EpochNo ) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ( EraInfo info) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

newtype ActiveSlotCoefficient Source #

Instances

Instances details
Eq ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Fractional ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Num ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT ActiveSlotCoefficient ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ActiveSlotCoefficient ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep ActiveSlotCoefficient Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ActiveSlotCoefficient = D1 (' MetaData "ActiveSlotCoefficient" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "ActiveSlotCoefficient" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unActiveSlotCoefficient") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Double )))

data DecentralizationLevel Source #

Indicates the current level of decentralization in the network.

According to the Design Specification for Delegation and Incentives in Cardano, the decentralization parameter d is a value in the range '[0, 1]', where:

  • d = '1' indicates that the network is completely federalized .
  • d = '0' indicates that the network is completely decentralized .

However, in Cardano Wallet, we represent the decentralization level as a percentage, where:

  • ' 0 %' indicates that the network is completely federalized .
  • '100 %' indicates that the network is completely decentralized .

Instances

Instances details
Bounded DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Eq DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep DecentralizationLevel Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep DecentralizationLevel = D1 (' MetaData "DecentralizationLevel" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "DecentralizationLevel" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getDecentralizationLevel") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Percentage )))

fromFederationPercentage :: Percentage -> DecentralizationLevel Source #

Percentage of federated nodes. Equal to the "decentralization parameter" d from the ledger specification.

newtype EpochLength Source #

Number of slots in a single epoch

Instances

Instances details
Eq EpochLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show EpochLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic EpochLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData EpochLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT EpochLength ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT EpochLength ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep EpochLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep EpochLength = D1 (' MetaData "EpochLength" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "EpochLength" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unEpochLength") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word32 )))

newtype EpochNo Source #

Constructors

EpochNo

Instances

Instances details
Bounded EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Enum EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Eq EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Num EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToHttpApiData EpochNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData EpochNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece EpochNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql EpochNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField EpochNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "protocolParametersHardforkEpoch" ProtocolParameters ( Maybe EpochNo ) Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

ToJSON ( ApiT EpochNo ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT EpochNo ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

Buildable ( EraInfo EpochNo ) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep EpochNo Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep EpochNo = D1 (' MetaData "EpochNo" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "EpochNo" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unEpochNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word31 )))

unsafeEpochNo :: HasCallStack => Word32 -> EpochNo Source #

Convert the specified value into an EpochNo , or fail if the value is too large.

newtype FeePolicy Source #

A linear equation of a free variable x . Represents the x -> a + b*x function where x can be either a transaction size in bytes or a number of inputs + outputs.

Instances

Instances details
Eq FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

PersistFieldSql FeePolicy Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField FeePolicy Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "protocolParametersFeePolicy" ProtocolParameters FeePolicy Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

type Rep FeePolicy Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep FeePolicy = D1 (' MetaData "FeePolicy" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "LinearFee" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( LinearFunction Double ))))

data LinearFunction a Source #

Constructors

LinearFunction

Fields

data SlotId Source #

A slot identifier is the combination of an epoch and slot.

Instances

Instances details
Eq SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SlotId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SlotId = D1 (' MetaData "SlotId" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "SlotId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "epochNumber") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 EpochNo ) :*: S1 (' MetaSel (' Just "slotNumber") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 SlotInEpoch )))

newtype SlotNo Source #

The 0-based index for the Ourboros time slot.

Constructors

SlotNo

Instances

Instances details
Bounded SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Enum SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Eq SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Num SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Ord SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Read SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Generic SlotNo
Instance details

Defined in Cardano.Slotting.Slot

NFData SlotNo
Instance details

Defined in Cardano.Slotting.Slot

ToJSON SlotNo
Instance details

Defined in Cardano.Slotting.Slot

FromJSON SlotNo
Instance details

Defined in Cardano.Slotting.Slot

FromCBOR SlotNo
Instance details

Defined in Cardano.Slotting.Slot

ToCBOR SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Buildable SlotNo Source #
Instance details

Defined in Cardano.Wallet.Orphans

Buildable Slot Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToHttpApiData SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

NoThunks SlotNo
Instance details

Defined in Cardano.Slotting.Slot

Serialise SlotNo
Instance details

Defined in Cardano.Slotting.Slot

PathPiece SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

SymbolToField "blockSlot" BlockHeader SlotNo Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "certSlot" DelegationCertificate SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "checkpointSlot" Checkpoint SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "localTxSubmissionLastSlot" LocalTxSubmission SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "poolOwnerSlot" PoolOwner SlotNo Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolProductionSlot" PoolProduction SlotNo Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRegistrationSlot" PoolRegistration SlotNo Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRetirementSlot" PoolRetirement SlotNo Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "rndStateAddressSlot" RndStateAddress SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "seqStateAddressSlot" SeqStateAddress SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "stakeKeyCertSlot" StakeKeyCertificate SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txMetaSlot" TxMeta SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoSlot" UTxO SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoTokenSlot" UTxOToken SlotNo Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txMetaSlotExpires" TxMeta ( Maybe SlotNo ) Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

HasField "ttl" ( TxBody era) SlotNo
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

ToJSON ( ApiT SlotNo ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT SlotNo ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

HasHeader block => Anchorable ( WithOrigin SlotNo ) ( Anchor block) block
Instance details

Defined in Ouroboros.Network.AnchoredFragment

Anchorable ( WithOrigin SlotNo ) ( HeaderState blk) ( HeaderState blk)

Used by HeaderStateHistory but defined here, where it is not an orphan.

Instance details

Defined in Ouroboros.Consensus.HeaderValidation

GetTip l => Anchorable ( WithOrigin SlotNo ) (Checkpoint l) (Checkpoint l)
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.InMemory

Methods

asAnchor :: Checkpoint l -> Checkpoint l Source #

getAnchorMeasure :: Proxy (Checkpoint l) -> Checkpoint l -> WithOrigin SlotNo Source #

HasExp ( StakeCreds era) ( Map ( Credential ' Staking era) SlotNo )
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

Embed ( StakeCreds era) ( Map ( Credential ' Staking era) SlotNo )
Instance details

Defined in Cardano.Ledger.Shelley.TxBody

type Rep SlotNo
Instance details

Defined in Cardano.Slotting.Slot

type Rep SlotNo = D1 (' MetaData "SlotNo" "Cardano.Slotting.Slot" "cardano-slotting-0.1.0.2-j5NuF73p5IFfcfvmth6tS" ' True ) ( C1 (' MetaCons "SlotNo" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unSlotNo") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word64 )))

newtype SlotLength Source #

Duration of a single slot.

Instances

Instances details
Eq SlotLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SlotLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SlotLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData SlotLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT SlotLength ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT SlotLength ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep SlotLength Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SlotLength = D1 (' MetaData "SlotLength" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "SlotLength" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unSlotLength") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 NominalDiffTime )))

newtype SlotInEpoch Source #

Instances

Instances details
Enum SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Eq SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Num SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT SlotInEpoch ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT SlotInEpoch ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep SlotInEpoch Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SlotInEpoch = D1 (' MetaData "SlotInEpoch" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "SlotInEpoch" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unSlotInEpoch") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Word32 )))

newtype StartTime Source #

Blockchain start time

Instances

Instances details
Eq StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT StartTime ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT StartTime ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep StartTime Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep StartTime = D1 (' MetaData "StartTime" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "StartTime" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 UTCTime )))

stabilityWindowByron :: SlottingParameters -> Quantity "block" Word64 Source #

In Byron, this stability window is equal to 2k slots, where _k_ is the $sel:getSecurityParameter:SlottingParameters

stabilityWindowShelley :: SlottingParameters -> Quantity "block" Word64 Source #

In Shelley, this stability window is equal to _3k/f_ slots where _k_ is the $sel:getSecurityParameter:SlottingParameters and _f_ is the ActiveSlotCoefficient .

data ExecutionUnits Source #

Constructors

ExecutionUnits

Fields

Instances

Instances details
Eq ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ExecutionUnits Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ExecutionUnits = D1 (' MetaData "ExecutionUnits" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "ExecutionUnits" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "executionSteps") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural ) :*: S1 (' MetaSel (' Just "executionMemory") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Natural )))

data ExecutionUnitPrices Source #

Instances

Instances details
Eq ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromJSON ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ExecutionUnitPrices Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep ExecutionUnitPrices = D1 (' MetaData "ExecutionUnitPrices" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "ExecutionUnitPrices" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "pricePerStep") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Rational ) :*: S1 (' MetaSel (' Just "pricePerMemoryUnit") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Rational )))

Wallet Metadata

data WalletMetadata Source #

Additional information about a wallet that can't simply be derived from the blockchain like Wallet s is.

Whereas Wallet s in Primitive can be updated using applyBlock , WalletMetadata can not*.

Instances

Instances details
Eq WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

newtype WalletId Source #

Instances

Instances details
Eq WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Buildable WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToHttpApiData WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "certWalletId" DelegationCertificate WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "checkpointWalletId" Checkpoint WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "cosignerKeyWalletId" CosignerKey WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "localTxSubmissionWalletId" LocalTxSubmission WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "privateKeyWalletId" PrivateKey WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "protocolParametersWalletId" ProtocolParameters WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "rewardWalletId" DelegationReward WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "rndStateAddressWalletId" RndStateAddress WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "rndStatePendingAddressWalletId" RndStatePendingAddress WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "rndStateWalletId" RndState WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "seqStateAddressWalletId" SeqStateAddress WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "seqStatePendingWalletId" SeqStatePendingIx WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "seqStateWalletId" SeqState WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "sharedStatePendingWalletId" SharedStatePendingIx WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "sharedStateWalletId" SharedState WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "stakeKeyCertWalletId" StakeKeyCertificate WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "txMetaWalletId" TxMeta WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoTokenWalletId" UTxOToken WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "utxoWalletId" UTxO WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

SymbolToField "walId" Wallet WalletId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

ToJSON ( ApiT WalletId ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT WalletId ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep WalletId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletId = D1 (' MetaData "WalletId" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "WalletId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getWalletId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Digest Blake2b_160 ))))

newtype WalletName Source #

Length-restricted name of a wallet

Instances

Instances details
Eq WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT WalletName ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT WalletName ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep WalletName Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletName = D1 (' MetaData "WalletName" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "WalletName" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getWalletName") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text )))

walletNameMinLength :: Int Source #

Calling 'fromText @WalletName' on shorter string will fail.

walletNameMaxLength :: Int Source #

Calling 'fromText @WalletName' on a longer string will fail.

data WalletDelegation Source #

Instances

Instances details
Eq WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

IsDelegatingTo WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegation Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegation = D1 (' MetaData "WalletDelegation" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "WalletDelegation" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "active") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 WalletDelegationStatus ) :*: S1 (' MetaSel (' Just "next") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 [ WalletDelegationNext ])))

data WalletDelegationStatus Source #

Instances

Instances details
Eq WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

IsDelegatingTo WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegationStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegationStatus = D1 (' MetaData "WalletDelegationStatus" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "NotDelegating" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "Delegating" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 PoolId )))

data WalletDelegationNext Source #

Instances

Instances details
Eq WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

IsDelegatingTo WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegationNext Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep WalletDelegationNext = D1 (' MetaData "WalletDelegationNext" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "WalletDelegationNext" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "changesAt") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 EpochNo ) :*: S1 (' MetaSel (' Just "status") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 WalletDelegationStatus )))

Stake Pools

newtype PoolId Source #

Identifies a stake pool. For Jörmungandr a PoolId is the blake2b-256 hash of the stake pool registration certificate.

Constructors

PoolId

Instances

Instances details
Eq PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Buildable PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToHttpApiData PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField PoolId Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "delistedPoolId" PoolDelistment PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolOwnerPoolId" PoolOwner PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolProductionPoolId" PoolProduction PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRegistrationPoolId" PoolRegistration PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRetirementPoolId" PoolRetirement PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "stakeDistributionPoolId" StakeDistribution PoolId Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "certPoolId" DelegationCertificate ( Maybe PoolId ) Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

ToJSON ( ApiT PoolId ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT PoolId ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep PoolId Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolId = D1 (' MetaData "PoolId" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "PoolId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getPoolId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ByteString )))

newtype PoolOwner Source #

A stake pool owner, which is a public key encoded in bech32 with prefix ed25519_pk.

Instances

Instances details
Eq PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read PoolOwner Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromJSON PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Buildable PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

PersistFieldSql PoolOwner Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField PoolOwner Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "poolOwnerOwner" PoolOwner PoolOwner Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

ToJSON ( ApiT PoolOwner ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT PoolOwner ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

PersistFieldSql [ PoolOwner ] Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField [ PoolOwner ] Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromText [ PoolOwner ] Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

type Rep PoolOwner Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolOwner = D1 (' MetaData "PoolOwner" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "PoolOwner" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getPoolOwner") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ByteString )))

data StakePoolMetadata Source #

Information about a stake pool.

The metadata information is not used directly by cardano-wallet, but rather passed straight through to API consumers.

Constructors

StakePoolMetadata

Fields

Instances

Instances details
Eq StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromJSON StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT StakePoolMetadata ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep StakePoolMetadata Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

newtype StakePoolMetadataHash Source #

A newtype to wrap metadata hash.

NOTE: not using the Hash type as this newtype is primarily for database interop which doesn't quite like DataKinds.

Instances

Instances details
Eq StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Buildable StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToHttpApiData StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "poolFetchAttemptsMetadataHash" PoolMetadataFetchAttempts StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolMetadataHash" PoolMetadata StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRegistrationMetadataHash" PoolRegistration ( Maybe StakePoolMetadataHash ) Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

ToJSON ( ApiT StakePoolMetadataHash ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT StakePoolMetadataHash ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep StakePoolMetadataHash Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep StakePoolMetadataHash = D1 (' MetaData "StakePoolMetadataHash" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "StakePoolMetadataHash" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ByteString )))

newtype StakePoolMetadataUrl Source #

A newtype to wrap metadata Url, mostly needed for database lookups and signature clarity.

Instances

Instances details
Eq StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

Show StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromJSON StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToHttpApiData StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

FromHttpApiData StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PathPiece StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistFieldSql StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "poolFetchAttemptsMetadataUrl" PoolMetadataFetchAttempts StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

SymbolToField "poolRegistrationMetadataUrl" PoolRegistration ( Maybe StakePoolMetadataUrl ) Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

ToJSON ( ApiT StakePoolMetadataUrl ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT StakePoolMetadataUrl ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep StakePoolMetadataUrl Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep StakePoolMetadataUrl = D1 (' MetaData "StakePoolMetadataUrl" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "StakePoolMetadataUrl" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text )))

newtype StakePoolTicker Source #

Very short name for a stake pool.

Instances

Instances details
Eq StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Ord StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromJSON StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

PersistFieldSql StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "poolMetadataTicker" PoolMetadata StakePoolTicker Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

type Rep StakePoolTicker Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep StakePoolTicker = D1 (' MetaData "StakePoolTicker" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "StakePoolTicker" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unStakePoolTicker") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Text )))

data StakeKeyCertificate Source #

Instances

Instances details
Eq StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Read StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

NFData StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

PersistFieldSql StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

SymbolToField "stakeKeyCertType" StakeKeyCertificate StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Schema

type Rep StakeKeyCertificate Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep StakeKeyCertificate = D1 (' MetaData "StakeKeyCertificate" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "StakeKeyRegistration" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "StakeKeyDeregistration" ' PrefixI ' False ) ( U1 :: Type -> Type ))

data PoolMetadataGCStatus Source #

Instances

Instances details
Eq PoolMetadataGCStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show PoolMetadataGCStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolMetadataGCStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT PoolMetadataGCStatus ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT PoolMetadataGCStatus ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep PoolMetadataGCStatus Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Querying

data SortOrder Source #

Represents a sort order, applicable to the results returned by a query.

Constructors

Ascending

Sort in ascending order.

Descending

Sort in descending order.

Instances

Instances details
Bounded SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Enum SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Eq SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SortOrder Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SortOrder = D1 (' MetaData "SortOrder" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "Ascending" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "Descending" ' PrefixI ' False ) ( U1 :: Type -> Type ))

Ranges

data Range a Source #

Represents a range of values.

A range is defined by two optional bounds:

  1. an inclusive lower bound
  2. an inclusive upper bound

There are four cases:

Value Range Represented Membership Function
Range ( Just x) ( Just y) [ x, y ] \p -> p >= x && p <= y
Range ( Just x) Nothing [ x, ∞ ) \p -> p >= x
Range Nothing ( Just y) (−∞, y ] \p -> p <= y
Range Nothing Nothing (−∞, ∞ ) \p -> True

wholeRange :: Range a Source #

The range that includes everything.

isAfterRange :: Ord a => a -> Range a -> Bool Source #

Returns True if (and only if) the given range has an upper bound and the specified value is greater than the upper bound.

isBeforeRange :: Ord a => a -> Range a -> Bool Source #

Returns True if (and only if) the given range has a lower bound and the specified value is smaller than the lower bound.

isSubrangeOf :: Ord a => Range a -> Range a -> Bool Source #

Returns True if (and only if) the first given range is a subrange of the second given range.

isWithinRange :: Ord a => a -> Range a -> Bool Source #

Returns True if (and only if) the given value is not smaller than the lower bound (if present) of the given range and is not greater than the upper bound (if present) of the given range.

mapRangeLowerBound :: (a -> a) -> Range a -> Range a Source #

Apply a function to the lower bound of a range.

mapRangeUpperBound :: (a -> a) -> Range a -> Range a Source #

Apply a function to the upper bound of a range.

rangeIsFinite :: Range a -> Bool Source #

Returns True if (and only if) the given range has both a lower and upper bound.

rangeIsSingleton :: Eq a => Range a -> Bool Source #

Returns True if (and only if) the range covers exactly one value.

rangeIsValid :: Ord a => Range a -> Bool Source #

Returns True if (and only if) the lower bound of a range is not greater than its upper bound.

rangeHasLowerBound :: Range a -> Bool Source #

Returns True if (and only if) the given range has a lower bound.

rangeHasUpperBound :: Range a -> Bool Source #

Returns True if (and only if) the given range has an upper bound.

Polymorphic

newtype Signature (what :: Type ) Source #

A newtype to wrap raw bytestring representing signed data, captured with a phantom type.

Settings

data Settings Source #

Wallet application settings. These are stored at runtime and potentially mutable.

Instances

Instances details
Eq Settings Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show Settings Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic Settings Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT Settings ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT Settings ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep Settings Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep Settings = D1 (' MetaData "Settings" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "Settings" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "poolMetadataSource") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 PoolMetadataSource )))

data SmashServer Source #

A SMASH server is either an absolute http or https url.

Don't export SmashServer constructor, use fromText instance instead.

Instances

Instances details
Eq SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON ( ApiT SmashServer ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT SmashServer ) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

type Rep SmashServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep SmashServer = D1 (' MetaData "SmashServer" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "SmashServer" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unSmashServer") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 URI )))

data PoolMetadataSource Source #

Source of Stake Pool Metadata aggregation.

Instances

Instances details
Eq PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToJSON PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromJSON PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

PersistFieldSql PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

PersistField PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.DB.Sqlite.Types

ToText PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

SymbolToField "settingsPoolMetadataSource" Settings PoolMetadataSource Source #
Instance details

Defined in Cardano.Pool.DB.Sqlite.TH

type Rep PoolMetadataSource Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep PoolMetadataSource = D1 (' MetaData "PoolMetadataSource" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' False ) ( C1 (' MetaCons "FetchNone" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: ( C1 (' MetaCons "FetchDirect" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "FetchSMASH" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 SmashServer ))))

newtype TokenMetadataServer Source #

Instances

Instances details
Eq TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Show TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

Generic TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

ToText TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

FromText TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep TokenMetadataServer Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types

type Rep TokenMetadataServer = D1 (' MetaData "TokenMetadataServer" "Cardano.Wallet.Primitive.Types" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "TokenMetadataServer" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unTokenMetadataServer") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 URI )))

InternalState

Orphan instances