First test is to receive a Clock in Go, and ship it to the Substreams engine, and have it run over there.
map_mod
that prints something to logs.First test is to unpack a raw Ethereum Block, from within tinygo
.
tinygo build -o wasm.wasm -target wasi -gc leaking -scheduler none .
substreams gui ./substreams-starknet.yaml --plaintext -e 127.0.0.1:10016 -t +10 map_test
# or
substreams run ./substreams-starknet.yaml --plaintext -e 127.0.0.1:10016 -t +10 map_test
buf generate --exclude-path sf/substreams-starknet/v1,sf/substreams-starknet/rpc,google/,sf/substreams-starknet/sink,sf/substreams-starknet
all_transaction
reads from the sf.starknet.type.v1.Block
source and outputs a list of all transactions in the block.
substreams gui starknet-foundational@v0.1.3 all_transactions
filtered_transactions
reads from all_transactions
and applies a filter on keys,
only outputting the transactions that match the filter.
Example usage: (tx:class_hash:0x0000000 && rc:type:0)
substreams gui starknet-foundational@v0.1.3 filtered_transactions
index_events
sets the keys corresponding to all event 'types' and 'attribute keys' in the block
substreams gui starknet-foundational@v0.1.3 index_transactions
message
DeployRequest
message
Parameter
message
DeployResponse
message
UpdateRequest
message
UpdateResponse
message
InfoRequest
message
InfoResponse
message
SinkProgress
message
PackageInfo
message
ListRequest
message
ListResponse
message
DeploymentWithStatus
message
RemoveRequest
message
RemoveResponse
message
PauseRequest
message
PauseResponse
message
StopRequest
message
StopResponse
message
ResumeRequest
message
ResumeResponse
enum
DeploymentStatus
message
Timestamp
message
Duration
message
FileDescriptorSet
message
FileDescriptorProto
message
DescriptorProto
message
ExtensionRangeOptions
message
FieldDescriptorProto
message
OneofDescriptorProto
message
EnumDescriptorProto
message
EnumValueDescriptorProto
message
ServiceDescriptorProto
message
MethodDescriptorProto
message
FileOptions
message
MessageOptions
message
FieldOptions
message
OneofOptions
message
EnumOptions
message
EnumValueOptions
message
ServiceOptions
message
MethodOptions
message
UninterpretedOption
message
SourceCodeInfo
message
GeneratedCodeInfo
message
Any
message
Block
message
ResourcePrice
message
TransactionWithReceipt
message
TransactionReceipt
message
MessagesSent
message
Event
message
ExecutionResources
message
InvokeTransactionV0
message
InvokeTransactionV1
message
InvokeTransactionV3
message
L1HandlerTransaction
message
DeclareTransactionV0
message
DeclareTransactionV1
message
DeclareTransactionV2
message
DeclareTransactionV3
message
DeployTransactionV0
message
DeployAccountTransactionV1
message
DeployAccountTransactionV3
message
ResourceBounds
message
Resource
message
Receipt
message
ActualFee
message
DataAvailability
message
StateUpdate
message
StateDiff
message
NonceDiff
message
ReplacedClass
message
DeployedContract
message
DeclaredClass
message
ContractStorageDiff
message
StorageEntries
enum
L1_DA_MODE
enum
FEE_DATA_AVAILABILITY_MODE
enum
TRANSACTION_TYPE
enum
EXECUTION_STATUS
message
Modules
message
Binary
message
Module
message
Package
message
NetworkParams
message
PackageMetadata
message
ModuleMetadata
message
Clock
message
BlockRef
message
Request
message
Response
message
BlockUndoSignal
message
BlockScopedData
message
SessionInit
message
InitialSnapshotComplete
message
InitialSnapshotData
message
MapModuleOutput
message
StoreModuleOutput
message
OutputDebugInfo
message
ModulesProgress
message
ProcessedBytes
message
Error
message
Job
message
Stage
message
ModuleStats
message
ExternalCallMetric
message
StoreDelta
message
BlockRange