Preparing search index...
The search index is not available
@sentio/sdk
@sentio/sdk
fuel
FuelAbstractProcessor
Class FuelAbstractProcessor<TContract>
Abstract
Type Parameters
TContract
extends
Contract
Hierarchy (
View Summary
)
FuelProcessor
<
TContract
>
FuelAbstractProcessor
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
Protected
constructor
new
FuelAbstractProcessor
<
TContract
extends
Contract
>
(
abi
:
JsonAbi
,
config
?:
Omit
<
FuelProcessorConfig
,
"abi"
>
,
)
:
FuelAbstractProcessor
<
TContract
>
Type Parameters
TContract
extends
Contract
Parameters
abi
:
JsonAbi
Optional
config
:
Omit
<
FuelProcessorConfig
,
"abi"
>
Returns
FuelAbstractProcessor
<
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
,
)
:
FuelAbstractProcessor
<
TContract
>
Type Parameters
T
Parameters
logIdFilter
:
string
|
string
[]
handler
:
(
logs
:
FuelLog
<
T
>
,
ctx
:
FuelContractContext
<
TContract
>
)
=>
PromiseOrVoid
Returns
FuelAbstractProcessor
<
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
,
)
:
FuelAbstractProcessor
<
TContract
>
Parameters
handler
:
(
transaction
:
FuelTransaction
,
ctx
:
FuelContractContext
<
TContract
>
,
)
=>
PromiseOrVoid
config
:
FuelFetchConfig
= DEFAULT_FUEL_FETCH_CONFIG
Returns
FuelAbstractProcessor
<
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...