Skip to content

cp0x-org/pi-balancer-interface

 
 

Repository files navigation

Permissionless Balancer Interface by cp0x

An open-source, permissionless interface for the Balancer protocol, based on the official Balancer repository, designed to be fully permissionless and enable direct, unrestricted interaction with smart contracts.

Application Links

Prerequisites

This project uses pnpm, if you haven't already installed it you can find the documentation here: https://pnpm.io/installation

The monorepo uses pnpm workspaces along with Turborepo to manage build orchestration, to learn more about Turborepo please see the docs.

What's inside?

This repo includes the following apps & packages:

Apps

Packages

Getting started

Click on the links below to see the README for each app:

Prepare

In folders apps/frontend-v3 and packages/lib copy data from file .env.template to file .env.local.

Run command to install all dependencies:

pnpm install

Run command to generate graphQL schemas:

pnpm graphql:gen

Build

To build all apps and packages, run the following command:

pnpm build

Testing

To test all apps and packages, run:

pnpm test:unit
// or
pnpm test:integration
// or
pnpm test:e2e

Install a package

If you want to install a new npm package in a sub application like frontend-v3 add the --filter option to your install command, e.g.:

pnpm add some-pkg --filter=frontend-v3

This filter should match the name attribute in the app or package package.json.

Turborepo

Remote Caching

Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:

npx turbo login

This will authenticate the Turborepo CLI with your Vercel account.

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

npx turbo link

Useful links

Learn more about the power of Turborepo:

About

Permissionless interface for the Balancer protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.4%
  • Other 0.6%