Skip to content

Commit

Permalink
Add CosmosKit integration (#50)
Browse files Browse the repository at this point in the history
* Install cosmoskit

* Working txs

* Add leap & cosmostation wallets

* Fix homepage

* Support mobile wallets

* Improve typing

* Remove old ConnectWalletModal

* Cleanup

* Redirect to home when changing selected address

* Add bundle analyzer

* Make sandbox work

* Cleanup suggest code

* Cleanup registerTypes

* Revert TransactionMessageData

* Use custom node

* Fix custom rpc

* Fix signing client when no wallet connected

* Fix keplr mobile issue (session restore)

* Remove autofocus on search input

* Use new addEndpoints method

* Fix leap modal after merge

* .
  • Loading branch information
Redm4x authored Dec 19, 2023
1 parent 04c43fc commit f2c5c0e
Show file tree
Hide file tree
Showing 24 changed files with 5,422 additions and 634 deletions.
5 changes: 4 additions & 1 deletion deploy-web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true"
});
const { version } = require("./package.json");
const isDev = process.env.NODE_ENV === "development";
const withPWA = require("next-pwa")({
Expand Down Expand Up @@ -71,6 +74,6 @@ const sentryWebpackPluginOptions = {

// Make sure adding Sentry options is the last code to run before exporting, to
// ensure that your source maps include changes from all other Webpack plugins
module.exports = withPWA(withSentryConfig(moduleExports, sentryWebpackPluginOptions));
module.exports = withBundleAnalyzer(withPWA(withSentryConfig(moduleExports, sentryWebpackPluginOptions)));
// module.exports = moduleExports

4,803 changes: 4,775 additions & 28 deletions deploy-web/package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions deploy-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"dev": "next -p 3000",
"build": "next build",
"build-analyze": "set ANALYZE=true&& next build",
"start": "next start",
"type-check": "tsc",
"pretty": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\"",
Expand All @@ -18,6 +19,10 @@
"@auth0/nextjs-auth0": "^3.1.0",
"@cosmjs/encoding": "^0.29.5",
"@cosmjs/stargate": "^0.29.5",
"@cosmos-kit/cosmostation": "^2.5.0",
"@cosmos-kit/keplr": "^2.5.0",
"@cosmos-kit/leap-extension": "^2.6.0",
"@cosmos-kit/react": "^2.9.14",
"@emotion/cache": "^11.7.1",
"@emotion/css": "^11.7.1",
"@emotion/react": "^11.11.0",
Expand All @@ -38,6 +43,7 @@
"@textea/json-viewer": "^3.0.0",
"auth0": "^2.42.0",
"axios": "^0.27.2",
"chain-registry": "^1.20.0",
"cosmjs-types": "^0.6.1",
"date-fns": "^2.29.3",
"eslint-config-next": "^13.4.18",
Expand Down Expand Up @@ -83,6 +89,7 @@
},
"devDependencies": {
"@keplr-wallet/types": "^0.10.15",
"@next/bundle-analyzer": "^14.0.1",
"@types/auth0": "^2.35.3",
"@types/file-saver": "^2.0.5",
"@types/js-yaml": "^4.0.5",
Expand Down
15 changes: 15 additions & 0 deletions deploy-web/src/chains/akash-sandbox.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { akash, akashAssetList } from "./akash";

export const akashSandbox = {
...akash,
chain_id: "sandbox-01",
network_type: "sandbox",
chain_name: "akash-sandbox",
pretty_name: "Akash-Sandbox",
apis: {
rpc: [{ address: "https://rpc.sandbox-01.aksh.pw", provider: "ovrclk" }],
rest: [{ address: "https://api.sandbox-01.aksh.pw", provider: "ovrclk" }]
}
};

export const akashSandboxAssetList = { ...akashAssetList, chain_name: "akash-sandbox", assets: [...akashAssetList.assets] };
15 changes: 15 additions & 0 deletions deploy-web/src/chains/akash-testnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { akash, akashAssetList } from "./akash";

export const akashTestnet = {
...akash,
chain_id: "testnet-02",
network_type: "testnet",
chain_name: "akash-testnet",
pretty_name: "Akash-Testnet",
apis: {
rpc: [{ address: "https://rpc.testnet-02.aksh.pw", provider: "ovrclk" }],
rest: [{ address: "https://api.testnet-02.aksh.pw", provider: "ovrclk" }]
}
};

export const akashTestnetAssetList = { ...akashAssetList, chain_name: "akash-testnet", assets: [...akashAssetList.assets] };
Loading

0 comments on commit f2c5c0e

Please sign in to comment.