Search
Preparing search index...
The search index is not available
redstone-smartweave
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
redstone-smartweave
DefaultStateEvaluator
Class DefaultStateEvaluator
Hierarchy
DefaultStateEvaluator
CacheableStateEvaluator
Implements
StateEvaluator
Index
Constructors
constructor
Methods
do
Read
State
eval
find
Input
Tag
log
Result
on
State
Update
parse
Input
Constructors
constructor
new
Default
State
Evaluator
(
arweave
:
default
, executionContextModifiers
?:
ExecutionContextModifier
[]
)
:
DefaultStateEvaluator
Parameters
arweave:
default
executionContextModifiers:
ExecutionContextModifier
[]
= []
Returns
DefaultStateEvaluator
Methods
Protected
do
Read
State
do
Read
State<State>
(
missingInteractions
:
GQLEdgeInterface
[]
, baseState
:
EvalStateResult
<
State
>
, executionContext
:
ExecutionContext
<
State
,
HandlerApi
<
State
>
>
, currentTx
:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
)
:
Promise
<
EvalStateResult
<
State
>
>
Type parameters
State
Parameters
missingInteractions:
GQLEdgeInterface
[]
baseState:
EvalStateResult
<
State
>
executionContext:
ExecutionContext
<
State
,
HandlerApi
<
State
>
>
currentTx:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
Returns
Promise
<
EvalStateResult
<
State
>
>
eval
eval<State>
(
executionContext
:
ExecutionContext
<
State
,
HandlerApi
<
State
>
>
, currentTx
:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
)
:
Promise
<
EvalStateResult
<
State
>
>
Type parameters
State
Parameters
executionContext:
ExecutionContext
<
State
,
HandlerApi
<
State
>
>
currentTx:
{
contractTxId
:
string
;
interactionTxId
:
string
}
[]
Returns
Promise
<
EvalStateResult
<
State
>
>
Private
find
Input
Tag
find
Input
Tag<State>
(
missingInteraction
:
GQLEdgeInterface
, executionContext
:
ExecutionContext
<
State
,
unknown
>
)
:
GQLTagInterface
Type parameters
State
Parameters
missingInteraction:
GQLEdgeInterface
executionContext:
ExecutionContext
<
State
,
unknown
>
Returns
GQLTagInterface
Private
log
Result
log
Result<State>
(
result
:
InteractionResult
<
State
,
unknown
>
, currentTx
:
GQLNodeInterface
)
:
void
Type parameters
State
Parameters
result:
InteractionResult
<
State
,
unknown
>
currentTx:
GQLNodeInterface
Returns
void
on
State
Update
on
State
Update<State>
(
currentInteraction
:
GQLNodeInterface
, executionContext
:
ExecutionContext
<
State
,
unknown
>
, state
:
EvalStateResult
<
State
>
)
:
Promise
<
void
>
Type parameters
State
Parameters
currentInteraction:
GQLNodeInterface
executionContext:
ExecutionContext
<
State
,
unknown
>
state:
EvalStateResult
<
State
>
Returns
Promise
<
void
>
Private
parse
Input
parse
Input
(
inputTag
:
GQLTagInterface
)
:
unknown
Parameters
inputTag:
GQLTagInterface
Returns
unknown
Exports
Default
State
Evaluator
constructor
do
Read
State
eval
find
Input
Tag
log
Result
on
State
Update
parse
Input
Generated using
TypeDoc