Files
tycho-protocol-sdk/substreams/ethereum-balancer-v3/integration_test.tycho.yaml
TAMARA LIPOWSKI 0226bda482 fix: Compare lowercase component IDs
- This was failing. Make this more lenient so the user can specify component id in the test file in a non-case-sensitive manner.
- Also switched around a wrong token order which was causing a failure (not sure we care about token order but we may in the future? Python didn't care...)
2025-09-18 11:18:25 -04:00

112 lines
5.1 KiB
YAML

substreams_yaml_path: ./substreams.yaml
protocol_system: "vm:balancer_v3"
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_stable_pool
start_block: 21374757
stop_block: 21374777
expected_components:
- id: "0xc4ce391d82d164c166df9c8336ddf84206b2f812"
tokens:
- "0x0FE906e030a44eF24CA8c7dC7B7c53A6C4F00ce9"
- "0x775F661b0bD1739349b9A2A3EF60be277c5d2D29"
static_attributes:
manual_updates: "0x01"
pool_type: "0x537461626c65506f6f6c466163746f7279"
bpt: "0xc4ce391d82d164c166df9c8336ddf84206b2f812"
fee: "0x5af3107a4000"
rate_providers: "0x5b22307866346235643163323266333561343630623931656464376633336365666536313965326661616634222c22307863646161363863653332323732386665343138356136306631303363313934663165326334376263225d"
skip_simulation: false
creation_tx: "0xecfe638ea155e78ca2698bea0bee5f86c2f77abe3e9dc93ed19ab6e674165b95"
- 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_erc4626_pool_creation # stable pool
start_block: 21375196
stop_block: 21375216
expected_components:
- id: "0x89BB794097234E5E930446C0CeC0ea66b35D7570"
tokens:
- "0x7bc3485026ac48b6cf9baf0a377477fff5703af8"
- "0xd4fa2d31b7968e448877f69a96de69f5de8cd23e"
static_attributes:
manual_updates: "0x01"
pool_type: "0x537461626c65506f6f6c466163746f7279"
bpt: "0x89bb794097234e5e930446c0cec0ea66b35d7570"
fee: "0x2d79883d2000"
rate_providers: "0x5b22307865646636336363653462613730636265373430363462373638373838326537316562623065393838222c22307838663465383433396239373033363336343834323163363932646438393766623963306264316439225d"
skip_simulation: false
creation_tx: "0x536baa8f18a5f9e32b08f695593f47d996a509edc886ccab6f89b001f2d2b4e4"
- 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"