Files
tycho-protocol-sdk/substreams/ethereum-balancer-v3/integration_test.tycho.yaml
TAMARA LIPOWSKI 2c0c4d97fb refactor: Move module_name to integration test yaml
It's not good to keep this in the test_runner because then we have multiple points that we need to edit the test config, which can be hard to find.

We need this because the module name for uniswap_v2 is so far different from the rest of the protocols.
2025-09-23 00:42:23 -04:00

79 lines
3.5 KiB
YAML

substreams_yaml_path: ./substreams.yaml
protocol_system: "vm:balancer_v3"
module_name: "map_protocol_changes"
protocol_type_names:
- "balancer_v3_pool"
adapter_contract: "BalancerV3SwapAdapter"
adapter_build_signature: "constructor(address,address,address,address)"
adapter_build_args: "0xbA1333333333a1BA1108E8412f11850A5C319bA9,0x136f1EFcC3f8f88516B9E94110D56FDBfB1778d1,0x000000000022D473030F116dDEE9F6B43aC78BA3,0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
skip_balance_check: true # Skipped because this Balancer V3 uses a Vault, the current version of the testing module doesn't support this.
# vault address for v3 needed for the router contract
initialized_accounts:
- "0xbA1333333333a1BA1108E8412f11850A5C319bA9"
tests:
- name: test_weighted_pool_creation
start_block: 21701410
stop_block: 21701420
expected_components:
- id: "0x4Fd081923824D6AbdaCc862d8449e124A8634b12"
tokens:
- "0x249ca82617ec3dfb2589c4c17ab7ec9765350a18"
- "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
static_attributes:
manual_updates: "0x01"
normalized_weights: "0x5b22307830623161326263326563353030303030222c22307830326336386166306262313430303030225d"
fee: "0x038d7ea4c68000"
pool_type: "0x5765696768746564506f6f6c466163746f7279"
skip_simulation: true # This test is only for creation, simulation tests are below
creation_tx: "0xaf0f8da4b7b148f156605673c6ac56657f67c47001aadd5b3b64d6cb787daad4"
- name: test_swap_g_usdc # weighted pool
start_block: 21389576
stop_block: 21389676
expected_components:
- id: "0xf91c11BA4220b7a72E1dc5E92f2b48D3fdF62726"
tokens:
- "0x440017A1b021006d556d7fc06A54c32E42Eb745B"
- "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
static_attributes:
pool_type: "0x5765696768746564506f6f6c466163746f7279"
manual_updates: "0x01"
normalized_weights: "0x5b22307830366630356235396433623230303030222c22307830366630356235396433623230303030225d"
fee: "0x0aa87bee538000"
skip_simulation: false
creation_tx: "0x50a58ca41af90029a67bc7f4305cceb1e85800246f9c559fa74d8625ddfe14ed"
- name: test_obs_weth # weighted pool
start_block: 21420490
stop_block: 21420516
expected_components:
- id: "0x4403a2721A9A9956584dc19F553720CEf0Df35b0"
tokens:
- "0xafd9268fdfebee905f7439b12c943bc18ad293c2"
- "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
static_attributes:
pool_type: "0x5765696768746564506f6f6c466163746f7279"
manual_updates: "0x01"
normalized_weights: "0x5b22307830646264326663313337613330303030222c2230783233383666323666633130303030225d"
fee: "0x038d7ea4c68000"
skip_simulation: false
creation_tx: "0x8540c2bfbc16dc2db44bc96dd32c2901eb2080d27f959b5831d96cd99903523e"
- name: test_tbc_verse
start_block: 21722567
stop_block: 21722950
expected_components:
- id: "0x82074b99f3E927658BcAFd81F9948d89192CDF91"
tokens:
- "0x18084fba666a33d37592fa2633fd49a74dd93a88"
- "0x249ca82617ec3dfb2589c4c17ab7ec9765350a18"
static_attributes:
pool_type: "0x5765696768746564506f6f6c466163746f7279"
manual_updates: "0x01"
normalized_weights: "0x5b22307830326336386166306262313430303030222c22307830623161326263326563353030303030225d"
fee: "0x038d7ea4c68000"
skip_simulation: false
creation_tx: "0x214064cfcf41f7b94b4f9cdd35644b851e19ba246822b7d8f2bdcc3d6c06074e"