# Name of the substreams config file in your substreams module. Usually "./substreams.yaml"
substreams_yaml_path: ./substreams.yaml
# Name of the adapter contract, usually: ProtocolSwapAdapter"
adapter_contract: "FraxV3FrxEthAdapter"
# Constructor signature of the Adapter contract"
adapter_build_signature: "constructor(address, address)"
# A comma separated list of args to be passed to the contructor of the Adapter contract"
adapter_build_args: "0xbAFA44EFE7901E04E39Dad13167D089C559c1138,0xac3E018457B222d93114458476f3E3416Abbe38F"
# Whether or not the testing script should skip checking balances of the protocol components.
# If set to `true` please always add a reason why it's skipped.
skip_balance_check: true

# A list of protocol types names created by your Substreams module.
protocol_type_names:
  - "sfraxeth_vault"

# need to test just if the vault is created properly
# ref https://etherscan.io/txs?a=0xac3E018457B222d93114458476f3E3416Abbe38F&p=390
tests:
  - name: test_sfraxeth_vault_created
    # Indexed block range
    start_block: 15686046
    stop_block: 15687288
    expected_components:
      - id: "0xac3E018457B222d93114458476f3E3416Abbe38F" # sfrax ETH vault
        tokens:
          - "0x5e8422345238f34275888049021821e8e08caa1f" # frax ETH (ERC20)
          - "0xac3E018457B222d93114458476f3E3416Abbe38F" # sfrax ETH (ERC20)
        creation_tx: "0xd78dbe6cba652eb844de5aa473636c202fb6366c1bfc5ff8d5a26c1a24b37b07"
        skip_simulation: false

  # Test sFraxETH -> fraxETH swap
  - name: test_frxeth_to_sfraxeth_swap
    start_block: 15686046
    stop_block: 15687288
    expected_components:
      - id: "0xac3E018457B222d93114458476f3E3416Abbe38F" # sfrax ETH vault
        tokens:
          - "0xac3E018457B222d93114458476f3E3416Abbe38F" # sfrax ETH (ERC20)
          - "0x5e8422345238f34275888049021821e8e08caa1f" # frax ETH (ERC20)
        creation_tx: "0xd78dbe6cba652eb844de5aa473636c202fb6366c1bfc5ff8d5a26c1a24b37b07"
        skip_simulation: false
