PREREQUISITES:
- api/supabase start
- api/yarn dev
- contracts/yarn chain
- contracts/yarn deploy
# 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
PREREQUISITES:
- Setup users as per above or equivalent
- Ensure create-vault op script runs as a VaultFactory ADMIN to allow custodians (set Env ADMIN_* variables in packages/ops/.env)
- 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