Skip to content

Commit

Permalink
Merge pull request #26 from streamingfast/enol/v0.3.3
Browse files Browse the repository at this point in the history
Upgrade to v0.3.3
  • Loading branch information
maoueh authored Feb 10, 2025
2 parents 67341b4 + bd48813 commit 0a7270e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solana-common/substreams-v0.3.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protobuf:
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
file: ../target/wasm32-unknown-unknown/release/solana_common.wasm

modules:
- name: blocks_without_votes
Expand Down
2 changes: 1 addition & 1 deletion solana-common/substreams-v0.3.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protobuf:
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/substreams.wasm
file: ../target/wasm32-unknown-unknown/release/solana_common.wasm

modules:
- name: blocks_without_votes
Expand Down
61 changes: 61 additions & 0 deletions solana-common/substreams-v0.3.3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
specVersion: v0.1.0
package:
name: "solana_common"
version: v0.3.3 # based on v0.2.0 to keep the caches on the existing modules
image: ./solana.png

network: solana

imports:
solana: https://github.com/streamingfast/firehose-solana/releases/download/v0.1.1/solana-v0.1.1.spkg
v020: https://spkg.io/streamingfast/solana-common-v0.2.0.spkg
v030: https://spkg.io/streamingfast/solana-common-v0.3.0.spkg

protobuf:
excludePaths:
- sf/substreams/rpc
- sf/substreams/v1
- sf/substreams/sink
- sf/substreams/index
- sf/substreams/index/v1
- instructions.proto # sol.instructions.v1 from the v0.2.0 spkg
- transactions.proto # sol.transactions.v1 from the v0.2.0 spkg
- google

binaries:
default:
type: wasm/rust-v1
file: ../target/wasm32-unknown-unknown/release/solana_common.wasm

modules:
- name: blocks_without_votes
use: v020:blocks_without_votes # unchanged from v0.2.0 to keep the same hashes and caches

- name: program_ids_without_votes
use: v020:program_ids_without_votes # unchanged from v0.2.0 to keep the same hashes and caches

- name: program_ids_and_accounts_without_votes
kind: blockIndex
inputs:
- map: blocks_without_votes
output:
type: proto:sf.substreams.index.v1.Keys

- name: transactions_by_programid_without_votes
use: v030:transactions_by_programid_without_votes # unchanged from v0.3.0 to keep the same hashes and caches

- name: transactions_by_programid_and_account_without_votes
kind: map
inputs:
- params: string
- map: blocks_without_votes
blockFilter:
module: program_ids_and_accounts_without_votes
query:
params: true
output:
type: proto:sf.substreams.solana.v1.Transactions

params: # Default parameters for the filter modules. You can override these parameters based on your needs.
transactions_by_programid_without_votes: "program:4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy"
transactions_by_programid_and_account_without_votes: "program:4vMsoUT2BWatFweudnQM1xedRLfJgJ7hswhcpz4xgBTy || (account:Gnt27xtC473ZT2Mw5u8wZ68Z3gULkSTb5DuxJy7eJotD && program:FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH)"
2 changes: 1 addition & 1 deletion solana-common/substreams.yaml

0 comments on commit 0a7270e

Please sign in to comment.