Preparing search index...
The search index is not available
@sentio/sdk
@sentio/sdk
fuel
FuelProcessor
Class FuelProcessor<TContract>
Type Parameters
TContract
extends
Contract
Hierarchy (
View Summary
)
FuelProcessor
FuelAbstractProcessor
Implements
FuelBaseProcessor
<
FuelProcessorConfig
>
Index
Constructors
constructor
Properties
block
Handlers
call
Handlers
config
latest
Gas
Price
Methods
configure
on
Block
Interval
on
Interval
on
Log
on
Time
Interval
on
Transaction
bind
Constructors
constructor
new
FuelProcessor
<
TContract
extends
Contract
>
(
config
:
FuelProcessorConfig
,
)
:
FuelProcessor
<
TContract
>
Type Parameters
TContract
extends
Contract
Parameters
config
:
FuelProcessorConfig
Returns
FuelProcessor
<
TContract
>
Properties
block
Handlers
blockHandlers
:
BlockHandler
[]
= []
call
Handlers
callHandlers
:
CallHandler
<
Data_FuelCall
>
[]
= []
Readonly
config
config
:
FuelProcessorConfig
latest
Gas
Price
latestGasPrice
:
undefined
|
string
Methods
configure
configure
()
:
Promise
<
void
>
Returns
Promise
<
void
>
on
Block
Interval
onBlockInterval
(
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
,
blockInterval
?:
number
,
backfillBlockInterval
?:
number
,
)
:
this
Parameters
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
)
=>
PromiseOrVoid
blockInterval
:
number
= 250
backfillBlockInterval
:
number
= 1000
Returns
this
on
Interval
onInterval
(
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
,
timeInterval
:
undefined
|
HandleInterval
,
blockInterval
:
undefined
|
HandleInterval
,
)
:
this
Parameters
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
)
=>
PromiseOrVoid
timeInterval
:
undefined
|
HandleInterval
blockInterval
:
undefined
|
HandleInterval
Returns
this
on
Log
onLog
<
T
>
(
logIdFilter
:
string
|
string
[]
,
handler
:
(
logs
:
FuelLog
<
T
>
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
,
)
:
FuelProcessor
<
TContract
>
Type Parameters
T
Parameters
logIdFilter
:
string
|
string
[]
handler
:
(
logs
:
FuelLog
<
T
>
,
ctx
:
FuelContractContext
<
TContract
>
)
=>
PromiseOrVoid
Returns
FuelProcessor
<
TContract
>
on
Time
Interval
onTimeInterval
(
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
,
timeIntervalInMinutes
?:
number
,
backfillTimeIntervalInMinutes
?:
number
,
)
:
this
Parameters
handler
:
(
block
:
FuelBlock
,
ctx
:
FuelContractContext
<
TContract
>
)
=>
PromiseOrVoid
timeIntervalInMinutes
:
number
= 60
backfillTimeIntervalInMinutes
:
number
= 240
Returns
this
on
Transaction
onTransaction
(
handler
:
(
transaction
:
FuelTransaction
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
,
config
?:
FuelFetchConfig
,
)
:
FuelProcessor
<
TContract
>
Parameters
handler
:
(
transaction
:
FuelTransaction
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
config
:
FuelFetchConfig
= DEFAULT_FUEL_FETCH_CONFIG
Returns
FuelProcessor
<
TContract
>
Static
bind
bind
(
config
:
FuelProcessorConfig
)
:
FuelProcessor
<
any
>
Parameters
config
:
FuelProcessorConfig
Returns
FuelProcessor
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
block
Handlers
call
Handlers
config
latest
Gas
Price
Methods
configure
on
Block
Interval
on
Interval
on
Log
on
Time
Interval
on
Transaction
bind
@sentio/sdk
Loading...