module
Version:
v0.0.0-...-c281f46
Opens a new window with list of versions in this module.
Published: Jul 20, 2023
License: Apache-2.0
Opens a new window with license information.
README
¶
Firehose on Aleo Blockchain
Usage
Setup
-
Build the aleo-node
binary and bind aleo-node
to the PATH
-
Run firehose
./devel/standard/start.sh -c
And ensure blocks are flowing:
grpcurl -plaintext -d '{"start_block_num": 10, "stop_block_num": 20}' localhost:18015 sf.firehose.v2.Stream.Blocks
Re-generate Protobuf Definitions
-
Ensure that protoc
is installed:
brew install protoc
-
Ensure that protoc-gen-go
and protoc-gen-go-grpc
are installed and at the correct version
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
-
Generate go file from modified protobuf
./types/pb/generate.sh
mv ./types/pb/type.pb.go ./types/pb/sf/aleo/type/v1
-
Run tests and fix any problems:
./bin/test.sh
-
Run standard
config to ensure everything is working as expected:
./devel/standard/start.sh -c
or
nohup ./devel/standard/start.sh -c &
And ensure blocks are flowing:
grpcurl -plaintext -d '{"start_block_num": 10, "stop_block_num": 20}' localhost:18015 sf.firehose.v2.Stream.Blocks
-
(optional) Make .spkg file for substreams
substreams pack substreams/substreams.yaml
License
Apache 2.0
Directories
¶
cmd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.