Skip to content

Commit

Permalink
Merge pull request #3 from quasar-finance/development_2.3
Browse files Browse the repository at this point in the history
Sync from quasar-finance development 2.3
  • Loading branch information
akure authored Sep 1, 2024
2 parents 047f4d0 + 4e4ba1b commit 43d23b8
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 112 deletions.
5 changes: 0 additions & 5 deletions .github/reviewer-lottery.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/i18n-missing-keys.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/reviewer-lottery.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/sentry-source-maps.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/vercel-preview-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Preview Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches-ignore:
- development_2.3
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/vercel-prod-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- development_2.3
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ You can find more info in our [documentation](https://docs.daodao.zone). Join
the [DAO DAO Discord](https://discord.gg/sAaGuyW3D2) if you're interested in
becoming a contributor.

## Deployment with Vercel
Because of the server memory resource requirements for the build of this
application, we are using Github Actions to deploy this applcation to Vercel.

### Vercel Preview
- This workflow runs on any branch that isn't `main` and uses Vercel credentials to...
- authenticate with Github Secrets,
- pull preview build environment from Vercel,
- build the packages on the Github Actions runner, and
- deploy to preview the previously built packages.

### Vercel Production
- This workflow runs on branch, `main`, and uses Vercel credentials to...
- authenticate with Github Secrets,
- pull production build environment from Vercel,
- build the packages on the Github Actions runner, and
- deploy to preview the previously built packages.

## Development

### Clone this repo and install dependencies
Expand Down
14 changes: 12 additions & 2 deletions packages/utils/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [
govProp: 'https://testnet.ping.pub/Quasar%20Test/gov/REPLACE',
wallet: 'https://testnet.ping.pub/Quasar%20Test/account/REPLACE',
},
indexes: {
search: 'quasar_testnet_daos',
// Use same as mainnet.
featured: 'quasar_featured_daos',
},
codeIds: {
// https://github.com/CosmWasm/cw-plus
// Cw1Whitelist: 60,
Expand Down Expand Up @@ -688,6 +693,11 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [
govProp: 'https://ping.pub/Quasar/gov/REPLACE',
wallet: 'https://ping.pub/Quasar/account/REPLACE',
},
indexes: {
search: 'quasar_daos',
// Use same as mainnet.
featured: 'quasar_featured_daos',
},
codeIds: {
// https://github.com/CosmWasm/cw-plus
// Cw1Whitelist: 60, // NA
Expand All @@ -702,8 +712,8 @@ export const SUPPORTED_CHAINS: SupportedChainConfig[] = [
CwVesting: 73,
DaoCore: 77,
DaoMigrator: 79,
DaoPreProposeApprovalSingle: 81,
DaoPreProposeApprover: 83,
// DaoPreProposeApprovalSingle: 81,
// DaoPreProposeApprover: 83,
DaoPreProposeMultiple: 58,
DaoPreProposeSingle: 57,
DaoProposalMultiple: 64,
Expand Down

0 comments on commit 43d23b8

Please sign in to comment.