Skip to content

Commit

Permalink
Use custom node
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Nov 10, 2023
1 parent 566ab40 commit 0703831
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions deploy-web/src/context/CustomChainProvider/CustomChainProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,35 @@ import { wallets as leap } from "@cosmos-kit/leap-extension";
import { wallets as cosmostation } from "@cosmos-kit/cosmostation";
import { customRegistry } from "@src/utils/customRegistry";
import { GasPrice } from "@cosmjs/stargate";
import { akash, akashAssetList, akashSandbox, akashSandboxAssetList } from "@src/chains";
import { akash, akashAssetList, akashSandbox, akashSandboxAssetList, akashTestnet, akashTestnetAssetList } from "@src/chains";
import { useSelectedNetwork } from "@src/hooks/useSelectedNetwork";
import { useChain } from "@cosmos-kit/react";
import { useSettings } from "../SettingsProvider";

type Props = {
children: React.ReactNode;
};

export function CustomChainProvider({ children }: Props) {
const { settings } = useSettings();

return (
<ChainProvider
chains={[akash, akashSandbox]}
assetLists={[akashAssetList, akashSandboxAssetList]}
chains={[akash, akashSandbox, akashTestnet]}
assetLists={[akashAssetList, akashSandboxAssetList, akashTestnetAssetList]}
wallets={[...keplr, ...leap, ...cosmostation]}
walletConnectOptions={{
signClient: {
projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID
}
}}
endpointOptions={{
endpoints: {
akash: { rest: [settings.apiEndpoint], rpc: [settings.rpcEndpoint] },
"akash-sandbox": { rest: [settings.apiEndpoint], rpc: [settings.rpcEndpoint] },
"akash-testnet": { rest: [settings.apiEndpoint], rpc: [settings.rpcEndpoint] }
}
}}
signerOptions={{
preferredSignType: chain => "direct",
signingStargate: chain => ({
Expand Down

0 comments on commit 0703831

Please sign in to comment.