v3.0.0
Major Changes
-
2137cc9: ## Summary
Using script to automate balancer address and ABI updates as new deployments roll outBreaking Changes
- Contract addresses are now exported through
balancerV2ContractsandbalancerV3Contractsobjects instead of individual exports - Contract ABIs follow consistent nameing pattern of
contractNameAbi_ProtocolVersion
How Consumers Should Update
Address Imports
Previously you would import addresses like this:
import { BALANCER_BATCH_ROUTER, BALANCER_COMPOSITE_LIQUIDITY_ROUTER_BOOSTED, BALANCER_ROUTER, PERMIT2, VAULT_ADMIN, VAULT_V3, } from "@balancer/sdk"; const routerAddress = BALANCER_ROUTER[chainId];
Now you should import and use addresses like this:
import { balancerV2Contracts } from "@balancer/sdk"; import { balancerV3Contracts } from "@balancer/sdk"; const routerAddressV2 = balancerV2Contracts.Router[chainId]; const routerAddressV3 = balancerV3Contracts.Router[chainId];
ABI Imports
For ABI imports related to balancer V2 and V3 contracts. We have standardized the naming by appending
_V2and_V3tocontractNameAbiExample
import { vaultAbi_V2, vaultAbi_V3 } from "@balancer/sdk";
- Contract addresses are now exported through
Patch Changes
- f0a0416: Only mapPoolType for V2. V3 can use string as given.