-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:balancer/frontend-v2 into feat/c…
…hain-boost-sync
- Loading branch information
Showing
37 changed files
with
837 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Allowlist pool | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
type: choice | ||
description: Network | ||
required: true | ||
options: | ||
- mainnet | ||
- polygon | ||
- arbitrum | ||
- gnosis-chain | ||
poolType: | ||
type: choice | ||
description: Pool Type | ||
required: true | ||
options: | ||
- Weighted | ||
- Stable | ||
poolId: | ||
type: string | ||
description: Pool ID | ||
required: true | ||
poolDescription: | ||
type: string | ||
description: Pool Description | ||
required: false | ||
|
||
jobs: | ||
allowlist-pool: | ||
uses: ./.github/workflows/allowlist.yml | ||
with: | ||
network: ${{ github.event.inputs.network }} | ||
poolType: ${{ github.event.inputs.poolType }} | ||
poolId: ${{ github.event.inputs.poolId }} | ||
poolDescription: ${{ github.event.inputs.poolDescription }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Allowlist Pool Webhook | ||
|
||
on: | ||
repository_dispatch: | ||
types: ['allowlist_pool'] | ||
|
||
jobs: | ||
allowlist-pool: | ||
uses: ./.github/workflows/allowlist.yml | ||
with: | ||
network: ${{ github.event.client_payload.network }} | ||
poolType: ${{ github.event.client_payload.poolType }} | ||
poolId: ${{ github.event.client_payload.poolId }} | ||
poolDescription: ${{ github.event.client_payload.poolDescription }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,24 @@ | ||
name: Allowlist pool | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
network: | ||
type: choice | ||
description: Network | ||
type: string | ||
required: true | ||
options: | ||
- mainnet | ||
- polygon | ||
- arbitrum | ||
- gnosis-chain | ||
poolType: | ||
type: choice | ||
description: Pool Type | ||
type: string | ||
required: true | ||
options: | ||
- Weighted | ||
- Stable | ||
poolId: | ||
type: string | ||
description: Pool ID | ||
required: true | ||
poolDescription: | ||
type: string | ||
description: Pool Description | ||
required: false | ||
|
||
jobs: | ||
allowlist-pool: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
@@ -44,21 +31,21 @@ jobs: | |
- name: Install deps | ||
run: npm install cac | ||
- name: Run allowlist script | ||
run: npx vite-node ./src/lib/scripts/automatic-prs/allowlist-pool.ts --network ${{github.event.inputs.network}} --poolType ${{github.event.inputs.poolType}} --poolId \"${{github.event.inputs.poolId}}\" --poolDescription "${{github.event.inputs.poolDescription}}" | ||
run: npx vite-node ./src/lib/scripts/automatic-prs/allowlist-pool.ts --network ${{inputs.network}} --poolType ${{inputs.poolType}} --poolId \"${{inputs.poolId}}\" --poolDescription "${{inputs.poolDescription}}" | ||
- name: Run eslint fix of updated config files | ||
run: npm run lint:fix:config | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'chore: Update allowlist' | ||
commit-message: 'chore: Add ${{inputs.poolDescription}} pool to ${{inputs.network}} allowlist' | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: update-allowlist | ||
branch: update-allowlist-${{inputs.network}}-${{inputs.poolId}} | ||
base: master | ||
delete-branch: true | ||
title: 'Update pool allowlist' | ||
title: 'Allowlist ${{inputs.poolDescription}} pool' | ||
body: | | ||
This PR was autogenerated by the allowlist manual Github action. | ||
draft: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/components/contextual/pages/pool/risks/PoolRiskList.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script lang="ts" setup> | ||
import { Risk } from '@/composables/usePoolRisks'; | ||
interface Props { | ||
risks: Risk[]; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<ul class="px-8 lg:px-4 list-disc"> | ||
<li v-for="{ title, hash } in risks" :key="hash" class="mb-1 link"> | ||
<router-link :to="{ name: 'risks', hash }">{{ title }}</router-link> | ||
</li> | ||
</ul> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.