Benchmarking Bridge Aggregators
  • Introduction
  • Getting started
    • Installation
    • Setup
    • Compatibility + Troubleshooting
  • Running the Benchmarker
    • Package.json
    • Setup
    • Benchmark
    • Result-gen
    • Test
    • Clear
  • Repository Overview
    • Repository Structure
    • /script
    • /src
    • /test
    • /benchmark-data
    • /benchmark-plots
    • /benchmark-tables
    • miscellaneous
  • Maintainers
Powered by GitBook
On this page
  • Foundry Contracts
  • Helper
  • Message Aggregator
  • Token Aggregator

Was this helpful?

  1. Repository Overview

/test

Foundry Contracts

structure
test/foundry-contracts/aggregator
└── Contract.t.sol

Foundry testing scripts that run fuzz and static tests on the smart contracts. They run on a forked network.

Helper

structure
test/helper
├── provider.test.ts
└── token_misc.test.ts

Tests the provider and token_misc scripts by checking if the functions validate the .env for keys, rpc urls, etc. Token misc checks if the event listening works correctly.

Message Aggregator

structure
test/message-aggregators/aggregator
├── Deploy Contract.test.ts
└── Transaction Sender.test.ts

Token Aggregator

structure
test/token-aggregators/token-aggregator
├── Route Executor.test.ts
└── Route Builder.test.ts

The execute route runs the functions that sign a transaction and submit a swap. By default the submit transactions are skipped so as to not using the user's funds.

Previous/srcNext/benchmark-data

Last updated 1 year ago

Was this helpful?

These contain the runners for deploying contracts and sending transactions by interacting with the scripts in . By default they are set to test, which only interact on a local fork. Setting the mode to "broadcast" will execute on a live network.

route builder creates routes by calling the route_builder scripts from . They contain different token pairs and values to trade on, notably all of them have a 1 ETH/WETH to USDC on same and cross-chain wherever applicable. They also store the quotes generated .

Run-data
Message Aggregators
Token Aggregators