Skip to content

Commit

Permalink
fix proto well-known generator, add solana-accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Nov 13, 2024
1 parent 32bfc76 commit 7b1bc17
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions proto/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func main() {
var protofiles []ProtoFile

for _, protocol := range wellknown.WellKnownProtocols {
if protocol.BufBuildURL == "" {
continue
}
wellKnownProtoRepo := protocol.BufBuildURL
request := connect.NewRequest(&reflectv1beta1.GetFileDescriptorSetRequest{
Module: wellKnownProtoRepo,
Expand Down
14 changes: 11 additions & 3 deletions proto/well_known_types.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions well-known/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@ var WellKnownProtocols = WellKnownProtocolList([]WellKnownProtocol{
},
},
},
{
Name: "solana-accounts",
BlockType: "sf.solana.type.v1.AccountBlock",
BufBuildURL: "buf.build/streamingfast/solana-accounts",
BytesEncoding: pbfirehose.InfoResponse_BLOCK_ID_ENCODING_BASE58,
KnownChains: []*Chain{
{
Name: "solana-accounts",
Aliases: []string{"solana-accounts-mainnet"},
},
},
},
{
Name: "bitcoin",
BlockType: "sf.bitcoin.type.v1.Block",
Expand Down

0 comments on commit 7b1bc17

Please sign in to comment.