Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development 2.4 quasar #3

Open
wants to merge 439 commits into
base: development_2.4_quasar
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
439 commits
Select commit Hold shift + click to select a range
2c183db
fixed vote infinite scroll
NoahSaso May 27, 2024
da891f9
add max height to read only code displays
NoahSaso May 27, 2024
0dae02a
redirect Neutron prefixes
NoahSaso May 27, 2024
37b0b9e
fixed displaying vote end block when proposals use block based expira…
NoahSaso May 27, 2024
2ddd135
moved stateful selectors to state
NoahSaso May 28, 2024
9daceba
added voting config item to creation UI to change only_members_execute
NoahSaso May 28, 2024
ba909e1
added dev environment info to readme
NoahSaso May 28, 2024
2504284
added bitsong fantoken protos
NoahSaso May 29, 2024
7857d44
Add stats to homepage <3 (#1780)
NoahSaso Jun 1, 2024
c7d8adc
changed terra classic RPC/REST
NoahSaso Jun 3, 2024
effba99
changed stats to green
NoahSaso Jun 3, 2024
85fb400
fix error on gov proposal creation
NoahSaso Jun 3, 2024
1fa0840
fix error on gov proposal creation 2
NoahSaso Jun 3, 2024
5bdd203
fixed injective polytone connections
NoahSaso Jun 4, 2024
657503a
overflow scroll in status card
NoahSaso Jun 4, 2024
a2786d5
changed terra classic RPC back
NoahSaso Jun 4, 2024
417c945
removed unnecessary loading state on first page load and
NoahSaso Jun 4, 2024
86e7dcf
fixed proposal vote in page header causing context error
NoahSaso Jun 5, 2024
26d64d9
dedupe proposal votes
NoahSaso Jun 5, 2024
cc03bd0
fixed breadcrumbs not having access to DAO info context in page header
NoahSaso Jun 5, 2024
f4d1082
removed some chains from the homepage to improve performance
NoahSaso Jun 6, 2024
74f0ad3
fixed chain gov list page search bar
NoahSaso Jun 6, 2024
ff31899
React Query! (#1783)
NoahSaso Jun 6, 2024
6c8f798
sped up and cache home page static props queries
NoahSaso Jun 6, 2024
745f124
fixed terra classic DAOs
NoahSaso Jun 6, 2024
227bbf9
revalidate home page static props every 6 hours to make sure the quer…
NoahSaso Jun 7, 2024
3cf38be
increase juno self-relay amount
NoahSaso Jun 7, 2024
b37956e
add playwright for e2e testing (#1782)
NoahSaso Jun 7, 2024
2025f8e
removed dapp middleware
NoahSaso Jun 9, 2024
0d77dbb
fixed RPC client fallback connections
Jun 9, 2024
d79e6d8
replaced last manual client RPC connection with router
NoahSaso Jun 10, 2024
ed45fc1
removed unused cw3-fixed-multisig contract files
NoahSaso Jun 10, 2024
2bce5a7
added cwgen script to generate types, clients, and queries for contracts
NoahSaso Jun 10, 2024
0bf4ff2
turned multisig selectors into queries
NoahSaso Jun 10, 2024
3c6745a
fixed polytone proxy detection for DAOs
NoahSaso Jun 10, 2024
2ddadc6
added stargaze <> injective polytone
NoahSaso Jun 10, 2024
949da7a
moved INDEXER_URL env var to constant
NoahSaso Jun 10, 2024
e577ba3
sped up gov prop creation loading and removed unnecessary suspenses
NoahSaso Jun 11, 2024
d62c5bb
store proposal draft data for links on IPFS
NoahSaso Jun 11, 2024
f30d1c3
use aws sdk v3
NoahSaso Jun 12, 2024
c941987
updated caniuse-lite
NoahSaso Jun 12, 2024
fcf4bbe
gzip wasm contract uploads
NoahSaso Jun 12, 2024
b935cdb
fixed decoding invalid unregistered stargate msg
NoahSaso Jun 12, 2024
0474745
added osmosis.smartacount protos
NoahSaso Jun 12, 2024
4d836b6
fix MsgStoreCode amino encoding
NoahSaso Jun 12, 2024
0ccfe1f
updated patches
NoahSaso Jun 12, 2024
87be8bc
use native browser gzip APIs
NoahSaso Jun 12, 2024
82ead12
fixed smart contract checksum overflow
NoahSaso Jun 12, 2024
fa58e11
fixed neutron DAO on testnet
NoahSaso Jun 12, 2024
91409cc
try rpc.cosmos.directory first, falling back to chain registry list
NoahSaso Jun 13, 2024
1a4d7d0
removed cosmos adminmodule types
NoahSaso Jun 13, 2024
9584b09
added explanatory comment
NoahSaso Jun 13, 2024
35ab7fa
fixed gov proposal no indexer selector
NoahSaso Jun 13, 2024
1fb54e9
added utils scripts and more polytone connections
NoahSaso Jun 14, 2024
20a74be
renamed types tsx to ts
NoahSaso Jun 16, 2024
0d76fac
v2.4.0-rc.9
NoahSaso Jun 16, 2024
87021c5
v2.4.0-rc.9 published and updated gitHead
NoahSaso Jun 16, 2024
7fc06d4
improved dump-relayer script
NoahSaso Jun 17, 2024
44b2d0b
fix contract-level SubDAO admin
NoahSaso Jun 18, 2024
804d267
fix not navigating to new DAO if indexer not ready right after creation
NoahSaso Jun 18, 2024
569aa27
fixed searching for invisible actions
NoahSaso Jun 18, 2024
c46935f
fixed searching for invisible actions 2
NoahSaso Jun 18, 2024
ac0d231
allow creating chain-level SubDAOs
NoahSaso Jun 18, 2024
bb08162
fixed kujira denom creation fee not being detected
NoahSaso Jun 19, 2024
47ec3af
plausible wallet login events
NoahSaso Jun 20, 2024
7eee693
support dynamic gas prices on osmosis and neutron
NoahSaso Jun 21, 2024
02cb4eb
removed log
NoahSaso Jun 21, 2024
9822c65
added banner prompt to fix SubDAO admin
NoahSaso Jun 21, 2024
cd25f59
fix logo edge pixel clipping
NoahSaso Jun 21, 2024
80c071b
adjusted splash header banner spacing
NoahSaso Jun 21, 2024
d19b037
updated banner
NoahSaso Jun 21, 2024
2dea748
updated banner text again
NoahSaso Jun 21, 2024
fa5fcac
fixed missing chain context on gov proposal line
NoahSaso Jun 21, 2024
8e4fd61
fixed build
NoahSaso Jun 21, 2024
b06c57f
fixed wasm contract admin query for terra classic
NoahSaso Jun 22, 2024
e856604
fixed self relay bugs
NoahSaso Jun 22, 2024
5e19a3b
added omniflix polytone connections from juno and osmosis
NoahSaso Jun 22, 2024
b6ccbe6
show self relay if takes longer than 1 min
NoahSaso Jun 22, 2024
74c743f
updated variable name
NoahSaso Jun 22, 2024
629adb9
fixed scrollbars on status card
NoahSaso Jun 25, 2024
c3c6f23
fixed wasm MsgUpdateParams message
NoahSaso Jun 25, 2024
e0cda70
add skip and token queries
NoahSaso Jun 10, 2024
0525d1b
Deploy on BitSong Mainnet (#1792)
NoahSaso Jun 25, 2024
c38bedd
return DAO core address in app if chain ID undefined
NoahSaso Jun 25, 2024
bd5f430
fix SubDAO creation via governance and missing funds field
NoahSaso Jun 26, 2024
5e218cc
fixed active threshold not applying to NFT DAOs being created
NoahSaso Jun 27, 2024
82457c9
fixed import
NoahSaso Jun 28, 2024
4e80afa
Sort proposal modules by prefix before selection (#1794)
ismellike Jun 29, 2024
07a2d0f
fixed undefined error with neutron DAO
NoahSaso Jun 29, 2024
8ef662a
Deploy Vercel
NoahSaso Jun 29, 2024
3fe5b1a
fixed authz exec address disappearing and loading on every letter
NoahSaso Jul 3, 2024
7f0c323
fix duplicate chains in IBC destination chain picker
NoahSaso Jul 5, 2024
3457fc0
added scripts to help deploy DAO DAO
NoahSaso Jul 5, 2024
44b3297
added ability to exclude contracts, and catch TX errors
NoahSaso Jul 5, 2024
c468aa8
tweaked deploy script
NoahSaso Jul 5, 2024
dab7f0f
added omniflix hub mainnet
NoahSaso Jul 5, 2024
27aec6a
changed omniflixhub DAO name
NoahSaso Jul 5, 2024
f85c3e7
fixed incorrect proposal module prefix when DAO contract version not …
NoahSaso Jul 7, 2024
d7deb67
Secret Network Refactor (#1788)
NoahSaso Jul 8, 2024
6b3b4eb
v2.4.2-rc.0
NoahSaso Jul 8, 2024
de61239
published
NoahSaso Jul 8, 2024
b3b99fe
Fixed type issue in indexer queries.
NoahSaso Jul 8, 2024
d7b959f
v2.4.2-rc.1
NoahSaso Jul 8, 2024
4c91c99
published
NoahSaso Jul 8, 2024
5f48d8d
fix signer mismatch when adding chain to profile
NoahSaso Jul 8, 2024
b4a3fd1
added comment about secp256k1 public key to address conversion
NoahSaso Jul 8, 2024
7016f53
added omniflix hub testnet
NoahSaso Jul 8, 2024
ffecf34
fixed dispatch script
NoahSaso Jul 8, 2024
b4653e5
fixed type
NoahSaso Jul 8, 2024
a02f919
Support OmniFlix testnet (#1801)
NoahSaso Jul 8, 2024
1060af3
updated secret testnet code IDs and hashes
NoahSaso Jul 8, 2024
b2243d4
Fix funds not being sent in prepropose.propose (#1802)
ismellike Jul 9, 2024
574e05d
support dao-voting-sg-community-nft voting module
NoahSaso Jul 9, 2024
a414c4a
fixed multiple choice proposal module submission with proposal deposit
NoahSaso Jul 9, 2024
5754d89
fixed loading stutter
NoahSaso Jul 9, 2024
4ad8ef8
added chain ID to missing account error
NoahSaso Jul 9, 2024
0fd6929
fixed secret code hash and updated DAO creation gas price
NoahSaso Jul 9, 2024
78b7e7f
renamed variable
NoahSaso Jul 9, 2024
decc2a9
Implement Timewave's Rebalancer (#1530)
NoahSaso Jul 9, 2024
70018ae
fixed vote not refreshing
NoahSaso Jul 9, 2024
3808586
cleaned up
NoahSaso Jul 9, 2024
84a9b5e
moved some rebalancer config to advanced section
NoahSaso Jul 9, 2024
0bf7c9b
add service fee to valence account creation action
NoahSaso Jul 9, 2024
7f61944
show service fee not acknowledged error and fix negative balance
NoahSaso Jul 9, 2024
3c633b3
Datetime picker (#1804)
NoahSaso Jul 11, 2024
275ebe6
updated secret code IDs/hashes
NoahSaso Jul 11, 2024
e0b1dc2
updated secret code IDs/hashes
NoahSaso Jul 11, 2024
c23b243
updated secret code IDs/hashes and factory address
NoahSaso Jul 11, 2024
974301e
default kujira tokens to 6 decimals
NoahSaso Jul 15, 2024
377ebec
added astroport app
NoahSaso Jul 16, 2024
df778e7
try preferred RPC 3 times
NoahSaso Jul 16, 2024
69de447
added update staking config action to cw20-based DAOs
NoahSaso Jul 16, 2024
dee1fc9
Deploy Vercel
NoahSaso Jul 16, 2024
1bd3095
updated terra classic explorer
NoahSaso Jul 16, 2024
48e8016
fixed chain gov DAOs
NoahSaso Jul 17, 2024
653e4e5
Become SubDAO (#1779)
nikitatrifan Jul 18, 2024
69a8d5b
increase funds needed if relay fails due to insufficient funds
NoahSaso Jul 19, 2024
3914523
switched juno mainnet RPC
NoahSaso Jul 19, 2024
68e4b86
added script to dump go relayer entries
NoahSaso Jul 19, 2024
921a64c
secret testnet DAO creation works!
NoahSaso Jul 19, 2024
635405e
fixed secret permit creation
NoahSaso Jul 19, 2024
7338b8a
hide members on secret network and update gas fees
NoahSaso Jul 19, 2024
236bf1d
added pre-propose info queries
NoahSaso Jul 19, 2024
7abd5d8
added polytone connection dispatch script
NoahSaso Jul 22, 2024
e6e9434
fixed SubDAOs not loading when cross-chain SubDAOs exist
NoahSaso Jul 22, 2024
5c8b24f
fixed DaoProviders not refreshing when address changes
NoahSaso Jul 22, 2024
f2856e3
fixed build
NoahSaso Jul 22, 2024
eff869d
updated valence account code ID
NoahSaso Jul 23, 2024
1171786
fixed dispatch script a bit
NoahSaso Jul 23, 2024
8a1f590
auto convert udenom to DENOM for factory tokens
NoahSaso Jul 23, 2024
bf9b93b
added neutron to migaloo/juno polytones
NoahSaso Jul 23, 2024
6f6a4d8
added ccv proto types
NoahSaso Jul 23, 2024
717a54c
added ccv query for neutron in polytone script
NoahSaso Jul 23, 2024
55ca749
convert spend error into warning, and make balance clickable to autof…
NoahSaso Jul 24, 2024
f44b3f8
spend action UX overhaul with custom token entry
NoahSaso Jul 24, 2024
bcd4ace
removed confusing phrase
NoahSaso Jul 24, 2024
959b290
add admins to some DAO contract instantiations
NoahSaso Jul 24, 2024
7790048
fix wasm instantiate amino admin field
NoahSaso Jul 24, 2024
f43ee24
fixed account selector popup not working
NoahSaso Jul 24, 2024
99edc7b
misc improvements:
NoahSaso Jul 25, 2024
1c25553
added no decimals warning to native coin selector when using custom t…
NoahSaso Jul 25, 2024
31e439e
improved support for multiple chains sharing a prefix
NoahSaso Jul 25, 2024
ee902b9
added cosmos hub testnets supported config placeholder
NoahSaso Jul 25, 2024
9ec5eff
added cosmos hub testnet RPCs
NoahSaso Jul 25, 2024
8959f83
fixed chain gov prop creation not loading if wallet not connected
NoahSaso Jul 25, 2024
02cdaa0
fixed cosmos hub provider testnet wallet connection
NoahSaso Jul 25, 2024
89ca55b
fix amino encoder
NoahSaso Jul 25, 2024
fe973d9
fixed veto
NoahSaso Jul 25, 2024
e187393
updated secret code IDs/hashes
NoahSaso Jul 26, 2024
467e973
updated secret testnet admin factory address and fix allowing unique …
NoahSaso Jul 26, 2024
e302205
remove DAO name from contract labels everywhere and make unique with …
NoahSaso Jul 26, 2024
211be0a
fixed loading native secret tokens
NoahSaso Jul 26, 2024
5e45504
improved vote loader UX, increased secret proposal gas fee, and added…
NoahSaso Jul 26, 2024
e177694
added cosmos hub testnets code IDs
NoahSaso Jul 26, 2024
aa243a4
adjusted comment
NoahSaso Jul 26, 2024
9d426c7
fixed not detecting SDK errors in polytone callbacks
NoahSaso Jul 26, 2024
2b0137d
updated pfpk API to support multiple public key types
NoahSaso Jul 27, 2024
aef8f07
Formatted.
NoahSaso Jul 27, 2024
85784a0
fix cf worker auth cross-chain
NoahSaso Jul 28, 2024
ab59168
updated dao proposal single secret testnet code ID/hash
NoahSaso Jul 30, 2024
31496e9
support cross-chain DAO admin exec and cross-chain parent DAO detection
NoahSaso Jul 30, 2024
c5f8afe
removed log
NoahSaso Jul 30, 2024
b6e2566
Upgrade Telescope to v1.8.3 (#1793)
NoahSaso Jul 30, 2024
625f1fa
Support BitSong Fantoken creation during DAO creation (#1800)
NoahSaso Jul 30, 2024
f1b0673
Refactor retroactive compensation (#1806)
NoahSaso Jul 31, 2024
ed261a2
added chain ID to contract query keys
NoahSaso Jul 31, 2024
260a20a
add ability to generate contract queries without indexer, and add cha…
NoahSaso Jul 31, 2024
a901795
don't submit weight when rating retroactive compensation
NoahSaso Jul 31, 2024
bce2799
fixed sticky followed DAOs that can't be unfollowed
NoahSaso Jul 31, 2024
6930cf8
added ability to upload images and files to retroactive compensation
NoahSaso Jul 31, 2024
a2c1ba7
render images correctly in contribution form
NoahSaso Jul 31, 2024
367cbba
render images correctly in contribution form again
NoahSaso Jul 31, 2024
1ce4c17
fallback to URL if no name
NoahSaso Jul 31, 2024
3a750a9
fixed title and status groups
NoahSaso Jul 31, 2024
5c5ede2
fixed other title
NoahSaso Jul 31, 2024
a0657b2
added voting module fallback class
NoahSaso Aug 1, 2024
a04dcab
use kleomedes juno RPC
NoahSaso Aug 1, 2024
f0f8f9a
detect ICA create message when querying relay state
NoahSaso Aug 1, 2024
8ed0a7c
retry different RPCs when self-relaying
NoahSaso Aug 1, 2024
1fdf714
added noble mainnet self relay funds needed
NoahSaso Aug 1, 2024
5696d96
fixed missing error
NoahSaso Aug 1, 2024
1db1556
fixed vote not refreshing
NoahSaso Aug 1, 2024
a1e6723
updated secret testnet proposal module code IDs/hashes
NoahSaso Aug 1, 2024
6a9fa9c
fixced secret testnet code hash
NoahSaso Aug 1, 2024
6a11d3f
added create permit profile card to proposal page
NoahSaso Aug 2, 2024
4371e85
increase gas costs
NoahSaso Aug 2, 2024
634515b
replaced a bunch of recoil selectors with react-query, fixed vesting …
NoahSaso Aug 2, 2024
b36d977
fixed build
NoahSaso Aug 2, 2024
34ada8b
dont show vesting withdraw button if not for the current wallet
NoahSaso Aug 2, 2024
fd4b851
fixed accept SubDAO cross-chain support
NoahSaso Aug 5, 2024
60b58b1
don't detect ICA create messages for now since self-relaying doesn't …
NoahSaso Aug 6, 2024
0a00bf3
use queries instead of selectors for loading members
NoahSaso Aug 11, 2024
493cd08
updated spend bulk import action data in README
NoahSaso Aug 11, 2024
ea1102d
fixed migrate admin warning
NoahSaso Aug 13, 2024
21473fe
set up widgets on DAO creation via instantiate2 (#1809)
NoahSaso Aug 13, 2024
7174353
fixed unnecessary re-export
NoahSaso Aug 13, 2024
9717a81
deploy on cosmos hub mainnet
NoahSaso Aug 13, 2024
d021d6b
fix SDA redirect path
NoahSaso Aug 13, 2024
ce8e2e9
fixed text alignment
NoahSaso Aug 13, 2024
46c154a
added omniflix NFT staking voting module
NoahSaso Aug 13, 2024
e3055d0
bumped version to v2.5.0-rc.2
NoahSaso Aug 13, 2024
287a85a
fixed vesting payment setup on DAO creation
NoahSaso Aug 15, 2024
337aaa0
remove duplicate cosmos hub
NoahSaso Aug 15, 2024
f3981d4
fixed secret network accounts fail to load
NoahSaso Aug 16, 2024
97f9932
updated secret network code IDs/hashes and fixed hook error
NoahSaso Aug 17, 2024
9224c79
fixed chain x/gov DAO sidebar nav match other DAOs on that chain
NoahSaso Aug 28, 2024
f3f13cd
fix skip route error detection
NoahSaso Aug 28, 2024
7f2ef51
fixed null approver proposal number
NoahSaso Aug 28, 2024
25de468
fixed type
NoahSaso Aug 28, 2024
38e70d3
convert neutron voting registry and vault queries from recoil to reac…
NoahSaso Aug 29, 2024
f2a9e7f
fixed wallet DAO filtering
NoahSaso Aug 29, 2024
94315b4
added v2.5.0 code IDs for neutron
NoahSaso Aug 30, 2024
acbc039
Create .env
akure Aug 31, 2024
4b2d6b2
Update chains.ts
akure Aug 31, 2024
3d9a5dd
Update chain.ts
akure Aug 31, 2024
84d8ed4
Update chains.ts
akure Aug 31, 2024
9b3609f
Update chains.ts
akure Aug 31, 2024
22e6063
Update chains.ts
akure Aug 31, 2024
d34afcd
Update chains.ts
akure Aug 31, 2024
eca207f
Update chains.ts
akure Aug 31, 2024
a4c65ce
updated ChainID for quasar testnet
akure Sep 1, 2024
b9bc44e
update .env for testnet
akure Sep 1, 2024
ca6ca84
add catch error in static page gen.
akure Sep 1, 2024
dda8ca5
fix pretty
akure Sep 1, 2024
5d1dc1a
add default values
akure Sep 1, 2024
d063503
updated contract version
akure Sep 2, 2024
abf01f8
try fixing static page gen.
akure Sep 2, 2024
2e49199
fix lint issue
akure Sep 2, 2024
f6f007b
fix lint issue
akure Sep 2, 2024
d2919cc
fix pretty issue
akure Sep 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
cache: 'yarn'
- run: yarn install
- run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/i18n-missing-keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
cache: 'yarn'
- run: yarn install
# Run linter and store output.
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Playwright Tests

on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development

env:
# override value from .env.testnet used in CI
NEXT_PUBLIC_SITE_URL: http://127.0.0.1:3000

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- name: Install packages
run: yarn install
- name: Install Playwright browsers
run: yarn playwright install --with-deps
- name: Set up testnet environment
run: cp apps/dapp/.env.testnet apps/dapp/.env.local
- name: Build dApp
run: yarn dapp build
- name: Run Playwright tests
run: yarn test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: apps/dapp/playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion .github/workflows/sentry-source-maps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
cache: 'yarn'
- run: yarn install
- run: yarn lint
Expand Down
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ node_modules/
out/

.env
.env.development.local
.env.local
.env.production.local
.env.test.local
.env*.local

*.swo
*.swp
Expand All @@ -28,3 +25,9 @@ out/
\#*\#

.turbo

# playwright
test-results/
playwright-report/
blob-report/
playwright/.cache/
17 changes: 14 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"type": "node",
"request": "launch",
"command": "yarn dapp dev"
"name": "Next.js: debug server-side",
"runtimeExecutable": "${workspaceFolder}/node_modules/next/dist/bin/next",
"env": {
"NODE_OPTIONS": "--inspect"
},
"cwd": "${workspaceFolder}/apps/dapp",
"console": "integratedTerminal",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack:///./*": "${workspaceRoot}/apps/dapp/*",
"webpack://?:*/*": "${workspaceFolder}/apps/dapp/*"
}
},
{
"name": "Next.js: debug client-side",
Expand Down
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
{
"pattern": "packages/*",
"!cwd": false
},
{
"pattern": "node_modules/*",
"!cwd": false
}
],
"eslint.validate": [
Expand All @@ -42,5 +46,11 @@
"typescriptreact"
],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.tsserver.experimental.enableProjectDiagnostics": true
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"todo-tree.filtering.excludeGlobs": [
"**/dist/**/*",
"**/.next/**/*",
"**/node_modules/*/**",
"**/packages/utils/protobuf/**/*"
]
}
28 changes: 20 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ cd dao-dao-ui
yarn
```

### Setup environment variables

To run the server on mainnet, copy `.env.mainnet` to `.env.local` in the app
folder you care about (likely `apps/dapp`).

Copy `.env.testnet` instead if you want to run testnet.

### Run dev server

If you're here to work on any other part of the app, likely accessing live chain
data, run the `yarn dev` script (equivalent to running `yarn dev` from the
[`./apps/dapp`](./apps/dapp) package) to run the main app in development mode.

```bash
yarn dev
```

### Storybook

If you're here to work on UI components in isolation, you will likely want to
run the [Storybook](https://storybook.js.org/) server to mock up components and
iterate quickly without having to access live chain data. Check out the
Expand All @@ -36,14 +55,6 @@ To start the Storybook server, run this command from the root of this monorepo:
yarn storybook start
```

If you're here to work on any other part of the app, likely accessing live chain
data, run the `yarn dev` script (equivalent to running `yarn dev` from the
[`./apps/dapp`](./apps/dapp) package) to run the main app in development mode.

```bash
yarn dev
```

If something is misconfigured, check out the docs for
[Turborepo](https://turborepo.org/docs), the monorepo build system we use.

Expand All @@ -60,6 +71,7 @@ If something is misconfigured, check out the docs for
| Package | Summary |
| ----------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [`config`](./packages/config) | Configurations for various dev tools. |
| [`dispatch`](./packages/dispatch) | DAO DAO Dispatch. |
| [`email`](./packages/email) | Email template and generator tools. |
| [`i18n`](./packages/i18n) | Internationalization/translation system. |
| [`state`](./packages/state) | State retrieval and management for the DAO DAO UI. |
Expand Down
53 changes: 53 additions & 0 deletions apps/dapp/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
NEXT_PUBLIC_MAINNET=false

NEXT_PUBLIC_SITE_URL=https://testnet.daodao.zone
NEXT_PUBLIC_DAO_DAO_DAO_ADDRESS=

# https://dashboard.web3auth.io
NEXT_PUBLIC_WEB3AUTH_CLIENT_ID=BKloh0zJRJMSnZnro2qr6eDkT2echfshttYXPnCwb7BcAawwYJF9Df_xDoXGD4EE_l2tToFoByp890nl8HTGKMY

# Stargaze
NEXT_PUBLIC_STARGAZE_GQL_INDEXER_URI=https://galaxy-graphql-testnet.fly.dev/graphql
NEXT_PUBLIC_STARGAZE_URL_BASE=https://testnet.publicawesome.dev
NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1rgn9tuxnl3ju9td3mfxdl2vm4t8xuaztcdakgtyx23c4ffm97cus25fvjs

# Wallet profiles
NEXT_PUBLIC_PFPK_API_BASE=https://pfpk.daodao.zone

# Search
NEXT_PUBLIC_SEARCH_HOST=https://search.daodao.zone
NEXT_PUBLIC_SEARCH_API_KEY=1d599098d24298ffd8b295508eaedccb149163f847b862069cc6de31495dc71b

# Filebase
FILEBASE_ACCESS_KEY_ID=
FILEBASE_SECRET_ACCESS_KEY=
FILEBASE_BUCKET=dao-dao-ui

# Payroll
NEXT_PUBLIC_RETROACTIVE_COMPENSATION_API_BASE=https://retroactive-compensation.daodao.zone

NEXT_PUBLIC_FAST_AVERAGE_COLOR_API_TEMPLATE=https://fac.withoutdoing.com/URL

# Comma separated list of action keys to disable.
NEXT_PUBLIC_DISABLED_ACTIONS=

# Discord notifier
NEXT_PUBLIC_DISCORD_NOTIFIER_CLIENT_ID=1060326264801595402
NEXT_PUBLIC_DISCORD_NOTIFIER_API_BASE=https://discord-notifier.daodao.zone

# Inbox
NEXT_PUBLIC_INBOX_API_BASE=https://inbox.daodao.zone

# KVPK
NEXT_PUBLIC_KVPK_API_BASE=https://kvpk.daodao.zone

# Kado API
NEXT_PUBLIC_KADO_API_KEY=bcee9402-d79f-427b-bafd-dd111e4ce287

# WebSockets API
NEXT_PUBLIC_WEB_SOCKET_PUSHER_APP_KEY=daodao
NEXT_PUBLIC_WEB_SOCKET_PUSHER_HOST=ws.daodao.zone
NEXT_PUBLIC_WEB_SOCKET_PUSHER_PORT=443

# Web Push
NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=BIB5MGacpO1AsiCWPIKeJo3VUz2c9UPvwNuHyxVT+cROGstU3wJs++GyQFmONZjBN9aqdqFi8j2NSnmTPl/PA2w=
11 changes: 5 additions & 6 deletions apps/dapp/.env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1fx74nkqkw2748av8j7ew7r3xt9cgjqduwn8m0u
# Wallet profiles
NEXT_PUBLIC_PFPK_API_BASE=https://pfpk.daodao.zone

# Indexer
NEXT_PUBLIC_INDEXER_URL=https://indexer.daodao.zone

# Search
NEXT_PUBLIC_SEARCH_HOST=https://search.daodao.zone
NEXT_PUBLIC_SEARCH_API_KEY=613511c001942ea974f72dde06647428d1ae3f42cb13fcf71e88e4317d73f2cf
NEXT_PUBLIC_SEARCH_API_KEY=1d599098d24298ffd8b295508eaedccb149163f847b862069cc6de31495dc71b

# https://nft.storage/docs/#get-an-api-token
NFT_STORAGE_API_KEY=
# Filebase
FILEBASE_ACCESS_KEY_ID=
FILEBASE_SECRET_ACCESS_KEY=
FILEBASE_BUCKET=dao-dao-ui

# Payroll
NEXT_PUBLIC_RETROACTIVE_COMPENSATION_API_BASE=https://retroactive-compensation.daodao.zone
Expand Down
11 changes: 5 additions & 6 deletions apps/dapp/.env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ NEXT_PUBLIC_STARGAZE_NAMES_CONTRACT=stars1rgn9tuxnl3ju9td3mfxdl2vm4t8xuaztcdakgt
# Wallet profiles
NEXT_PUBLIC_PFPK_API_BASE=https://pfpk.daodao.zone

# Indexer
NEXT_PUBLIC_INDEXER_URL=https://indexer.daodao.zone

# Search
NEXT_PUBLIC_SEARCH_HOST=https://search.daodao.zone
NEXT_PUBLIC_SEARCH_API_KEY=613511c001942ea974f72dde06647428d1ae3f42cb13fcf71e88e4317d73f2cf
NEXT_PUBLIC_SEARCH_API_KEY=1d599098d24298ffd8b295508eaedccb149163f847b862069cc6de31495dc71b

# https://nft.storage/docs/#get-an-api-token
NFT_STORAGE_API_KEY=
# Filebase
FILEBASE_ACCESS_KEY_ID=
FILEBASE_SECRET_ACCESS_KEY=
FILEBASE_BUCKET=dao-dao-ui

# Payroll
NEXT_PUBLIC_RETROACTIVE_COMPENSATION_API_BASE=https://retroactive-compensation.daodao.zone
Expand Down
26 changes: 0 additions & 26 deletions apps/dapp/middleware.ts

This file was deleted.

37 changes: 36 additions & 1 deletion apps/dapp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ const config = {
// Because @cosmos-kit/web3auth uses a Worker ESM import.
experimental: {
esmExternals: 'loose',
// Increase (to 1 MB) to allow for react-query pre-fetched hydration.
largePageDataBytes: 1 * 1024 * 1024,
},
webpack: (config) => {
// @cosmos-kit/web3auth uses eccrypto, which uses `stream`. This needs to be
Expand Down Expand Up @@ -82,6 +84,38 @@ const config = {
process.env.NEXT_PUBLIC_LEGACY_URL_PREFIX + '/multisig/:slug*',
permanent: false,
},
{
source: '/me/:slug*',
destination: '/:slug*',
permanent: false,
},
{
source: '/tx',
destination: '/actions',
permanent: false,
},
// Redirect all gov subpages to the dao subpage, but leave /gov alone.
{
source: '/gov/:chain/:slug*',
destination: '/dao/:chain/:slug*',
permanent: false,
},
// Rename Neutron proposal IDs from starting with N to A.
{
source:
'/dao/neutron1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrstdxvff/proposals/N:slug',
destination:
'/dao/neutron1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrstdxvff/proposals/A:slug',
permanent: true,
},
// Rename Neutron proposal IDs from starting with P to C.
{
source:
'/dao/neutron1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrstdxvff/proposals/P:slug',
destination:
'/dao/neutron1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrstdxvff/proposals/C:slug',
permanent: true,
},
],
// Only upload source maps to Sentry in CI action when token is provided.
sentry: {
Expand All @@ -91,13 +125,14 @@ const config = {
process.env.CI !== 'true' || !process.env.SENTRY_AUTH_TOKEN,
},
images: {
unoptimized: true,
domains: [
'ipfs.stargaze.zone',
'ipfs-gw.stargaze-apis.com',
'i.stargaze-apis.com',
'nftstorage.link',
'ipfs.daodao.zone',
'img-proxy.ekez.workers.dev',
'img-proxy.daodao.zone',
'raw.githubusercontent.com',
],
},
Expand Down
Loading
Loading