Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.16 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.16 KB

SQFSuperfluidStrategy Scripts

Strategy can be found here.

Installation

  1. Clone the repository:
git clone [email protected]:allo-protocol/sqf-scripts.git
  1. Install dependencies:
yarn install
  1. Create a .env file at the root of the repository and add the following variables:
  • RPC_URL - Your Infura RPC URL
  • SIGNER_PRIVATE_KEY - The private key of the pool manager/address that will call contracts
  • ALLO_REGISTRY_ADDRESS - The address of the Allo Protocol registry
  • ALLO_MAIN_ADDRESS - The address of the Allo Protocol main contract

Scripts

  1. Create Profile To create a pool on Allo you need a Registry profile. If you don't have one yet, you can create one using this script.
  • Open src/create-profile.ts
  • Fill out the profile config params (lines 8-15)
  • save and run:
yarn create-profile
  1. Deploy the strategy.
yarn deploy-strategy
  1. Create a pool
  • Open src/create-pool.ts
  • Fill out the initData and poolData config params (lines 8-35)
  • save and run:
yarn run create-pool