/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.

Last updated