-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
@cxp-13 ➜ /workspace (main) $ substreams build
Building manifest file: /workspace/substreams.yaml
Running command in /workspace: `substreams protogen /workspace/substreams.yaml --exclude-paths sf/substreams/rpc,sf/substreams/v1,sf/substreams/sink,sf/substreams/index,sf/substreams/index/v1,instructions.proto,transactions.proto,google`...
Error: reading manifest "/workspace/substreams.yaml": unable to get package: unable to convert manifest to package: loading protobuf: error parsing proto files ["program.proto"] (import paths: ["/workspace/proto" "/workspace"]): program.proto:157:17: syntax error: unexpected '='
Error: error running protogen: error running protogen: error running `substreams protogen /workspace/substreams.yaml --exclude-paths sf/substreams/rpc,sf/substreams/v1,sf/substreams/sink,sf/substreams/index,sf/substreams/index/v1,instructions.proto,transactions.proto,google`: exit status 1
@cxp-13 ➜ /workspace (main) $ substreams build
Building manifest file: /workspace/substreams.yaml
Running command in /workspace: `substreams protogen /workspace/substreams.yaml --exclude-paths sf/substreams/rpc,sf/substreams/v1,sf/substreams/sink,sf/substreams/index,sf/substreams/index/v1,instructions.proto,transactions.proto,google`...
Error: reading manifest "/workspace/substreams.yaml": unable to get package: unable to convert manifest to package: loading protobuf: error parsing proto files ["program.proto"] (import paths: ["/workspace/proto" "/workspace"]): program.proto:159:9: symbol "substreams.v1.program.LendingAccountBorrowEvent" already defined at program.proto:20:9
Error: error running protogen: error running protogen: error running `substreams protogen /workspace/substreams.yaml --exclude-paths sf/substreams/rpc,sf/substreams/v1,sf/substreams/sink,sf/substreams/index,sf/substreams/index/v1,instructions.proto,transactions.proto,google`: exit status 1
It generate program.proto has problem, when execute substreams init
and choose the sol-anchor-beta - Given an Anchor JSON IDL, create a Substreams that decodes instructions and events
there are various erros in the generated proto file.
question 1: Produce two same pieces of message.
message LendingAccountBorrowEvent {
string trx_hash = 1;
}
message LendingAccountBorrowEvent {
AccountEventHeader header = 1;
string bank = 2;
string mint = 3;
uint64 amount = 4;
}
Metadata
Metadata
Assignees
Labels
No labels