| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.Config
Contents
Description
Configuration record for shared registry identity and history adapters. Holds the global state PlutusV3 script
bytes, the unapplied request validator bytes, the
state script hash, the seed OutputReference used
by boot minting, default token parameters, and
network.
Synopsis
- data CageConfig = CageConfig {
- cageScriptBytes :: !ShortByteString
- requestScriptBytes :: !ShortByteString
- cfgScriptHash :: !ScriptHash
- cageSeed :: !OnChainTxOutRef
- defaultProcessTime :: !Integer
- defaultRetractTime :: !Integer
- defaultTip :: !Coin
- cfgApplicationPolicy :: !ShortByteString
- cfgActivePolicy :: !ShortByteString
- cfgConsumerScript :: !ShortByteString
- network :: !Network
- bootStateFromCfg :: CageConfig -> OnChainRoot -> OnChainTokenState
Configuration
data CageConfig Source #
Configuration for the shared registry adapters.
The cageScriptBytes field holds the raw
flat-encoded global state UPLC script. The
requestScriptBytes field holds the raw
flat-encoded request validator before applying
(statePolicyId, cageToken). The cfgScriptHash
is the state script hash and therefore the state
policy ID. The cageSeed records the
OutputReference consumed by boot minting.
(The registry has no owner: no staking surface remains
and the former cfgStakeScript hook is gone with the
owner role.)
Constructors
| CageConfig | |
Fields
| |
bootStateFromCfg :: CageConfig -> OnChainRoot -> OnChainTokenState Source #
Initial State datum from a cage configuration (#157 state-datum-fields, genesis-policy-pins):
empty trie root, configured economics, and the two pinned policies the
six-field datum carries. Each of the two comes from the config, which
derives it from the two partitions' `script-identity.json` for the registry
identity this boot is about to create — the application policy from the
supplied application script, the active witness policy from
`witness(kind, registry)` applied at kind 1. Nothing here is a
literal or a placeholder, and the conformance rows round-trip both
through this datum.
Single construction site for bootstrapped states — every journey boots
through here or an identical local copy kept in sync by
`cage-tests/TypesSpec` vectors.