| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Singular.Registry.Config
Contents
Description
Configuration record for the cage transaction
builders. 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
- cfgAbsentPolicy :: !ShortByteString
- cfgTerminalPolicy :: !ShortByteString
- cfgConsumerScript :: !ShortByteString
- network :: !Network
- bootStateFromCfg :: CageConfig -> OnChainRoot -> OnChainTokenState
Configuration
data CageConfig Source #
Configuration for the cage script transaction builders.
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.
(Ownerless registry, ruling NOTE-028/A-003: no staking
surface remains; 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 four pinned policies the
eight-field datum carries. Each of the four 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
naming application script, the three witness policies from
`witness(kind, registry)` applied at kinds 0, 1 and 2. Nothing here is a
literal or a placeholder, and the conformance rows round-trip all four
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.