singular_state_fixtures

Shared fixtures of the Singular state validator tests.

Every expected token name is obtained from state_token_name, the producer, at run time. The seeds differ in the transaction id, in the output index, and in the high byte of the output index, so no two of them agree on any part a name could be taken from.

Constants

application_policy: ByteArray = #"a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9a9"

empty_root_datum: Datum

The datum genesis must write: the root of the empty trie.

ordinary_output: Output

An ordinary output that carries no state token.

other_policy: ByteArray = #"7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c7c"

other_script: ByteArray = #"6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b"

seed_a: OutputReference

seed_b: OutputReference

seed_c: OutputReference

seed_d: OutputReference

seeds: List<OutputReference> = [seed_a, seed_b, seed_c, seed_d]

Four seeds, pairwise different in every part.

state_policy: ByteArray = #"5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a"

Functions

root_datum(root: ByteArray) -> Datum

token_value(policy: PolicyId, name: AssetName, quantity: Int) -> Value

genuine_output(policy: PolicyId, seed: OutputReference) -> Output

The state output genesis writes for seed.

spent(reference: OutputReference) -> Input

An input that spends reference.

genesis_transaction(policy: PolicyId, seed: OutputReference) -> Transaction

The transaction that creates the registry state of seed under policy.

seed_fuzzer() -> Fuzzer<OutputReference>

Any seed: a 32-byte transaction id and any 16-bit output index.

Search Document