尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
• Fork the original repo into your GitHub account
• Clone the forked repo from your GitHub account to your local machine
• Set origin to your fork. This is where you push your changes to. This is done automatically by the step above.
• Set upstream to original repo.
• Optional: Create a .env file in the repo root, copy .env.example, and replace values with your own keys. Client-readable values must use the NEXT_PUBLIC_ prefix; server-only secrets must stay unprefixed.
• Optional: Install Husky for pre-commit scripts.查看完整 README ↗Fork the original repo into your GitHub account
Clone the forked repo from your GitHub account to your local machine
git clone https://github.com/<your-gh>/yearn.fi.git
Set origin to your fork. This is where you push your changes to. This is done automatically by the step above.
git remote add origin https://github.com/<your-gh>/yearn.fi
Set upstream to original repo.
git remote add upstream https://github.com/yearn/yearn.fi.git
Optional: Create a .env file in the repo root, copy .env.example, and replace values with your own keys. Client-readable values must use the NEXT_PUBLIC_ prefix; server-only secrets must stay unprefixed.
cp apps/yearn/.env.example .env
Optional: Install Husky for pre-commit scripts.
bun add --dev husky
Use Node.js 22.22.1+ (22.x), as required by lint-staged 17, and Bun 1.4.2 or newer.
The type-check and watch scripts invoke TypeScript 7 directly because the TypeScript 6 compatibility package used by boundary checks can also provide the tsc command.
bun install from the repository root.bun run dev (or bun run dev:yearn) for Yearn at http://localhost:3000.bun run dev:ybold for yBOLD at http://localhost:3002.Both apps consume the private @yearn/vault-widget source package from this
workspace. No registry publish is required.
To disable Enso routing for specific vaults, edit:
apps/yearn/src/components/pages/vaults/constants/ensoDisabledVaults.ts
Add vault addresses under their chain ID:
const ENSO_DISABLED_VAULTS_BY_CHAIN: Partial<Record<number, readonly Address[]>> = {
1: [
'0x1111111111111111111111111111111111111111'
],
42161: [
'0x2222222222222222222222222222222222222222',
'0x3333333333333333333333333333333333333333'
]
}
Notes:
1, 10, 137, 42161, etc.).Create a new local branch from upstream/main for each PR that you will submit
git fetch
git checkout -b <your branch name> upstream/main
Commit your changes as you work
git add .
git commit -S -m "message"
Commits are squashed when PR is merged so rebasing is optional
When ready to push
git fetch
git merge upstream/main
git push origin <branch-name>
Pull requests and then click on New pull requestcompare across forkscompare: and select branch that you want to create a pull request for then click on create pull request