| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.State.Schema
Documentation
type FGenDelegs = Enc (Map FutureGenDeleg GenDelegPair) Source #
type CredentialWitness = Credential 'Witness Source #
type KeyHashWitness = KeyHash 'Witness Source #
data DRepDelegation Source #
Constructors
| DRepDelegationNone | |
| DRepDelegationCredential | |
| DRepDelegationAlwaysAbstain | |
| DRepDelegationAlwaysNoConfidence |
Instances
type IRTreasuryId = Key IRTreasury Source #
data IRTreasury Source #
Constructors
| IRTreasury | |
Fields | |
Instances
type IRReservesId = Key IRReserves Source #
data IRReserves Source #
Constructors
| IRReserves | |
Fields | |
Instances
| PersistEntity IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key IRReserves → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key IRReserves) Source # persistIdField ∷ EntityField IRReserves (Key IRReserves) Source # entityDef ∷ proxy IRReserves → EntityDef Source # persistFieldDef ∷ EntityField IRReserves typ → FieldDef Source # toPersistFields ∷ IRReserves → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text IRReserves Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField IRReserves a → f a) → f (Entity IRReserves) Source # persistUniqueKeys ∷ IRReserves → [Unique IRReserves] Source # persistUniqueToFieldNames ∷ Unique IRReserves → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique IRReserves → [PersistValue] Source # fieldLens ∷ EntityField IRReserves field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity IRReserves → f (Entity IRReserves) Source # keyFromRecordM ∷ Maybe (IRReserves → Key IRReserves) Source # | |||||||||||||||||
| SafeToInsert IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ IRReserves → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text IRReserves Source # | |||||||||||||||||
| AtLeastOneUniqueKey IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ IRReserves → NonEmpty (Unique IRReserves) Source # | |||||||||||||||||
| OnlyOneUniqueKey IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key IRReserves → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key IRReserves Source # | |||||||||||||||||
| SymbolToField "coin" IRReserves Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "credentialId" IRReserves CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField IRReserves CredentialId Source # | |||||||||||||||||
| SymbolToField "dstateId" IRReserves DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" IRReserves (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField IRReserves (Key IRReserves) Source # | |||||||||||||||||
| FromJSON (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key IRReserves) Source # parseJSONList ∷ Value → Parser [Key IRReserves] Source # | |||||||||||||||||
| ToJSON (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key IRReserves → Value Source # toEncoding ∷ Key IRReserves → Encoding Source # toJSONList ∷ [Key IRReserves] → Value Source # toEncodingList ∷ [Key IRReserves] → Encoding Source # | |||||||||||||||||
| Read (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key IRReserves → Key IRReserves → Bool # (/=) ∷ Key IRReserves → Key IRReserves → Bool # | |||||||||||||||||
| Ord (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key IRReserves → Key IRReserves → Ordering # (<) ∷ Key IRReserves → Key IRReserves → Bool # (<=) ∷ Key IRReserves → Key IRReserves → Bool # (>) ∷ Key IRReserves → Key IRReserves → Bool # (>=) ∷ Key IRReserves → Key IRReserves → Bool # max ∷ Key IRReserves → Key IRReserves → Key IRReserves # min ∷ Key IRReserves → Key IRReserves → Key IRReserves # | |||||||||||||||||
| FromHttpApiData (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key IRReserves) Source # parseHeader ∷ ByteString → Either Text (Key IRReserves) Source # parseQueryParam ∷ Text → Either Text (Key IRReserves) Source # | |||||||||||||||||
| ToHttpApiData (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toUrlPiece ∷ Key IRReserves → Text Source # toEncodedUrlPiece ∷ Key IRReserves → Builder Source # toHeader ∷ Key IRReserves → ByteString Source # toQueryParam ∷ Key IRReserves → Text Source # | |||||||||||||||||
| PathPiece (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key IRReserves) Source # toPathPiece ∷ Key IRReserves → Text Source # | |||||||||||||||||
| PersistField (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key IRReserves → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key IRReserves) Source # | |||||||||||||||||
| PersistFieldSql (Key IRReserves) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField IRReserves typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField IRReserves typ
| |||||||||||||||||
| newtype Key IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique IRReserves Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
Constructors
| Account | |
Fields | |
Instances
| PersistEntity Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key Account → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key Account) Source # persistIdField ∷ EntityField Account (Key Account) Source # entityDef ∷ proxy Account → EntityDef Source # persistFieldDef ∷ EntityField Account typ → FieldDef Source # toPersistFields ∷ Account → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text Account Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField Account a → f a) → f (Entity Account) Source # persistUniqueKeys ∷ Account → [Unique Account] Source # persistUniqueToFieldNames ∷ Unique Account → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique Account → [PersistValue] Source # fieldLens ∷ EntityField Account field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity Account → f (Entity Account) Source # | |||||||||||||||||
| SafeToInsert Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Account → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text Account Source # | |||||||||||||||||
| AtLeastOneUniqueKey Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| OnlyOneUniqueKey Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql Account Source # | |||||||||||||||||
| ToBackendKey SqlBackend Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key Account → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key Account Source # | |||||||||||||||||
| SymbolToField "credentialId" Account CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "drep" Account DRepDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "dstateId" Account DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "balance" Account (CompactForm Coin) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (CompactForm Coin) Source # | |||||||||||||||||
| SymbolToField "credentialDRepId" Account (Maybe CredentialId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (Maybe CredentialId) Source # | |||||||||||||||||
| SymbolToField "deposit" Account (CompactForm Coin) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (CompactForm Coin) Source # | |||||||||||||||||
| SymbolToField "id" Account (Key Account) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "keyHashStakePoolId" Account (Maybe KeyHashId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (Maybe KeyHashId) Source # | |||||||||||||||||
| SymbolToField "ptr" Account (Maybe Ptr) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| FromJSON (Key Account) Source # | |||||||||||||||||
| ToJSON (Key Account) Source # | |||||||||||||||||
| Read (Key Account) Source # | |||||||||||||||||
| Show (Key Account) Source # | |||||||||||||||||
| Eq (Key Account) Source # | |||||||||||||||||
| Ord (Key Account) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key Account) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key Account) Source # | |||||||||||||||||
| PathPiece (Key Account) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key Account) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key Account → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key Account) Source # | |||||||||||||||||
| PersistFieldSql (Key Account) Source # | |||||||||||||||||
| data EntityField Account typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField Account typ
| |||||||||||||||||
| newtype Key Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique Account Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type UtxoEntryId = Key UtxoEntry Source #
Constructors
| UtxoEntry | |
Fields | |
Instances
| PersistEntity UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key UtxoEntry → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key UtxoEntry) Source # persistIdField ∷ EntityField UtxoEntry (Key UtxoEntry) Source # entityDef ∷ proxy UtxoEntry → EntityDef Source # persistFieldDef ∷ EntityField UtxoEntry typ → FieldDef Source # toPersistFields ∷ UtxoEntry → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text UtxoEntry Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField UtxoEntry a → f a) → f (Entity UtxoEntry) Source # persistUniqueKeys ∷ UtxoEntry → [Unique UtxoEntry] Source # persistUniqueToFieldNames ∷ Unique UtxoEntry → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique UtxoEntry → [PersistValue] Source # fieldLens ∷ EntityField UtxoEntry field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity UtxoEntry → f (Entity UtxoEntry) Source # | |||||||||||||||||
| SafeToInsert UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ UtxoEntry → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text UtxoEntry Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError UtxoEntry) ∷ Constraint) ⇒ AtLeastOneUniqueKey UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| (TypeError (NoUniqueKeysError UtxoEntry) ∷ Constraint) ⇒ OnlyOneUniqueKey UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql UtxoEntry Source # | |||||||||||||||||
| ToBackendKey SqlBackend UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key UtxoEntry → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key UtxoEntry Source # | |||||||||||||||||
| SymbolToField "stateId" UtxoEntry UtxoStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "txId" UtxoEntry TxId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "txsId" UtxoEntry TxsId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" UtxoEntry (Key UtxoEntry) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField UtxoEntry (Key UtxoEntry) Source # | |||||||||||||||||
| FromJSON (Key UtxoEntry) Source # | |||||||||||||||||
| ToJSON (Key UtxoEntry) Source # | |||||||||||||||||
| Read (Key UtxoEntry) Source # | |||||||||||||||||
| Show (Key UtxoEntry) Source # | |||||||||||||||||
| Eq (Key UtxoEntry) Source # | |||||||||||||||||
| Ord (Key UtxoEntry) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key UtxoEntry) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key UtxoEntry) Source # | |||||||||||||||||
| PathPiece (Key UtxoEntry) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key UtxoEntry) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key UtxoEntry → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key UtxoEntry) Source # | |||||||||||||||||
| PersistFieldSql (Key UtxoEntry) Source # | |||||||||||||||||
| data EntityField UtxoEntry typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField UtxoEntry typ
| |||||||||||||||||
| newtype Key UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique UtxoEntry Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
Constructors
| Txs | |
Fields
| |
Instances
| PersistEntity Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key Txs → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key Txs) Source # persistIdField ∷ EntityField Txs (Key Txs) Source # entityDef ∷ proxy Txs → EntityDef Source # persistFieldDef ∷ EntityField Txs typ → FieldDef Source # toPersistFields ∷ Txs → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text Txs Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField Txs a → f a) → f (Entity Txs) Source # persistUniqueKeys ∷ Txs → [Unique Txs] Source # persistUniqueToFieldNames ∷ Unique Txs → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique Txs → [PersistValue] Source # fieldLens ∷ EntityField Txs field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity Txs → f (Entity Txs) Source # | |||||||||||||||||
| SafeToInsert Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| AtLeastOneUniqueKey Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| OnlyOneUniqueKey Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql Txs Source # | |||||||||||||||||
| ToBackendKey SqlBackend Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "inId" Txs TxId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "inIx" Txs TxIx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "txsId" UtxoEntry TxsId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" Txs (Key Txs) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Txs (Key Txs) Source # | |||||||||||||||||
| SymbolToField "out" Txs (BabbageTxOut CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Txs (BabbageTxOut CurrentEra) Source # | |||||||||||||||||
| SymbolToField "stakeCredential" Txs (Maybe CredentialId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Txs (Maybe CredentialId) Source # | |||||||||||||||||
| FromJSON (Key Txs) Source # | |||||||||||||||||
| ToJSON (Key Txs) Source # | |||||||||||||||||
| Read (Key Txs) Source # | |||||||||||||||||
| Show (Key Txs) Source # | |||||||||||||||||
| Eq (Key Txs) Source # | |||||||||||||||||
| Ord (Key Txs) Source # | |||||||||||||||||
| FromHttpApiData (Key Txs) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key Txs) Source # | |||||||||||||||||
| PathPiece (Key Txs) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key Txs) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key Txs → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key Txs) Source # | |||||||||||||||||
| PersistFieldSql (Key Txs) Source # | |||||||||||||||||
| data EntityField Txs typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField Txs typ
| |||||||||||||||||
| newtype Key Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend Txs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique Txs Source # | |||||||||||||||||
Constructors
| Tx | |
Fields
| |
Instances
| PersistEntity Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key Tx → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key Tx) Source # persistIdField ∷ EntityField Tx (Key Tx) Source # entityDef ∷ proxy Tx → EntityDef Source # persistFieldDef ∷ EntityField Tx typ → FieldDef Source # toPersistFields ∷ Tx → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text Tx Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField Tx a → f a) → f (Entity Tx) Source # persistUniqueKeys ∷ Tx → [Unique Tx] Source # persistUniqueToFieldNames ∷ Unique Tx → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique Tx → [PersistValue] Source # fieldLens ∷ EntityField Tx field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity Tx → f (Entity Tx) Source # | |||||||||||||||||
| SafeToInsert Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| AtLeastOneUniqueKey Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| OnlyOneUniqueKey Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql Tx Source # | |||||||||||||||||
| ToBackendKey SqlBackend Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "inId" Tx TxId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "inIx" Tx TxIx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "txId" UtxoEntry TxId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" Tx (Key Tx) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Tx (Key Tx) Source # | |||||||||||||||||
| SymbolToField "out" Tx (BabbageTxOut CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Tx (BabbageTxOut CurrentEra) Source # | |||||||||||||||||
| FromJSON (Key Tx) Source # | |||||||||||||||||
| ToJSON (Key Tx) Source # | |||||||||||||||||
| Read (Key Tx) Source # | |||||||||||||||||
| Show (Key Tx) Source # | |||||||||||||||||
| Eq (Key Tx) Source # | |||||||||||||||||
| Ord (Key Tx) Source # | |||||||||||||||||
| FromHttpApiData (Key Tx) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key Tx) Source # | |||||||||||||||||
| PathPiece (Key Tx) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key Tx) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key Tx → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key Tx) Source # | |||||||||||||||||
| PersistFieldSql (Key Tx) Source # | |||||||||||||||||
| data EntityField Tx typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| newtype Key Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend Tx Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique Tx Source # | |||||||||||||||||
Constructors
| KeyHash | |
Fields | |
Instances
| PersistEntity KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key KeyHash → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key KeyHash) Source # persistIdField ∷ EntityField KeyHash (Key KeyHash) Source # entityDef ∷ proxy KeyHash → EntityDef Source # persistFieldDef ∷ EntityField KeyHash typ → FieldDef Source # toPersistFields ∷ KeyHash → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text KeyHash Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField KeyHash a → f a) → f (Entity KeyHash) Source # persistUniqueKeys ∷ KeyHash → [Unique KeyHash] Source # persistUniqueToFieldNames ∷ Unique KeyHash → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique KeyHash → [PersistValue] Source # fieldLens ∷ EntityField KeyHash field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity KeyHash → f (Entity KeyHash) Source # | |||||||||||||||||
| SafeToInsert KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ KeyHash → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text KeyHash Source # | |||||||||||||||||
| AtLeastOneUniqueKey KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| OnlyOneUniqueKey KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql KeyHash Source # | |||||||||||||||||
| ToBackendKey SqlBackend KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key KeyHash → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key KeyHash Source # | |||||||||||||||||
| SymbolToField "keyHash" SnapShotDelegation KeyHashId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "keyHashId" SnapShotPool KeyHashId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "witness" KeyHash KeyHashWitness Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" KeyHash (Key KeyHash) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "keyHashStakePoolId" Account (Maybe KeyHashId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (Maybe KeyHashId) Source # | |||||||||||||||||
| FromJSON (Key KeyHash) Source # | |||||||||||||||||
| ToJSON (Key KeyHash) Source # | |||||||||||||||||
| Read (Key KeyHash) Source # | |||||||||||||||||
| Show (Key KeyHash) Source # | |||||||||||||||||
| Eq (Key KeyHash) Source # | |||||||||||||||||
| Ord (Key KeyHash) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key KeyHash) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key KeyHash) Source # | |||||||||||||||||
| PathPiece (Key KeyHash) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key KeyHash) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key KeyHash → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key KeyHash) Source # | |||||||||||||||||
| PersistFieldSql (Key KeyHash) Source # | |||||||||||||||||
| data EntityField KeyHash typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| newtype Key KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique KeyHash Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type CredentialId = Key Credential Source #
data Credential Source #
Constructors
| Credential | |
Fields | |
Instances
| PersistEntity Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key Credential → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key Credential) Source # persistIdField ∷ EntityField Credential (Key Credential) Source # entityDef ∷ proxy Credential → EntityDef Source # persistFieldDef ∷ EntityField Credential typ → FieldDef Source # toPersistFields ∷ Credential → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text Credential Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField Credential a → f a) → f (Entity Credential) Source # persistUniqueKeys ∷ Credential → [Unique Credential] Source # persistUniqueToFieldNames ∷ Unique Credential → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique Credential → [PersistValue] Source # fieldLens ∷ EntityField Credential field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity Credential → f (Entity Credential) Source # keyFromRecordM ∷ Maybe (Credential → Key Credential) Source # | |||||||||||||||||
| SafeToInsert Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Credential → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text Credential Source # | |||||||||||||||||
| AtLeastOneUniqueKey Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ Credential → NonEmpty (Unique Credential) Source # | |||||||||||||||||
| OnlyOneUniqueKey Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key Credential → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key Credential Source # | |||||||||||||||||
| SymbolToField "credentialId" Account CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "credentialId" IRReserves CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField IRReserves CredentialId Source # | |||||||||||||||||
| SymbolToField "credentialId" IRTreasury CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField IRTreasury CredentialId Source # | |||||||||||||||||
| SymbolToField "credentialId" SnapShotDelegation CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "credentialId" SnapShotStake CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake CredentialId Source # | |||||||||||||||||
| SymbolToField "witness" Credential CredentialWitness Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "credentialDRepId" Account (Maybe CredentialId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Account (Maybe CredentialId) Source # | |||||||||||||||||
| SymbolToField "id" Credential (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Credential (Key Credential) Source # | |||||||||||||||||
| SymbolToField "stakeCredential" Txs (Maybe CredentialId) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField Txs (Maybe CredentialId) Source # | |||||||||||||||||
| FromJSON (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key Credential) Source # parseJSONList ∷ Value → Parser [Key Credential] Source # | |||||||||||||||||
| ToJSON (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key Credential → Value Source # toEncoding ∷ Key Credential → Encoding Source # toJSONList ∷ [Key Credential] → Value Source # toEncodingList ∷ [Key Credential] → Encoding Source # | |||||||||||||||||
| Read (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key Credential → Key Credential → Bool # (/=) ∷ Key Credential → Key Credential → Bool # | |||||||||||||||||
| Ord (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key Credential → Key Credential → Ordering # (<) ∷ Key Credential → Key Credential → Bool # (<=) ∷ Key Credential → Key Credential → Bool # (>) ∷ Key Credential → Key Credential → Bool # (>=) ∷ Key Credential → Key Credential → Bool # max ∷ Key Credential → Key Credential → Key Credential # min ∷ Key Credential → Key Credential → Key Credential # | |||||||||||||||||
| FromHttpApiData (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key Credential) Source # parseHeader ∷ ByteString → Either Text (Key Credential) Source # parseQueryParam ∷ Text → Either Text (Key Credential) Source # | |||||||||||||||||
| ToHttpApiData (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toUrlPiece ∷ Key Credential → Text Source # toEncodedUrlPiece ∷ Key Credential → Builder Source # toHeader ∷ Key Credential → ByteString Source # toQueryParam ∷ Key Credential → Text Source # | |||||||||||||||||
| PathPiece (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key Credential) Source # toPathPiece ∷ Key Credential → Text Source # | |||||||||||||||||
| PersistField (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key Credential → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key Credential) Source # | |||||||||||||||||
| PersistFieldSql (Key Credential) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField Credential typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField Credential typ
| |||||||||||||||||
| newtype Key Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique Credential Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
Constructors
| DState | |
Instances
| PersistEntity DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key DState → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key DState) Source # persistIdField ∷ EntityField DState (Key DState) Source # entityDef ∷ proxy DState → EntityDef Source # persistFieldDef ∷ EntityField DState typ → FieldDef Source # toPersistFields ∷ DState → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text DState Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField DState a → f a) → f (Entity DState) Source # persistUniqueKeys ∷ DState → [Unique DState] Source # persistUniqueToFieldNames ∷ Unique DState → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique DState → [PersistValue] Source # fieldLens ∷ EntityField DState field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity DState → f (Entity DState) Source # | |||||||||||||||||
| SafeToInsert DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ DState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text DState Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError DState) ∷ Constraint) ⇒ AtLeastOneUniqueKey DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| (TypeError (NoUniqueKeysError DState) ∷ Constraint) ⇒ OnlyOneUniqueKey DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql DState Source # | |||||||||||||||||
| ToBackendKey SqlBackend DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key DState → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key DState Source # | |||||||||||||||||
| SymbolToField "dstateId" Account DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "dstateId" IRReserves DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "dstateId" IRTreasury DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "dstateId" LedgerState DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "fGenDelegs" DState FGenDelegs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "genDelegs" DState GenDelegs Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "irDeltaReserves" DState DeltaCoin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "irDeltaTreasury" DState DeltaCoin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" DState (Key DState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| FromJSON (Key DState) Source # | |||||||||||||||||
| ToJSON (Key DState) Source # | |||||||||||||||||
| Read (Key DState) Source # | |||||||||||||||||
| Show (Key DState) Source # | |||||||||||||||||
| Eq (Key DState) Source # | |||||||||||||||||
| Ord (Key DState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key DState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key DState) Source # | |||||||||||||||||
| PathPiece (Key DState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key DState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key DState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key DState) Source # | |||||||||||||||||
| PersistFieldSql (Key DState) Source # | |||||||||||||||||
| data EntityField DState typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField DState typ
| |||||||||||||||||
| newtype Key DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique DState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type UtxoStateId = Key UtxoState Source #
Constructors
| UtxoState | |
Fields | |
Instances
| PersistEntity UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key UtxoState → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key UtxoState) Source # persistIdField ∷ EntityField UtxoState (Key UtxoState) Source # entityDef ∷ proxy UtxoState → EntityDef Source # persistFieldDef ∷ EntityField UtxoState typ → FieldDef Source # toPersistFields ∷ UtxoState → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text UtxoState Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField UtxoState a → f a) → f (Entity UtxoState) Source # persistUniqueKeys ∷ UtxoState → [Unique UtxoState] Source # persistUniqueToFieldNames ∷ Unique UtxoState → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique UtxoState → [PersistValue] Source # fieldLens ∷ EntityField UtxoState field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity UtxoState → f (Entity UtxoState) Source # | |||||||||||||||||
| SafeToInsert UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ UtxoState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text UtxoState Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError UtxoState) ∷ Constraint) ⇒ AtLeastOneUniqueKey UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| (TypeError (NoUniqueKeysError UtxoState) ∷ Constraint) ⇒ OnlyOneUniqueKey UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql UtxoState Source # | |||||||||||||||||
| ToBackendKey SqlBackend UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key UtxoState → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key UtxoState Source # | |||||||||||||||||
| SymbolToField "deposited" UtxoState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "donation" UtxoState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "fees" UtxoState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "stateId" UtxoEntry UtxoStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "utxoId" LedgerState UtxoStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState UtxoStateId Source # | |||||||||||||||||
| SymbolToField "govState" UtxoState (ConwayGovState CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField UtxoState (ConwayGovState CurrentEra) Source # | |||||||||||||||||
| SymbolToField "id" UtxoState (Key UtxoState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField UtxoState (Key UtxoState) Source # | |||||||||||||||||
| FromJSON (Key UtxoState) Source # | |||||||||||||||||
| ToJSON (Key UtxoState) Source # | |||||||||||||||||
| Read (Key UtxoState) Source # | |||||||||||||||||
| Show (Key UtxoState) Source # | |||||||||||||||||
| Eq (Key UtxoState) Source # | |||||||||||||||||
| Ord (Key UtxoState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key UtxoState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key UtxoState) Source # | |||||||||||||||||
| PathPiece (Key UtxoState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key UtxoState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key UtxoState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key UtxoState) Source # | |||||||||||||||||
| PersistFieldSql (Key UtxoState) Source # | |||||||||||||||||
| data EntityField UtxoState typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField UtxoState typ
| |||||||||||||||||
| newtype Key UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique UtxoState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type LedgerStateId = Key LedgerState Source #
data LedgerState Source #
Constructors
| LedgerState | |
Instances
| PersistEntity LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key LedgerState → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key LedgerState) Source # persistIdField ∷ EntityField LedgerState (Key LedgerState) Source # entityDef ∷ proxy LedgerState → EntityDef Source # persistFieldDef ∷ EntityField LedgerState typ → FieldDef Source # toPersistFields ∷ LedgerState → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text LedgerState Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField LedgerState a → f a) → f (Entity LedgerState) Source # persistUniqueKeys ∷ LedgerState → [Unique LedgerState] Source # persistUniqueToFieldNames ∷ Unique LedgerState → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique LedgerState → [PersistValue] Source # fieldLens ∷ EntityField LedgerState field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity LedgerState → f (Entity LedgerState) Source # keyFromRecordM ∷ Maybe (LedgerState → Key LedgerState) Source # | |||||||||||||||||
| SafeToInsert LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ LedgerState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text LedgerState Source # | |||||||||||||||||
| AtLeastOneUniqueKey LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ LedgerState → NonEmpty (Unique LedgerState) Source # | |||||||||||||||||
| (TypeError (MultipleUniqueKeysError LedgerState) ∷ Constraint) ⇒ OnlyOneUniqueKey LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key LedgerState → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key LedgerState Source # | |||||||||||||||||
| SymbolToField "dstateId" LedgerState DStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "epochStateId" LedgerState EpochStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState EpochStateId Source # | |||||||||||||||||
| SymbolToField "utxoId" LedgerState UtxoStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState UtxoStateId Source # | |||||||||||||||||
| SymbolToField "id" LedgerState (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState (Key LedgerState) Source # | |||||||||||||||||
| SymbolToField "pstateBin" LedgerState (PState CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState (PState CurrentEra) Source # | |||||||||||||||||
| FromJSON (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key LedgerState) Source # parseJSONList ∷ Value → Parser [Key LedgerState] Source # | |||||||||||||||||
| ToJSON (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key LedgerState → Value Source # toEncoding ∷ Key LedgerState → Encoding Source # toJSONList ∷ [Key LedgerState] → Value Source # toEncodingList ∷ [Key LedgerState] → Encoding Source # | |||||||||||||||||
| Read (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key LedgerState → Key LedgerState → Bool # (/=) ∷ Key LedgerState → Key LedgerState → Bool # | |||||||||||||||||
| Ord (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key LedgerState → Key LedgerState → Ordering # (<) ∷ Key LedgerState → Key LedgerState → Bool # (<=) ∷ Key LedgerState → Key LedgerState → Bool # (>) ∷ Key LedgerState → Key LedgerState → Bool # (>=) ∷ Key LedgerState → Key LedgerState → Bool # max ∷ Key LedgerState → Key LedgerState → Key LedgerState # min ∷ Key LedgerState → Key LedgerState → Key LedgerState # | |||||||||||||||||
| FromHttpApiData (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key LedgerState) Source # parseHeader ∷ ByteString → Either Text (Key LedgerState) Source # parseQueryParam ∷ Text → Either Text (Key LedgerState) Source # | |||||||||||||||||
| ToHttpApiData (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toUrlPiece ∷ Key LedgerState → Text Source # toEncodedUrlPiece ∷ Key LedgerState → Builder Source # toHeader ∷ Key LedgerState → ByteString Source # | |||||||||||||||||
| PathPiece (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key LedgerState) Source # toPathPiece ∷ Key LedgerState → Text Source # | |||||||||||||||||
| PersistField (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key LedgerState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key LedgerState) Source # | |||||||||||||||||
| PersistFieldSql (Key LedgerState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField LedgerState typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField LedgerState typ
| |||||||||||||||||
| newtype Key LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend LedgerState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique LedgerState Source # | |||||||||||||||||
type SnapShotPoolId = Key SnapShotPool Source #
data SnapShotPool Source #
Constructors
| SnapShotPool | |
Instances
| PersistEntity SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key SnapShotPool → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key SnapShotPool) Source # persistIdField ∷ EntityField SnapShotPool (Key SnapShotPool) Source # entityDef ∷ proxy SnapShotPool → EntityDef Source # persistFieldDef ∷ EntityField SnapShotPool typ → FieldDef Source # toPersistFields ∷ SnapShotPool → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text SnapShotPool Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField SnapShotPool a → f a) → f (Entity SnapShotPool) Source # persistUniqueKeys ∷ SnapShotPool → [Unique SnapShotPool] Source # persistUniqueToFieldNames ∷ Unique SnapShotPool → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique SnapShotPool → [PersistValue] Source # fieldLens ∷ EntityField SnapShotPool field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity SnapShotPool → f (Entity SnapShotPool) Source # keyFromRecordM ∷ Maybe (SnapShotPool → Key SnapShotPool) Source # | |||||||||||||||||
| SafeToInsert SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| AtLeastOneUniqueKey SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ SnapShotPool → NonEmpty (Unique SnapShotPool) Source # | |||||||||||||||||
| OnlyOneUniqueKey SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "keyHashId" SnapShotPool KeyHashId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "params" SnapShotPool StakePoolParams Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotPool SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotPool SnapShotId Source # | |||||||||||||||||
| SymbolToField "id" SnapShotPool (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotPool (Key SnapShotPool) Source # | |||||||||||||||||
| FromJSON (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key SnapShotPool) Source # parseJSONList ∷ Value → Parser [Key SnapShotPool] Source # | |||||||||||||||||
| ToJSON (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key SnapShotPool → Value Source # toEncoding ∷ Key SnapShotPool → Encoding Source # toJSONList ∷ [Key SnapShotPool] → Value Source # toEncodingList ∷ [Key SnapShotPool] → Encoding Source # | |||||||||||||||||
| Read (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key SnapShotPool → Key SnapShotPool → Bool # (/=) ∷ Key SnapShotPool → Key SnapShotPool → Bool # | |||||||||||||||||
| Ord (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key SnapShotPool → Key SnapShotPool → Ordering # (<) ∷ Key SnapShotPool → Key SnapShotPool → Bool # (<=) ∷ Key SnapShotPool → Key SnapShotPool → Bool # (>) ∷ Key SnapShotPool → Key SnapShotPool → Bool # (>=) ∷ Key SnapShotPool → Key SnapShotPool → Bool # max ∷ Key SnapShotPool → Key SnapShotPool → Key SnapShotPool # min ∷ Key SnapShotPool → Key SnapShotPool → Key SnapShotPool # | |||||||||||||||||
| FromHttpApiData (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key SnapShotPool) Source # parseHeader ∷ ByteString → Either Text (Key SnapShotPool) Source # parseQueryParam ∷ Text → Either Text (Key SnapShotPool) Source # | |||||||||||||||||
| ToHttpApiData (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toUrlPiece ∷ Key SnapShotPool → Text Source # toEncodedUrlPiece ∷ Key SnapShotPool → Builder Source # toHeader ∷ Key SnapShotPool → ByteString Source # | |||||||||||||||||
| PathPiece (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key SnapShotPool) Source # | |||||||||||||||||
| PersistField (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key SnapShotPool → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key SnapShotPool) Source # | |||||||||||||||||
| PersistFieldSql (Key SnapShotPool) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField SnapShotPool typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField SnapShotPool typ
| |||||||||||||||||
| newtype Key SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique SnapShotPool Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
data SnapShotDelegation Source #
Constructors
| SnapShotDelegation | |
Instances
| PersistEntity SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key SnapShotDelegation → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key SnapShotDelegation) Source # persistIdField ∷ EntityField SnapShotDelegation (Key SnapShotDelegation) Source # entityDef ∷ proxy SnapShotDelegation → EntityDef Source # persistFieldDef ∷ EntityField SnapShotDelegation typ → FieldDef Source # toPersistFields ∷ SnapShotDelegation → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text SnapShotDelegation Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField SnapShotDelegation a → f a) → f (Entity SnapShotDelegation) Source # persistUniqueKeys ∷ SnapShotDelegation → [Unique SnapShotDelegation] Source # persistUniqueToFieldNames ∷ Unique SnapShotDelegation → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique SnapShotDelegation → [PersistValue] Source # fieldLens ∷ EntityField SnapShotDelegation field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity SnapShotDelegation → f (Entity SnapShotDelegation) Source # keyFromRecordM ∷ Maybe (SnapShotDelegation → Key SnapShotDelegation) Source # | |||||||||||||||||
| SafeToInsert SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| AtLeastOneUniqueKey SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ SnapShotDelegation → NonEmpty (Unique SnapShotDelegation) Source # | |||||||||||||||||
| OnlyOneUniqueKey SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods onlyUniqueP ∷ SnapShotDelegation → Unique SnapShotDelegation Source # | |||||||||||||||||
| PersistFieldSql SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "credentialId" SnapShotDelegation CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "keyHash" SnapShotDelegation KeyHashId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotDelegation SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "id" SnapShotDelegation (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromJSON (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key SnapShotDelegation) Source # parseJSONList ∷ Value → Parser [Key SnapShotDelegation] Source # | |||||||||||||||||
| ToJSON (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key SnapShotDelegation → Value Source # toEncoding ∷ Key SnapShotDelegation → Encoding Source # toJSONList ∷ [Key SnapShotDelegation] → Value Source # toEncodingList ∷ [Key SnapShotDelegation] → Encoding Source # | |||||||||||||||||
| Read (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # (/=) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # | |||||||||||||||||
| Ord (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key SnapShotDelegation → Key SnapShotDelegation → Ordering # (<) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # (<=) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # (>) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # (>=) ∷ Key SnapShotDelegation → Key SnapShotDelegation → Bool # max ∷ Key SnapShotDelegation → Key SnapShotDelegation → Key SnapShotDelegation # min ∷ Key SnapShotDelegation → Key SnapShotDelegation → Key SnapShotDelegation # | |||||||||||||||||
| FromHttpApiData (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key SnapShotDelegation) Source # parseHeader ∷ ByteString → Either Text (Key SnapShotDelegation) Source # parseQueryParam ∷ Text → Either Text (Key SnapShotDelegation) Source # | |||||||||||||||||
| ToHttpApiData (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PathPiece (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key SnapShotDelegation) Source # | |||||||||||||||||
| PersistField (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql (Key SnapShotDelegation) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField SnapShotDelegation typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField SnapShotDelegation typ
| |||||||||||||||||
| newtype Key SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend SnapShotDelegation Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique SnapShotDelegation Source # | |||||||||||||||||
type SnapShotStakeId = Key SnapShotStake Source #
data SnapShotStake Source #
Constructors
| SnapShotStake | |
Instances
| PersistEntity SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key SnapShotStake → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key SnapShotStake) Source # persistIdField ∷ EntityField SnapShotStake (Key SnapShotStake) Source # entityDef ∷ proxy SnapShotStake → EntityDef Source # persistFieldDef ∷ EntityField SnapShotStake typ → FieldDef Source # toPersistFields ∷ SnapShotStake → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text SnapShotStake Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField SnapShotStake a → f a) → f (Entity SnapShotStake) Source # persistUniqueKeys ∷ SnapShotStake → [Unique SnapShotStake] Source # persistUniqueToFieldNames ∷ Unique SnapShotStake → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique SnapShotStake → [PersistValue] Source # fieldLens ∷ EntityField SnapShotStake field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity SnapShotStake → f (Entity SnapShotStake) Source # keyFromRecordM ∷ Maybe (SnapShotStake → Key SnapShotStake) Source # | |||||||||||||||||
| SafeToInsert SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| AtLeastOneUniqueKey SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ SnapShotStake → NonEmpty (Unique SnapShotStake) Source # | |||||||||||||||||
| OnlyOneUniqueKey SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "credentialId" SnapShotStake CredentialId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake CredentialId Source # | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotStake SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake SnapShotId Source # | |||||||||||||||||
| SymbolToField "coin" SnapShotStake (CompactForm Coin) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake (CompactForm Coin) Source # | |||||||||||||||||
| SymbolToField "id" SnapShotStake (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake (Key SnapShotStake) Source # | |||||||||||||||||
| FromJSON (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key SnapShotStake) Source # parseJSONList ∷ Value → Parser [Key SnapShotStake] Source # | |||||||||||||||||
| ToJSON (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key SnapShotStake → Value Source # toEncoding ∷ Key SnapShotStake → Encoding Source # toJSONList ∷ [Key SnapShotStake] → Value Source # | |||||||||||||||||
| Read (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key SnapShotStake → Key SnapShotStake → Bool # (/=) ∷ Key SnapShotStake → Key SnapShotStake → Bool # | |||||||||||||||||
| Ord (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key SnapShotStake → Key SnapShotStake → Ordering # (<) ∷ Key SnapShotStake → Key SnapShotStake → Bool # (<=) ∷ Key SnapShotStake → Key SnapShotStake → Bool # (>) ∷ Key SnapShotStake → Key SnapShotStake → Bool # (>=) ∷ Key SnapShotStake → Key SnapShotStake → Bool # max ∷ Key SnapShotStake → Key SnapShotStake → Key SnapShotStake # min ∷ Key SnapShotStake → Key SnapShotStake → Key SnapShotStake # | |||||||||||||||||
| FromHttpApiData (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key SnapShotStake) Source # parseHeader ∷ ByteString → Either Text (Key SnapShotStake) Source # parseQueryParam ∷ Text → Either Text (Key SnapShotStake) Source # | |||||||||||||||||
| ToHttpApiData (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PathPiece (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key SnapShotStake) Source # | |||||||||||||||||
| PersistField (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key SnapShotStake → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key SnapShotStake) Source # | |||||||||||||||||
| PersistFieldSql (Key SnapShotStake) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField SnapShotStake typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField SnapShotStake typ
| |||||||||||||||||
| newtype Key SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique SnapShotStake Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type SnapShotId = Key SnapShot Source #
Constructors
| SnapShot | |
Fields | |
Instances
| PersistEntity SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key SnapShot → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key SnapShot) Source # persistIdField ∷ EntityField SnapShot (Key SnapShot) Source # entityDef ∷ proxy SnapShot → EntityDef Source # persistFieldDef ∷ EntityField SnapShot typ → FieldDef Source # toPersistFields ∷ SnapShot → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text SnapShot Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField SnapShot a → f a) → f (Entity SnapShot) Source # persistUniqueKeys ∷ SnapShot → [Unique SnapShot] Source # persistUniqueToFieldNames ∷ Unique SnapShot → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique SnapShot → [PersistValue] Source # fieldLens ∷ EntityField SnapShot field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity SnapShot → f (Entity SnapShot) Source # | |||||||||||||||||
| SafeToInsert SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ SnapShot → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text SnapShot Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError SnapShot) ∷ Constraint) ⇒ AtLeastOneUniqueKey SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| (TypeError (NoUniqueKeysError SnapShot) ∷ Constraint) ⇒ OnlyOneUniqueKey SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistFieldSql SnapShot Source # | |||||||||||||||||
| ToBackendKey SqlBackend SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key SnapShot → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key SnapShot Source # | |||||||||||||||||
| SymbolToField "epochStateId" SnapShot EpochStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotDelegation SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotPool SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotPool SnapShotId Source # | |||||||||||||||||
| SymbolToField "snapShotId" SnapShotStake SnapShotId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShotStake SnapShotId Source # | |||||||||||||||||
| SymbolToField "type" SnapShot SnapShotType Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" SnapShot (Key SnapShot) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField SnapShot (Key SnapShot) Source # | |||||||||||||||||
| FromJSON (Key SnapShot) Source # | |||||||||||||||||
| ToJSON (Key SnapShot) Source # | |||||||||||||||||
| Read (Key SnapShot) Source # | |||||||||||||||||
| Show (Key SnapShot) Source # | |||||||||||||||||
| Eq (Key SnapShot) Source # | |||||||||||||||||
| Ord (Key SnapShot) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| FromHttpApiData (Key SnapShot) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToHttpApiData (Key SnapShot) Source # | |||||||||||||||||
| PathPiece (Key SnapShot) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField (Key SnapShot) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key SnapShot → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key SnapShot) Source # | |||||||||||||||||
| PersistFieldSql (Key SnapShot) Source # | |||||||||||||||||
| data EntityField SnapShot typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField SnapShot typ
| |||||||||||||||||
| newtype Key SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique SnapShot Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
type EpochStateId = Key EpochState Source #
data EpochState Source #
Constructors
| EpochState | |
Fields | |
Instances
| PersistEntity EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Associated Types
Methods keyToValues ∷ Key EpochState → [PersistValue] Source # keyFromValues ∷ [PersistValue] → Either Text (Key EpochState) Source # persistIdField ∷ EntityField EpochState (Key EpochState) Source # entityDef ∷ proxy EpochState → EntityDef Source # persistFieldDef ∷ EntityField EpochState typ → FieldDef Source # toPersistFields ∷ EpochState → [PersistValue] Source # fromPersistValues ∷ [PersistValue] → Either Text EpochState Source # tabulateEntityA ∷ Applicative f ⇒ (∀ a. EntityField EpochState a → f a) → f (Entity EpochState) Source # persistUniqueKeys ∷ EpochState → [Unique EpochState] Source # persistUniqueToFieldNames ∷ Unique EpochState → NonEmpty (FieldNameHS, FieldNameDB) Source # persistUniqueToValues ∷ Unique EpochState → [PersistValue] Source # fieldLens ∷ EntityField EpochState field → ∀ (f ∷ Type → Type). Functor f ⇒ (field → f field) → Entity EpochState → f (Entity EpochState) Source # keyFromRecordM ∷ Maybe (EpochState → Key EpochState) Source # | |||||||||||||||||
| SafeToInsert EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| PersistField EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ EpochState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text EpochState Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError EpochState) ∷ Constraint) ⇒ AtLeastOneUniqueKey EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods requireUniquesP ∷ EpochState → NonEmpty (Unique EpochState) Source # | |||||||||||||||||
| (TypeError (NoUniqueKeysError EpochState) ∷ Constraint) ⇒ OnlyOneUniqueKey EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| PersistFieldSql EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| ToBackendKey SqlBackend EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toBackendKey ∷ Key EpochState → BackendKey SqlBackend Source # fromBackendKey ∷ BackendKey SqlBackend → Key EpochState Source # | |||||||||||||||||
| SymbolToField "epochStateId" LedgerState EpochStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField LedgerState EpochStateId Source # | |||||||||||||||||
| SymbolToField "epochStateId" SnapShot EpochStateId Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "nonMyopic" EpochState NonMyopic Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "reserves" EpochState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "snapShotsFee" EpochState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "treasury" EpochState Coin Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods | |||||||||||||||||
| SymbolToField "id" EpochState (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField EpochState (Key EpochState) Source # | |||||||||||||||||
| SymbolToField "pp" EpochState (PParams CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField EpochState (PParams CurrentEra) Source # | |||||||||||||||||
| SymbolToField "prevPp" EpochState (PParams CurrentEra) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods symbolToField ∷ EntityField EpochState (PParams CurrentEra) Source # | |||||||||||||||||
| FromJSON (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseJSON ∷ Value → Parser (Key EpochState) Source # parseJSONList ∷ Value → Parser [Key EpochState] Source # | |||||||||||||||||
| ToJSON (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toJSON ∷ Key EpochState → Value Source # toEncoding ∷ Key EpochState → Encoding Source # toJSONList ∷ [Key EpochState] → Value Source # toEncodingList ∷ [Key EpochState] → Encoding Source # | |||||||||||||||||
| Read (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Show (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| Eq (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods (==) ∷ Key EpochState → Key EpochState → Bool # (/=) ∷ Key EpochState → Key EpochState → Bool # | |||||||||||||||||
| Ord (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods compare ∷ Key EpochState → Key EpochState → Ordering # (<) ∷ Key EpochState → Key EpochState → Bool # (<=) ∷ Key EpochState → Key EpochState → Bool # (>) ∷ Key EpochState → Key EpochState → Bool # (>=) ∷ Key EpochState → Key EpochState → Bool # max ∷ Key EpochState → Key EpochState → Key EpochState # min ∷ Key EpochState → Key EpochState → Key EpochState # | |||||||||||||||||
| FromHttpApiData (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods parseUrlPiece ∷ Text → Either Text (Key EpochState) Source # parseHeader ∷ ByteString → Either Text (Key EpochState) Source # parseQueryParam ∷ Text → Either Text (Key EpochState) Source # | |||||||||||||||||
| ToHttpApiData (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toUrlPiece ∷ Key EpochState → Text Source # toEncodedUrlPiece ∷ Key EpochState → Builder Source # toHeader ∷ Key EpochState → ByteString Source # toQueryParam ∷ Key EpochState → Text Source # | |||||||||||||||||
| PathPiece (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods fromPathPiece ∷ Text → Maybe (Key EpochState) Source # toPathPiece ∷ Key EpochState → Text Source # | |||||||||||||||||
| PersistField (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema Methods toPersistValue ∷ Key EpochState → PersistValue Source # fromPersistValue ∷ PersistValue → Either Text (Key EpochState) Source # | |||||||||||||||||
| PersistFieldSql (Key EpochState) Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data EntityField EpochState typ Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema data EntityField EpochState typ
| |||||||||||||||||
| newtype Key EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| type PersistEntityBackend EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||
| data Unique EpochState Source # | |||||||||||||||||
Defined in Cardano.Ledger.State.Schema | |||||||||||||||||