Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge dev into fuzz #185

Merged
merged 34 commits into from
Jul 31, 2024
Merged

Conversation

wei3erHase
Copy link
Member

@wei3erHase wei3erHase commented Jul 31, 2024

to be merge-commited (not squashed 🙏 )

wei3erHase and others added 30 commits July 9, 2024 16:45
* test: btt tests for exitPool

* chore: delete preexisting tests

* refactor: consistently use tokens array for tree tests

* test: assume behaviour of _pullPoolShare correct

* test: exitFee behaviour

* test: small fixes from feedback

* fix: only mock transfers where required
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all
* feat: adding bCoW deployment snapshots and updating snaps

* fix: re-updated snaps

* fix: manually updating BFactory snap to match
* fix: return variable names consistency

* fix: rm explicit returns when named

* fix: mocks
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all

* test: tree and scaffolding

* test: btt tests for swapExactAmountOut

* chore: delete preexisting unit tests
* feat: increasing max swap fee to 99.999%

* fix: updating gas snapshots

* feat: improving and cleaning BMath tree

* fix: messup in tree
* refactor: explicitly set weights in every scenario, remove it from base contract

* test: btt tests for joinswapExternAmountIn

* chore: remove preexisting unit tests replaced by ones in this pr

* test: query tokenIn balance
* refactor: explicitly set weights in every scenario, remove it from base contract

* test: btt tests for joinswapExternAmountIn

* chore: remove preexisting unit tests replaced by ones in this pr

* test: query tokenIn balance

* test: btt tests for exitswapPoolAmountIn

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: feedback from review
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all

* refactor: get rid of _setRecord

* test: btt tests for bcowpool.verify

* chore: delete preexisting unit tests

* chore: testcase renaming from review

* chore: get rid of _setTokens altogether

* test: fuzz all possible valid order.sellAmount values

* chore: rename correctOrder -> validOrder

* fix: rename base file so it is skipped by coverage

* test: ensure verify asks for ERC20 balances

* chore: make bun happy
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all

* refactor: get rid of _setRecord

* test: btt tests for bcowpool.verify

* chore: delete preexisting unit tests

* chore: testcase renaming from review

* chore: get rid of _setTokens altogether

* test: fuzz all possible valid order.sellAmount values

* chore: rename correctOrder -> validOrder

* test: btt tests for bpool.finalize

* test: btt tests for bcowpool.finalize

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: feedback from review

* refactor: make caller==controller default scenario

* fix: reorganize .tree

* fix: feedback from review

* fix: feedback from review, calling internal method directly
* test: btt tests for joinswapPoolAmountOut

* fix: typos in tree

* fix: missing stuff from dev mergeback
* test: btt tests for bcowpool.commit

* chore: remove preexisting unit tests replaced by ones in this pr

* test: reorganize commit tree

* fix: make bulloak happy
* feat: adding BTT tests for BPool getters

* feat: adding tests for spotPrice getters

* feat: adding btt tests for bPool setters (#166)

* fix: rm legacy bPool tests

* fix: manually calculating spot price

* fix: test issues on merge conflicts

* fix: using funny spot prices

---------

Co-authored-by: teddy <[email protected]>
* feat: non-weighted tradeable order test

* fix: adding GetTradeableOrder library

* feat: adding weights to the math

* feat: variable weights

* feat: adding test for helper

* feat: adding support for weights

* fix: fmt

* fix: sending correct price vector

* fix: making helper return valid signature

* feat: deprecated weights in helper

* feat: updated buyAmount as per aaf44a3

* refactor: mv GetTradeableOrder to libraries dir

* fix: update comment on BCoWHelper

* fix: rm unused variable warning

* feat: adding BTT test for BCoWHelper

* fix: linter warnings

* fix: rm remanent line change

* fix: rm unused lines

* fix: missing natspec

* fix: uncommenting assertion in test

* fix: missing natspec

* fix: safety checks comments

* feat: vendoring interface from cow-amm

* fix: lint run

* chore: merge dev

* fix: gas snapshot

* refactor: reordered helper flow and cleanup

* feat: vendoring GetTradeableOrder from cow-amm

* feat: improving commitment expectation

* fix: typos in comments

* fix: overwriting sellAmount in order to avoid rounding issues (#154)

* fix: typos in comments

* fix: overwriting sellAmount in order to avoid rounding issues

* feat: improving the test case to cover both cases

* chore: addressing contract changes from PR comments

* chore: addressing comments in tests

* fix: adding helper mock

* fix: addressing comments from PR

* refactor: deprecate fuzzed integration valid order test in favour of unit test

* feat: simplifying helper integration test

* feat: improving unit test for valid order

* feat: adding call tokens expectation

* fix: branching different behaviours given skewness

* fix: adding comments on the skewness sign
* feat: adding btt tests for bToken

* feat: testing address zero checks on increase/decrease approvals

* feat: adding more checks to bToken tests
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all

* refactor: get rid of _setRecord

* test: btt tests for bcowpool.verify

* chore: delete preexisting unit tests

* chore: testcase renaming from review

* chore: get rid of _setTokens altogether

* test: fuzz all possible valid order.sellAmount values

* chore: rename correctOrder -> validOrder

* test: btt tests for bcowpool.isValidSignature

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: more descriptive tree
* test: btt tests for bpool.swapExactAmountIn

* chore: delete preexisting unit tests

* test: small renames from feedback

* test: be explicit about untestable code

* test: adding skipped test for unreachable condition

* test: code wasnt so unreachable after all

* refactor: get rid of _setRecord

* test: btt tests for bcowpool.verify

* chore: delete preexisting unit tests

* chore: testcase renaming from review

* chore: get rid of _setTokens altogether

* test: fuzz all possible valid order.sellAmount values

* chore: rename correctOrder -> validOrder

* test: btt tests for bpool.finalize

* test: btt tests for bcowpool.finalize

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: feedback from review

* refactor: make caller==controller default scenario

* test: btt tests for bcowpool constructor

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: feedback from review

* fix: make bulloak happy

* fix: mergeback mistake

---------

Co-authored-by: Weißer Hase <[email protected]>
* test: btt tests for push/pull underlying

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: safeERC20 returns different errors with vs without return data

* fix: finalize test that was broken on main

* fix: feedback from review
* test: btt tests for exitswapExternAmountOut

* chore: remove preexisting unit tests replaced by ones in this pr

* fix: dont call setup twice

* chore: finally remove bpool.t.sol
* chore: preparing package for release

* fix: broken links
* feat: adding deployment script with faucet erc20s

* fix: missing files

* feat: update appData to a valid one

* fix: natspec in IFaucet

* fix: final tweaks

* refactor: deployment script

* chore: testnet deployment (updated registry)

* fix: rm solhint 1-contract-per-file rule in script dir

* fix: update bDao address

* fix: gas snapshots

* fix: refresh snapshots

* fix: extra line

* chore: testnet redeployment

* chore: add grafiti to factory

* chore: deployment addresses

* chore: rm grafiti from factory

* refactor: reorganize deployment and scripting architecture

* fix: linter warnings

* fix: deprecate mainnet and testnet id constants

* fix: contract comments

* feat: adding explicit revert on unknown chains

* feat: adding BCoWHelper to deployment script and registry
* chore: remove unused utils directory

* test: missing case for joinswapPoolAmountOut

* test: cover different bmul branches explicitly

* test: cover {push,pull}PoolShares

* test: token ratio > spot price before on swapExactAmountOut

* test: cover bpowApprox with a few valid scenarios
* chore: rename BPoolBase.sol BPoolBase.t.sol

* chore: remove BCoWPoolBase.sol

* chore: remove token{In,Out} from base setup

* chore: give token to bind its own variable
* chore: adding deployment addresses

* fix: addressing comments in PR

* fix: ouch
* feat: deprecating joins and exits

* feat: deprecating singleIn/Out related methods from BMath

* fix: smock

* fix: revert package.json change

* chore: updated deployment addresses

* fix: rm joinswap and exitswap from mocks

* chore: bump package version to 1.4

* fix: clean up deployment scripts from package

* fix: updating readme
@wei3erHase wei3erHase merged commit 61a0930 into feat/fuzz-symb-tests Jul 31, 2024
4 checks passed
@wei3erHase wei3erHase deleted the chore/merge-dev-into-fuzz branch July 31, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants