Skip to content

Commit

Permalink
[wallets] Add rimosafe, reorder some wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Dec 20, 2024
1 parent cbc0f13 commit e578504
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"react-simple-maps": "^3.0.0",
"react-syntax-highlighter": "^15.6.1",
"recharts": "^2.15.0",
"rimosafe-plugin-wallet-adapter": "^0.0.1",
"statsig-react": "^2.1.0"
},
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions src/pages/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {TokenPocketWallet} from "@tp-lab/aptos-wallet-adapter";
import {TrustWallet} from "@trustwallet/aptos-wallet-adapter";
import {WelldoneWallet} from "@welldone-studio/aptos-wallet-adapter";
import {MSafeWalletAdapter} from "@msafe/aptos-wallet-adapter";
import {RimoWallet} from "rimosafe-plugin-wallet-adapter";
import {OKXWallet} from "@okwallet/aptos-wallet-adapter";
import {useMemo} from "react";
import {Network} from "@aptos-labs/ts-sdk";
Expand All @@ -33,6 +34,7 @@ const AptosConnectId = "99d260d0-c69d-4c15-965f-f6f9b7b00102";
// Statically initialize wallets that don't change for the network
const martianWallet = new MartianWallet();
const msafeWallet = new MSafeWalletAdapter();
const rimowallet = new RimoWallet();
const okxWallet = new OKXWallet();
const pontemWallet = new PontemWallet();
const riseWallet = new RiseWallet();
Expand All @@ -45,20 +47,21 @@ function ExplorerWalletAdapterProvider({children}: LayoutProps) {
const [state] = useGlobalState();
const wallets = useMemo(
() => [
okxWallet,
martianWallet,
pontemWallet,
rimowallet,
okxWallet,
bitgetWallet,
msafeWallet,
trustWallet,
tokenPocketWallet,
martianWallet,
// Blocto supports Testnet/Mainnet for now.
new BloctoWallet({
network: NetworkName.Testnet,
bloctoAppId: "6d85f56e-5f2e-46cd-b5f2-5cf9695b4d46",
}),
riseWallet,
msafeWallet,
tokenPocketWallet,
trustWallet,
welldoneWallet,
riseWallet,
],
[],
);
Expand Down

0 comments on commit e578504

Please sign in to comment.