Skip to content

Commit

Permalink
V2/dev (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
charymalloju authored Sep 20, 2024
2 parents 1438e20 + 1fbc7e5 commit 8204002
Show file tree
Hide file tree
Showing 901 changed files with 35,381 additions and 25,275 deletions.
16 changes: 15 additions & 1 deletion MULTISIG_SERVER_README.md → BACKEND_SERVER_README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The multisig server is written in the Go programming language using a PostgreSQL database.
The backend server is written in the Go programming language using a PostgreSQL database.

# How to run

Expand All @@ -8,6 +8,8 @@
<https://go.dev/doc/install>
2. Install PostgreSQL 14.5 or above.
<https://www.postgresql.org/download/linux/ubuntu/>
3. Install Redis.
<https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/>

### After Postgres installation

Expand Down Expand Up @@ -38,6 +40,18 @@ cd server
sudo -u postgres psql your_dbname < schema/schema.sql
```

### Add denom and coingecko ID (If you want to fetch price of token)
1. Add this in `update_denom_price.sql` file
```bash
# Replace coin_minimal_denom with the actual minimal denom and replace coin_gecko_id with actual coin gecko id
('coin_minimal_denom', 'coin_gecko_id', true, NOW(), '{}'::jsonb)
```
2. Run this command
```bash
# Replace your_database_name with the actual database name
sudo -u postgres psql 'your_database_name' < schema/update_denom_price.sql
```
## Quick Start
make sure you have done pre-requisites step
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ To add a new network to Resolute, please follow these steps:

1. Open the `frontend/src/utils/chainInfo.ts` file.
2. Add the new network configuration to the networks list. You can refer to the existing network configurations.
3. Open the `server/networks.json` file and add the new network configuration.
4. Add the token denom and coingecko-id in backend for token price. (Refer: [Set up backend server](./BACKEND_SERVER_README.md))

## Prerequisites

Expand All @@ -45,8 +47,13 @@ $ yarn

## Environment variables

Rename `.env.example` to `.env` and set multisig backend URI `NEXT_PUBLIC_APP_API_URI`,
You can setup your own multisig server in [Set up multisig server](./MULTISIG_SERVER_README.md).
Rename `.env.example` to `.env` and set backend sever URI `NEXT_PUBLIC_APP_API_URI`.

Backend server setup: [Set up backend server](./BACKEND_SERVER_README.md).

Set Squid ID `NEXT_PUBLIC_SQUID_ID`, You can get Squid ID from here [Squid ID](https://squidrouter.typeform.com/integrator-id?typeform-source=docs.squidrouter.com)

To use Cosmwasm contracts set `NEXT_PUBLIC_DUMMY_WALLET_MNEMONIC`.

Set Squid ID `NEXT_PUBLIC_SQUID_ID`, You can get Squid ID from here [Squid ID](https://squidrouter.typeform.com/integrator-id?typeform-source=docs.squidrouter.com)

Expand Down
7 changes: 6 additions & 1 deletion frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ const nextConfig = {
},
};

module.exports = nextConfig;
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});

module.exports = withBundleAnalyzer(nextConfig);

15 changes: 8 additions & 7 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "yarn lint && next dev",
"dev": "yarn lint && next dev --turbo",
"build": "next build",
"start": "yarn lint && next start",
"lint": "next lint --no-cache"
"lint": "next lint --no-cache",
"analyze": "ANALYZE=true next build"
},
"dependencies": {
"@0xsquid/sdk": "^1.14.15",
Expand All @@ -31,13 +32,13 @@
"@types/react-dom": "18.2.15",
"autoprefixer": "10.4.16",
"axios": "^1.5.1",
"axios-retry": "^4.0.0",
"chain-registry": "1.28.1",
"chart.js": "^4.4.1",
"cosmjs-types": "^0.9.0",
"date-fns": "2.30.0",
"eslint": "8.50.0",
"eslint-config-next": "13.5.2",
"fast-average-color": "^9.4.0",
"jsonschema": "^1.4.1",
"lodash": "^4.17.21",
"mathjs": "^12.0.0",
Expand All @@ -46,19 +47,19 @@
"node-gzip": "^1.1.2",
"postcss": "8.4.30",
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.2.0",
"react-ga": "^3.3.1",
"react-hook-form": "^7.47.0",
"react-particles": "^2.12.2",
"react-redux": "^8.1.3",
"react-remark": "^2.1.0",
"react-router-dom": "^6.18.0",
"sharp": "^0.33.1",
"tailwindcss": "3.4.0",
"tsparticles-slim": "^2.12.0",
"typescript": "5.3.2"
"typescript": "5.3.2",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@next/bundle-analyzer": "^14.2.3",
"@types/lodash": "^4.14.200",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"eslint-config-prettier": "^9.0.0",
Expand Down
5 changes: 5 additions & 0 deletions frontend/public/Timer-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/ad.png
Binary file not shown.
3 changes: 2 additions & 1 deletion frontend/public/add-network-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
"menu": "https://raw.githubusercontent.com/vitwit/aneka-resources/d234799b2da3dc0b148829259866d07618b9773b/assets/cosmoshub/atom.png",
"toolbar": "https://raw.githubusercontent.com/vitwit/chain-registry/08711dbf4cbc12d37618cecd290ad756c07d538b/cosmoshub/images/cosmoshub-logo.png"
},
"supported_wallets": ["keplr", "leap", "cosmostation"],
"keplr_experimental": false,
"leap_experimental": false,
"is_testnet": false,
"govV1": false,
"gov_v1": false,
"explorer_tx_hash_endpoint": "https://www.mintscan.io/cosmos/txs/",
"config": {
"chain_id": "cosmoshub-4",
Expand Down
11 changes: 0 additions & 11 deletions frontend/public/address-icon.svg

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/public/after-check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions frontend/public/akash-logo.svg

This file was deleted.

Binary file added frontend/public/akash1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/all-networks-icon.png
Binary file not shown.
Binary file removed frontend/public/allnetworks.png
Binary file not shown.
3 changes: 0 additions & 3 deletions frontend/public/authz-button-disabled.svg

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/public/authz-button-enabled.svg

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/public/authz-icon-2.svg

This file was deleted.

Binary file added frontend/public/avail-bal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions frontend/public/average-fee-icon.svg

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/public/back-arrow.svg

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/public/backarrow-icon.svg

This file was deleted.

Binary file removed frontend/public/background-circle.png
Binary file not shown.
11 changes: 0 additions & 11 deletions frontend/public/balanceAmount.svg

This file was deleted.

5 changes: 5 additions & 0 deletions frontend/public/before-check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/blocks-image-2.png
Binary file not shown.
Binary file removed frontend/public/blocks-image.png
Binary file not shown.
Binary file removed frontend/public/blocks.png
Binary file not shown.
5 changes: 0 additions & 5 deletions frontend/public/check-box-checked.svg

This file was deleted.

5 changes: 0 additions & 5 deletions frontend/public/check-box-unchecked.svg

This file was deleted.

Loading

0 comments on commit 8204002

Please sign in to comment.