66
77JamTypes DEFINITIONS ::= BEGIN
88
9+ --------------------------------------------------------------------------------
10+ -- Constants
11+ --------------------------------------------------------------------------------
12+
913IMPORTS
10- -- Constants
11- validators-count, epoch-length, cores-count,
14+ validators-count, epoch-length, core-count,
1215 validators-super-majority, avail-bitfield-bytes,
1316 max-blocks-history, max-tickets-per-block,
1417 auth-pool-max-size, auth-queue-size
1518 FROM Constants;
1619
20+ max-blocks-history INTEGER ::= 8
21+ auth-pool-max-size INTEGER ::= 8
22+ auth-queue-size INTEGER ::= 80
23+
1724--------------------------------------------------------------------------------
1825-- Simple Types
1926--
@@ -138,8 +145,16 @@ ServiceInfo ::= SEQUENCE {
138145 min-memo-gas Gas,
139146 -- Total bytes stored by the service
140147 bytes U64,
148+ -- Offset of storage footprint only above which a minimum deposit is needed.
149+ deposit-offset U64,
141150 -- Number of items stored by the service
142- items U32
151+ items U32,
152+ -- Creation time slot
153+ creation-slot U32,
154+ -- Most recent accumulation time slot
155+ last-accumulation-slot U32,
156+ -- Parent service identifier
157+ parent-service U32
143158}
144159
145160--------------------------------------------------------------------------------
@@ -166,7 +181,7 @@ AvailabilityAssignmentsItem ::= CHOICE {
166181}
167182
168183-- Assignments for all cores in the system
169- AvailabilityAssignments ::= SEQUENCE (SIZE (cores -count)) OF AvailabilityAssignmentsItem
184+ AvailabilityAssignments ::= SEQUENCE (SIZE (core -count)) OF AvailabilityAssignmentsItem
170185
171186--------------------------------------------------------------------------------
172187-- Refine Context
@@ -211,12 +226,12 @@ AuthorizerHash ::= OpaqueHash
211226-- Pool of authorizer hashes for a core
212227AuthPool ::= SEQUENCE (SIZE (0 .. auth-pool-max-size)) OF AuthorizerHash
213228-- Pools of authorizers for all cores
214- AuthPools ::= SEQUENCE (SIZE (cores -count)) OF AuthPool
229+ AuthPools ::= SEQUENCE (SIZE (core -count)) OF AuthPool
215230
216231-- Queue of authorizer hashes for a core
217232AuthQueue ::= SEQUENCE (SIZE (auth-queue-size)) OF AuthorizerHash
218233-- Queues of authorizers for all cores
219- AuthQueues ::= SEQUENCE (SIZE (cores -count)) OF AuthQueue
234+ AuthQueues ::= SEQUENCE (SIZE (core -count)) OF AuthQueue
220235
221236--------------------------------------------------------------------------------
222237-- Work Package
@@ -405,9 +420,9 @@ ReportedWorkPackage ::= SEQUENCE {
405420BlockInfo ::= SEQUENCE {
406421 -- Hash of the block header
407422 header-hash HeaderHash,
408- -- Merkle Mountain Range
409- mmr Mmr ,
410- -- Posterior state root at this block
423+ -- Merkle Mountain Range root
424+ beefy-root OpaqueHash ,
425+ -- Posterior state root
411426 state-root StateRoot,
412427 -- Work packages reported in this block
413428 reported SEQUENCE OF ReportedWorkPackage
@@ -416,6 +431,14 @@ BlockInfo ::= SEQUENCE {
416431-- History of recent blocks
417432BlocksHistory ::= SEQUENCE (SIZE (0 .. max-blocks-history)) OF BlockInfo
418433
434+ -- Imported Blocks Information
435+ RecentBlocks ::= SEQUENCE {
436+ -- Recent blocks history
437+ history BlocksHistory,
438+ -- MMR
439+ mmr Mmr
440+ }
441+
419442--------------------------------------------------------------------------------
420443-- Statistics
421444--
@@ -463,7 +486,7 @@ CoreActivityRecord ::= SEQUENCE {
463486}
464487
465488-- Statistics for all cores
466- CoresStatistics ::= SEQUENCE (SIZE (cores -count)) OF CoreActivityRecord
489+ CoresStatistics ::= SEQUENCE (SIZE (core -count)) OF CoreActivityRecord
467490
468491-- Record of a service's activity
469492ServiceActivityRecord ::= SEQUENCE {
@@ -693,7 +716,7 @@ ReportGuarantee ::= SEQUENCE {
693716}
694717
695718-- Extrinsic containing guarantees for work reports
696- GuaranteesExtrinsic ::= SEQUENCE (SIZE (0 .. cores -count)) OF ReportGuarantee
719+ GuaranteesExtrinsic ::= SEQUENCE (SIZE (0 .. core -count)) OF ReportGuarantee
697720
698721--------------------------------------------------------------------------------
699722-- Accumulation
@@ -735,7 +758,7 @@ Privileges ::= SEQUENCE {
735758 -- Service ID with blessing privileges
736759 bless ServiceId,
737760 -- Service ID with assignment privileges
738- assign ServiceId,
761+ assign SEQUENCE ( SIZE (core-count)) OF ServiceId,
739762 -- Service ID with designation privileges
740763 designate ServiceId,
741764 -- Services that are always accumulated
0 commit comments