refactor(substreams): add rust-toolchain to the templates and modules. (#155)
* refactor(substreams): add `rust-toolchain` to the templates and modules. This freezes the wasm output for each module, allowing us to have full control over each packages and when we break the modules hashes. * fix(testing): allow no `initialized_accounts` in tests --------- Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
4
substreams/ethereum-ambient/rust-toolchain.toml
Normal file
4
substreams/ethereum-ambient/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
4
substreams/ethereum-balancer-v2/rust-toolchain.toml
Normal file
4
substreams/ethereum-balancer-v2/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
@@ -1,2 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "nightly"
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
|
||||
4
substreams/ethereum-template-factory/rust-toolchain.toml
Normal file
4
substreams/ethereum-template-factory/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
4
substreams/ethereum-uniswap-v2/rust-toolchain.toml
Normal file
4
substreams/ethereum-uniswap-v2/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
4
substreams/ethereum-uniswap-v3/rust-toolchain.toml
Normal file
4
substreams/ethereum-uniswap-v3/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
4
substreams/ethereum-uniswap-v4/rust-toolchain.toml
Normal file
4
substreams/ethereum-uniswap-v4/rust-toolchain.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[toolchain]
|
||||
channel = "1.83.0"
|
||||
components = [ "rustfmt" ]
|
||||
targets = [ "wasm32-unknown-unknown" ]
|
||||
@@ -210,9 +210,9 @@ class TestRunner:
|
||||
]
|
||||
|
||||
related_contracts = set()
|
||||
for account in self.config.initialized_accounts:
|
||||
for account in self.config.initialized_accounts or []:
|
||||
related_contracts.add(HexBytes(account))
|
||||
for account in initialized_accounts:
|
||||
for account in initialized_accounts or []:
|
||||
related_contracts.add(HexBytes(account))
|
||||
|
||||
# Filter out components that are not set to be used for the simulation
|
||||
|
||||
Reference in New Issue
Block a user