Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@balancer-labs/v2-deployments

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balancer-labs/v2-deployments

Addresses and ABIs of all Balancer V2 deployed contracts

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
147
decreased by-53.04%
Maintainers
5
Weekly downloads
 
Created
Source

Balancer

Balancer V2 Deployments

NPM Package GitHub Repository

This package contains the addresses and ABIs of all Balancer V2 deployed contracts, for Ethereum, Polygon and Arbitrum mainnet, as well as various test networks. Each deployment consists of a deployment script (called 'task'), inputs (script configuration, such as dependencies), outputs (typically contract addresses), and ABIs of related contracts.

Addresses and ABIs can be used consumed from the package in JavaScript environments, or manually retrieved from the GitHub repository.

Note that some protocol contracts are created dynamically: for example, WeightedPool contracts are deployed by the canonical WeightedPoolFactory. While the ABIs of these contracts are stored in the abi directory of each deployment, their addresses are not. Those can be retrieved by querying the on-chain state or processing emitted events.

Overview

Installation

$ npm install @balancer-labs/v2-deployments

Usage

Import @balancer-labs/v2-deployments to access the different ABIs and deployed addresses. To see all Task IDs and their associated contracts, head to Past Deployments.


  • async function getBalancerContract(taskID, contract, network)

Returns an Ethers contract object for a canonical deployment (e.g. the Vault, or a Pool factory).

Note: requires using Hardhat with the hardhat-ethers plugin.

  • async function getBalancerContractAt(taskID, contract, address)

Returns an Ethers contract object for a contract dynamically created at a known address (e.g. a Pool created from a factory).

Note: requires using Hardhat with the hardhat-ethers plugin.

  • async function getBalancerContractAbi(taskID, contract)

Returns a contract's ABI.

  • async function getBalancerContractAddress(taskID, contract, network)

Returns the address of a contract's canonical deployment.

  • async function getBalancerDeployment(taskID, network)

Returns an object with all contracts from a deployment and their addresses.

Past Deployments

DescriptionTask ID
Authorizer, governance contract20210418-authorizer
Vault, main protocol contract20210418-vault
Weighted Pools of up to 8 tokens20210418-weighted-pool
Weighted Pools with two tokens and price oracle20210418-weighted-pool
Liquidity Bootstrapping Pools of up to 4 tokens20210721-liquidity-bootstrapping-pool
Stable Pools of up to 5 tokens20210624-stable-pool
Meta Stable Pools with 2 tokens and price oracle20210727-meta-stable-pool
Relayer for Lido stETH wrapping/unwrapping20210812-lido-relayer
Distributor contract for LDO rewards20210811-ldo-merkle
Rate Provider for wstETH20210812-wsteth-rate-provider

FAQs

Package last updated on 25 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc