Skip to content

Commit

Permalink
add substreams info to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBger committed Sep 6, 2024
1 parent 7299b86 commit 150d4ae
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ fi

substreams build


## To validate the manifest
substreams info
15 changes: 15 additions & 0 deletions tests/injective-events/generator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"generator": "injective-events",
"state": {
"name": "my_project",
"chainName": "injective-mainnet",
"initialBlockSet": true,
"dataType": "events",
"messageTypes": [
{
"eventType": "wasm",
"attributes": null
}
]
}
}
8 changes: 8 additions & 0 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ func TestIntegration(t *testing.T) {
name: "starknet-minimal",
stateFile: "./starknet-minimal/generator.json",
},
{
name: "injective-events",
stateFile: "./injective-events/generator.json",
},
{
name: "sol-transactions",
stateFile: "./sol-transactions/generator.json",
},
}

ctx := context.Background()
Expand Down
9 changes: 9 additions & 0 deletions tests/sol-transactions/generator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"generator": "sol-transactions",
"state": {
"name": "my_project",
"chainName": "",
"initialBlockSet": true,
"programId": "program:TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
}

0 comments on commit 150d4ae

Please sign in to comment.