-
Build the
aptos-node
binary and bindaptos-node
to thePATH
- Follow instructions for
devnet
- In
aptos-core
repo, runcd aptos-node
andcargo install --path .
- Follow instructions for
-
Run firehose
./devel/localnet/start.sh -c
And ensure blocks are flowing:
grpcurl -plaintext -import-path ../proto -import-path ./proto -proto sf/aptos/type/v1/type.proto -proto sf/firehose/v2/firehose.proto -d '{"start_block_num": 0}' localhost:18015 sf.firehose.v2.Stream.Blocks
-
Ensure that
protoc
is installed:brew install protoc
-
Ensure that
protoc-gen-go
andprotoc-gen-go-grpc
are installed and at the correct versiongo install google.golang.org/protobuf/cmd/[email protected] go install google.golang.org/grpc/cmd/[email protected]
-
Have a copy of https://github.com/streamingfast/proto cloned sibling of this project:
# Assuming you are in `firehose-aptos` root directory directly cd .. git clone https://github.com/streamingfast/proto.git ls # Should list both firehose-aptos and proto
-
Generate go file from modified protobuf
./types/pb/generate.sh
-
Run tests and fix any problems:
./bin/test.sh
-
Run
localnet
config to ensure everything is working as expected:./devel/localnet/start.sh -c
And ensure blocks are flowing:
grpcurl -plaintext -import-path ../proto -import-path ./proto -proto sf/aptos/type/v1/type.proto -proto sf/firehose/v2/firehose.proto -d '{"start_block_num": 0}' localhost:18015 sf.firehose.v2.Stream.Blocks
-
(optional) Make .spkg file for substreams
substreams pack substreams/substreams.yaml
Use the ./bin/release.sh
Bash script to perform a new release. It will ask you questions
as well as driving all the required commands, performing the necessary operation automatically.
The Bash script runs in dry-mode by default, so you can check first that everything is all right.
Releases are performed using goreleaser.
Issues and PR in this repo related strictly to the Firehose on Dummy Blockchain.
Report any protocol-specific issues in their respective repositories
Please first refer to the general StreamingFast contribution guide, if you wish to contribute to this code base.
This codebase uses unit tests extensively, please write and run tests.