balpy
balpy copied to clipboard
Tools for interacting with Balancer Protocol V2 in Python.
This pr is to (Hopefully) bump balpy to web3.py > v5 There are a number of dependants which would need to be merged and released; https://github.com/gerrrg/multicaller/pull/1 I am very sorry...
[ if(not isinstance(weights[key],Decimal)):](https://github.com/balancer/balpy/blob/77d787a06b147aab40c0d08d22af11846b5e989b/balpy/balancerv2cad/src/balancerv2cad/WeightedPool.py#L43C13-L43C13) https://github.com/balancer/balpy/blob/77d787a06b147aab40c0d08d22af11846b5e989b/balpy/balancerv2cad/src/balancerv2cad/WeightedPool.py#L46C16-L46C16 If the user of the library wants to ensure that the input integers do not lose precision, they must pass in a string of a floating-point...
Tests
There are no tests written for this library. That seems dangerous. I would be happy to start contributing tests. I'm still trying to get a sample running.
# What was done - Update this library to follow [PEP8](https://peps.python.org/pep-0008/). - Update this library to use a linter ([black](https://github.com/psf/black)). - Update this library to use Continuous Integration ([GitHub Actions](https://docs.github.com/en/actions))....
current prints are excessive, and aren't reliably hidden behind verbose flags
Kovan is deprecated and no longer supported by infura. I tried running the following: `python3 samples/poolCreation/poolCreationSample.py samples/poolCreation/sampleLBPool.json` on both mainnet and goerli. I get the following error: ``` Missing contracts...
We're missing few misc functions for the vault that would be nice to have just for the sake of being feature complete. (getAuthorizer, hasApprovedRelayer, etc.)
@groninge01 starting a new issue for this since it's distinct from supporting pooltypes for verification