Skip to content

STF Output Types

TimeslotOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.5 (τ') | Output of Timeslot STF.

Attributes:

Name Type Description
post_state TimeslotState

GP-0.7.2-eq:4.5 (τ') | Primary output of Timeslot STF.

Source code in pyjamaz/models/stf_output.py
16
17
18
19
20
21
22
23
24
25
26
@dataclass
class TimeslotOutput(Serializable):
    """
    GP-0.7.2-eq:4.5 (τ') | Output of Timeslot STF.

    Attributes
    ----------
    post_state: TimeslotState
        GP-0.7.2-eq:4.5 (τ') | Primary output of Timeslot STF.
    """
    post_state: TimeslotState = field(metadata={'codec': TimeslotState.to_codec_def()})

EntropyOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.8 (η') | Output of Entropy STF.

Attributes:

Name Type Description
post_state EntropyState

GP-0.7.2-eq:4.8 (η') | Primary output of Entropy STF.

Source code in pyjamaz/models/stf_output.py
29
30
31
32
33
34
35
36
37
38
39
@dataclass
class EntropyOutput(Serializable):
    """
    GP-0.7.2-eq:4.8 (η') | Output of Entropy STF.

    Attributes
    ----------
    post_state: EntropyState
        GP-0.7.2-eq:4.8 (η') | Primary output of Entropy STF.
    """
    post_state: EntropyState = field(metadata={'codec': EntropyState.to_codec_def()})

DisputesOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.11 (ψ') | Output of Disputes STF.

Attributes:

Name Type Description
post_state DisputesState

GP-0.7.2-eq:4.11 (ψ') | Primary output of Disputes STF.

offenders_mark Vec(H256)

GP-0.7.2-eq:10.20 (bold_H_O) | Secondary output of Disputes STF.

Source code in pyjamaz/models/stf_output.py
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@dataclass
class DisputesOutput(Serializable):
    """
    GP-0.7.2-eq:4.11 (ψ') | Output of Disputes STF.

    Attributes
    ----------
    post_state: DisputesState
        GP-0.7.2-eq:4.11 (ψ') | Primary output of Disputes STF.
    offenders_mark: Vec(H256)
        GP-0.7.2-eq:10.20 (bold_H_O) | Secondary output of Disputes STF.
    """
    post_state: DisputesState = field(metadata={'codec': DisputesState.to_codec_def()})
    offenders_mark: List[bytes] = field(default_factory=list, metadata={'codec': Vec(H256)})

ValidatorArchiveOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.10 (λ') | Output of ValidatorArchive STF.

Attributes:

Name Type Description
post_state ValidatorArchiveState

GP-0.7.2-eq:4.10 (λ') | Primary output of ValidatorArchive STF.

Source code in pyjamaz/models/stf_output.py
77
78
79
80
81
82
83
84
85
86
87
@dataclass
class ValidatorArchiveOutput(Serializable):
    """
    GP-0.7.2-eq:4.10 (λ') | Output of ValidatorArchive STF.

    Attributes
    ----------
    post_state: ValidatorArchiveState
        GP-0.7.2-eq:4.10 (λ') | Primary output of ValidatorArchive STF.
    """
    post_state: ValidatorArchiveState = field(metadata={'codec': ValidatorArchiveState.to_codec_def()})

ValidatorPoolOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.9 (κ') | Output of ValidatorPool STF.

Attributes:

Name Type Description
post_state ValidatorPoolState

GP-0.7.2-eq:4.9 (κ') | Primary output of ValidatorPool STF.

Source code in pyjamaz/models/stf_output.py
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
@dataclass
class ValidatorPoolOutput(Serializable):
    """
    GP-0.7.2-eq:4.9 (κ') | Output of ValidatorPool STF.

    Attributes
    ----------
    post_state:ValidatorPoolState
        GP-0.7.2-eq:4.9 (κ') | Primary output of ValidatorPool STF.
    """
    post_state: ValidatorPoolState = field(metadata={'codec': ValidatorPoolState.to_codec_def()})

RecentHistoryIntermediateOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.6 (β†) | Output of RecentHistoryIntermediate STF.

Attributes:

Name Type Description
intermediate_state RecentHistoryState

GP-0.7.2-eq:4.6 (β†) | Primary output of RecentHistoryIntermediate STF.

Source code in pyjamaz/models/stf_output.py
103
104
105
106
107
108
109
110
111
112
113
@dataclass
class RecentHistoryIntermediateOutput(Serializable):
    """
    GP-0.7.2-eq:4.6 (β†) | Output of RecentHistoryIntermediate STF.

    Attributes
    ----------
    intermediate_state:RecentHistoryState
        GP-0.7.2-eq:4.6 (β†) | Primary output of RecentHistoryIntermediate STF.
    """
    intermediate_state: RecentHistoryState = field(metadata={'codec': RecentHistoryState.to_codec_def()})

RecentHistoryOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.17 (β') | Output of RecentHistory STF.

Attributes:

Name Type Description
post_state RecentHistoryState

GP-0.7.2-eq:4.17 (β') | Primary output of RecentHistory STF.

Source code in pyjamaz/models/stf_output.py
116
117
118
119
120
121
122
123
124
125
126
@dataclass
class RecentHistoryOutput(Serializable):
    """
    GP-0.7.2-eq:4.17 (β') | Output of RecentHistory STF.

    Attributes
    ----------
    post_state:RecentHistoryState
        GP-0.7.2-eq:4.17 (β') | Primary output of RecentHistory STF.
    """
    post_state: RecentHistoryState = field(metadata={'codec': RecentHistoryState.to_codec_def()})

SafroleOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.7 (γ') | Output of Safrole STF.

Attributes:

Name Type Description
post_state SafroleState

GP-0.7.2-eq:4.7 (γ') | Primary output of Safrole STF.

epoch_mark Option(EpochMark)

GP-0.7.2-eq:6.27 (bold_H_E) | Secondary output of Safrole STF.

tickets_mark Option(Array(TicketBody, EPOCH_TIMESLOTS))

GP-0.7.2-eq:6.28 (bold_H_W) | Secondary output of Safrole STF.

Source code in pyjamaz/models/stf_output.py
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
@dataclass
class SafroleOutput(Serializable):
    """
    GP-0.7.2-eq:4.7 (γ') | Output of Safrole STF.

    Attributes
    ----------
    post_state: SafroleState
        GP-0.7.2-eq:4.7 (γ') | Primary output of Safrole STF.
    epoch_mark: Option(EpochMark)
        GP-0.7.2-eq:6.27 (bold_H_E) | Secondary output of Safrole STF.
    tickets_mark: Option(Array(TicketBody, EPOCH_TIMESLOTS))
        GP-0.7.2-eq:6.28 (bold_H_W) | Secondary output of Safrole STF.
    """
    post_state: SafroleState = field(metadata={'codec': SafroleState.to_codec_def()})
    epoch_mark: Optional[EpochMark] = field(
        default=None, metadata={'codec': Option(EpochMark.to_codec_def())}
    )
    tickets_mark: Optional[List[TicketBody]] = field(
        default=None, metadata={'codec': Option(Array(TicketBody.to_codec_def(), EPOCH_TIMESLOTS))}
    )

AuthorizerPoolsOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.19 (α') | Output of AuthorizerPools STF.

Attributes:

Name Type Description
post_state AuthorizerPoolsState

GP-0.7.2-eq:4.19 (α') | Primary output of AuthorizerPools STF.

Source code in pyjamaz/models/stf_output.py
163
164
165
166
167
168
169
170
171
172
173
@dataclass
class AuthorizerPoolsOutput(Serializable):
    """
    GP-0.7.2-eq:4.19 (α') | Output of AuthorizerPools STF.

    Attributes
    ----------
    post_state:AuthorizerPoolsState
        GP-0.7.2-eq:4.19 (α') | Primary output of AuthorizerPools STF.
    """
    post_state: AuthorizerPoolsState = field(metadata={'codec': AuthorizerPoolsState.to_codec_def()})

AssurancesAfterDisputesOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.12 (ρ†) | Output of AssurancesAfterDisputes STF.

Attributes:

Name Type Description
intermediate_state_after_disputes AssurancesState

GP-0.7.2-eq:4.12 (ρ†) | Primary output of AssurancesAfterDisputes STF.

Source code in pyjamaz/models/stf_output.py
176
177
178
179
180
181
182
183
184
185
186
@dataclass
class AssurancesAfterDisputesOutput(Serializable):
    """
    GP-0.7.2-eq:4.12 (ρ†) | Output of AssurancesAfterDisputes STF.

    Attributes
    ----------
    intermediate_state_after_disputes:AssurancesState
        GP-0.7.2-eq:4.12 (ρ†) | Primary output of AssurancesAfterDisputes STF.
    """
    intermediate_state_after_disputes: AssurancesState = field(metadata={'codec': AssurancesState.to_codec_def()})

AssurancesAfterAssurancesOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.13 (ρ‡) | Output of AssurancesAfterAssurances STF.

Attributes:

Name Type Description
intermediate_state_after_assurances AssurancesState

GP-0.7.2-eq:4.13 (ρ‡) | Primary output of AssurancesAfterAssurances STF.

reported List[WorkReport]

GP-0.7.2-eq:11.17 (bold_R) | Items removed from ρ† to get ρ'

Source code in pyjamaz/models/stf_output.py
189
190
191
192
193
194
195
196
197
198
199
200
201
202
@dataclass
class AssurancesAfterAssurancesOutput(Serializable):
    """
    GP-0.7.2-eq:4.13 (ρ‡) | Output of AssurancesAfterAssurances STF.

    Attributes
    ----------
    intermediate_state_after_assurances: AssurancesState
        GP-0.7.2-eq:4.13 (ρ‡) | Primary output of AssurancesAfterAssurances STF.
    reported: List[WorkReport]
        GP-0.7.2-eq:11.17 (bold_R) | Items removed from ρ† to get ρ'
    """
    intermediate_state_after_assurances: AssurancesState = field(metadata={'codec': AssurancesState.to_codec_def()})
    reported: List[WorkReport] = field(metadata={'codec': Vec(WorkReport.to_codec_def())})

AssurancesAfterGuaranteesOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.14 (ρ') | Output of AssurancesAfterGuarantees STF.

Attributes:

Name Type Description
post_state AssurancesState

GP-0.7.2-eq:4.14 (ρ') | Primary output of AssurancesAfterGuarantees STF.

reported List[ReportedPackage]

GP-0.7.2-eq:11.29 (bold_r) | The set of work reports in the current extrinsic

reporters List[bytes]

GP-0.7.2-eq:11.27 (bold_G) | Ed25519 keys of validators in the current extrinsic

Source code in pyjamaz/models/stf_output.py
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
@dataclass
class AssurancesAfterGuaranteesOutput(Serializable):
    """
    GP-0.7.2-eq:4.14 (ρ') | Output of AssurancesAfterGuarantees STF.

    Attributes
    ----------
    post_state: AssurancesState
        GP-0.7.2-eq:4.14 (ρ') | Primary output of AssurancesAfterGuarantees STF.
    reported: List[ReportedPackage]
        GP-0.7.2-eq:11.29 (bold_r) | The set of work reports in the current extrinsic
    reporters: List[bytes]
        GP-0.7.2-eq:11.27 (bold_G) | Ed25519 keys of validators in the current extrinsic
    """
    post_state: AssurancesState = field(metadata={'codec': AssurancesState.to_codec_def()})
    reported: List[ReportedPackage] = field(metadata={'codec': Vec(ReportedPackage.to_codec_def())})
    reporters: List[bytes] = field(metadata={'codec': Vec(H256)})

StatisticsOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.20 (π') | Output of Statistics STF.

Attributes:

Name Type Description
post_state StatisticsState

GP-0.7.2-eq:4.20 (π') | Primary output of Statistics STF.

Source code in pyjamaz/models/stf_output.py
267
268
269
270
271
272
273
274
275
276
277
@dataclass
class StatisticsOutput(Serializable):
    """
    GP-0.7.2-eq:4.20 (π') | Output of Statistics STF.

    Attributes
    ----------
    post_state:StatisticsState
        GP-0.7.2-eq:4.20 (π') | Primary output of Statistics STF.
    """
    post_state: StatisticsState = field(metadata={'codec': StatisticsState.to_codec_def()})

ServicesAfterPreimagesOutput dataclass

Bases: Serializable

GP-0.5.0-eq:4.?? (δ') | Output of ServicesAfterPreimages STF.

Attributes:

Name Type Description
post_state ServicesState

GP-0.5.0-eq:4.?? (δ') | Primary output of ServicesAfterPreimages STF.

Source code in pyjamaz/models/stf_output.py
285
286
287
288
289
290
291
292
293
294
295
296
@dataclass
class ServicesAfterPreimagesOutput(Serializable):
    """
    GP-0.5.0-eq:4.?? (δ') | Output of ServicesAfterPreimages STF.

    Attributes
    ----------
    post_state:ServicesState
        GP-0.5.0-eq:4.?? (δ') | Primary output of ServicesAfterPreimages STF.
    """
    # TODO: deprecated?
    post_state: ServicesState = field(metadata={'codec': ServicesState.to_codec_def()})

ServicesAfterAccumulationOutput dataclass

Bases: Serializable

GP-0.5.0-eq:4.18 (δ†) | Output of Services STF.

Attributes:

Name Type Description
intermediate_state_after_accumulation ServicesState

GP-0.6.1-eq:12.22 (δ†) | Primary output of Services STF.

post_state_privileged_services PrivilegedServicesState

GP-0.6.1-eq:12.22 (χ') | Posterior state of privileged services

post_state_validator_queue ValidatorQueueState

GP-0.6.1-eq:12.22 (ι') | Posterior state of validator queue

post_state_authorizer_queues AuthorizerQueuesState

GP-0.6.1-eq:12.22 (𝜙') | Posterior state of authorizer queues

beefy_commitment_map BeefyCommitmentMap

GP-0.6.1-eq:12.21 (C) | Secondary output of Services STF, BeefyCommitmentMap.

nr_work_results_accumulated int

GP-0.6.1-eq:12.21 (n) | Number of work results accumulated

accumulation_gas_utilized Dict[int, int]

GP-0.6.4-eq:12.21 (bold_u) | accumulation gas utilized per service

Source code in pyjamaz/models/stf_output.py
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
@dataclass
class ServicesAfterAccumulationOutput(Serializable):
    """
    GP-0.5.0-eq:4.18 (δ†) | Output of Services STF.

    Attributes
    ----------
    intermediate_state_after_accumulation: ServicesState
        GP-0.6.1-eq:12.22 (δ†) | Primary output of Services STF.
    post_state_privileged_services: PrivilegedServicesState
        GP-0.6.1-eq:12.22 (χ') | Posterior state of privileged services
    post_state_validator_queue: ValidatorQueueState
        GP-0.6.1-eq:12.22 (ι') | Posterior state of validator queue
    post_state_authorizer_queues: AuthorizerQueuesState
        GP-0.6.1-eq:12.22 (𝜙') | Posterior state of authorizer queues
    beefy_commitment_map: BeefyCommitmentMap
        GP-0.6.1-eq:12.21 (C) | Secondary output of Services STF, BeefyCommitmentMap.
    nr_work_results_accumulated: int
        GP-0.6.1-eq:12.21 (n) | Number of work results accumulated
    accumulation_gas_utilized: Dict[int, int]
        GP-0.6.4-eq:12.21 (bold_u) | accumulation gas utilized per service

    """
    # TODO: deprecated?
    intermediate_state_after_accumulation: ServicesState = field(metadata={'codec': ServicesState.to_codec_def()})
    post_state_privileged_services: PrivilegedServicesState = field(metadata={'codec': PrivilegedServicesState.to_codec_def()})
    post_state_validator_queue: ValidatorQueueState = field(metadata={'codec': ValidatorQueueState.to_codec_def()})
    post_state_authorizer_queues: AuthorizerQueuesState = field(metadata={'codec': AuthorizerQueuesState.to_codec_def()})
    beefy_commitment_map: BeefyCommitmentMap = field(metadata={'codec': BeefyCommitmentMap.to_codec_def()})
    nr_work_results_accumulated: int = field(metadata={'codec': U32})
    accumulation_gas_utilized: Dict[int, int] = field(metadata={'codec': Map(U32, U64)})

AccumulationHistoryOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.16 (ξ') | Output of Accumulation History STF.

Attributes:

Name Type Description
post_state AccumulationHistoryState

GP-0.7.2-eq:4.16 (ξ') | Primary output of AccumulationHistory STF.

Source code in pyjamaz/models/stf_output.py
332
333
334
335
336
337
338
339
340
341
342
@dataclass
class AccumulationHistoryOutput(Serializable):
    """
    GP-0.7.2-eq:4.16 (ξ') | Output of Accumulation History STF.

    Attributes
    ----------
    post_state: AccumulationHistoryState
        GP-0.7.2-eq:4.16 (ξ') | Primary output of AccumulationHistory STF.
    """
    post_state: AccumulationHistoryState = field(metadata={'codec': AccumulationHistoryState.to_codec_def()})

AccumulationQueueOutput dataclass

Bases: Serializable

GP-0.7.2-eq:4.16 (θ') | Output of Accumulation Queue STF.

Attributes:

Name Type Description
post_state ServicesState

GP-0.7.2-eq:4.16 (θ') | Primary output of AccumulationQueue STF.

Source code in pyjamaz/models/stf_output.py
345
346
347
348
349
350
351
352
353
354
355
@dataclass
class AccumulationQueueOutput(Serializable):
    """
    GP-0.7.2-eq:4.16 (θ') | Output of Accumulation Queue STF.

    Attributes
    ----------
    post_state: ServicesState
        GP-0.7.2-eq:4.16 (θ') | Primary output of AccumulationQueue STF.
    """
    post_state: AccumulationQueueState = field(metadata={'codec': AccumulationQueueState.to_codec_def()})