Coder Social home page Coder Social logo

dorucioclea / aave-permissions-book Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bgd-labs/aave-permissions-book

0.0 1.0 0.0 4.94 MB

Tool to index and visualise all the permissions on the whole Aave smart contracts ecosystem

License: MIT License

TypeScript 100.00%

aave-permissions-book's Introduction

Aave Permissions Book

Aave Permissions Book

Tool to index and visualise all the permissions on the whole Aave smart contracts ecosystem.

Table of contents

Description

The Aave Protocol smart contracts require different permissions to execute its different methods. These permissions are also hold by different addresses, being other smart contracts, EOAs or multi-sigs. This repository contains and easy directory of tables showing which permissions are needed to execute the functions of the different contracts conforming the Aave Protocol, and the owners of said permissions.

Permissions

A permissions document has been created for every pool of every network where the Aave Protocol has been deployed. These documents contain tables with the following information:

  • Contracts: This table has information about the contracts of the Aave protocol.
    • contract: Name of the contract.
    • proxyAdmin: If the contract follows the Proxy Pattern, it will show the proxyAdmin address. The proxyAdmin has permissions to upgrade the implementation.
    • modifier: Name of the gate method that controls who can call a function. There is an entry for every modifier that a contract has.
    • permission owner: Name of the contract that holds the permission to call the modifier.
    • functions: Name of the functions of the contract that are gated by the modifier.
  • Guardians: This table holds the list of addresses with permissions to call certain methods, excluding those of the Aave governance. Normally a Guardian is a multi-sig with permission to call some methods, following a mandate from the Aave governance.
  • Roles: This table enumerates the different roles that a protocol can have, and the contracts who have that role. A role has permissions to call certain functions gated by modifiers.

Permissions directory

Network System type Tables
MAINNET V3 Permissions
MAINNET GHO Permissions
MAINNET GOV_V2 Permissions
MAINNET V2 Permissions
MAINNET V2_ARC Permissions
MAINNET V2_AMM Permissions
MAINNET SAFETY_MODULE Permissions
MAINNET V2_MISC Permissions
OPTIMISM V3 Permissions
BINANCE V3 Permissions
GNOSIS V3 Permissions
POLYGON V3 Permissions
POLYGON V2 Permissions
FANTOM_OPERA V3 Permissions
METIS_ANDROMEDA V3 Permissions
BASE V3 Permissions
ARBITRUM_ONE V3 Permissions
AVALANCHE V3 Permissions
AVALANCHE V2 Permissions
SCROLL V3 Permissions

Usage

To generate the permissions json, and the subsequent permissions tables:

Installation

  npm install
  cp .env.example .env // this will copy the example .env to the actual .env

Scripts

To generate the permissions json, execute:

  npm run modifiers:generate

To generate the permissions tables, execute:

  npm run tables:create

License

This repository is under MIT License

aave-permissions-book's People

Contributors

testpersonal avatar sendra avatar duxxud avatar sakulstra avatar eboadom avatar brotherlymite 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.