firehose-aleo

module
v0.0.0-...-c281f46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2023 License: Apache-2.0

README

Firehose on Aleo Blockchain

reference License

Usage

Setup

  1. Build the aleo-node binary and bind aleo-node to the PATH

  2. 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

  1. Ensure that protoc is installed:

    brew install protoc
    
  2. 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
    
  3. Generate go file from modified protobuf

    ./types/pb/generate.sh
    mv ./types/pb/type.pb.go ./types/pb/sf/aleo/type/v1
    
  4. Run tests and fix any problems:

    ./bin/test.sh
    
  5. 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
    
  6. (optional) Make .spkg file for substreams substreams pack substreams/substreams.yaml

License

Apache 2.0

Directories

Path Synopsis
cmd
types module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL