Preparing search index...
The search index is not available
@sentio/sdk
@sentio/sdk
testing
TestProcessorServer
Class TestProcessorServer
Implements
ProcessorServiceImplementation
Index
Constructors
constructor
Properties
account
Configs
aptos
btc
contract
Configs
cosmos
eth
fuel
service
solana
starknet
sui
Methods
get
Config
preprocess
Bindings
Stream
process
Binding
process
Bindings
process
Bindings
Stream
start
stop
Constructors
constructor
new
TestProcessorServer
(
loader
:
()
=>
Promise
<
any
>
,
httpEndpoints
?:
Record
<
string
,
string
>
,
)
:
TestProcessorServer
Parameters
loader
:
()
=>
Promise
<
any
>
httpEndpoints
:
Record
<
string
,
string
>
= {}
Returns
TestProcessorServer
Properties
account
Configs
accountConfigs
:
AccountConfig
[]
aptos
aptos
:
AptosFacet
btc
btc
:
BTCFacet
contract
Configs
contractConfigs
:
ContractConfig
[]
cosmos
cosmos
:
CosmosFacet
eth
eth
:
EthFacet
fuel
fuel
:
FuelFacet
service
service
:
ProcessorServiceImpl
solana
solana
:
SolanaFacet
starknet
starknet
:
StarknetFacet
sui
sui
:
SuiFacet
Methods
get
Config
getConfig
(
request
:
ProcessConfigRequest
,
context
?:
CallContext
,
)
:
Promise
<
ProcessConfigResponse
>
Parameters
request
:
ProcessConfigRequest
context
:
CallContext
= TEST_CONTEXT
Returns
Promise
<
ProcessConfigResponse
>
preprocess
Bindings
Stream
preprocessBindingsStream
(
requests
:
AsyncIterable
<
PreprocessStreamRequest
>
,
context
:
CallContext
,
)
:
ServerStreamingMethodResult
<
{
dbRequest
?:
{
delete
?:
{
entity
?:
string
[]
;
id
?:
string
[]
}
;
get
?:
{
entity
?:
string
;
id
?:
string
}
;
list
?:
{
cursor
?:
string
;
entity
?:
string
;
filters
?:
{
field
?:
string
;
op
?:
DBRequest_DBOperator
;
value
?:
{
values
?:
...
}
;
}
[]
;
pageSize
?:
number
;
}
;
opId
?:
bigint
;
upsert
?:
{
data
?:
{
[
key
:
string
]:
any
}
[]
;
entity
?:
string
[]
;
entityData
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
[]
;
id
?:
string
[]
;
}
;
}
;
processId
?:
number
;
}
,
>
Parameters
requests
:
AsyncIterable
<
PreprocessStreamRequest
>
context
:
CallContext
Returns
ServerStreamingMethodResult
<
{
dbRequest
?:
{
delete
?:
{
entity
?:
string
[]
;
id
?:
string
[]
}
;
get
?:
{
entity
?:
string
;
id
?:
string
}
;
list
?:
{
cursor
?:
string
;
entity
?:
string
;
filters
?:
{
field
?:
string
;
op
?:
DBRequest_DBOperator
;
value
?:
{
values
?:
...
}
;
}
[]
;
pageSize
?:
number
;
}
;
opId
?:
bigint
;
upsert
?:
{
data
?:
{
[
key
:
string
]:
any
}
[]
;
entity
?:
string
[]
;
entityData
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
[]
;
id
?:
string
[]
;
}
;
}
;
processId
?:
number
;
}
,
>
process
Binding
processBinding
(
request
:
DataBinding
,
context
?:
CallContext
,
)
:
Promise
<
ProcessBindingResponse
>
Parameters
request
:
DataBinding
context
:
CallContext
= TEST_CONTEXT
Returns
Promise
<
ProcessBindingResponse
>
process
Bindings
processBindings
(
request
:
ProcessBindingsRequest
,
context
?:
CallContext
,
)
:
Promise
<
ProcessBindingResponse
>
Parameters
request
:
ProcessBindingsRequest
context
:
CallContext
= TEST_CONTEXT
Returns
Promise
<
ProcessBindingResponse
>
process
Bindings
Stream
processBindingsStream
(
requests
:
AsyncIterable
<
ProcessStreamRequest
>
,
context
:
CallContext
,
)
:
ServerStreamingMethodResult
<
{
dbRequest
?:
{
delete
?:
{
entity
?:
string
[]
;
id
?:
string
[]
}
;
get
?:
{
entity
?:
string
;
id
?:
string
}
;
list
?:
{
cursor
?:
string
;
entity
?:
string
;
filters
?:
{
field
?:
string
;
op
?:
DBRequest_DBOperator
;
value
?:
{
values
?:
...
}
;
}
[]
;
pageSize
?:
number
;
}
;
opId
?:
bigint
;
upsert
?:
{
data
?:
{
[
key
:
string
]:
any
}
[]
;
entity
?:
string
[]
;
entityData
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
[]
;
id
?:
string
[]
;
}
;
}
;
processId
?:
number
;
result
?:
{
counters
?:
{
add
?:
boolean
;
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
metricValue
?:
{
bigDecimal
?:
string
;
bigInteger
?:
{
data
?:
...
;
negative
?:
...
}
;
doubleValue
?:
number
;
}
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
events
?:
{
attributes
?:
{
[
key
:
string
]:
any
}
;
attributes2
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
;
distinctEntityId
?:
string
;
message
?:
string
;
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
noMetric
?:
boolean
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
severity
?:
LogLevel
;
}
[]
;
exports
?:
{
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
payload
?:
string
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
gauges
?:
{
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
metricValue
?:
{
bigDecimal
?:
string
;
bigInteger
?:
{
data
?:
...
;
negative
?:
...
}
;
doubleValue
?:
number
;
}
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
states
?:
{
configUpdated
?:
boolean
;
error
?:
string
}
;
}
;
}
,
>
Parameters
requests
:
AsyncIterable
<
ProcessStreamRequest
>
context
:
CallContext
Returns
ServerStreamingMethodResult
<
{
dbRequest
?:
{
delete
?:
{
entity
?:
string
[]
;
id
?:
string
[]
}
;
get
?:
{
entity
?:
string
;
id
?:
string
}
;
list
?:
{
cursor
?:
string
;
entity
?:
string
;
filters
?:
{
field
?:
string
;
op
?:
DBRequest_DBOperator
;
value
?:
{
values
?:
...
}
;
}
[]
;
pageSize
?:
number
;
}
;
opId
?:
bigint
;
upsert
?:
{
data
?:
{
[
key
:
string
]:
any
}
[]
;
entity
?:
string
[]
;
entityData
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
[]
;
id
?:
string
[]
;
}
;
}
;
processId
?:
number
;
result
?:
{
counters
?:
{
add
?:
boolean
;
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
metricValue
?:
{
bigDecimal
?:
string
;
bigInteger
?:
{
data
?:
...
;
negative
?:
...
}
;
doubleValue
?:
number
;
}
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
events
?:
{
attributes
?:
{
[
key
:
string
]:
any
}
;
attributes2
?:
{
fields
?:
{
[
key
:
...
]:
...
}
}
;
distinctEntityId
?:
string
;
message
?:
string
;
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
noMetric
?:
boolean
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
severity
?:
LogLevel
;
}
[]
;
exports
?:
{
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
payload
?:
string
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
gauges
?:
{
metadata
?:
{
address
?:
string
;
blockNumber
?:
bigint
;
chainId
?:
string
;
contractName
?:
string
;
labels
?:
{
[
key
:
...
]:
...
}
;
logIndex
?:
number
;
name
?:
string
;
transactionHash
?:
string
;
transactionIndex
?:
number
;
}
;
metricValue
?:
{
bigDecimal
?:
string
;
bigInteger
?:
{
data
?:
...
;
negative
?:
...
}
;
doubleValue
?:
number
;
}
;
runtimeInfo
?:
{
from
?:
HandlerType
}
;
}
[]
;
states
?:
{
configUpdated
?:
boolean
;
error
?:
string
}
;
}
;
}
,
>
start
start
(
request
?:
StartRequest
,
context
?:
CallContext
)
:
Promise
<
Empty
>
Parameters
request
:
StartRequest
= ...
context
:
CallContext
= TEST_CONTEXT
Returns
Promise
<
Empty
>
stop
stop
(
request
:
Empty
,
context
?:
CallContext
)
:
Promise
<
Empty
>
Parameters
request
:
Empty
context
:
CallContext
= TEST_CONTEXT
Returns
Promise
<
Empty
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
account
Configs
aptos
btc
contract
Configs
cosmos
eth
fuel
service
solana
starknet
sui
Methods
get
Config
preprocess
Bindings
Stream
process
Binding
process
Bindings
process
Bindings
Stream
start
stop
@sentio/sdk
Loading...