Typeberry by Fluffy Labs - v0.5.0
Preparing search index...
lib
transition
OnChain
Class OnChain
Index
Constructors
constructor
Properties
chain
Spec
hasher
state
Methods
prepare
For
Next
Epoch
transition
Constructors
constructor
new
OnChain
(
chainSpec
:
ChainSpec
,
state
:
State
&
WithStateView
,
hasher
:
TransitionHasher
,
pvm
:
PvmBackend
,
headerChain
:
HeaderChain
,
)
:
OnChain
Parameters
chainSpec
:
ChainSpec
state
:
State
&
WithStateView
hasher
:
TransitionHasher
pvm
:
PvmBackend
headerChain
:
HeaderChain
Returns
OnChain
Properties
Readonly
chain
Spec
chainSpec
:
ChainSpec
Readonly
hasher
hasher
:
TransitionHasher
Readonly
state
state
:
State
&
WithStateView
Methods
prepare
For
Next
Epoch
prepareForNextEpoch
()
:
Promise
<
void
>
Pre-populate things worth caching for the next epoch.
Returns
Promise
<
void
>
transition
transition
(
block
:
ViewOf
,
headerHash
:
OpaqueHash
&
WithOpaque
<
"HeaderHash"
>
,
)
:
Promise
<
utils
.
Result
<
Ok
,
StfError
>
>
Parameters
block
:
ViewOf
headerHash
:
OpaqueHash
&
WithOpaque
<
"HeaderHash"
>
Returns
Promise
<
utils
.
Result
<
Ok
,
StfError
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
chain
Spec
hasher
state
Methods
prepare
For
Next
Epoch
transition
Typeberry by Fluffy Labs - v0.5.0
Loading...
Pre-populate things worth caching for the next epoch.