Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.13 KB

testdata

Helper to generate common test data that maths references can test against.

Generate script will use onchain calls to retrieve pool data (mutable and immutable required for maths) and swap results. These will be saved to local json file so that maths libraries can use them as a common data and result source to test against.

To Use

Add .env with following:

SEPOLIA_RPC_URL=

Install dependencies:

bun install

Generate some test data:

Edit index.ts to include your test data input. (WIP > CLI to configure to come)

Run bun run generate.

Test data will be retrieved and saved in ./testData.

bun run index.ts

This project was created using bun init in bun v1.0.5. Bun is a fast all-in-one JavaScript runtime.

Updating deployment

Dependency on @balancer/sdk for latest vault, etc so start by updating that.

Run: bun run build to check for any breaking changes.

Replace relevant pool addresses in config.json. Pools should have same tokens/balances so these can be left.

Tests should pass. Any that fail is likely due to small changes (e.g. rounding) in SC maths.