WIP: balancer tests

This commit is contained in:
kayibal
2024-07-25 19:32:12 +01:00
parent 4c337a36d1
commit bb25ee7f15

View File

@@ -1,28 +1,25 @@
substreams_yaml_path: ./substreams.yaml substreams_yaml_path: ./substreams.yaml
protocol_type_names: protocol_type_names:
- "balancer_pool" - "balancer_pool"
adapter_contract: "BalancerV2SwapAdapter.evm.runtime" adapter_contract: "BalancerV2SwapAdapter"
skip_balance_check: true skip_balance_check: true
initialized_accounts:
- "0xba12222222228d8ba445958a75a0704d566bf2c8"
tests: tests:
# WeightedPoolFactory - 0x897888115Ada5773E02aA29F775430BFB5F34c51 # WeightedPoolFactory - 0x897888115Ada5773E02aA29F775430BFB5F34c51
- name: test_weighted_pool_creation - name: test_weighted_pool_creation
start_block: 16878320 start_block: 16971010
stop_block: 16971020 stop_block: 16972246
expected_state: expected_state:
protocol_components: protocol_components:
- id: "0x8055b8C947De30130BC1Ec750C8F345a50006B23"
tokens:
- "0xba100000625a3754423978a60c9317c58a424e3D"
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes:
creation_tx: "0x3ae08d6ff86737a64827855af810f7ee9ee208ff8e6d8c916495d09a83282c8a"
- id: "0xDac7eF49161bdBf0e8f0B4c8e2D38DF19D972874" - id: "0xDac7eF49161bdBf0e8f0B4c8e2D38DF19D972874"
tokens: tokens:
- "0x9A62fB1CAFEa99f8f0441f80af7F7ccf0d46847D" - "0x9A62fB1CAFEa99f8f0441f80af7F7ccf0d46847D"
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0xbed0c745c3761cd54a7489181a5f1165c628c35ef69ecb0bfeec08f09f0ec407" creation_tx: "0xbed0c745c3761cd54a7489181a5f1165c628c35ef69ecb0bfeec08f09f0ec407"
# ComposableStablePoolFactory - 0xDB8d758BCb971e482B2C45f7F8a7740283A1bd3A
# ComposableStablePoolFactory - 0xDB8d758BCb971e482B2C45f7F8a7740283A1bd3A
- name: test_composable_stable_pool_creation - name: test_composable_stable_pool_creation
start_block: 17672478 start_block: 17672478
stop_block: 17677310 stop_block: 17677310
@@ -30,54 +27,57 @@ tests:
protocol_components: protocol_components:
- id: "0x20356663C17D31549d1210379749E2aE36722D8f" - id: "0x20356663C17D31549d1210379749E2aE36722D8f"
tokens: tokens:
- "0xba100000625a3754423978a60c9317c58a424e3D" - "0xba100000625a3754423978a60c9317c58a424e3D"
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0x822653ae905ab40f51f46c7b8185ba9a4aa06e674789f87dd26d0d11b26dc7c9" creation_tx: "0x822653ae905ab40f51f46c7b8185ba9a4aa06e674789f87dd26d0d11b26dc7c9"
- id: "0x42ED016F826165C2e5976fe5bC3df540C5aD0Af7" - id: "0x42ED016F826165C2e5976fe5bC3df540C5aD0Af7"
tokens: tokens:
- "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" - "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
- "0xac3E018457B222d93114458476f3E3416Abbe38F" - "0xac3E018457B222d93114458476f3E3416Abbe38F"
- "0xae78736Cd615f374D3085123A210448E74Fc6393" - "0xae78736Cd615f374D3085123A210448E74Fc6393"
static_attributes: static_attributes:
creation_tx: "0x53ff6bab0d8a76a998e29e59da8068ad906ae85507a1c2fbf2505e2cb52fd754" creation_tx: "0x53ff6bab0d8a76a998e29e59da8068ad906ae85507a1c2fbf2505e2cb52fd754"
# ERC4626LinearPoolFactory - 0x813EE7a840CE909E7Fea2117A44a90b8063bd4fd
# ERC4626LinearPoolFactory - 0x813EE7a840CE909E7Fea2117A44a90b8063bd4fd
- name: test_erc4626_linear_pool_creation - name: test_erc4626_linear_pool_creation
start_block: 17045881 start_block: 17045881
stop_block: 17480143 stop_block: 17480143
expected_state: expected_state:
protocol_components: protocol_components:
- id: "0x9516a2d25958EdB8da246a320f2c7d94A0DBe25d" - id: "0x9516a2d25958EdB8da246a320f2c7d94A0DBe25d"
tokens: tokens:
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
- "0xB99eDc4b289B0F2284fCF3f66884191BdCe29624" - "0xB99eDc4b289B0F2284fCF3f66884191BdCe29624"
static_attributes: static_attributes:
creation_tx: "0x756e81cea4cf725c738bcef3852ad57687156b561574cad3e2956e6cb48da5e6" creation_tx: "0x756e81cea4cf725c738bcef3852ad57687156b561574cad3e2956e6cb48da5e6"
- id: "0x3fCb7085B8F2F473F80bF6D879cAe99eA4DE9344" - id: "0x3fCb7085B8F2F473F80bF6D879cAe99eA4DE9344"
tokens: tokens:
- "0x39Dd7790e75C6F663731f7E1FdC0f35007D3879b" - "0x39Dd7790e75C6F663731f7E1FdC0f35007D3879b"
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0x5ff97870685370bab3876a4335d28c42e24659064fe78b486d6fb1b37b992877" creation_tx: "0x5ff97870685370bab3876a4335d28c42e24659064fe78b486d6fb1b37b992877"
# EulerLinearPoolFactory - 0x5F43FBa61f63Fa6bFF101a0A0458cEA917f6B347
# EulerLinearPoolFactory - 0x5F43FBa61f63Fa6bFF101a0A0458cEA917f6B347
- name: test_euler_linear_pool_creation - name: test_euler_linear_pool_creation
start_block: 16588078 start_block: 16588078
stop_block: 16588118 stop_block: 16588118
expected_state: expected_state:
protocol_components: protocol_components:
- id: "0xDEC02e6642e2c999aF429F5cE944653CAd15e093" - id: "0xDEC02e6642e2c999aF429F5cE944653CAd15e093"
tokens: tokens:
- "0xC101dcA301a4011C1F925e9622e749e550a1B667" - "0xC101dcA301a4011C1F925e9622e749e550a1B667"
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0xd639c8a6c3a553d47fd7f3d384ec4bc50a2cd6dfb2c3135b7f5db49d73c15df2" creation_tx: "0xd639c8a6c3a553d47fd7f3d384ec4bc50a2cd6dfb2c3135b7f5db49d73c15df2"
- id: "0xD4e7C1F3DA1144c9E2CfD1b015eDA7652b4a4399" - id: "0xD4e7C1F3DA1144c9E2CfD1b015eDA7652b4a4399"
tokens: tokens:
- "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" - "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
- "0xEb91861f8A4e1C12333F42DCE8fB0Ecdc28dA716" - "0xEb91861f8A4e1C12333F42DCE8fB0Ecdc28dA716"
static_attributes: static_attributes:
creation_tx: "0x4a9ea683052afefdae3d189862868c3a7dc8f431d1d9828b6bfd9451a8816426" creation_tx: "0x4a9ea683052afefdae3d189862868c3a7dc8f431d1d9828b6bfd9451a8816426"
# SiloLinearPoolFactory - 0x4E11AEec21baF1660b1a46472963cB3DA7811C89
# SiloLinearPoolFactory - 0x4E11AEec21baF1660b1a46472963cB3DA7811C89
- name: test_silo_linear_pool_creation - name: test_silo_linear_pool_creation
start_block: 17173185 start_block: 17173185
stop_block: 17173187 stop_block: 17173187
@@ -89,7 +89,8 @@ tests:
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0xd639c8a6c3a553d47fd7f3d384ec4bc50a2cd6dfb2c3135b7f5db49d73c15df2" creation_tx: "0xd639c8a6c3a553d47fd7f3d384ec4bc50a2cd6dfb2c3135b7f5db49d73c15df2"
# YearnLinearPoolFactory - 0x5F5222Ffa40F2AEd6380D022184D6ea67C776eE0a
# YearnLinearPoolFactory - 0x5F5222Ffa40F2AEd6380D022184D6ea67C776eE0a
- name: test_yearn_linear_pool_creation - name: test_yearn_linear_pool_creation
start_block: 17052601 start_block: 17052601
stop_block: 17052605 stop_block: 17052605
@@ -101,11 +102,12 @@ tests:
- "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
static_attributes: static_attributes:
creation_tx: "0x497aa03ce84d236c183204ddfc6762c8e4158da1ebc5e7e18e7f6cceaa497a2a" creation_tx: "0x497aa03ce84d236c183204ddfc6762c8e4158da1ebc5e7e18e7f6cceaa497a2a"
# WeightedPool2TokensFactory - 0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0
- name: test_yearn_linear_pool_creation # WeightedPool2TokensFactory - 0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0
- name: weighted_legacy_creation
start_block: 12349890 start_block: 12349890
stop_block: 12363660 stop_block: 12364015
expected_state: expected_state: { }
protocol_components: protocol_components:
- id: "0x021c343C6180f03cE9E48FaE3ff432309b9aF199" - id: "0x021c343C6180f03cE9E48FaE3ff432309b9aF199"
tokens: tokens: