Skip to content

Latest commit

 

History

History

ops

Helper Scripts

OVERALL

PREREQUISITES:

  1. api/supabase start
  2. api/yarn dev
  3. contracts/yarn chain
  4. contracts/yarn deploy

Setup Users

# AND/OR create some sample users (these should be reflected in your .env.local)
yarn op --create-default-users

# create a named user, e.g. [email protected]
yarn op --create-user channel:false email:[email protected]

# make a user an admin, e.g. e.g. [email protected]
yarn op --make-admin null email:[email protected]

# manually link a wallet via front-end
# TODO - automate this step

Create Vaults

PREREQUISITES:

  1. Setup users as per above or equivalent
  2. Ensure create-vault op script runs as a VaultFactory ADMIN to allow custodians (set Env ADMIN_* variables in packages/ops/.env)
  3. Ensure create-vault API runs as the Vault OPERATOR to Create Vaults (see Env use in ethers.service.ts/)
# create a vault with minimal config (open vault, not matured)
yarn op --create-vault
# TODO - fix this!
# create an matured and upside vault
yarn op --create-vault matured,upside upsideVault:self