Giter VIP home page Giter VIP logo

badger-registry's Introduction

badger-registry

On Chain Registry for V1, V2 Vaults as well as Known Addresses via extensibly key address pairs

Deployment Addresses

Mainnet https://etherscan.io/address/0xfda7eb6f8b7a9e9fcfd348042ae675d1d652454f

Polygon: https://polygonscan.com/address/0xfda7eb6f8b7a9e9fcfd348042ae675d1d652454f

Arbitrum: https://arbiscan.io/address/0xFda7eB6f8b7a9e9fCFd348042ae675d1d652454f#code

Fantom https://ftmscan.com/address/0xFda7eB6f8b7a9e9fCFd348042ae675d1d652454f

Example Usage - Keys

Get the Address of the Controller for this network

registry.get("controller")

Example Usage - Vaults

Retrieve Live Production Vault that use V1 Architecture

registry.getFilteredProductionVaults("v1", 2);

Retrieve Experimental V2 Production Vaults

registry.getFilteredProductionVaults("v2", 0);

Get all Production Vaults, separated by Version and Type

registry.getProductionVaults();

Brownie Usage

  1. Run The Console brownie console
  2. Get the registry registry = BadgerRegistry.at("ADDRESS FOR THE NETWORK YOU WANT")
  3. Get the keys registry.get("whatever")

More details

Find keys without knowing what they are

Go spam keys(uint) with various indexes until you run out of range

Find versions without knowing what they are

Go spam versions(uint) with various indexes until you run out of range

Find Production Steps / Status for Vaults

Check the Enum VaultStatus for the steps

List of Keys (incomplete)

By defintion the list of keys is incomplete, just iterate over the keys(uint256) to find them Some of these keys may be missing in some deployments While not a security vulnerability this may impact some of our flows Please do create a ISSUE if you find a missing key

This is a list of keys we use at Badger to standardize cross-chain deployments

  • controller

  • guardian

  • keeper

  • badgerTree

  • governance

  • devGovernance

  • proxyAdminDev

  • proxyAdminTimelock

  • governanceTimelock

  • timelock

  • keeperAccessControl

  • rewardsLogger

  • BADGER

  • ibBTC

badger-registry's People

Contributors

gallodasballo avatar shakotn avatar xuefeng-zhu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.